fix: formItem error explain style #5004

close #5004
pull/5026/head
tangjinzhou 2021-12-10 15:52:13 +08:00
parent 8e207009b0
commit 6c28a8e40c
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
});

View File

@ -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 || {};