cell.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view
  2. class="{{prefix}}-class {{classPrefix}} {{ hover ? classPrefix + '--hover' : ''}} {{ !bordered ? classPrefix + '--borderless' : ''}} {{classPrefix}}--{{align}}"
  3. hover-class="{{classPrefix}}--hover-class"
  4. hover-stay-time="70"
  5. bind:tap="onClick"
  6. >
  7. <view class="{{classPrefix}}__left {{prefix}}-class-left">
  8. <t-icon wx:if="{{ leftIcon }}" name="{{leftIcon}}" class="{{classPrefix}}__left-icon {{prefix}}-class-left-icon" />
  9. <slot name="left-icon" />
  10. <image wx:if="{{ image }}" class="{{classPrefix}}__left-image {{prefix}}-class-image" src="{{ image }}" />
  11. <slot name="image" />
  12. </view>
  13. <view class="{{classPrefix}}__title {{prefix}}-class-title">
  14. <view class="{{classPrefix}}__title-text">
  15. <block wx:if="{{ title }}"> {{ title}} </block>
  16. <slot name="title" />
  17. <block wx:if="{{required}}">
  18. <text decode class="{{classPrefix}}--required">&nbsp;*</text>
  19. </block>
  20. </view>
  21. <view class="{{classPrefix}}__description {{prefix}}-class-description">
  22. <view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view>
  23. <slot name="description" />
  24. </view>
  25. </view>
  26. <view class="{{classPrefix}}__note {{prefix}}-class-note">
  27. <text wx:if="{{ note }}">{{note}}</text>
  28. <slot name="note" />
  29. </view>
  30. <view class="{{classPrefix}}__right {{prefix}}-class-right">
  31. <t-icon wx:if="{{ arrow }}" name="chevron-right" class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon" />
  32. <block wx:else>
  33. <t-icon name="{{rightIcon}}" class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon" />
  34. <slot name="right-icon" />
  35. </block>
  36. </view>
  37. </view>