mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* [improvement] Tab:升级到自定义组件 * fix: 去除冗余example代码 * [refactor] 重构badge为自定义组件 (#160) * fix: 去除tab组件使用对象入参方式,修改example用例 * refactor: 重构noticebar组件 * fix: 去除tab组件冗余属性字段 * refactor: 重构toptips为自定义组件
31 lines
736 B
Plaintext
31 lines
736 B
Plaintext
<import src="/dist/toptips/index.wxml" />
|
||
|
||
<view class="container">
|
||
|
||
<view class="doc-title zan-hairline--bottom">TOPTIPS</view>
|
||
|
||
<view class="zan-btns" style="margin-top: 30vh;">
|
||
<button class="zan-btn" bindtap="showTopTips">
|
||
显示toptips,声明式调用
|
||
</button>
|
||
</view>
|
||
|
||
<view class="zan-btns" style="margin-top: 30px;">
|
||
<button class="zan-btn" bindtap="showTopTips2">
|
||
显示toptips,命令式调用
|
||
</button>
|
||
</view>
|
||
|
||
<view class="zan-btns" style="margin-top: 30px;">
|
||
<button class="zan-btn" bindtap="showTopTips3">
|
||
显示toptips,持续一秒
|
||
</button>
|
||
</view>
|
||
</view>
|
||
|
||
<zan-toptips
|
||
id="zan-toptips"
|
||
content="{{ content }}"
|
||
is-show="{{ $zanui.toptips.show }}"
|
||
/>
|