|
|
@ -285,6 +285,12 @@ export default defineComponent({ |
|
|
|
resetField, |
|
|
|
resetField, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// instead useProvideFormItemContext onFieldChange |
|
|
|
|
|
|
|
watch(fieldValue, () => { |
|
|
|
|
|
|
|
if (props.autoLink) { |
|
|
|
|
|
|
|
onFieldChange(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
useProvideFormItemContext( |
|
|
|
useProvideFormItemContext( |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: fieldId, |
|
|
|
id: fieldId, |
|
|
@ -294,9 +300,9 @@ export default defineComponent({ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onFieldChange: () => { |
|
|
|
onFieldChange: () => { |
|
|
|
if (props.autoLink) { |
|
|
|
// if (props.autoLink) { |
|
|
|
onFieldChange(); |
|
|
|
// onFieldChange(); |
|
|
|
} |
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
clearValidate, |
|
|
|
clearValidate, |
|
|
|
}, |
|
|
|
}, |
|
|
|