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