import { IDynamicComponentConfig } from '../dynamic-component/interfaces';
/** 控件组 */
export interface IComponentGroup {
    /** 控件组名称 */
    label: string;
    /** 控件列表 */
    components: IComponent[];
}
/** 控件 */
export interface IComponent {
    /** 控件名称 */
    label: string;
    /** 控件的数据类型 */
    type: string;
    /** 图标 */
    icon?: string;
    /** 渲染的控件 */
    widget?: string;
}
export interface IComponentDef extends IDynamicComponentConfig {
    /** 子组件 */
    children?: IComponentDef[];
    /** 唯一id，随机串 */
    id?: string;
    /** 名称，表单内唯一 */
    name?: string;
    /** 控件的数据类型 */
    type?: string;
    /** 渲染的控件 */
    widget?: string;
    /** 标题 */
    label?: string;
    /** label宽度 */
    labelWidth?: number;
    /** 是否正在编辑标题 */
    editLabel?: boolean;
    /** 占用列宽，1~24 */
    span?: number;
    /** 偏移列宽 */
    offset?: number;
    /** 是否可见 */
    display?: boolean;
    /** 是否必填 */
    required?: boolean;
    /** 占位内容 */
    placeholder?: string;
    /** 标题方向 */
    headerAlign?: string;
    /** 折叠 */
    collapse?: boolean;
    /** 表单位置 */
    labelPosition?: string;
    /** 标签后缀 */
    labelSuffix?: string;
    /** 间隔 */
    gutter?: number;
    /** 事件 */
    event?: any;
    /** 样式 */
    style?: any;
    /** 布局 */
    formLayout?: 'horizontal' | 'vertical' | 'inline';
    /** 表单内组件大小 */
    formSize?: 'default' | 'large' | 'small';
    /** 显示按钮 */
    formBtn?: boolean;
    /** 显示提交按钮 */
    formBtnSubmit?: boolean;
    /** 提交按钮显示文字 */
    formBtnSubmitText?: string;
    /** 显示重置按钮 */
    formBtnReset?: boolean;
    /** 重置按钮显示文字 */
    formBtnResetText?: string;
    /** 表格样式/表单样式 */
    bordered?: boolean;
}
