Commit a0920d284d5fc6bb1f6332251cc311d3a3ca57de

Authored by Felix Hoi
Committed by GitHub
1 parent 419b7aea

fix(useFormEvents): isNullOrUnDef is not defined (#1915)

* fix/invaild dateFormat

* fix(useFormEvents): isNullOrUnDef is not defined

Co-authored-by: Felix Hoi <felixhoi@ssm.gov.mo>
src/components/Form/src/hooks/useFormEvents.ts
@@ -2,7 +2,7 @@ import type { ComputedRef, Ref } from &#39;vue&#39;; @@ -2,7 +2,7 @@ import type { ComputedRef, Ref } from &#39;vue&#39;;
2 import type { FormProps, FormSchema, FormActionType } from '../types/form'; 2 import type { FormProps, FormSchema, FormActionType } from '../types/form';
3 import type { NamePath } from 'ant-design-vue/lib/form/interface'; 3 import type { NamePath } from 'ant-design-vue/lib/form/interface';
4 import { unref, toRaw, nextTick } from 'vue'; 4 import { unref, toRaw, nextTick } from 'vue';
5 -import { isArray, isFunction, isObject, isString, isDef } from '/@/utils/is'; 5 +import { isArray, isFunction, isObject, isString, isDef, isNullOrUnDef } from '/@/utils/is';
6 import { deepMerge } from '/@/utils'; 6 import { deepMerge } from '/@/utils';
7 import { dateItemType, handleInputNumberValue, defaultValueComponents } from '../helper'; 7 import { dateItemType, handleInputNumberValue, defaultValueComponents } from '../helper';
8 import { dateUtil } from '/@/utils/dateUtil'; 8 import { dateUtil } from '/@/utils/dateUtil';