index.wxml 931 B

1234567891011121314151617181920212223242526272829
  1. <goods-card
  2. class="order-goods-card {{ step ? 'order-goods-card--step' : '' }}"
  3. wx:if="{{!hidden}}"
  4. data="{{goods}}"
  5. thumb-width="{{thumbWidth}}"
  6. thumb-height="{{thumbHeight}}"
  7. thumb-width-in-popup="{{thumbWidthInPopup}}"
  8. thumb-height-in-popup="{{thumbHeightInPopup}}"
  9. >
  10. <t-stepper
  11. wx:if="{{ step }}"
  12. slot="append-body"
  13. disabled="{{ step ? stepDisabled : ''}}"
  14. value="{{goods.quantity}}"
  15. min="{{ 1 }}"
  16. theme="filled"
  17. bindminus="onNumChange"
  18. bindplus="onNumChange"
  19. bindblur="onNumChange"
  20. />
  21. <!-- 透传good-card组件的slot -->
  22. <slot name="thumb-cover" slot="thumb-cover" />
  23. <slot name="after-title" slot="after-title" />
  24. <slot name="after-desc" slot="after-desc" />
  25. <slot name="price-prefix" slot="price-prefix" />
  26. <slot name="append-body" slot="append-body" />
  27. <slot name="footer" slot="footer" />
  28. <slot name="append-card" slot="append-card" />
  29. </goods-card>