mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
26 lines
497 B
Plaintext
26 lines
497 B
Plaintext
<view style="margin-top: 30vh;">
|
||
<van-button bind:tap="showTopTips">
|
||
显示toptips,声明式调用
|
||
</van-button>
|
||
</view>
|
||
|
||
<view style="margin-top: 30px;">
|
||
<van-button bind:tap="showTopTips2">
|
||
显示toptips,命令式调用
|
||
</van-button>
|
||
</view>
|
||
|
||
<view style="margin-top: 30px;">
|
||
<van-button bind:tap="showTopTips3">
|
||
显示toptips,持续一秒
|
||
</van-button>
|
||
</view>
|
||
|
||
<van-toptips
|
||
id="van-toptips"
|
||
content="{{ content }}"
|
||
is-show="{{ $vant.toptips.show }}"
|
||
/>
|
||
|
||
|