[new feature] CouponList: add empty-image prop (#3941)

This commit is contained in:
neverland
2019-07-23 20:20:57 +08:00
committed by GitHub
parent e81e5bd708
commit 012fd851c1
5 changed files with 51 additions and 2 deletions
+5 -1
View File
@@ -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 (
<div class={bem('empty')}>
<img src={EMPTY_IMAGE} />
<img src={this.emptyImage} />
<p>{t('empty')}</p>
</div>
);