mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-24 12:59:45 +08:00
feat(CouponList): add list-footer slot (#8797)
This commit is contained in:
parent
127f99f8e8
commit
5280400404
@ -128,6 +128,13 @@ export default {
|
|||||||
| unitDesc | Unit Text | _string_ |
|
| unitDesc | Unit Text | _string_ |
|
||||||
| customValidPeriod | custom valid period | _string_ |
|
| customValidPeriod | custom valid period | _string_ |
|
||||||
|
|
||||||
|
### CouponList Slots
|
||||||
|
|
||||||
|
| Name | Description |
|
||||||
|
| -------------------- | ------------------------------- |
|
||||||
|
| list-footer | Coupon list bottom |
|
||||||
|
| disabled-list-footer | Unavailable coupons list bottom |
|
||||||
|
|
||||||
### Less Variables
|
### Less Variables
|
||||||
|
|
||||||
How to use: [Custom Theme](#/en-US/theme).
|
How to use: [Custom Theme](#/en-US/theme).
|
||||||
|
@ -130,6 +130,13 @@ export default {
|
|||||||
| unitDesc | 单位文案 | _string_ |
|
| unitDesc | 单位文案 | _string_ |
|
||||||
| customValidPeriod | 自定义有效时间文案 | _string_ |
|
| customValidPeriod | 自定义有效时间文案 | _string_ |
|
||||||
|
|
||||||
|
### CouponList Slots
|
||||||
|
|
||||||
|
| 名称 | 说明 |
|
||||||
|
| -------------------- | -------------------- |
|
||||||
|
| list-footer | 优惠券列表底部 |
|
||||||
|
| disabled-list-footer | 不可用优惠券列表底部 |
|
||||||
|
|
||||||
### 样式变量
|
### 样式变量
|
||||||
|
|
||||||
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
|
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
|
||||||
|
@ -200,6 +200,7 @@ export default createComponent({
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{!coupons.length && this.genEmpty()}
|
{!coupons.length && this.genEmpty()}
|
||||||
|
{this.slots('list-footer')}
|
||||||
</div>
|
</div>
|
||||||
</Tab>
|
</Tab>
|
||||||
);
|
);
|
||||||
@ -219,6 +220,7 @@ export default createComponent({
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{!disabledCoupons.length && this.genEmpty()}
|
{!disabledCoupons.length && this.genEmpty()}
|
||||||
|
{this.slots('disabled-list-footer')}
|
||||||
</div>
|
</div>
|
||||||
</Tab>
|
</Tab>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user