parent
8e207009b0
commit
6c28a8e40c
|
@ -44,7 +44,7 @@ export default defineComponent({
|
|||
});
|
||||
// Memo status in same visible
|
||||
watch([visible, status], () => {
|
||||
if (visible.value && status.value) {
|
||||
if (visible.value) {
|
||||
innerStatus.value = status.value;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -245,13 +245,13 @@ export default defineComponent({
|
|||
validateRules({ triggerName: 'change' });
|
||||
};
|
||||
const clearValidate = () => {
|
||||
validateState.value = '';
|
||||
validateState.value = props.validateStatus;
|
||||
validateDisabled.value = false;
|
||||
errors.value = [];
|
||||
};
|
||||
|
||||
const resetField = () => {
|
||||
validateState.value = '';
|
||||
validateState.value = props.validateStatus;
|
||||
validateDisabled.value = true;
|
||||
errors.value = [];
|
||||
const model = formContext.model.value || {};
|
||||
|
|
Loading…
Reference in New Issue