no message

Former-commit-id: aa19087e500aea381a2f7eb90721f2d9871272f1
Former-commit-id: e89fcc86afc432f9a84b203bd139615d5dea674f
Former-commit-id: db8808227a4aa2607af284c82fad0ccf60b93fa6
This commit is contained in:
李杨
2018-03-10 23:36:09 +08:00
parent b98a43f829
commit c2e834b525
6 changed files with 57 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
</el-card>
<!-- [ghost] 隐形的容器 -->
<div v-if="type === 'ghost'">
<slot name="header"></slot>
<slot></slot>
</div>
<!-- [full-card] 撑满 -->

View File

@@ -0,0 +1,6 @@
<template>
<Container>
<template slot="header">页面容器组件 文档</template>
<Markdown url="/static/markdownFiles/article/组件 - 页面容器.md"></Markdown>
</Container>
</template>

View File

@@ -1,8 +1,6 @@
<template>
<Container>
<template slot="header">我是插入到 header 中的内容</template>
<p style="margin-top: 0px;">这是一个最基础的页面容器</p>
<p>它看起来像一个卡片</p>
<p style="margin-bottom: 0px;">它会将页面区域和导航区域区分开</p>
<Markdown url="/static/markdownFiles/article/组件 - 页面容器 - 基础.md"></Markdown>
</Container>
</template>

View File

@@ -16,6 +16,16 @@ export const menu = {
title: '页面容器',
icon: 'window-restore',
children: [
{
title: '文档',
icon: 'file-o',
path: 'container',
name: 'demo-components-container',
meta: {
requiresAuth: true
},
component: resolve => { require(['@/pages/demo/components/container/index.vue'], resolve) }
},
{
title: '卡片',
icon: 'file-o',

View File

@@ -0,0 +1,16 @@
基础页面容器
```
<Container>
主体内容
</Container>
```
使用 `slot`
```
<Container>
<template slot="header">我是插入到 header 中的内容</template>
主体内容
</Container>
```

View File

@@ -0,0 +1,23 @@
## 参数
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- | --- |
| type | 容器类型 | 非 | String | card ghost full-card | card |
| responsive | 响应式宽度 | 非 | Boolean | | false |
> `responsive` 参数设置只在 `type` 等于 `card` 或 `ghost` 时生效
## 使用方法
基本
```
<template>
<Container>
<template slot="header">
header 内容
</template>
主体内容
</Container>
</template>
```