UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

16 lines (15 loc) 757 B
import * as React from 'react'; import { FormInstance as RcFormInstance } from 'rc-field-form'; import { ScrollOptions, NamePath, InternalNamePath } from '../interface'; export interface FormInstance<Values = any> extends RcFormInstance<Values> { scrollToField: (name: NamePath, options?: ScrollOptions) => void; /** This is an internal usage. Do not use in your prod */ __INTERNAL__: { /** No! Do not use this in your code! */ name?: string; /** No! Do not use this in your code! */ itemRef: (name: InternalNamePath) => (node: React.ReactElement) => void; }; getFieldInstance: (name: NamePath) => any; } export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];