This commit is contained in:
cookfront 2017-04-11 16:34:03 +08:00
parent 548ee9c7ea
commit 7f37332f58
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ export default {
:::demo 基础用法
```html
<zan-cell-group>
<zan-cell title="单元格1" value="单元格1内容"></zan-cell>
<zan-cell title="单元格1" value="单元格1内容">
</zan-cell>
<zan-cell title="单元格2" value="单元格2内容"></zan-cell>
</zan-cell-group>
```

View File

@ -6,7 +6,7 @@
>
<slot name="icon">
<i v-if="icon" class="zan-icon" :class="'zan-icon-' + icon"></i>
<slot>
</slot>
<slot name="title">
<span class="zan-cell__text" v-text="title"></span>
<span class="zan-cell__label" v-if="label" v-text="label"></span>