[Doc] update code style (#484)

This commit is contained in:
neverland
2017-12-26 12:39:52 +08:00
committed by GitHub
parent 508cdfc0c9
commit 6b563b2e5a
68 changed files with 431 additions and 431 deletions
+7 -9
View File
@@ -41,12 +41,12 @@ Vue.use(CellGroup);
#### 展示箭头
传入`isLink`属性则会在右侧显示箭头
传入`is-link`属性则会在右侧显示箭头
```html
<van-cell-group>
<van-cell title="单元格" isLink />
<van-cell title="单元格" isLink value="内容" />
<van-cell title="单元格" is-link />
<van-cell title="单元格" is-link value="内容" />
</van-cell-group>
```
@@ -55,17 +55,15 @@ Vue.use(CellGroup);
```html
<van-cell-group>
<van-cell value="内容" icon="shop" isLink>
<van-cell value="内容" icon="shop" is-link>
<template slot="title">
<span class="van-cell-text">单元格</span>
<van-tag type="danger">标签</van-tag>
</template>
</van-cell>
<van-cell title="单元格" icon="location" isLink />
<van-cell title="单元格" icon="location" is-link />
<van-cell title="单元格">
<template slot="right-icon">
<van-icon name="search" class="van-cell__right-icon" />
</template>
<van-icon slot="right-icon" name="search" class="van-cell__right-icon" />
</van-cell>
</van-cell-group>
```
@@ -87,7 +85,7 @@ Vue.use(CellGroup);
| url | 跳转链接 | `String` | - | - |
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
| replace | 跳转时是否替换当前 history | `String` | `false` | - |
| isLink | 是否展示右侧箭头 | `Boolean` | `false` | - |
| is-link | 是否展示右侧箭头 | `Boolean` | `false` | - |
| required | 是否显示表单必填符号 | `Boolean` | `false` | - |
### Slot