import { InternalNamePath, NamePath } from 'antd/lib/form/interface'; import { FormInstance } from 'antd'; import type { GroupColumnType, GroupType, FlexibleGroupColumnType } from '../propsType'; export type EventArgs = any[]; interface ColumnsTransformerParams { columns: GroupColumnType[]; name?: NamePath; names?: NamePath[]; value?: any[]; onChange: any; namePath?: InternalNamePath; form: FormInstance; index?: number; formDisabled?: boolean; groupProps: GroupType; } /** 转换columns */ export declare const useTransformColumns: (params: ColumnsTransformerParams) => any[]; /** * 检查子项是否应该显示(纯函数,不执行副作用) */ export declare const checkShouldShow: (child: FlexibleGroupColumnType, form: FormInstance, namePath?: NamePath, index?: number) => boolean; interface UseResetProEditTableParams { children: FlexibleGroupColumnType[]; form: FormInstance; namePath?: NamePath; source?: 'FormList' | 'ProEditTable'; } /** * ProEditTable 场景下,当字段的 show 从 true 变为 false 时,自动重置字段值 * 使用 useEffect 在副作用中执行重置,避免在渲染过程中调用 setState */ export declare const useResetProEditTable: (params: UseResetProEditTableParams) => void; export {};