Browse Source

fix: resolve onChange issue in form component (#4890)

pull/4891/head
Vben 1 year ago
committed by GitHub
parent
commit
86e52ce58a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

6
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@ -238,6 +238,12 @@ function createComponentProps(slotProps: Record<string, any>) {
...slotProps.componentField,
...computedProps.value,
...bindEvents,
...(Reflect.has(computedProps.value, 'onChange')
? { onChange: computedProps.value.onChange }
: {}),
...(Reflect.has(computedProps.value, 'onInput')
? { onInput: computedProps.value.onInput }
: {}),
};
return binds;

Loading…
Cancel
Save