Skip to content

Commit

Permalink
fix: formItem error explain style #5004
Browse files Browse the repository at this point in the history
close #5004
  • Loading branch information
tangjinzhou committed Dec 10, 2021
1 parent 8e20700 commit 6c28a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/form/ErrorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down
4 changes: 2 additions & 2 deletions components/form/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down

0 comments on commit 6c28a8e

Please sign in to comment.