mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-09 22:49:45 +08:00
[new feature] Card: add bottom slot (#1668)
This commit is contained in:
parent
0e90955aa5
commit
8e5e677f83
@ -77,6 +77,7 @@ es5
|
|||||||
| title | 自定义标题栏,如果设置了`title`属性则不生效 |
|
| title | 自定义标题栏,如果设置了`title`属性则不生效 |
|
||||||
| desc | 自定义描述栏,如果设置了`desc`属性则不生效 |
|
| desc | 自定义描述栏,如果设置了`desc`属性则不生效 |
|
||||||
| thumb | 自定义 thumb,如果设置了`thumb`属性则不生效 |
|
| thumb | 自定义 thumb,如果设置了`thumb`属性则不生效 |
|
||||||
|
| bottom | 自定义价格下方区域 |
|
||||||
| footer | 自定义 footer |
|
| footer | 自定义 footer |
|
||||||
| tags | 自定义 tags |
|
| tags | 自定义 tags |
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
<view wx:if="{{ price || price === 0 }}" class="van-card__price price-class">{{ currency }} {{ price }}</view>
|
<view wx:if="{{ price || price === 0 }}" class="van-card__price price-class">{{ currency }} {{ price }}</view>
|
||||||
<view wx:if="{{ originPrice || originPrice === 0 }}" class="van-card__origin-price origin-price-class">{{ currency }} {{ originPrice }}</view>
|
<view wx:if="{{ originPrice || originPrice === 0 }}" class="van-card__origin-price origin-price-class">{{ currency }} {{ originPrice }}</view>
|
||||||
<view wx:if="{{ num }}" class="van-card__num num-class">x {{ num }}</view>
|
<view wx:if="{{ num }}" class="van-card__num num-class">x {{ num }}</view>
|
||||||
|
<slot name="bottom" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user