UNPKG

ng-layout-form

Version:

layout form

57 lines (56 loc) 1.53 kB
import { ReactNode, RefObject } from 'react'; import { formConfProps } from '../config/interface'; import { FormInfo } from '../form/interface'; import { CompDefaultPropsInfo } from '../props.dt'; export declare type FormFieldSetInfo = { cid?: string; /** * @description 是否开启展开折叠 * @default true */ collapsible?: boolean; /** * @description 是否折叠 * @default false */ collapse?: boolean | string[]; /** * @description 折叠表头 */ title?: string; /** * @description 子元素 */ children?: ReactNode; /** * form表单集的ref对象 */ formSetRef?: RefObject<any>; } & FormInfo; export declare type FormFieldSetPropsInfo = FormFieldSetInfo & CompDefaultPropsInfo<formConfProps.FormFieldSet>; export declare type FormSetInfo = { /** * @description 是否折叠 * @default true */ collapsible?: boolean; /** * @description 是否折叠 * @default false */ collapse?: boolean | string[]; /** * @description 表单集值 */ value?: any; /** * @description 表单值 * @default false */ defaultValue?: boolean | string[]; /** * @description 禁用 */ disabled?: any; } & FormInfo; export declare type FormSetPropsInfo = FormFieldSetInfo & FormSetInfo & CompDefaultPropsInfo<formConfProps.FormSet>;