kobeCristiano e37472805c [refactor]Toptips:升级为自定义组件 (#169)
* [improvement] Tab:升级到自定义组件

* fix: 去除冗余example代码

* [refactor] 重构badge为自定义组件 (#160)

* fix: 去除tab组件使用对象入参方式,修改example用例

* refactor: 重构noticebar组件

* fix: 去除tab组件冗余属性字段

* refactor: 重构toptips为自定义组件
2018-03-28 15:12:03 +08:00

31 lines
736 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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 }}"
/>