no message
Former-commit-id: e1d7660adf4f34b2243d2936dfca8e50ea8608f5 Former-commit-id: aab2ffdbc56268ed14ce9f357077fad9f796db3e Former-commit-id: c783f36df86f37d55e76eaf2f74f17efad3038dc
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
页面容器组件是每个页面的基础,它应该是 `<template>` 组件的直接子组件
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
|
||||
@@ -9,15 +11,26 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
基本
|
||||
一个基础单文件页面组件的示例
|
||||
|
||||
```
|
||||
<template>
|
||||
<Container>
|
||||
<template slot="header">
|
||||
header 内容
|
||||
可选的header内容 ...
|
||||
</template>
|
||||
主体内容
|
||||
主体内容 ...
|
||||
</Container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'your-component-name'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 需要的话引入
|
||||
@import '~@/assets/style/public.scss';
|
||||
</style>
|
||||
```
|
||||
Reference in New Issue
Block a user