UNPKG

tntd

Version:

tntd是基于 TNT Design 设计体系的 React UI 组件库,主要用于研发企业级中后台产品。

16 lines 815 B
import type { FormInstance as RcFormInstance } from 'rc-field-form'; import * as React from 'react'; import type { InternalNamePath, NamePath, ScrollOptions } from '../interface'; export interface FormInstance<Values = any> extends RcFormInstance<Values> { scrollToField: (name: NamePath, options?: ScrollOptions) => void; /** @internal: 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>]; //# sourceMappingURL=useForm.d.ts.map