import { KanbanControlInterface } from '@ibizstudio/runtime'; import { MDControlBase } from './md-control-base'; import { IPSAppView, IPSDEKanban } from '@ibizstudio/runtime'; /** * 看板视图部件基类 * * @export * @class KanbanControlBase * @extends {MDControlBase} */ export declare class KanbanControlBase extends MDControlBase implements KanbanControlInterface { /** * 看板数据 * * @type {Array} * @memberof KanbanControlBase */ items: Array; /** * 看板部件模型实例 * * @type {*} * @memberof KanbanControlBase */ controlInstance: IPSDEKanban; /** * 加载的数据是否附加在items之后 * * @type {boolean} * @memberof KanbanControlBase */ isAddBehind: boolean; /** * 代码表数据 * * @type {Array} * @memberof KanbanControlBase */ allCodeList: Array; /** * 是否分组 * * @type {string} * @memberof KanbanControlBase */ isGroup: boolean; /** * 分组集合 * * @type {string} * @memberof KanbanControlBase */ groups: any[]; /** * 分组属性名称 * * @type {string} * @memberof KanbanControlBase */ groupField: string; /** * 分组模式 * * @type {string} * @memberof KanbanControlBase */ groupMode: string; /** * 分组代码表 * * @type {string} * @memberof KanbanControlBase */ groupCodeList: any; /** * 部件行为--updateGroupAction * * @type {string} * @memberof KanbanControlBase */ updateGroupAction?: string; /** * this引用 * * @type {number} * @memberof KanbanControlBase */ thisRef: any; /** * 部件模型数据初始化 * * @param {*} [args] * @memberof KanbanControlBase */ ctrlModelInit(args?: any): Promise; /** * 部件事件 * * @param {string} controlname * @param {string} action * @param {*} data * @memberof KanbanControlBase */ onCtrlEvent(controlname: string, action: string, data: any): void; /** * 计算项布局面板部件所需参数 * * @param {*} controlInstance * @param {*} item * @returns * @memberof KanbanControlBase */ computeTargetCtrlData(controlInstance: any, item?: any): { targetCtrlName: string; targetCtrlParam: any; targetCtrlEvent: any; }; /** * 执行mounted后的逻辑 * * @memberof KanbanControlBase */ ctrlMounted(): void; /** * 初始化看板部件 * * @memberof KanbanControlBase */ ctrlInit(): void; viewStateAction(tag: string, action: string, data: any): void; /** * 看板数据加载 * * @param {*} [opt={}] 额外参数 * @param {boolean} [isReset=false] 是否重置items * @return {*} * @memberof KanbanControlBase */ load(opt?: any, isReset?: boolean): Promise; /** * 加载更多 * * @memberof KanbanControlBase */ loadMore(): void; /** * 刷新 * * @param {*} [opt={}] 额外参数 * @memberof KanbanControlBase */ refresh(args?: any): void; /** * 删除 * * @param {any[]} datas 删除数据 * @returns {Promise} * @memberof KanbanControlBase */ remove(datas: any[]): Promise; /** * 界面行为 * * @param {*} detail 界面行为 * @param {*} $event 事件源 * @param {*} group 看板分组 * @memberof KanbanControlBase */ uiActionClick(detail: any, $event: any, group: any): void; /** * 面板数据变化处理事件 * @param {any} item 当前列数据 * @param {any} $event 面板事件数据 * * @memberof KanbanControlBase */ onPanelDataChange(item: any, $event: any): void; /** * 拖拽结束 * */ onDragEnd(): void; /** * 拖拽变化 * * @param {*} evt 拖住对象 * @param {*} name 分组名 * @memberof KanbanControlBase */ onDragChange(evt: any, name: string): Promise; /** * 修改分组集合 * * @param {*} opt 数据 * @param {*} newVal 新分组值 * @memberof KanbanControlBase */ updateData(opt: any, newVal: any): void; /** * 单击事件 * * @param {*} args 数据 * @memberof KanbanControlBase */ handleClick(args: any): void; /** * 双击事件 * * @param {*} args 数据 * @memberof KanbanControlBase */ handleDblClick(args: any): void; /** * 触发事件 * @memberof KanbanControlBase * */ selectchange(): void; /** * 点击时触发看板的展开和收起 * * @param group 分组看板 * @param index 分组看板编号 * @memberof KanbanControlBase */ onClick(group: any, index: number): void; /** * 设置分组集合 * * @memberof KanbanControlBase */ setGroups(): Promise; /** * 拖拽更新页面 * * @param {string} group 分组名称 * @memberof KanbanControlBase */ getUpdateView(group: string): Promise; /** * 获取对应分组的数据集合 * * @param {string} name 分组值 * @memberof KanbanControlBase */ getGroupItems(name: string): any; /** * 获取分组的text * * @param {string} name 分组值 * @memberof KanbanControlBase */ getGroupText(name: string): any; } //# sourceMappingURL=kanban-control-base.d.ts.map