some comps support dispatch event to FormItem
some comps support dispatch event to FormItem
This commit is contained in:
parent
7778edfa02
commit
cd78c9c488
14 changed files with 57 additions and 48 deletions
|
@ -321,15 +321,13 @@
|
|||
value: value,
|
||||
label: label
|
||||
});
|
||||
// todo 事件
|
||||
// this.$dispatch('on-form-change', {
|
||||
// value: value,
|
||||
// label: label
|
||||
// });
|
||||
this.dispatch('FormItem', 'on-form-change', {
|
||||
value: value,
|
||||
label: label
|
||||
});
|
||||
} else {
|
||||
this.$emit('on-change', value);
|
||||
// todo 事件
|
||||
// this.$dispatch('on-form-change', value);
|
||||
this.dispatch('FormItem', 'on-form-change', value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -358,12 +356,10 @@
|
|||
if (!init) {
|
||||
if (this.labelInValue) {
|
||||
this.$emit('on-change', hybridValue);
|
||||
// todo 事件
|
||||
// this.$dispatch('on-form-change', hybridValue);
|
||||
// } else {
|
||||
this.dispatch('FormItem', 'on-form-change', hybridValue);
|
||||
} else {
|
||||
this.$emit('on-change', value);
|
||||
// todo 事件
|
||||
// this.$dispatch('on-form-change', value);
|
||||
this.dispatch('FormItem', 'on-form-change', value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue