mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-18 16:24:27 -04:00
@@ -137,10 +137,11 @@
|
||||
changeModel(formSchema) {
|
||||
formSchema.value = { user: { name: 'daniel' } };
|
||||
},
|
||||
onChange({paths, itemValue, formValue}) {
|
||||
onChange({paths, itemValue, formValue, itemOldValue}) {
|
||||
console.log('paths:', paths);
|
||||
console.log('itemValue:', itemValue);
|
||||
console.log('formValue:', JSON.stringify(formValue, null, 2));
|
||||
console.log('itemOldValue', itemOldValue);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -282,7 +282,8 @@ export default {
|
||||
formVM.$emit('change', {
|
||||
paths: this.paths,
|
||||
itemValue: this.schema.value,
|
||||
formValue: this.formData
|
||||
formValue: this.formData,
|
||||
itemOldValue: this.$data.itemValue
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user