diff --git a/src/hooks/component/useFormItem.ts b/src/hooks/component/useFormItem.ts index 4fd9a252..cee415e8 100644 --- a/src/hooks/component/useFormItem.ts +++ b/src/hooks/component/useFormItem.ts @@ -1,4 +1,4 @@ -import type { UnwrapRef, Ref } from 'vue'; +import type { UnwrapRef, Ref, WritableComputedRef, DeepReadonly } from 'vue'; import { reactive, readonly, @@ -12,6 +12,13 @@ import { import { isEqual } from 'lodash-es'; +export function useRuleFormItem>( + props: T, + key?: K, + changeEvent?, + emitData?: Ref, +): [WritableComputedRef, (val: V) => void, DeepReadonly]; + export function useRuleFormItem( props: T, key: keyof T = 'value',