empty.wxml 770 B

123456789101112131415161718192021
  1. <wxs src="./empty.wxs" module="utils" />
  2. <view class="t-class {{classPrefix}}">
  3. <view class="{{classPrefix}}__content">
  4. <image
  5. wx:if="{{image}}"
  6. class="{{classPrefix}}__img t-class-image"
  7. src="{{image}}"
  8. mode="aspectFit"
  9. />
  10. <t-icon wx:elif="{{icon}}" size="192rpx" name="{{icon}}" color="rgba(0, 0, 0, .26)" />
  11. <slot wx:else name="image" class="{{classPrefix}}__img t-class-image" />
  12. <view wx:if="{{description}}" class="{{classPrefix}}__description t-class-description"
  13. >{{description}}</view
  14. >
  15. <slot wx:else name="description" class="{{classPrefix}}__description t-class-description}" />
  16. <view class="{{classPrefix}}__actions t-class-actions">
  17. <slot name="action" />
  18. </view>
  19. </view>
  20. </view>