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.
26 lines
485 B
26 lines
485 B
5 years ago
|
Component({
|
||
|
properties: {
|
||
|
conditionList:{
|
||
|
type:Array,
|
||
|
},
|
||
|
choosedCondition:{
|
||
|
type:Object,
|
||
|
},
|
||
|
conditionVisible:{
|
||
|
type:Boolean,
|
||
|
value:false
|
||
|
}
|
||
|
},
|
||
|
data: {
|
||
|
},
|
||
|
methods: {
|
||
|
showCondition() {
|
||
|
this.triggerEvent('showCondition', { conditionVisible: !this.properties.conditionVisible})
|
||
|
},
|
||
|
onChnageCondition(e) {
|
||
|
let {id} = e.currentTarget.dataset
|
||
|
this.triggerEvent('onChnageCondition',{ id: id})
|
||
|
},
|
||
|
}
|
||
|
})
|