result.wxml 850 B

12345678910111213141516171819202122
  1. <import src="../common/template/icon.wxml" />
  2. <wxs src="../common/utils.wxs" module="_" />
  3. <view
  4. style="{{_._style([style, customStyle])}}"
  5. class="{{classPrefix}} {{classPrefix}}--theme-{{theme}} {{prefix}}-class"
  6. >
  7. <view aria-hidden="true" class="{{classPrefix}}__thumb">
  8. <t-image wx:if="{{image}}" t-class="{{prefix}}-class-image" src="{{image}}" mode="aspectFit" />
  9. <template wx:elif="{{_icon}}" is="icon" data="{{class: classPrefix + '__icon', ..._icon }}" />
  10. <slot name="image" />
  11. </view>
  12. <view class="{{classPrefix}}__title {{prefix}}-class-title">
  13. <block wx:if="{{title}}"> {{title}} </block>
  14. <slot name="title" />
  15. </view>
  16. <view class="{{classPrefix}}__description {{prefix}}-class-description">
  17. <block wx:if="{{description}}"> {{description}} </block>
  18. <slot name="description" />
  19. </view>
  20. </view>