[Doc] Cell: update demo (#3649)

This commit is contained in:
neverland
2019-06-26 17:46:50 +08:00
committed by GitHub
parent 8d5a2fc438
commit 0081f72556
4 changed files with 35 additions and 29 deletions
+14 -11
View File
@@ -76,17 +76,20 @@ Vue.use(Cell).use(CellGroup);
### Advanced Usage
```html
<van-cell-group>
<van-cell value="Content" icon="shop-o" is-link>
<template slot="title">
<span class="custom-text">Cell title</span>
<van-tag type="danger">Tag</van-tag>
</template>
</van-cell>
<van-cell title="Cell title">
<van-icon slot="right-icon" name="search" class="custom-icon" />
</van-cell>
</van-cell-group>
<van-cell value="Content" is-link>
<template slot="title">
<span class="custom-title">Cell title</span>
<van-tag type="danger">Tag</van-tag>
</template>
</van-cell>
<van-cell title="Cell title" icon="shop-o">
<van-icon
slot="right-icon"
name="search"
style="line-height: inherit;"
/>
</van-cell>
```
## API