index.wxml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="btn-bar">
  2. <view class="left">
  3. <t-button
  4. wx:for="{{buttons.left}}"
  5. wx:key="type"
  6. wx:for-item="leftBtn"
  7. size="extra-small"
  8. shape="round"
  9. t-class="{{isBtnMax ? 't-button--max':'t-button'}} order-btn delete-btn"
  10. hover-class="order-btn--active"
  11. catchtap="onOrderBtnTap"
  12. data-type="{{leftBtn.type}}"
  13. >
  14. {{leftBtn.name}}
  15. </t-button>
  16. </view>
  17. <view class="right">
  18. <t-button
  19. wx:for="{{buttons.right}}"
  20. wx:key="type"
  21. wx:for-item="rightBtn"
  22. size="extra-small"
  23. variant="{{ rightBtn.primary ? 'base' : 'outline'}}"
  24. shape="round"
  25. t-class="{{isBtnMax ? 't-button--max':'t-button'}} order-btn {{rightBtn.primary ? 'primary' : 'normal'}}"
  26. hover-class="order-btn--active"
  27. catchtap="onOrderBtnTap"
  28. data-type="{{rightBtn.type}}"
  29. open-type="{{ rightBtn.openType }}"
  30. data-share="{{ rightBtn.dataShare }}"
  31. >
  32. {{rightBtn.name}}
  33. </t-button>
  34. </view>
  35. </view>
  36. <t-toast id="t-toast" />
  37. <t-dialog id="t-dialog" />