mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
35 lines
822 B
Plaintext
35 lines
822 B
Plaintext
<import src="/dist/toast/index.wxml" />
|
|
|
|
<view class="container">
|
|
<van-button bind:buttonclick="showToast">
|
|
显示toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showIconToast">
|
|
显示 Icon 图标的toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showImageToast">
|
|
自定义图片作为图标的toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showLoadingToast">
|
|
显示 Loading toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showOnlyIcon">
|
|
只显示图标的toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showEverToast">
|
|
不消失的的toast
|
|
</van-button>
|
|
|
|
<van-button bind:buttonclick="showLoading">
|
|
显示 Loading
|
|
</van-button>
|
|
</view>
|
|
|
|
<!-- <template is="van-toast" data="{{ zanToast }}"></template> -->
|
|
<van-toast id="van-toast-test"></van-toast>
|