mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-10-21 23:42:09 +08:00
[Doc] fix ActionSheet demo
This commit is contained in:
parent
006fbbc0a3
commit
3ecd69bc14
@ -20,10 +20,6 @@ const UNSHARED = [
|
|||||||
'transition'
|
'transition'
|
||||||
];
|
];
|
||||||
|
|
||||||
const MAPPER = {
|
|
||||||
'action-sheet': 'actionsheet'
|
|
||||||
};
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -37,13 +33,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
simulator() {
|
simulator() {
|
||||||
let { path } = this.$route.meta;
|
const { path } = this.$route.meta;
|
||||||
|
|
||||||
if (!UNSHARED.includes(path)) {
|
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}`;
|
return `https://youzan.github.io/vant/mobile.html?hide_nav=1&weapp=1#/zh-CN/${path}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,12 @@
|
|||||||
可以通过`url`属性进行页面跳转,通过`link-type`属性控制跳转类型
|
可以通过`url`属性进行页面跳转,通过`link-type`属性控制跳转类型
|
||||||
|
|
||||||
```html
|
```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>
|
<van-tag type="danger">标签</van-tag>
|
||||||
</view>
|
</view>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
<van-cell title="单元格" icon="location-o" is-link />
|
|
||||||
<van-cell title="单元格">
|
<van-cell title="单元格">
|
||||||
<van-icon slot="right-icon" name="search" class="custom-icon" />
|
<van-icon slot="right-icon" name="search" class="custom-icon" />
|
||||||
</van-cell>
|
</van-cell>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user