breaking change(Area): adjust change event param

This commit is contained in:
chenjiahan
2020-08-21 00:13:27 +08:00
parent 036eb8543c
commit 832dab10cf
4 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -177,12 +177,13 @@ export default createComponent({
});
},
onChange(picker, values, index) {
onChange(values, index) {
const { picker } = this.$refs;
this.code = values[index].code;
this.setValues();
const parsedValues = this.parseOutputValues(picker.getValues());
this.$emit('change', picker, parsedValues, index);
this.$emit('change', parsedValues, index);
},
onConfirm(values, index) {