fix: FormExpose ts type error
parent
bbb7670df1
commit
27064dc35d
|
|
@ -77,8 +77,8 @@ export const formProps = () => ({
|
||||||
export type FormProps = Partial<ExtractPropTypes<ReturnType<typeof formProps>>>;
|
export type FormProps = Partial<ExtractPropTypes<ReturnType<typeof formProps>>>;
|
||||||
|
|
||||||
export type FormExpose = {
|
export type FormExpose = {
|
||||||
resetFields: (name?: NamePath) => void;
|
resetFields: (nameList?: NamePath[]) => void;
|
||||||
clearValidate: (name?: NamePath) => void;
|
clearValidate: (nameList?: NamePath[]) => void;
|
||||||
validateFields: (
|
validateFields: (
|
||||||
nameList?: NamePath[] | string,
|
nameList?: NamePath[] | string,
|
||||||
options?: ValidateOptions,
|
options?: ValidateOptions,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue