UNPKG

tntd

Version:

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

24 lines 1.15 kB
import type { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface'; import { FormProvider } from './context'; import ErrorList, { ErrorListProps } from './ErrorList'; import InternalForm, { FormInstance, FormProps, useForm, useWatch } from './Form'; import Item, { FormItemProps } from './FormItem'; import List, { FormListFieldData, FormListOperation, FormListProps } from './FormList'; import useFormInstance from './hooks/useFormInstance'; import './style/index.less'; declare type InternalFormType = typeof InternalForm; declare type CompoundedComponent = InternalFormType & { useForm: typeof useForm; useFormInstance: typeof useFormInstance; useWatch: typeof useWatch; Item: typeof Item; List: typeof List; ErrorList: typeof ErrorList; Provider: typeof FormProvider; /** @deprecated Only for warning usage. Do not use. */ create: () => void; }; declare const Form: CompoundedComponent; export { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, FormListFieldData, FormListOperation, }; export default Form; //# sourceMappingURL=index.d.ts.map