mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: exporting Rule, FormListFieldData, FormListOperation from form (#34735)
This commit is contained in:
parent
83eb5e5a35
commit
853a04ddce
@ -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;
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user