This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/components/noticebar/index.wxml
2020-04-25 22:59:04 +08:00

18 lines
836 B
Plaintext

<view wx:if="{{ show }}" class="zan-noticebar {{ hasRightIcon ? 'zan-noticebar--within-icon' : '' }}" style="color: {{ color }};background-color: {{ backgroundColor }}; padding: {{ paddingTop }}px 10px;">
<view wx:if="{{ leftIcon }}" class="zan-noticebar__left-icon">
<image class="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>