import { ServiceType } from "../parameters"; import { SimpleSearchControlType } from "../small/simpleSearch"; import { ComplexSearchControlType } from "../small/complexSearch"; import { RadioListControlType } from "../small/radioList"; import { LabelControlType } from "../small/label"; import { IEvent } from "../events"; /** * 搜索栏控件 */ export interface FindControlType { layout?: FindLayout; layoutService?: ServiceType; } export interface FindLayout { set?: FindSetType; left?: FindAreaType; right?: FindAreaType; /** * 事件集合 */ events?: FindEvents; } export interface FindSetType { /** * 设置全局的靠边间距,默认为 8 */ pading?: number; } export interface FindEvents { /** * 触发搜索事件 */ find?: IEvent[]; } /** * 搜索栏区域类型 */ export interface FindAreaType { /** * 靠边间距,默认为 8 */ pading?: number; controls: { [id: string]: FindControls; }; } export interface FindControls { label?: LabelControlType; search?: SimpleSearchControlType; /** * 复杂搜索控件 * * 在一个搜索大控件里只能配置一个 */ complexSearch?: ComplexSearchControlType; radioList?: RadioListControlType; }