kobeCristiano 86152d45ce [refactor] Noticebar:升级到自定义组件 (#165)
* [improvement] Tab:升级到自定义组件

* fix: 去除冗余example代码

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

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

* refactor: 重构noticebar组件

* fix: 去除tab组件冗余属性字段
2018-03-25 18:30:53 +08:00

32 lines
846 B
Plaintext

<view
wx:if="{{ show }}"
class="zan-noticebar {{ hasRightIcon ? 'zan-noticebar--within-icon' : '' }}"
style="color: {{ color }};background-color: {{ backgroundColor }}"
>
<view wx:if="{{ leftIcon }}" class="zan-noticebar__left-icon">
<image src="{{ leftIcon }}" />
</view>
<view class="zan-noticebar__content-wrap">
<view class="zan-noticebar__content" animation="{{ animationData }}">
{{ text }}
</view>
</view>
<block wx:if="{{ mode }}">
<zan-icon
wx:if="{{ mode === 'closeable' }}"
class="zan-noticebar__right-icon"
type="close"
bindtap="_handleButtonClick"
/>
<navigator
wx:if="{{ mode === 'link' }}"
url="{{ url }}"
open-type="{{ openType }}"
>
<zan-icon class="zan-noticebar__right-icon" type="arrow" />
</navigator>
</block>
</view>