diff --git a/src/coupon-list/README.md b/src/coupon-list/README.md index 3ab2db0d4..6055ec978 100644 --- a/src/coupon-list/README.md +++ b/src/coupon-list/README.md @@ -97,6 +97,7 @@ export default { | close-button-text | Close button text | `string` | `Close` | | input-placeholder | Input placeholder | `string` | `Coupon code` | | currency | Currency symbol | `string` | `¥` | +| empty-image | Placeholder image when list is empty | `string` | `https://img.yzcdn.cn/vant/coupon-empty.png` | ### CouponList Events diff --git a/src/coupon-list/README.zh-CN.md b/src/coupon-list/README.zh-CN.md index 289419cdd..af6a80a90 100644 --- a/src/coupon-list/README.zh-CN.md +++ b/src/coupon-list/README.zh-CN.md @@ -98,7 +98,8 @@ export default { | close-button-text | 列表底部按钮文字 | `string` | `不使用优惠` | - | | input-placeholder | 输入框文字提示 | `string` | `请输入优惠码` | - | | show-exchange-bar | 是否展示兑换栏 | `boolean` | `true` | - | -| currency | 货币符号 | `string` | `¥` | - | 1.5.0 | +| currency | 货币符号 | `string` | `¥` | 1.5.0 | +| empty-image | 列表为空时的占位图 | `string` | `https://img.yzcdn.cn/vant/coupon-empty.png` | 2.1.0 | ### CouponList Events diff --git a/src/coupon-list/index.js b/src/coupon-list/index.js index a97b4bf9c..beb94fba7 100644 --- a/src/coupon-list/index.js +++ b/src/coupon-list/index.js @@ -53,6 +53,10 @@ export default createComponent({ currency: { type: String, default: '¥' + }, + emptyImage: { + type: String, + default: EMPTY_IMAGE } }, @@ -128,7 +132,7 @@ export default createComponent({ renderEmpty() { return (
{t('empty')}
暂无优惠券
+