import { Store } from 'antd/lib/form/interface'; import { ColumnType } from 'antd/lib/table'; export declare type FormItemType = 'input' | 'cascader' | 'date' | 'range' | 'time' | 'number' | 'radio' | 'checkbox' | 'switch' | 'slider' | 'select' | 'treeselect' | 'upload' | 'rate' | 'password' | 'textarea'; /** 适用于input/date/time/number */ export declare type FormItemProps = { type: FormItemType; name: string; label: string; placeholder?: string | [string, string]; [key: string]: unknown; }; export declare type TemplateType = 'short-form' | 'long-form' | 'one-column-form-modal' | 'two-columns-form-modal' | 'short-detail' | 'long-detail' | 'one-column-detail-modal' | 'two-columns-detail-modal' | 'table'; export declare type ShortFormConfig = { title: string; }; export declare type Template = { name: string; type: TemplateType; image: string; }; export declare type AjaxResponse = { success: boolean; data?: T; message: string; }; export declare type CardItemProps = { title: string; formItems: FormItemProps[]; }; /** 导出/导入的json格式 */ export declare type ConfigProps = { formConfig?: Store; formItems?: FormItemProps[]; initialFetch?: string[]; submitFetch?: string[]; cards?: CardItemProps[]; tableConfig?: Store; columns?: ColumnType[]; }; /** * 表字段验证配置 */ export interface TableVerificationRuleList { appVerificationRuleCode: string; tableCode: string; tableName: string; tableFieldCode: string; isRequired: boolean; requiredMaxLength: number; requiredMinLength: number; fieldName: string; fieldType: string; pattern: string; }