init
This commit is contained in:
35
miniprogram/components/empty-state/index.js
Normal file
35
miniprogram/components/empty-state/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
Component({
|
||||
properties: {
|
||||
// 图标名称
|
||||
icon: {
|
||||
type: String,
|
||||
value: 'shop'
|
||||
},
|
||||
// 标题
|
||||
title: {
|
||||
type: String,
|
||||
value: '暂无商品'
|
||||
},
|
||||
// 描述文字
|
||||
description: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
// 是否显示操作按钮
|
||||
showAction: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
// 操作按钮文字
|
||||
actionText: {
|
||||
type: String,
|
||||
value: '刷新'
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
onActionTap() {
|
||||
this.triggerEvent('action');
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user