import React from 'react'; import { Button } from 'antd'; import type { FormListProps } from 'antd/lib/form/FormList'; import type { DItemProps } from '../DForm/DItem'; import './index.less'; export interface DynamicFormItemProps extends Omit { /** 表单项配置 */ itemConfig: DItemProps | DItemProps[]; /** 初始值 */ value?: any[]; /** 新增按钮文本 */ addButtonText?: string; /** 新增按钮属性 */ addButtonProps?: React.ComponentProps; /** 是否添加到头部 */ addAtHead?: boolean; /** 删除按钮文本 */ removeButtonText?: string; /** 删除按钮属性 */ removeButtonProps?: React.ComponentProps; /** 最小项数 */ minItems?: number; /** 最大项数 */ maxItems?: number; /** 是否显示添加按钮 */ showAdd?: boolean; /** 是否显示删除按钮 */ showRemove?: boolean; /** 添加按钮位置 */ addPosition?: 'top' | 'bottom'; } declare const DynamicFormItem: React.FC; export default DynamicFormItem;