[Doc] fix ActionSheet demo

This commit is contained in:
陈嘉涵 2019-06-21 17:33:24 +08:00
parent 006fbbc0a3
commit 3ecd69bc14
6 changed files with 11 additions and 15 deletions

View File

@ -20,10 +20,6 @@ const UNSHARED = [
'transition'
];
const MAPPER = {
'action-sheet': 'actionsheet'
};
export default {
data() {
return {
@ -37,13 +33,9 @@ export default {
},
simulator() {
let { path } = this.$route.meta;
const { path } = this.$route.meta;
if (!UNSHARED.includes(path)) {
if (MAPPER[path]) {
path = MAPPER[path];
}
return `https://youzan.github.io/vant/mobile.html?hide_nav=1&weapp=1#/zh-CN/${path}`;
}

View File

@ -57,7 +57,12 @@
可以通过`url`属性进行页面跳转,通过`link-type`属性控制跳转类型
```html
<van-cell title="单元格" is-link url="/pages/dashboard/index" link-type="navigateTo" />
<van-cell
is-link
title="单元格"
link-type="navigateTo"
url="/pages/dashboard/index"
/>
```
### 分组标题
@ -84,7 +89,6 @@
<van-tag type="danger">标签</van-tag>
</view>
</van-cell>
<van-cell title="单元格" icon="location-o" is-link />
<van-cell title="单元格">
<van-icon slot="right-icon" name="search" class="custom-icon" />
</van-cell>