Browse Source

fix(checkboxgroup): 修复子组件点击不触发父级组件的问题

suzigang 4 years ago
parent
commit
c71fe9f322
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/packages/__VUE/checkboxgroup/index.vue

+ 1 - 0
src/packages/__VUE/checkboxgroup/index.vue

@@ -37,6 +37,7 @@ export default create({
 
     const updateValue = (value: any[]) => {
       emit('update:modelValue', value);
+      emit('change', value);
     };
 
     const toggleAll = (checked: boolean) => {