1
This commit is contained in:
31
components/empty/empty.js
Normal file
31
components/empty/empty.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// components/empty/empty.js
|
||||
Component({
|
||||
properties: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
value: '📭'
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
value: '暂无数据'
|
||||
},
|
||||
desc: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
buttonText: {
|
||||
type: String,
|
||||
value: ''
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
onButtonClick() {
|
||||
this.triggerEvent('buttonclick')
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user