Browse Source

fix: formItem error explain style #5004

close #5004
pull/5026/head
tangjinzhou 3 years ago
parent
commit
6c28a8e40c
  1. 2
      components/form/ErrorList.tsx
  2. 4
      components/form/FormItem.tsx

2
components/form/ErrorList.tsx

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

4
components/form/FormItem.tsx

@ -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…
Cancel
Save