You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
482 B
34 lines
482 B
2 months ago
|
const _app = getApp<IAppOption>()
|
||
|
|
||
|
Component({
|
||
|
properties: {
|
||
|
show: {
|
||
|
type: Boolean,
|
||
|
value: false,
|
||
|
},
|
||
|
type: String,
|
||
|
params: {
|
||
|
type: Object,
|
||
|
value() {
|
||
|
return {}
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
|
||
|
data: {},
|
||
|
methods: {
|
||
|
handleOk() {
|
||
|
this.setData({
|
||
|
show: false,
|
||
|
})
|
||
|
this.triggerEvent('ok')
|
||
|
},
|
||
|
handleCancel() {
|
||
|
this.setData({
|
||
|
show: false,
|
||
|
})
|
||
|
this.triggerEvent('cancel')
|
||
|
},
|
||
|
},
|
||
|
})
|