import { VNode } from 'vue' import { VxeGanttConstructor, VxeGanttPropTypes, VxeGanttDefines, VxeGanttPrivateMethods } from '../gantt' import { VxeGanttViewConstructor, VxeGanttViewPrivateMethods } from '../gantt-module/gantt-view' import { VxeTableConstructor, VxeTablePrivateMethods } from '../table' /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/no-unused-vars */ export interface VxeGanttExtendChartMethods { /** * 设置任务依赖线 */ setTaskLinks(links: VxeGanttPropTypes.Links): Promise /** * 获取任务依赖线 */ getTaskLinks(): VxeGanttDefines.LinkConfObj[] /** * 清除所有任务依赖线 */ clearTaskLinks(): Promise /** * 添加任务依赖线 */ addTaskLink(link: VxeGanttPropTypes.Link | VxeGanttPropTypes.Links): Promise<{ links: VxeGanttDefines.LinkConfObj[] }> /** * 移除任务依赖线 */ removeTaskLink(fromOrLink: string | number | Partial | Partial[]): Promise<{ links: VxeGanttDefines.LinkConfObj[] }> /** * 获取该任务已关联依赖线的任务关系信息 */ getTaskLinkInfo(rowOrRowid: any): VxeGanttDefines.LinkInfoObj } export interface VxeGanttExtendChartPrivateMethods { /** * 内部方法 * @private */ handleTaskBarModnEvent( evnt: MouseEvent, params: { $gantt: VxeGanttConstructor & VxeGanttPrivateMethods row: D scaleType: VxeGanttDefines.ColumnScaleType } ): void /** * 内部方法 * @private */ renderGanttTkBarCont( params: { $gantt: VxeGanttConstructor & VxeGanttPrivateMethods source: string type: string scaleType: VxeGanttDefines.ColumnScaleType row: D rowIndex: number $rowIndex: number _rowIndex: number }, renderParams: { $gantt: VxeGanttConstructor & VxeGanttPrivateMethods $table: VxeTableConstructor & VxeTablePrivateMethods rowid: string } ): VNode[] /** * 内部方法 * @private */ handleTaskBarResizeStartMousedownEvent(evnt: MouseEvent): void /** * 内部方法 * @private */ handleTaskBarResizeEndMousedownEvent(evnt: MouseEvent): void /** * 内部方法 * @private */ handleTaskCreateLinkStartMousedownEvent(evnt: MouseEvent): void /** * @private */ handleTaskCreateLinkEndMousedownEvent(evnt: MouseEvent): void /** * 内部方法 * @private */ handleTaskCreateLinkPointMouseoverEvent(evnt: MouseEvent): void /** * 内部方法 * @private */ handleTaskCreateLinkPointMouseoutEvent(evnt: MouseEvent): void /** * 内部方法 * @private */ renderGanttTaskChartBefores(): VNode[] /** * 内部方法 * @private */ renderGanttTaskChartAfters(): VNode[] /** * 内部方法 * @private */ handleUpTaskLinkData(): void /** * 内部方法 * @private */ handleUpTaskLinkStyle($xeGanttView: VxeGanttViewConstructor & VxeGanttViewPrivateMethods): void /** * 内部方法 * @private */ handleTableLinks(): void /** * 内部方法 * @private */ handleTaskLoadLinks(links: VxeGanttPropTypes.Links): Promise } declare module '../gantt' { export interface GanttInternalData { trialElem?: HTMLElement | null } export interface VxeGanttMethods extends VxeGanttExtendChartMethods {} export interface VxeGanttPrivateMethods extends VxeGanttExtendChartPrivateMethods {} }