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