Files
copilot-toolbox-sdfdsfds/node_modules/@ant-design/pro-form/es/components/Dependency/index.d.ts
2026-01-16 01:51:36 +00:00

17 lines
830 B
TypeScript

/// <reference types="react" />
import type { FormItemProps } from 'antd';
import type { NamePath } from 'antd/lib/form/interface';
import type { ProFormInstance } from '../../BaseForm';
declare type RenderChildren<Values = any> = (values: Record<string, any>, form: ProFormInstance<Values>) => React.ReactNode;
export type ProFormDependencyProps<T = Record<string, any>> = Omit<FormItemProps<any>, 'name' | 'noStyle' | 'children' | 'label'> & {
name: NamePath[];
originDependencies?: NamePath[];
ignoreFormListField?: boolean;
children: RenderChildren<T>;
};
declare const ProFormDependency: {
<T>({ name: nameList, originDependencies, children, ignoreFormListField, ...rest }: ProFormDependencyProps<T>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default ProFormDependency;