/** * 控件帮助类 */ declare class ControlService { /** * 获取控件的值,自动区分搜索控件和提交表单控件 */ static getValue: (form: any, index: number, table: any, field: any) => any; /** * 设置表单控件的值 */ static setValue: (val: any, form: any, table: any, index: number, field: any) => void; /** * 设置多行中某字段的值 */ static setRowsValue: (val: any, form: any, table: any, field: any) => void; /** * 把数组分成每行columns列的数组 */ static splitRows: (array: any[], columns: number) => any[]; /** * 获取不同布局控件配置,用于对控件的展示类型进行重写,但是不影响字段配置 */ static getConfig: (field: any, page: any, layout: string) => { control: { type: string; }; }; /** * 获取控件样式 */ static getStyle: (field: any, page: any, layout: string) => string; /** * 获取控件高度 */ static getHeight: (field: any, page: any, layout: string) => any; /** * 转换值为指定类型 */ static convert: (value: any, type: string) => any; } export default ControlService;