fix: exporting Rule, FormListFieldData, FormListOperation from form (#34735)

This commit is contained in:
C. T. Lin 2022-06-17 09:51:36 +08:00 committed by GitHub
parent 83eb5e5a35
commit 853a04ddce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface';
import InternalForm, { useForm, FormInstance, FormProps, useWatch } from './Form';
import Item, { FormItemProps } from './FormItem';
import ErrorList, { ErrorListProps } from './ErrorList';
import List, { FormListProps } from './FormList';
import List, { FormListProps, FormListFieldData, FormListOperation } from './FormList';
import { FormProvider } from './context';
import warning from '../_util/warning';
import useFormInstance from './hooks/useFormInstance';
@ -48,6 +48,8 @@ export {
RuleObject,
RuleRender,
FormListProps,
FormListFieldData,
FormListOperation,
};
export default Form;

View File

@ -92,7 +92,14 @@ export { default as Drawer } from './drawer';
export type { EmptyProps } from './empty';
export { default as Empty } from './empty';
export type { FormInstance, FormProps, FormItemProps } from './form';
export type {
FormInstance,
FormProps,
FormItemProps,
FormListFieldData,
FormListOperation,
Rule as FormRule,
} from './form';
export { default as Form } from './form';
export { default as Grid } from './grid';