import { ColDef } from '@ag-grid-community/core' /** 自定义按钮类型 */ export interface ButtonTypesCustom{ index: string; title: string; icon: string; callback: string; } /** 按钮类型 */ export interface ButtonTypes{ code: string; name: string; category: string; icon?: string; pageNum?: number; pageSize?: number; orderBy?: string; version?: number; sysCreatedDate?: string; sysCreatedBy?: string; sysModifyDate?: string; sysModifyBy?: string; menuId?: string; parentId?: string; lvl?: number; orderNum?: number; isShow?: number; status?: string; nameCn?: string; menuType?: string; perms?: string; childMenuList?: []; description?: string; } /** checkbox类型 */ export interface CheckboxTypes{ code: string; name: string; category: string; icon?: string; pageNum?: number; pageSize?: number; orderBy?: string; version?: number; sysCreatedDate?: string; sysCreatedBy?: string; sysModifyDate?: string; sysModifyBy?: string; menuId?: string; parentId?: string; lvl?: number; orderNum?: number; isShow?: number; status?: string; nameCn?: string; menuType?: string; perms?: string; childMenuList?: []; checked?: boolean; description?: string; } /** 筛选条件类型 */ export interface ConditionTypes{ index: number; decorator: string; hasFixed: boolean; inputType: string; allowClear: boolean; placeHolder: string; required: boolean; label: string; dropDownList?: {name: string, value: string}[]; defaultValue?: string; inputData?: {name: string, value: string}[]; authColumnName?: string; editDisabled?: boolean; } /** 下拉选择数据类型 */ export interface InputDataTypes{ name: string; value: string; } /** 表头类型 */ interface Headers{ //自定义表头 columnIsEdit: string; orderNumber: number; selectable: boolean; uploadTemplate: boolean; historyData: boolean; inputTypeScope: string; } //ColDef为aggrid表头 export type HeaderTypes = Headers & ColDef //自定义表头与aggrid表头交叉类型