init
This commit is contained in:
31
components/biz/entry-card/index.js
Normal file
31
components/biz/entry-card/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user