From 8df92071f59f5f5e15106507f5c567fde8d8a52c Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 30 Aug 2019 11:44:33 +0800 Subject: [PATCH] docs: update cell (#4293) --- docs/site/mobile/App.vue | 1 + src/cell/README.md | 4 +- src/cell/README.zh-CN.md | 30 +++++++------ src/cell/demo/index.vue | 94 +++++++++------------------------------- 4 files changed, 40 insertions(+), 89 deletions(-) diff --git a/docs/site/mobile/App.vue b/docs/site/mobile/App.vue index 2500473fc..b49df31fe 100644 --- a/docs/site/mobile/App.vue +++ b/docs/site/mobile/App.vue @@ -4,6 +4,7 @@ v-show="title" class="van-doc-nav-bar" :title="title" + :border="false" :left-arrow="showNav" @click-left="onBack" /> diff --git a/src/cell/README.md b/src/cell/README.md index ba50fdb98..7e3c9643a 100644 --- a/src/cell/README.md +++ b/src/cell/README.md @@ -75,7 +75,7 @@ Vue.use(Cell).use(CellGroup); ``` -### Advanced Usage +### Use Slots ```html @@ -143,7 +143,7 @@ Vue.use(Cell).use(CellGroup); | Name | Description | |------|------| -| default | Default slot | +| default | Custom value | | icon | Custom icon | | title | Custom title | | label | Custom label | diff --git a/src/cell/README.zh-CN.md b/src/cell/README.zh-CN.md index d8c2babe8..5c820fa2c 100644 --- a/src/cell/README.zh-CN.md +++ b/src/cell/README.zh-CN.md @@ -41,7 +41,7 @@ Vue.use(Cell).use(CellGroup); ### 只设置 value -只设置`value`时会向左对齐 +只设置`value`时,内容会靠左对齐 ```html @@ -49,7 +49,7 @@ Vue.use(Cell).use(CellGroup); ### 展示箭头 -传入`is-link`属性则会在右侧显示箭头,并且可以通过传入`arrow-direction`属性控制箭头方向 +设置`is-link`属性后会在单元格右侧显示箭头,并且可以通过`arrow-direction`属性控制箭头方向 ```html @@ -79,12 +79,13 @@ Vue.use(Cell).use(CellGroup); ``` -### 高级用法 +### 使用插槽 -如以上用法不能满足你的需求,可以使用对应的`slot`来自定义显示的内容 +如以上用法不能满足你的需求,可以使用插槽来自定义内容 ```html +