diff --git a/src/coupon-list/README.md b/src/coupon-list/README.md index cba07621c..1ddde2680 100644 --- a/src/coupon-list/README.md +++ b/src/coupon-list/README.md @@ -128,6 +128,13 @@ export default { | unitDesc | Unit Text | _string_ | | customValidPeriod | custom valid period | _string_ | +### CouponList Slots + +| Name | Description | +| -------------------- | ------------------------------- | +| list-footer | Coupon list bottom | +| disabled-list-footer | Unavailable coupons list bottom | + ### Less Variables How to use: [Custom Theme](#/en-US/theme). diff --git a/src/coupon-list/README.zh-CN.md b/src/coupon-list/README.zh-CN.md index b704f34ca..1de2e1d78 100644 --- a/src/coupon-list/README.zh-CN.md +++ b/src/coupon-list/README.zh-CN.md @@ -130,6 +130,13 @@ export default { | unitDesc | 单位文案 | _string_ | | customValidPeriod | 自定义有效时间文案 | _string_ | +### CouponList Slots + +| 名称 | 说明 | +| -------------------- | -------------------- | +| list-footer | 优惠券列表底部 | +| disabled-list-footer | 不可用优惠券列表底部 | + ### 样式变量 组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。 diff --git a/src/coupon-list/index.js b/src/coupon-list/index.js index ff2ededee..471cb0fef 100644 --- a/src/coupon-list/index.js +++ b/src/coupon-list/index.js @@ -200,6 +200,7 @@ export default createComponent({ /> ))} {!coupons.length && this.genEmpty()} + {this.slots('list-footer')} ); @@ -219,6 +220,7 @@ export default createComponent({ /> ))} {!disabledCoupons.length && this.genEmpty()} + {this.slots('disabled-list-footer')} );