notice-bar.wxml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <view wx:if="{{visible}}" class="{{classPrefix}} {{classPrefix}}--{{theme}} {{prefix}}-class">
  2. <!-- prefixIcon -->
  3. <view class="{{classPrefix}}__prefix-icon {{prefix}}-class-prefix-icon" bind:tap="clickPrefixIcon">
  4. <t-icon wx:if="{{ iconName }}" name="{{ iconName }}" />
  5. <slot wx:else name="prefixIcon" />
  6. </view>
  7. <!-- conten -->
  8. <view class="{{classPrefix}}__content-wrap" bind:tap="clickContent">
  9. <view
  10. class="{{classPrefix}}__content {{prefix}}-class-content {{ !marquee ? classPrefix + '__content-wrapable' : ''}}"
  11. animation="{{ animationData }}"
  12. >
  13. <view wx:if="{{content}}"> {{content}} </view>
  14. <slot wx:else name="content" />
  15. </view>
  16. </view>
  17. <!-- extra -->
  18. <view class="{{classPrefix}}__extra {{prefix}}-class-extra" bind:tap="clickExtra">
  19. <view wx:if="{{ extra }}"> {{extra}} </view>
  20. <slot wx:else name="extra" />
  21. </view>
  22. <!-- suffixIcon -->
  23. <view class="{{classPrefix}}__suffix-icon {{prefix}}-class-suffix-icon" bind:tap="clickSuffixIcon">
  24. <t-icon wx:if="{{ suffixIcon }}" name="{{suffixIcon}}" />
  25. <slot wx:else name="suffixIcon" />
  26. </view>
  27. </view>