|
@ -1,5 +1,3 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import type { UnwrapRef, Ref } from 'vue'; |
|
|
import type { UnwrapRef, Ref } from 'vue'; |
|
|
import { unref, nextTick, toRaw } from 'vue'; |
|
|
import { unref, nextTick, toRaw } from 'vue'; |
|
|
import { get, isArray, isNil, isUndefined, isPlainObject, forEach, isFunction } from 'lodash-es'; |
|
|
import { get, isArray, isNil, isUndefined, isPlainObject, forEach, isFunction } from 'lodash-es'; |
|
@ -173,7 +171,9 @@ export function useFormModel({ schemas, formModel, formElRef, emit }: useFormMod |
|
|
//select allowClear时值被设为undefined
|
|
|
//select allowClear时值被设为undefined
|
|
|
unref(formModel)[key] = value; |
|
|
unref(formModel)[key] = value; |
|
|
} |
|
|
} |
|
|
validateFields([key]).catch(() => {}); |
|
|
validateFields([key]).catch((err) => { |
|
|
|
|
|
console.error(`${key}:`, err); |
|
|
|
|
|
}); |
|
|
// console.log('formModel', key, value, formModel.value);
|
|
|
// console.log('formModel', key, value, formModel.value);
|
|
|
// if (fieldRules(key)) {
|
|
|
// if (fieldRules(key)) {
|
|
|
// console.log('getNamePath', getNamePath.value);
|
|
|
// console.log('getNamePath', getNamePath.value);
|
|
|