32 lines
467 B
JavaScript
32 lines
467 B
JavaScript
Component({
|
|
properties: {
|
|
title: {
|
|
type: String,
|
|
value: ''
|
|
},
|
|
description: {
|
|
type: String,
|
|
value: ''
|
|
},
|
|
badge: {
|
|
type: String,
|
|
value: ''
|
|
},
|
|
actionText: {
|
|
type: String,
|
|
value: '进入'
|
|
},
|
|
actionPath: {
|
|
type: String,
|
|
value: ''
|
|
}
|
|
},
|
|
methods: {
|
|
handleAction() {
|
|
this.triggerEvent('action', {
|
|
path: this.properties.actionPath
|
|
})
|
|
}
|
|
}
|
|
})
|