diff --git a/src/components/cascader/cascader.vue b/src/components/cascader/cascader.vue index 9ff66e2..6ee7e9f 100644 --- a/src/components/cascader/cascader.vue +++ b/src/components/cascader/cascader.vue @@ -162,8 +162,10 @@ emitValue (val, oldVal) { if (JSON.stringify(val) !== oldVal) { this.$emit('on-change', this.currentValue, JSON.parse(JSON.stringify(this.selected))); - // todo 事件 -// this.$dispatch('on-form-change', this.currentValue, JSON.parse(JSON.stringify(this.selected))); + this.dispatch('FormItem', 'on-form-change', { + value: this.currentValue, + selected: JSON.parse(JSON.stringify(this.selected)) + }); } } }, diff --git a/src/components/checkbox/checkbox-group.vue b/src/components/checkbox/checkbox-group.vue index e73b25f..69e198a 100644 --- a/src/components/checkbox/checkbox-group.vue +++ b/src/components/checkbox/checkbox-group.vue @@ -4,10 +4,12 @@