mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: add weapp tip (#4499)
This commit is contained in:
parent
c32e29791e
commit
a4b5f94232
@ -8,6 +8,15 @@
|
|||||||
:left-arrow="showNav"
|
:left-arrow="showNav"
|
||||||
@click-left="onBack"
|
@click-left="onBack"
|
||||||
/>
|
/>
|
||||||
|
<van-notice-bar
|
||||||
|
v-if="weapp"
|
||||||
|
v-show="title"
|
||||||
|
wrapable
|
||||||
|
:text="tips"
|
||||||
|
background="#ecf9ff"
|
||||||
|
color="rgba(52, 73, 94, 0.8)"
|
||||||
|
style="font-size: 12px;"
|
||||||
|
/>
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<router-view :weapp="weapp" />
|
<router-view :weapp="weapp" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
@ -42,6 +51,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
beforeCreate() {
|
||||||
|
this.tips = 'Tips: 当前预览的是 Vue 版 Vant 的示例,少部分功能可能与小程序版有出入,请以文档描述和实际效果为准。';
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onBack() {
|
onBack() {
|
||||||
history.back();
|
history.back();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user