vxe-gantt 4.9.3 → 4.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.esm.js +1574 -1057
- package/es/components.d.ts +2 -1
- package/es/components.js +3 -4
- package/es/gantt/src/gantt-body.js +100 -76
- package/es/gantt/src/gantt-chart.js +363 -239
- package/es/gantt/src/gantt-footer.js +16 -12
- package/es/gantt/src/gantt-header.js +135 -104
- package/es/gantt/src/gantt-view.js +235 -201
- package/es/gantt/src/gantt.js +545 -229
- package/es/gantt/src/grid-emits.js +1 -15
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/lib/components.js +5 -6
- package/lib/gantt/src/gantt-body.js +100 -76
- package/lib/gantt/src/gantt-chart.js +363 -239
- package/lib/gantt/src/gantt-footer.js +16 -12
- package/lib/gantt/src/gantt-header.js +135 -104
- package/lib/gantt/src/gantt-view.js +235 -201
- package/lib/gantt/src/gantt.js +545 -229
- package/lib/gantt/src/grid-emits.js +1 -15
- package/lib/index.umd.js +1574 -1057
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +1 -2
- package/lib/ui/src/log.js +1 -1
- package/package.json +9 -3
- package/packages/components.ts +21 -22
- package/packages/gantt/index.ts +21 -21
- package/packages/gantt/src/emits.ts +25 -25
- package/packages/gantt/src/gantt-body.ts +317 -293
- package/packages/gantt/src/gantt-chart.ts +655 -531
- package/packages/gantt/src/gantt-footer.ts +55 -51
- package/packages/gantt/src/gantt-header.ts +193 -162
- package/packages/gantt/src/gantt-view.ts +2695 -2663
- package/packages/gantt/src/gantt.ts +3317 -2982
- package/packages/gantt/src/grid-emits.ts +5 -19
- package/packages/gantt/src/static.ts +35 -35
- package/packages/gantt/src/table-emits.ts +134 -134
- package/packages/gantt/src/util.ts +45 -45
- package/packages/index.ts +4 -4
- package/packages/ui/index.ts +132 -135
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/depend.ts +14 -14
- package/packages/ui/src/dom.ts +202 -202
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +80 -80
- package/packages/ui/src/vn.ts +9 -9
- package/types/all.d.ts +33 -33
- package/types/index.d.ts +4 -4
package/dist/all.esm.js
CHANGED
|
@@ -11,151 +11,25 @@ __export(components_exports, {
|
|
|
11
11
|
VxeGantt: () => VxeGantt,
|
|
12
12
|
VxeGanttDependencyType: () => VxeGanttDependencyType,
|
|
13
13
|
VxeGanttTaskType: () => VxeGanttTaskType,
|
|
14
|
-
VxeUI: () =>
|
|
14
|
+
VxeUI: () => VxeUI10,
|
|
15
15
|
install: () => install
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
// packages_temp/ui/index.ts
|
|
19
|
-
import { VxeUI } from "@vxe-ui/core";
|
|
20
|
-
var { setConfig, setIcon } = VxeUI;
|
|
21
|
-
VxeUI.ganttVersion = "4.9.3";
|
|
22
|
-
var ymdFormat = "yyyy-MM-dd";
|
|
23
|
-
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
24
|
-
setConfig({
|
|
25
|
-
gantt: {
|
|
26
|
-
// size: null,
|
|
27
|
-
// zoomConfig: {
|
|
28
|
-
// escRestore: true
|
|
29
|
-
// },
|
|
30
|
-
formConfig: {
|
|
31
|
-
enabled: true
|
|
32
|
-
},
|
|
33
|
-
pagerConfig: {
|
|
34
|
-
enabled: true
|
|
35
|
-
// perfect: false
|
|
36
|
-
},
|
|
37
|
-
toolbarConfig: {
|
|
38
|
-
enabled: true
|
|
39
|
-
// perfect: false
|
|
40
|
-
},
|
|
41
|
-
proxyConfig: {
|
|
42
|
-
enabled: true,
|
|
43
|
-
autoLoad: true,
|
|
44
|
-
showLoading: true,
|
|
45
|
-
showResponseMsg: true,
|
|
46
|
-
showActionMsg: true,
|
|
47
|
-
response: {
|
|
48
|
-
list: null,
|
|
49
|
-
result: "result",
|
|
50
|
-
total: "page.total",
|
|
51
|
-
message: "message"
|
|
52
|
-
}
|
|
53
|
-
// beforeItem: null,
|
|
54
|
-
// beforeColumn: null,
|
|
55
|
-
// beforeQuery: null,
|
|
56
|
-
// afterQuery: null,
|
|
57
|
-
// beforeDelete: null,
|
|
58
|
-
// afterDelete: null,
|
|
59
|
-
// beforeSave: null,
|
|
60
|
-
// afterSave: null
|
|
61
|
-
},
|
|
62
|
-
taskBarTooltipConfig: {
|
|
63
|
-
enterable: true
|
|
64
|
-
},
|
|
65
|
-
taskLinkConfig: {
|
|
66
|
-
enabled: true,
|
|
67
|
-
isHover: true,
|
|
68
|
-
showArrow: true
|
|
69
|
-
},
|
|
70
|
-
taskViewScaleConfig: {
|
|
71
|
-
year: {
|
|
72
|
-
valueFormat: ymdFormat
|
|
73
|
-
},
|
|
74
|
-
quarter: {
|
|
75
|
-
valueFormat: ymdFormat
|
|
76
|
-
},
|
|
77
|
-
month: {
|
|
78
|
-
valueFormat: ymdFormat
|
|
79
|
-
},
|
|
80
|
-
week: {
|
|
81
|
-
startDay: 1,
|
|
82
|
-
valueFormat: ymdFormat
|
|
83
|
-
},
|
|
84
|
-
day: {
|
|
85
|
-
valueFormat: ymdFormat
|
|
86
|
-
},
|
|
87
|
-
date: {
|
|
88
|
-
valueFormat: ymdFormat
|
|
89
|
-
},
|
|
90
|
-
hour: {
|
|
91
|
-
valueFormat: ymdhmsFormat
|
|
92
|
-
},
|
|
93
|
-
minute: {
|
|
94
|
-
valueFormat: ymdhmsFormat
|
|
95
|
-
},
|
|
96
|
-
second: {
|
|
97
|
-
valueFormat: ymdhmsFormat
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
taskViewConfig: {
|
|
101
|
-
showNowLine: true,
|
|
102
|
-
gridding: {
|
|
103
|
-
leftSpacing: 1,
|
|
104
|
-
rightSpacing: 1
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
taskSplitConfig: {
|
|
108
|
-
enabled: true,
|
|
109
|
-
resize: true,
|
|
110
|
-
autoHideCollapseButton: true,
|
|
111
|
-
showCollapseTableButton: true,
|
|
112
|
-
showCollapseTaskButton: true
|
|
113
|
-
},
|
|
114
|
-
taskBarSubviewConfig: {
|
|
115
|
-
// showOverview: false
|
|
116
|
-
},
|
|
117
|
-
taskBarMoveConfig: {
|
|
118
|
-
isLimitByLink: true
|
|
119
|
-
},
|
|
120
|
-
taskBarResizeConfig: {
|
|
121
|
-
minWidthSize: 0.5,
|
|
122
|
-
isLimitByLink: true
|
|
123
|
-
},
|
|
124
|
-
taskBarMoveTooltipConfig: {
|
|
125
|
-
enterable: true,
|
|
126
|
-
enterDelay: 0
|
|
127
|
-
},
|
|
128
|
-
taskBarResizeTooltipConfig: {
|
|
129
|
-
enterable: true,
|
|
130
|
-
enterDelay: 0
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var iconPrefix = "vxe-icon-";
|
|
135
|
-
setIcon({
|
|
136
|
-
// gantt
|
|
137
|
-
GANTT_VIEW_LEFT_OPEN: iconPrefix + "arrow-left",
|
|
138
|
-
GANTT_VIEW_LEFT_CLOSE: iconPrefix + "arrow-right",
|
|
139
|
-
GANTT_VIEW_RIGHT_OPEN: iconPrefix + "arrow-right",
|
|
140
|
-
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + "arrow-left",
|
|
141
|
-
GANTT_VIEW_TASK_MILESTONE: iconPrefix + "square-fill rotate45"
|
|
142
|
-
});
|
|
143
|
-
var ui_default = VxeUI;
|
|
17
|
+
import { VxeUI as VxeUI10 } from "@vxe-ui/core";
|
|
144
18
|
|
|
145
19
|
// packages_temp/gantt/index.ts
|
|
146
|
-
import { VxeUI as
|
|
20
|
+
import { VxeUI as VxeUI8 } from "@vxe-ui/core";
|
|
147
21
|
|
|
148
22
|
// packages_temp/ui/src/depend.ts
|
|
149
|
-
import { VxeUI as
|
|
23
|
+
import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
150
24
|
|
|
151
25
|
// packages_temp/ui/src/log.ts
|
|
152
|
-
import { VxeUI
|
|
153
|
-
var { log } =
|
|
154
|
-
var ganttVersion = `gantt v${"4.9.
|
|
26
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
27
|
+
var { log } = VxeUI;
|
|
28
|
+
var ganttVersion = `gantt v${"4.9.6"}`;
|
|
155
29
|
function createComponentLog(name) {
|
|
156
|
-
const uiVersion =
|
|
157
|
-
const tableVersion =
|
|
158
|
-
const designVersion =
|
|
30
|
+
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
31
|
+
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
|
|
32
|
+
const designVersion = VxeUI.designVersion ? `design v${VxeUI.designVersion}` : "";
|
|
159
33
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
160
34
|
return {
|
|
161
35
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -169,9 +43,9 @@ var errLog = log.create("error", ganttVersion);
|
|
|
169
43
|
function checkDependVersion() {
|
|
170
44
|
const pVersion = 4;
|
|
171
45
|
const sVersion = 23;
|
|
172
|
-
if (
|
|
173
|
-
if (!
|
|
174
|
-
errLog("vxe.error.errorVersion", [`vxe-table@${
|
|
46
|
+
if (VxeUI2.checkVersion) {
|
|
47
|
+
if (!VxeUI2.checkVersion(VxeUI2.tableVersion, pVersion, sVersion)) {
|
|
48
|
+
errLog("vxe.error.errorVersion", [`vxe-table@${VxeUI2.tableVersion || "?"}`, `vxe-table v${pVersion}.${sVersion}+`]);
|
|
175
49
|
}
|
|
176
50
|
} else {
|
|
177
51
|
errLog(`Requires vxe-table v${pVersion}.${sVersion}+`);
|
|
@@ -190,8 +64,8 @@ import XEUtils8 from "xe-utils";
|
|
|
190
64
|
|
|
191
65
|
// packages_temp/ui/src/utils.ts
|
|
192
66
|
import XEUtils from "xe-utils";
|
|
193
|
-
import { VxeUI as
|
|
194
|
-
var { zIndex } =
|
|
67
|
+
import { VxeUI as VxeUI3 } from "@vxe-ui/core";
|
|
68
|
+
var { zIndex } = VxeUI3;
|
|
195
69
|
function isEnableConf(conf) {
|
|
196
70
|
return conf && conf.enabled !== false;
|
|
197
71
|
}
|
|
@@ -208,7 +82,7 @@ function getLastZIndex() {
|
|
|
208
82
|
return zIndex.getLast();
|
|
209
83
|
}
|
|
210
84
|
function formatText(value, placeholder) {
|
|
211
|
-
return "" + (isEmptyValue(value) ? placeholder ?
|
|
85
|
+
return "" + (isEmptyValue(value) ? placeholder ? VxeUI3.getConfig().emptyCell : "" : value);
|
|
212
86
|
}
|
|
213
87
|
function eqEmptyValue(cellValue) {
|
|
214
88
|
return cellValue === "" || XEUtils.eqNull(cellValue);
|
|
@@ -301,7 +175,7 @@ function getSlotVNs(vns) {
|
|
|
301
175
|
}
|
|
302
176
|
|
|
303
177
|
// packages_temp/gantt/src/gantt.ts
|
|
304
|
-
import { VxeUI as
|
|
178
|
+
import { VxeUI as VxeUI7 } from "@vxe-ui/core";
|
|
305
179
|
|
|
306
180
|
// packages_temp/gantt/src/table-emits.ts
|
|
307
181
|
var tableEmits = [
|
|
@@ -430,21 +304,7 @@ var tableEmits = [
|
|
|
430
304
|
];
|
|
431
305
|
|
|
432
306
|
// packages_temp/gantt/src/grid-emits.ts
|
|
433
|
-
var gridEmits = [
|
|
434
|
-
...tableEmits,
|
|
435
|
-
"page-change",
|
|
436
|
-
"form-submit",
|
|
437
|
-
"form-submit-invalid",
|
|
438
|
-
"form-reset",
|
|
439
|
-
"form-collapse",
|
|
440
|
-
"form-toggle-collapse",
|
|
441
|
-
"proxy-query",
|
|
442
|
-
"proxy-delete",
|
|
443
|
-
"proxy-save",
|
|
444
|
-
"toolbar-button-click",
|
|
445
|
-
"toolbar-tool-click",
|
|
446
|
-
"zoom"
|
|
447
|
-
];
|
|
307
|
+
var gridEmits = [...tableEmits, "page-change", "form-submit", "form-submit-invalid", "form-reset", "form-collapse", "form-toggle-collapse", "proxy-query", "proxy-delete", "proxy-save", "toolbar-button-click", "toolbar-tool-click", "zoom"];
|
|
448
308
|
|
|
449
309
|
// packages_temp/gantt/src/emits.ts
|
|
450
310
|
var ganttEmits = [
|
|
@@ -503,7 +363,7 @@ function getTaskType(type) {
|
|
|
503
363
|
|
|
504
364
|
// packages_temp/gantt/src/gantt-view.ts
|
|
505
365
|
import { h as h5, ref as ref5, reactive, nextTick, inject as inject5, onBeforeUnmount, watch, provide, computed, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
|
|
506
|
-
import { VxeUI as
|
|
366
|
+
import { VxeUI as VxeUI6, useFns } from "@vxe-ui/core";
|
|
507
367
|
|
|
508
368
|
// packages_temp/gantt/src/static.ts
|
|
509
369
|
var VxeGanttDependencyType = /* @__PURE__ */ ((VxeGanttDependencyType2) => {
|
|
@@ -524,9 +384,9 @@ import XEUtils7 from "xe-utils";
|
|
|
524
384
|
|
|
525
385
|
// packages_temp/gantt/src/gantt-header.ts
|
|
526
386
|
import { h, inject, ref, onMounted, onUnmounted } from "vue";
|
|
527
|
-
import { VxeUI as
|
|
387
|
+
import { VxeUI as VxeUI4 } from "@vxe-ui/core";
|
|
528
388
|
import XEUtils4 from "xe-utils";
|
|
529
|
-
var { getI18n } =
|
|
389
|
+
var { getI18n } = VxeUI4;
|
|
530
390
|
var sourceType = "gantt";
|
|
531
391
|
var viewType = "header";
|
|
532
392
|
var gantt_header_default = defineVxeComponent({
|
|
@@ -547,111 +407,142 @@ var gantt_header_default = defineVxeComponent({
|
|
|
547
407
|
const minScale = computeMinScale.value;
|
|
548
408
|
const scaleStep = computeScaleStep.value;
|
|
549
409
|
const { showNowLine } = taskViewOpts;
|
|
550
|
-
return h(
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
if ((isLast || minScale && (minScale.type === "date" || minScale.type === "day") && (type === "date" || type === "day")) && scaleStep > 1) {
|
|
586
|
-
label = getI18n(`vxe.gantt.stepFormat.${type}`, {
|
|
587
|
-
start: startDateObj,
|
|
588
|
-
end: endDateObj,
|
|
589
|
-
eStartLabel: getI18n(`vxe.gantt.dayss.w${startDateObj.e}`),
|
|
590
|
-
eEndLabel: getI18n(`vxe.gantt.dayss.w${endDateObj.e}`)
|
|
591
|
-
});
|
|
592
|
-
} else {
|
|
593
|
-
if (type === "day") {
|
|
594
|
-
if ($rowIndex) {
|
|
595
|
-
label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, {
|
|
596
|
-
eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
|
|
597
|
-
});
|
|
598
|
-
} else {
|
|
599
|
-
label = getI18n(`vxe.gantt.tFullFormat.${type}`, {
|
|
600
|
-
eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
|
|
410
|
+
return h(
|
|
411
|
+
"div",
|
|
412
|
+
{
|
|
413
|
+
ref: refElem,
|
|
414
|
+
class: "vxe-gantt-view--header-wrapper"
|
|
415
|
+
},
|
|
416
|
+
[
|
|
417
|
+
h(
|
|
418
|
+
"div",
|
|
419
|
+
{
|
|
420
|
+
ref: refHeaderScroll,
|
|
421
|
+
class: "vxe-gantt-view--header-inner-wrapper",
|
|
422
|
+
onScroll: $xeGanttView.triggerHeaderScrollEvent
|
|
423
|
+
},
|
|
424
|
+
[
|
|
425
|
+
h("div", {
|
|
426
|
+
ref: refHeaderXSpace,
|
|
427
|
+
class: "vxe-body--x-space"
|
|
428
|
+
}),
|
|
429
|
+
h(
|
|
430
|
+
"table",
|
|
431
|
+
{
|
|
432
|
+
ref: refHeaderTable,
|
|
433
|
+
class: "vxe-gantt-view--header-table"
|
|
434
|
+
},
|
|
435
|
+
[
|
|
436
|
+
h(
|
|
437
|
+
"colgroup",
|
|
438
|
+
{},
|
|
439
|
+
visibleColumn.map((column, cIndex) => {
|
|
440
|
+
return h("col", {
|
|
441
|
+
key: cIndex,
|
|
442
|
+
style: {
|
|
443
|
+
width: `${viewCellWidth}px`
|
|
444
|
+
}
|
|
601
445
|
});
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
446
|
+
})
|
|
447
|
+
),
|
|
448
|
+
h(
|
|
449
|
+
"thead",
|
|
450
|
+
{},
|
|
451
|
+
headerGroups.map(({ scaleItem, columns }, $rowIndex) => {
|
|
452
|
+
const { type, titleFormat, titleMethod, headerCellStyle, slots } = scaleItem;
|
|
453
|
+
const titleSlot = slots ? slots.title : null;
|
|
454
|
+
const isLast = $rowIndex === headerGroups.length - 1;
|
|
455
|
+
const todayValue = isLast && showNowLine ? todayDateMaps[type] : null;
|
|
456
|
+
return h(
|
|
457
|
+
"tr",
|
|
458
|
+
{
|
|
459
|
+
key: $rowIndex
|
|
460
|
+
},
|
|
461
|
+
columns.map((column, cIndex) => {
|
|
462
|
+
const { field, childCount, dateObj, startDateObj, endDateObj } = column;
|
|
463
|
+
let label = `${column.title}`;
|
|
464
|
+
if ((isLast || minScale && (minScale.type === "date" || minScale.type === "day") && (type === "date" || type === "day")) && scaleStep > 1) {
|
|
465
|
+
label = getI18n(`vxe.gantt.stepFormat.${type}`, {
|
|
466
|
+
start: startDateObj,
|
|
467
|
+
end: endDateObj,
|
|
468
|
+
eStartLabel: getI18n(`vxe.gantt.dayss.w${startDateObj.e}`),
|
|
469
|
+
eEndLabel: getI18n(`vxe.gantt.dayss.w${endDateObj.e}`)
|
|
470
|
+
});
|
|
471
|
+
} else {
|
|
472
|
+
if (type === "day") {
|
|
473
|
+
if ($rowIndex) {
|
|
474
|
+
label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, {
|
|
475
|
+
eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
|
|
476
|
+
});
|
|
477
|
+
} else {
|
|
478
|
+
label = getI18n(`vxe.gantt.tFullFormat.${type}`, {
|
|
479
|
+
eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
} else {
|
|
483
|
+
if ($rowIndex) {
|
|
484
|
+
label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, dateObj);
|
|
485
|
+
} else {
|
|
486
|
+
label = getI18n(`vxe.gantt.tFullFormat.${type}`, dateObj);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
let cellVNs = label;
|
|
491
|
+
const ctParams = {
|
|
492
|
+
source: sourceType,
|
|
493
|
+
type: viewType,
|
|
494
|
+
column,
|
|
495
|
+
scaleObj: scaleItem,
|
|
496
|
+
title: label,
|
|
497
|
+
dateObj,
|
|
498
|
+
startDateObj,
|
|
499
|
+
endDateObj,
|
|
500
|
+
$rowIndex
|
|
501
|
+
};
|
|
502
|
+
if (titleSlot) {
|
|
503
|
+
cellVNs = $xeGantt.callSlot(titleSlot, ctParams);
|
|
504
|
+
} else if (titleMethod) {
|
|
505
|
+
cellVNs = `${titleMethod(ctParams)}`;
|
|
506
|
+
} else if (titleFormat) {
|
|
507
|
+
cellVNs = XEUtils4.toDateString(dateObj.date, titleFormat);
|
|
508
|
+
}
|
|
509
|
+
let cellStys = {};
|
|
510
|
+
if (headerCellStyle) {
|
|
511
|
+
if (XEUtils4.isFunction(headerCellStyle)) {
|
|
512
|
+
cellStys = headerCellStyle(ctParams) || null;
|
|
513
|
+
} else {
|
|
514
|
+
cellStys = headerCellStyle;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return h(
|
|
518
|
+
"th",
|
|
519
|
+
{
|
|
520
|
+
key: cIndex,
|
|
521
|
+
class: [
|
|
522
|
+
"vxe-gantt-view--header-column",
|
|
523
|
+
{
|
|
524
|
+
"is--now": showNowLine && todayValue && todayValue === field
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
colspan: childCount || null,
|
|
528
|
+
title: titleSlot ? null : label,
|
|
529
|
+
style: cellStys || void 0,
|
|
530
|
+
onContextmenu(evnt) {
|
|
531
|
+
$xeGantt.handleTaskHeaderContextmenuEvent(evnt, ctParams);
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
cellVNs
|
|
535
|
+
);
|
|
536
|
+
})
|
|
537
|
+
);
|
|
538
|
+
})
|
|
539
|
+
)
|
|
540
|
+
]
|
|
541
|
+
)
|
|
542
|
+
]
|
|
543
|
+
)
|
|
544
|
+
]
|
|
545
|
+
);
|
|
655
546
|
};
|
|
656
547
|
onMounted(() => {
|
|
657
548
|
const { elemStore } = internalData;
|
|
@@ -679,9 +570,9 @@ import XEUtils6 from "xe-utils";
|
|
|
679
570
|
|
|
680
571
|
// packages_temp/gantt/src/gantt-chart.ts
|
|
681
572
|
import { h as h2, inject as inject2, ref as ref2, onMounted as onMounted2, onUnmounted as onUnmounted2 } from "vue";
|
|
682
|
-
import { VxeUI as
|
|
573
|
+
import { VxeUI as VxeUI5 } from "@vxe-ui/core";
|
|
683
574
|
import XEUtils5 from "xe-utils";
|
|
684
|
-
var { getIcon, renderEmptyElement } =
|
|
575
|
+
var { getIcon, renderEmptyElement } = VxeUI5;
|
|
685
576
|
var sourceType2 = "gantt";
|
|
686
577
|
var viewType2 = "chart";
|
|
687
578
|
var gantt_chart_default = defineVxeComponent({
|
|
@@ -800,242 +691,337 @@ var gantt_chart_default = defineVxeComponent({
|
|
|
800
691
|
if (isExpandTree) {
|
|
801
692
|
if (showOverview) {
|
|
802
693
|
cbVNs.push(
|
|
803
|
-
h2(
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
"
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
694
|
+
h2(
|
|
695
|
+
"div",
|
|
696
|
+
{
|
|
697
|
+
key: "vcso",
|
|
698
|
+
class: "vxe-gantt-view--chart-subview-wrapper is--overview"
|
|
699
|
+
},
|
|
700
|
+
[
|
|
701
|
+
h2(
|
|
702
|
+
"div",
|
|
703
|
+
{
|
|
704
|
+
key: rowid,
|
|
705
|
+
rowid,
|
|
706
|
+
class: [
|
|
707
|
+
"vxe-gantt-view--chart-subview-row",
|
|
708
|
+
{
|
|
709
|
+
"is--progress": showProgress,
|
|
710
|
+
"is--round": barRound,
|
|
711
|
+
"is--move": moveable
|
|
712
|
+
}
|
|
713
|
+
]
|
|
714
|
+
},
|
|
715
|
+
[
|
|
716
|
+
h2(
|
|
717
|
+
"div",
|
|
718
|
+
{
|
|
719
|
+
rowid,
|
|
720
|
+
class: [taskBarOverviewSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${renderTaskType}`]
|
|
721
|
+
},
|
|
722
|
+
[
|
|
723
|
+
taskBarOverviewSlot ? h2(
|
|
724
|
+
"div",
|
|
725
|
+
{
|
|
726
|
+
key: "cbc",
|
|
727
|
+
class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper"
|
|
728
|
+
},
|
|
729
|
+
$xeGantt.callSlot(taskBarOverviewSlot, barParams)
|
|
730
|
+
) : h2(
|
|
731
|
+
"div",
|
|
732
|
+
{
|
|
733
|
+
class: "vxe-gantt-view--chart-subview-bar-content-wrapper"
|
|
734
|
+
},
|
|
735
|
+
[
|
|
736
|
+
showContent ? h2(
|
|
737
|
+
"div",
|
|
738
|
+
{
|
|
739
|
+
class: "vxe-gantt-view--chart-content"
|
|
740
|
+
},
|
|
741
|
+
title
|
|
742
|
+
) : renderEmptyElement($xeGantt)
|
|
743
|
+
]
|
|
744
|
+
)
|
|
745
|
+
]
|
|
746
|
+
)
|
|
747
|
+
]
|
|
748
|
+
)
|
|
749
|
+
]
|
|
750
|
+
)
|
|
833
751
|
);
|
|
834
752
|
}
|
|
835
753
|
} else {
|
|
836
754
|
const cbcVNs = [];
|
|
837
|
-
XEUtils5.eachTree(
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
(barStyle ? isBarRowStyle ? barStyle(childBarParams) : barStyle : {}) || {},
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
if (isChildSubview) {
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
const childVbStyle = {};
|
|
868
|
-
const childVpStyle = {
|
|
869
|
-
width: `${childProgressValue || 0}%`
|
|
870
|
-
};
|
|
871
|
-
if (!isChildMilestone) {
|
|
872
|
-
if (childBgColor) {
|
|
873
|
-
childVbStyle["--vxe-ui-gantt-view-task-bar-background-color"] = childBgColor;
|
|
755
|
+
XEUtils5.eachTree(
|
|
756
|
+
rowChildren,
|
|
757
|
+
(childRow) => {
|
|
758
|
+
const childBarParams = {
|
|
759
|
+
$gantt: $xeGantt,
|
|
760
|
+
source: sourceType2,
|
|
761
|
+
type: viewType2,
|
|
762
|
+
scaleType: scaleUnit,
|
|
763
|
+
row: childRow,
|
|
764
|
+
$rowIndex: $xeTable.getRowIndex(childRow),
|
|
765
|
+
rowIndex: $xeTable.getVMRowIndex(childRow),
|
|
766
|
+
_rowIndex: $xeTable.getVTRowIndex(childRow)
|
|
767
|
+
};
|
|
768
|
+
const isChildBarRowStyle = XEUtils5.isFunction(subBarStyle);
|
|
769
|
+
const childBarStyObj = XEUtils5.assign({}, (barStyle ? isBarRowStyle ? barStyle(childBarParams) : barStyle : {}) || {}, (subBarStyle ? isChildBarRowStyle ? subBarStyle(childBarParams) : subBarStyle : {}) || {});
|
|
770
|
+
const childRound = childBarStyObj.round;
|
|
771
|
+
const childBgColor = childBarStyObj.bgColor;
|
|
772
|
+
const childCompletedBgColor = childBarStyObj.completedBgColor;
|
|
773
|
+
const childBarHtmlStyle = childBarStyObj.style;
|
|
774
|
+
const childRowid = $xeTable.getRowid(childRow);
|
|
775
|
+
let childTitle = getStringValue(XEUtils5.get(childRow, titleField));
|
|
776
|
+
const childProgressValue = showProgress ? Math.min(100, Math.max(0, XEUtils5.toNumber(XEUtils5.get(childRow, progressField)))) : 0;
|
|
777
|
+
const childRenderTaskType = getTaskType(XEUtils5.get(childRow, typeField));
|
|
778
|
+
const isChildMilestone = !!(hasEnableConf(taskBarMilestoneConfig, taskBarMilestoneOpts) && hasMilestoneTask(childRenderTaskType));
|
|
779
|
+
const isChildSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(childRenderTaskType));
|
|
780
|
+
if (isChildSubview) {
|
|
781
|
+
return;
|
|
874
782
|
}
|
|
875
|
-
|
|
876
|
-
|
|
783
|
+
const childVbStyle = {};
|
|
784
|
+
const childVpStyle = {
|
|
785
|
+
width: `${childProgressValue || 0}%`
|
|
786
|
+
};
|
|
787
|
+
if (!isChildMilestone) {
|
|
788
|
+
if (childBgColor) {
|
|
789
|
+
childVbStyle["--vxe-ui-gantt-view-task-bar-background-color"] = childBgColor;
|
|
790
|
+
}
|
|
791
|
+
if (childCompletedBgColor) {
|
|
792
|
+
childVpStyle["--vxe-ui-gantt-view-task-bar-completed-background-color"] = childCompletedBgColor;
|
|
793
|
+
}
|
|
877
794
|
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
onClick(evnt) {
|
|
906
|
-
evnt.stopPropagation();
|
|
907
|
-
$xeGantt.handleTaskBarClickEvent(evnt, childCtParams);
|
|
908
|
-
},
|
|
909
|
-
onDblclick(evnt) {
|
|
910
|
-
evnt.stopPropagation();
|
|
911
|
-
$xeGantt.handleTaskBarDblclickEvent(evnt, childCtParams);
|
|
795
|
+
if (childBarStyObj.top) {
|
|
796
|
+
childVbStyle.top = childBarStyObj.top;
|
|
797
|
+
}
|
|
798
|
+
if (childBarHtmlStyle) {
|
|
799
|
+
XEUtils5.assign(childVbStyle, childBarHtmlStyle);
|
|
800
|
+
}
|
|
801
|
+
const childCtParams = { ...childBarParams };
|
|
802
|
+
if (contentMethod) {
|
|
803
|
+
childTitle = getStringValue(contentMethod({ row: childRow, title: childTitle, scaleType: scaleUnit }));
|
|
804
|
+
}
|
|
805
|
+
cbcVNs.push(
|
|
806
|
+
h2(
|
|
807
|
+
"div",
|
|
808
|
+
{
|
|
809
|
+
key: childRowid,
|
|
810
|
+
rowid: childRowid,
|
|
811
|
+
class: [
|
|
812
|
+
"vxe-gantt-view--chart-subview-row",
|
|
813
|
+
`is--${childRenderTaskType}`,
|
|
814
|
+
{
|
|
815
|
+
"is--progress": showProgress,
|
|
816
|
+
"is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(childRowid),
|
|
817
|
+
"is--round": childRound,
|
|
818
|
+
"is--move": moveable,
|
|
819
|
+
"row--pending": !!pendingRowFlag && !!pendingRowMaps[childRowid]
|
|
820
|
+
}
|
|
821
|
+
]
|
|
912
822
|
},
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
823
|
+
[
|
|
824
|
+
h2(
|
|
825
|
+
"div",
|
|
826
|
+
{
|
|
827
|
+
rowid: childRowid,
|
|
828
|
+
class: [taskBarSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${childRenderTaskType}`],
|
|
829
|
+
style: childVbStyle,
|
|
830
|
+
onClick(evnt) {
|
|
831
|
+
evnt.stopPropagation();
|
|
832
|
+
$xeGantt.handleTaskBarClickEvent(evnt, childCtParams);
|
|
833
|
+
},
|
|
834
|
+
onDblclick(evnt) {
|
|
835
|
+
evnt.stopPropagation();
|
|
836
|
+
$xeGantt.handleTaskBarDblclickEvent(evnt, childCtParams);
|
|
837
|
+
},
|
|
838
|
+
onMousedown(evnt) {
|
|
839
|
+
evnt.stopPropagation();
|
|
840
|
+
if ($xeGantt.handleTaskBarModnEvent) {
|
|
841
|
+
$xeGantt.handleTaskBarModnEvent(evnt, childCtParams);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
[
|
|
846
|
+
taskBarSlot ? h2(
|
|
847
|
+
"div",
|
|
848
|
+
{
|
|
849
|
+
key: "cbc",
|
|
850
|
+
class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper",
|
|
851
|
+
...ctOns
|
|
852
|
+
},
|
|
853
|
+
$xeGantt.callSlot(taskBarSlot, childCtParams)
|
|
854
|
+
) : h2(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
class: "vxe-gantt-view--chart-subview-bar-content-wrapper",
|
|
858
|
+
...ctOns
|
|
859
|
+
},
|
|
860
|
+
[
|
|
861
|
+
showProgress ? h2("div", {
|
|
862
|
+
class: "vxe-gantt-view--chart-progress",
|
|
863
|
+
style: childVpStyle
|
|
864
|
+
}) : renderEmptyElement($xeGantt),
|
|
865
|
+
showContent ? h2(
|
|
866
|
+
"div",
|
|
867
|
+
{
|
|
868
|
+
class: "vxe-gantt-view--chart-content"
|
|
869
|
+
},
|
|
870
|
+
childTitle
|
|
871
|
+
) : renderEmptyElement($xeGantt)
|
|
872
|
+
]
|
|
873
|
+
)
|
|
874
|
+
]
|
|
875
|
+
)
|
|
876
|
+
]
|
|
877
|
+
)
|
|
878
|
+
);
|
|
879
|
+
},
|
|
880
|
+
{ children: childrenField }
|
|
881
|
+
);
|
|
940
882
|
cbVNs.push(
|
|
941
|
-
h2(
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
883
|
+
h2(
|
|
884
|
+
"div",
|
|
885
|
+
{
|
|
886
|
+
key: "vcsc",
|
|
887
|
+
class: "vxe-gantt-view--chart-subview-wrapper is--inline"
|
|
888
|
+
},
|
|
889
|
+
cbcVNs
|
|
890
|
+
)
|
|
945
891
|
);
|
|
946
892
|
}
|
|
947
893
|
} else {
|
|
948
894
|
if (taskBarSlot) {
|
|
949
895
|
cbVNs.push(
|
|
950
|
-
h2(
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
896
|
+
h2(
|
|
897
|
+
"div",
|
|
898
|
+
{
|
|
899
|
+
key: "cbc",
|
|
900
|
+
class: "vxe-gantt-view--chart-custom-bar-content-wrapper",
|
|
901
|
+
...ctOns
|
|
902
|
+
},
|
|
903
|
+
$xeGantt.callSlot(taskBarSlot, barParams)
|
|
904
|
+
)
|
|
955
905
|
);
|
|
956
906
|
} else if (isMilestone) {
|
|
957
907
|
const { icon, iconStatus, iconStyle } = taskBarMilestoneOpts;
|
|
958
908
|
const tbmParams = { $gantt: $xeGantt, row };
|
|
959
909
|
cbVNs.push(
|
|
960
|
-
h2(
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
910
|
+
h2(
|
|
911
|
+
"div",
|
|
912
|
+
{
|
|
913
|
+
key: "vcm",
|
|
914
|
+
class: "vxe-gantt-view--chart-milestone-wrapper",
|
|
915
|
+
...ctOns
|
|
916
|
+
},
|
|
917
|
+
[
|
|
918
|
+
h2(
|
|
919
|
+
"div",
|
|
920
|
+
{
|
|
921
|
+
class: ["vxe-gantt-view--chart-milestone-icon", iconStatus ? `theme--${XEUtils5.isFunction(iconStatus) ? iconStatus(tbmParams) : iconStatus}` : ""],
|
|
922
|
+
style: iconStyle ? Object.assign({}, XEUtils5.isFunction(iconStyle) ? iconStyle(tbmParams) : iconStyle) : void 0
|
|
923
|
+
},
|
|
924
|
+
[
|
|
925
|
+
h2("i", {
|
|
926
|
+
class: (icon ? XEUtils5.isFunction(icon) ? icon(tbmParams) : icon : "") || getIcon().GANTT_VIEW_TASK_MILESTONE
|
|
927
|
+
})
|
|
928
|
+
]
|
|
929
|
+
),
|
|
930
|
+
showContent ? h2(
|
|
931
|
+
"div",
|
|
932
|
+
{
|
|
933
|
+
class: "vxe-gantt-view--chart-milestone-content"
|
|
934
|
+
},
|
|
935
|
+
title
|
|
936
|
+
) : renderEmptyElement($xeGantt)
|
|
937
|
+
]
|
|
938
|
+
)
|
|
977
939
|
);
|
|
978
940
|
} else {
|
|
979
941
|
cbVNs.push(
|
|
980
|
-
h2(
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
942
|
+
h2(
|
|
943
|
+
"div",
|
|
944
|
+
{
|
|
945
|
+
key: "vbc",
|
|
946
|
+
class: "vxe-gantt-view--chart-bar-content-wrapper",
|
|
947
|
+
...ctOns
|
|
948
|
+
},
|
|
949
|
+
[
|
|
950
|
+
showProgress ? h2("div", {
|
|
951
|
+
class: "vxe-gantt-view--chart-progress",
|
|
952
|
+
style: vpStyle
|
|
953
|
+
}) : renderEmptyElement($xeGantt),
|
|
954
|
+
showContent ? h2(
|
|
955
|
+
"div",
|
|
956
|
+
{
|
|
957
|
+
class: "vxe-gantt-view--chart-content"
|
|
958
|
+
},
|
|
959
|
+
title
|
|
960
|
+
) : renderEmptyElement($xeGantt)
|
|
961
|
+
]
|
|
962
|
+
)
|
|
993
963
|
);
|
|
994
964
|
}
|
|
995
965
|
}
|
|
996
966
|
}
|
|
997
|
-
return h2(
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
"is--progress": showProgress,
|
|
1002
|
-
"is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(rowid),
|
|
1003
|
-
"row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
|
|
1004
|
-
"is--round": barRound,
|
|
1005
|
-
"is--move": moveable
|
|
1006
|
-
}],
|
|
1007
|
-
style: {
|
|
1008
|
-
height: `${cellHeight}px`
|
|
1009
|
-
},
|
|
1010
|
-
onDragstart(evnt) {
|
|
1011
|
-
if (ganttInternalData.dragBarRow) {
|
|
1012
|
-
evnt.preventDefault();
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
onContextmenu(evnt) {
|
|
1016
|
-
$xeGantt.handleTaskBarContextmenuEvent(evnt, ctParams);
|
|
1017
|
-
}
|
|
1018
|
-
}, [
|
|
1019
|
-
h2("div", {
|
|
1020
|
-
class: [taskBarSlot ? "vxe-gantt-view--chart-custom-bar" : "vxe-gantt-view--chart-bar", `is--${renderTaskType}`, {
|
|
1021
|
-
"is--active": activeBarRowid === rowid,
|
|
1022
|
-
"active--link": activeLink && (rowid === `${activeLink.from}` || rowid === `${activeLink.to}`)
|
|
1023
|
-
}],
|
|
1024
|
-
style: vbStyle,
|
|
967
|
+
return h2(
|
|
968
|
+
"div",
|
|
969
|
+
{
|
|
970
|
+
key: rowid,
|
|
1025
971
|
rowid,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
972
|
+
class: [
|
|
973
|
+
"vxe-gantt-view--chart-row",
|
|
974
|
+
`is--${renderTaskType}`,
|
|
975
|
+
{
|
|
976
|
+
"is--progress": showProgress,
|
|
977
|
+
"is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(rowid),
|
|
978
|
+
"row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
|
|
979
|
+
"is--round": barRound,
|
|
980
|
+
"is--move": moveable
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
style: {
|
|
984
|
+
height: `${cellHeight}px`
|
|
1031
985
|
},
|
|
1032
|
-
|
|
1033
|
-
if (
|
|
1034
|
-
|
|
986
|
+
onDragstart(evnt) {
|
|
987
|
+
if (ganttInternalData.dragBarRow) {
|
|
988
|
+
evnt.preventDefault();
|
|
1035
989
|
}
|
|
990
|
+
},
|
|
991
|
+
onContextmenu(evnt) {
|
|
992
|
+
$xeGantt.handleTaskBarContextmenuEvent(evnt, ctParams);
|
|
1036
993
|
}
|
|
1037
|
-
},
|
|
1038
|
-
|
|
994
|
+
},
|
|
995
|
+
[
|
|
996
|
+
h2(
|
|
997
|
+
"div",
|
|
998
|
+
{
|
|
999
|
+
class: [
|
|
1000
|
+
taskBarSlot ? "vxe-gantt-view--chart-custom-bar" : "vxe-gantt-view--chart-bar",
|
|
1001
|
+
`is--${renderTaskType}`,
|
|
1002
|
+
{
|
|
1003
|
+
"is--active": activeBarRowid === rowid,
|
|
1004
|
+
"active--link": activeLink && (rowid === `${activeLink.from}` || rowid === `${activeLink.to}`)
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
style: vbStyle,
|
|
1008
|
+
rowid,
|
|
1009
|
+
onClick(evnt) {
|
|
1010
|
+
$xeGantt.handleTaskBarClickEvent(evnt, barParams);
|
|
1011
|
+
},
|
|
1012
|
+
onDblclick(evnt) {
|
|
1013
|
+
$xeGantt.handleTaskBarDblclickEvent(evnt, barParams);
|
|
1014
|
+
},
|
|
1015
|
+
onMousedown(evnt) {
|
|
1016
|
+
if ($xeGantt.handleTaskBarModnEvent) {
|
|
1017
|
+
$xeGantt.handleTaskBarModnEvent(evnt, barParams);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
cbVNs
|
|
1022
|
+
)
|
|
1023
|
+
]
|
|
1024
|
+
);
|
|
1039
1025
|
};
|
|
1040
1026
|
const renderTaskRows = ($xeTable, tableData) => {
|
|
1041
1027
|
const tableProps2 = $xeTable.props;
|
|
@@ -1083,38 +1069,67 @@ var gantt_chart_default = defineVxeComponent({
|
|
|
1083
1069
|
const { isCurrent, isHover } = taskLinkOpts;
|
|
1084
1070
|
const { linkCreatable } = taskBarOpts;
|
|
1085
1071
|
const taskNowLineSlot = ganttSlots.taskNowLine || ganttSlots["task-now-line"];
|
|
1086
|
-
return h2(
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
"
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1072
|
+
return h2(
|
|
1073
|
+
"div",
|
|
1074
|
+
{
|
|
1075
|
+
ref: refElem,
|
|
1076
|
+
class: [
|
|
1077
|
+
"vxe-gantt-view--chart-wrapper",
|
|
1078
|
+
{
|
|
1079
|
+
"is--cl-drag": dragLinkFromStore.rowid
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
[
|
|
1084
|
+
nowLineLeft > 0 ? h2(
|
|
1085
|
+
"div",
|
|
1086
|
+
{
|
|
1087
|
+
ref: refNowLineElem,
|
|
1088
|
+
class: "vxe-gantt-view--chart-now-line",
|
|
1089
|
+
style: {
|
|
1090
|
+
left: nowLineLeft + "px"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
taskNowLineSlot ? taskNowLineSlot({}) : []
|
|
1094
|
+
) : renderEmptyElement($xeGantt),
|
|
1095
|
+
$xeGantt.renderGanttTaskChartBefores ? h2(
|
|
1096
|
+
"div",
|
|
1097
|
+
{
|
|
1098
|
+
ref: refChartBeforeWrapperElem,
|
|
1099
|
+
class: [
|
|
1100
|
+
"vxe-gantt-view--chart-before-wrapper",
|
|
1101
|
+
{
|
|
1102
|
+
"link--current": isCurrent,
|
|
1103
|
+
"link--hover": isHover
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
$xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartBefores() : []
|
|
1108
|
+
) : renderEmptyElement($xeGantt),
|
|
1109
|
+
h2(
|
|
1110
|
+
"div",
|
|
1111
|
+
{
|
|
1112
|
+
ref: refTaskWrapperElem,
|
|
1113
|
+
class: [
|
|
1114
|
+
"vxe-gantt-view--chart-task-wrapper",
|
|
1115
|
+
{
|
|
1116
|
+
"link--current": isCurrent,
|
|
1117
|
+
"link--create": linkCreatable
|
|
1118
|
+
}
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1121
|
+
$xeTable ? renderTaskRows($xeTable, tableData) : []
|
|
1122
|
+
),
|
|
1123
|
+
$xeGantt.renderGanttTaskChartAfters ? h2(
|
|
1124
|
+
"div",
|
|
1125
|
+
{
|
|
1126
|
+
ref: refChartAfterWrapperElem,
|
|
1127
|
+
class: "vxe-gantt-view--chart-after-wrapper"
|
|
1128
|
+
},
|
|
1129
|
+
$xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartAfters() : []
|
|
1130
|
+
) : renderEmptyElement($xeGantt)
|
|
1131
|
+
]
|
|
1132
|
+
);
|
|
1118
1133
|
};
|
|
1119
1134
|
onMounted2(() => {
|
|
1120
1135
|
const { elemStore } = ganttViewInternalData;
|
|
@@ -1222,30 +1237,34 @@ var gantt_body_default = defineVxeComponent({
|
|
|
1222
1237
|
rowIndex,
|
|
1223
1238
|
_rowIndex
|
|
1224
1239
|
};
|
|
1225
|
-
return h3(
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
"
|
|
1240
|
+
return h3(
|
|
1241
|
+
"td",
|
|
1242
|
+
{
|
|
1243
|
+
key: cellClassName || cellStyle ? field : $columnIndex,
|
|
1244
|
+
class: [
|
|
1245
|
+
"vxe-gantt-view--body-column",
|
|
1246
|
+
{
|
|
1247
|
+
"is--now": showNowLine && todayValue === field
|
|
1248
|
+
},
|
|
1249
|
+
getClass(cellClassName, ctParams)
|
|
1250
|
+
],
|
|
1251
|
+
style: cellStyle ? Object.assign({}, XEUtils6.isFunction(cellStyle) ? cellStyle(ctParams) : cellStyle, {
|
|
1252
|
+
height: `${cellHeight}px`
|
|
1253
|
+
}) : {
|
|
1254
|
+
height: `${cellHeight}px`
|
|
1231
1255
|
},
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
},
|
|
1242
|
-
onDblclick(evnt) {
|
|
1243
|
-
$xeGantt.handleTaskCellDblclickEvent(evnt, { row, column });
|
|
1256
|
+
onClick(evnt) {
|
|
1257
|
+
$xeGantt.handleTaskCellClickEvent(evnt, { row, column });
|
|
1258
|
+
},
|
|
1259
|
+
onDblclick(evnt) {
|
|
1260
|
+
$xeGantt.handleTaskCellDblclickEvent(evnt, { row, column });
|
|
1261
|
+
},
|
|
1262
|
+
onContextmenu(evnt) {
|
|
1263
|
+
$xeGantt.handleTaskBodyContextmenuEvent(evnt, ctParams);
|
|
1264
|
+
}
|
|
1244
1265
|
},
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
}
|
|
1248
|
-
}, tdVNs);
|
|
1266
|
+
tdVNs
|
|
1267
|
+
);
|
|
1249
1268
|
};
|
|
1250
1269
|
const renderRows = ($xeTable, tableData) => {
|
|
1251
1270
|
const tableProps2 = $xeTable.props;
|
|
@@ -1305,23 +1324,27 @@ var gantt_body_default = defineVxeComponent({
|
|
|
1305
1324
|
_rowIndex
|
|
1306
1325
|
};
|
|
1307
1326
|
trVNs.push(
|
|
1308
|
-
h3(
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
"row
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1327
|
+
h3(
|
|
1328
|
+
"tr",
|
|
1329
|
+
{
|
|
1330
|
+
key: rowClassName || rowStyle || cellClassName || cellStyle ? rowid : $rowIndex,
|
|
1331
|
+
class: [
|
|
1332
|
+
"vxe-gantt-view--body-row",
|
|
1333
|
+
{
|
|
1334
|
+
"row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
|
|
1335
|
+
"is--new": isNewRow,
|
|
1336
|
+
"row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
|
|
1337
|
+
"row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
|
|
1338
|
+
"row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid]
|
|
1339
|
+
},
|
|
1340
|
+
getClass(rowClassName, rowParams)
|
|
1341
|
+
],
|
|
1342
|
+
rowid,
|
|
1343
|
+
style: rowStyle ? XEUtils6.isFunction(rowStyle) ? rowStyle(rowParams) || void 0 : rowStyle : void 0,
|
|
1344
|
+
...trOns
|
|
1345
|
+
},
|
|
1346
|
+
tableColumn.map((column, $columnIndex) => renderColumn($xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex, column, $columnIndex))
|
|
1347
|
+
)
|
|
1325
1348
|
);
|
|
1326
1349
|
let isExpandTree = false;
|
|
1327
1350
|
let rowChildren = [];
|
|
@@ -1338,43 +1361,59 @@ var gantt_body_default = defineVxeComponent({
|
|
|
1338
1361
|
const renderVN = () => {
|
|
1339
1362
|
const $xeTable = $xeGanttView.internalData.xeTable;
|
|
1340
1363
|
const { tableData, tableColumn, viewCellWidth } = reactData;
|
|
1341
|
-
return h3(
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1364
|
+
return h3(
|
|
1365
|
+
"div",
|
|
1366
|
+
{
|
|
1367
|
+
ref: refElem,
|
|
1368
|
+
class: "vxe-gantt-view--body-wrapper"
|
|
1369
|
+
},
|
|
1370
|
+
[
|
|
1371
|
+
h3(
|
|
1372
|
+
"div",
|
|
1373
|
+
{
|
|
1374
|
+
ref: refBodyScroll,
|
|
1375
|
+
class: "vxe-gantt-view--body-inner-wrapper",
|
|
1376
|
+
onScroll: $xeGanttView.triggerBodyScrollEvent,
|
|
1377
|
+
onContextmenu(evnt) {
|
|
1378
|
+
$xeGantt.handleTaskBodyContextmenuEvent(evnt, { source: sourceType3, type: viewType3, rowIndex: -1, $rowIndex: -1, _rowIndex: -1 });
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
[
|
|
1382
|
+
h3("div", {
|
|
1383
|
+
ref: refBodyXSpace,
|
|
1384
|
+
class: "vxe-body--x-space"
|
|
1385
|
+
}),
|
|
1386
|
+
h3("div", {
|
|
1387
|
+
ref: refBodyYSpace,
|
|
1388
|
+
class: "vxe-body--y-space"
|
|
1389
|
+
}),
|
|
1390
|
+
h3(
|
|
1391
|
+
"table",
|
|
1392
|
+
{
|
|
1393
|
+
ref: refBodyTable,
|
|
1394
|
+
class: "vxe-gantt-view--body-table"
|
|
1395
|
+
},
|
|
1396
|
+
[
|
|
1397
|
+
h3(
|
|
1398
|
+
"colgroup",
|
|
1399
|
+
{},
|
|
1400
|
+
tableColumn.map((column, cIndex) => {
|
|
1401
|
+
return h3("col", {
|
|
1402
|
+
key: cIndex,
|
|
1403
|
+
style: {
|
|
1404
|
+
width: `${viewCellWidth}px`
|
|
1405
|
+
}
|
|
1406
|
+
});
|
|
1407
|
+
})
|
|
1408
|
+
),
|
|
1409
|
+
h3("tbody", {}, $xeTable ? renderRows($xeTable, tableData) : [])
|
|
1410
|
+
]
|
|
1411
|
+
),
|
|
1412
|
+
h3(gantt_chart_default)
|
|
1413
|
+
]
|
|
1414
|
+
)
|
|
1415
|
+
]
|
|
1416
|
+
);
|
|
1378
1417
|
};
|
|
1379
1418
|
onMounted3(() => {
|
|
1380
1419
|
const { elemStore } = internalData;
|
|
@@ -1411,18 +1450,22 @@ var gantt_footer_default = defineVxeComponent({
|
|
|
1411
1450
|
const refElem = ref4();
|
|
1412
1451
|
const refHeaderScroll = ref4();
|
|
1413
1452
|
const renderVN = () => {
|
|
1414
|
-
return h4(
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1453
|
+
return h4(
|
|
1454
|
+
"div",
|
|
1455
|
+
{
|
|
1456
|
+
ref: refElem,
|
|
1457
|
+
class: "vxe-gantt-view--footer-wrapper",
|
|
1458
|
+
onContextmenu(evnt) {
|
|
1459
|
+
$xeGantt.handleTaskFooterContextmenuEvent(evnt, { source: sourceType4, type: viewType4, $rowIndex: -1 });
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
[
|
|
1463
|
+
h4("div", {
|
|
1464
|
+
ref: refHeaderScroll,
|
|
1465
|
+
class: "vxe-gantt-view--footer-inner-wrapper"
|
|
1466
|
+
})
|
|
1467
|
+
]
|
|
1468
|
+
);
|
|
1426
1469
|
};
|
|
1427
1470
|
onMounted4(() => {
|
|
1428
1471
|
const { elemStore } = internalData;
|
|
@@ -1441,7 +1484,7 @@ var gantt_footer_default = defineVxeComponent({
|
|
|
1441
1484
|
});
|
|
1442
1485
|
|
|
1443
1486
|
// packages_temp/gantt/src/gantt-view.ts
|
|
1444
|
-
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } =
|
|
1487
|
+
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } = VxeUI6;
|
|
1445
1488
|
var { FinishToStart, StartToFinish, StartToStart, FinishToFinish } = VxeGanttDependencyType;
|
|
1446
1489
|
var sourceType5 = "gantt";
|
|
1447
1490
|
var secondMs = 1e3;
|
|
@@ -1625,17 +1668,20 @@ var gantt_view_default = defineVxeComponent({
|
|
|
1625
1668
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
1626
1669
|
const scrollXVisible = computeScrollXVisible.value;
|
|
1627
1670
|
const scrollYVisible = computeScrollYVisible.value;
|
|
1628
|
-
return domUtils.buildClass(
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1671
|
+
return domUtils.buildClass(
|
|
1672
|
+
[
|
|
1673
|
+
"vxe-scrollbar is--virtual",
|
|
1674
|
+
scrollbarOpts.fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
|
|
1675
|
+
`ov-x--${scrollXVisible === false ? "hidden" : "visible"}`,
|
|
1676
|
+
`ov-y--${scrollYVisible === false ? "hidden" : "visible"}`,
|
|
1677
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
1678
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`
|
|
1679
|
+
],
|
|
1680
|
+
{
|
|
1681
|
+
"overflow-y": yThumbHeight,
|
|
1682
|
+
"overflow-x": xThumbWidth
|
|
1683
|
+
}
|
|
1684
|
+
);
|
|
1639
1685
|
});
|
|
1640
1686
|
const computeScaleDateList = computed(() => {
|
|
1641
1687
|
const { minViewDate, maxViewDate } = reactData;
|
|
@@ -1800,21 +1846,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
1800
1846
|
getRefMaps: () => refMaps,
|
|
1801
1847
|
getComputeMaps: () => computeMaps
|
|
1802
1848
|
};
|
|
1803
|
-
const {
|
|
1804
|
-
refTrackXElem,
|
|
1805
|
-
refTrackYElem,
|
|
1806
|
-
refThumbXElem,
|
|
1807
|
-
refThumbYElem,
|
|
1808
|
-
updateThumbSize,
|
|
1809
|
-
updateThumbOffset,
|
|
1810
|
-
clickTrackXEvent,
|
|
1811
|
-
clickTrackYEvent,
|
|
1812
|
-
pointerdownThumbXEvent,
|
|
1813
|
-
pointermoveThumbXEvent,
|
|
1814
|
-
cleatPointerThumbEvent,
|
|
1815
|
-
pointerdownThumbYEvent,
|
|
1816
|
-
pointermoveThumbYEvent
|
|
1817
|
-
} = useFns.useInitVScrollbar($xeGanttView);
|
|
1849
|
+
const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeGanttView);
|
|
1818
1850
|
const parseStringDate = (dateValue) => {
|
|
1819
1851
|
const dateFormat = computeDateFormat.value;
|
|
1820
1852
|
return XEUtils7.toStringDate(dateValue, dateFormat);
|
|
@@ -2796,18 +2828,22 @@ var gantt_view_default = defineVxeComponent({
|
|
|
2796
2828
|
const typeField = computeTypeField.value;
|
|
2797
2829
|
let minChildLeftSize = 0;
|
|
2798
2830
|
let maxChildLeftSize = 0;
|
|
2799
|
-
XEUtils7.eachTree(
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2831
|
+
XEUtils7.eachTree(
|
|
2832
|
+
list,
|
|
2833
|
+
(childRow) => {
|
|
2834
|
+
const childRowid = $xeTable.getRowid(childRow);
|
|
2835
|
+
const renderTaskType = XEUtils7.get(childRow, typeField);
|
|
2836
|
+
if (hasSubviewTask(renderTaskType)) {
|
|
2837
|
+
return;
|
|
2838
|
+
}
|
|
2839
|
+
const childChartRest = childRowid ? chartMaps[childRowid] : null;
|
|
2840
|
+
if (childChartRest) {
|
|
2841
|
+
maxChildLeftSize = Math.max(maxChildLeftSize, childChartRest.oLeftSize + childChartRest.oWidthSize);
|
|
2842
|
+
minChildLeftSize = minChildLeftSize ? Math.min(minChildLeftSize, childChartRest.oLeftSize) : childChartRest.oLeftSize;
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
{ children: childrenField }
|
|
2846
|
+
);
|
|
2811
2847
|
return {
|
|
2812
2848
|
minSize: minChildLeftSize,
|
|
2813
2849
|
maxSize: maxChildLeftSize
|
|
@@ -2993,10 +3029,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
2993
3029
|
bodyTableElem.style.width = `${vmTableWidth}px`;
|
|
2994
3030
|
}
|
|
2995
3031
|
reactData.scrollXWidth = viewTableWidth;
|
|
2996
|
-
return Promise.all([
|
|
2997
|
-
updateTaskChartStyle(),
|
|
2998
|
-
$xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null
|
|
2999
|
-
]);
|
|
3032
|
+
return Promise.all([updateTaskChartStyle(), $xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null]);
|
|
3000
3033
|
};
|
|
3001
3034
|
const handleRecalculateStyle = () => {
|
|
3002
3035
|
const el = refElem.value;
|
|
@@ -3025,18 +3058,14 @@ var gantt_view_default = defineVxeComponent({
|
|
|
3025
3058
|
if (rceTimeout) {
|
|
3026
3059
|
clearTimeout(rceTimeout);
|
|
3027
3060
|
if (rceRunTime && rceRunTime + (refreshDelay - 5) < Date.now()) {
|
|
3028
|
-
resolve(
|
|
3029
|
-
handleRecalculateStyle()
|
|
3030
|
-
);
|
|
3061
|
+
resolve(handleRecalculateStyle());
|
|
3031
3062
|
} else {
|
|
3032
3063
|
nextTick(() => {
|
|
3033
3064
|
resolve();
|
|
3034
3065
|
});
|
|
3035
3066
|
}
|
|
3036
3067
|
} else {
|
|
3037
|
-
resolve(
|
|
3038
|
-
handleRecalculateStyle()
|
|
3039
|
-
);
|
|
3068
|
+
resolve(handleRecalculateStyle());
|
|
3040
3069
|
}
|
|
3041
3070
|
internalData.rceTimeout = setTimeout(() => {
|
|
3042
3071
|
internalData.rceTimeout = void 0;
|
|
@@ -3597,95 +3626,117 @@ var gantt_view_default = defineVxeComponent({
|
|
|
3597
3626
|
};
|
|
3598
3627
|
Object.assign($xeGanttView, ganttViewMethods, ganttViewPrivateMethods);
|
|
3599
3628
|
const renderScrollX = () => {
|
|
3600
|
-
return h5(
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
}),
|
|
3609
|
-
h5("div", {
|
|
3610
|
-
ref: refScrollXWrapperElem,
|
|
3611
|
-
class: "vxe-gantt-view--scroll-x-wrapper"
|
|
3612
|
-
}, [
|
|
3629
|
+
return h5(
|
|
3630
|
+
"div",
|
|
3631
|
+
{
|
|
3632
|
+
key: "vsx",
|
|
3633
|
+
ref: refScrollXVirtualElem,
|
|
3634
|
+
class: "vxe-gantt-view--scroll-x-virtual"
|
|
3635
|
+
},
|
|
3636
|
+
[
|
|
3613
3637
|
h5("div", {
|
|
3614
|
-
ref:
|
|
3615
|
-
class: "vxe-gantt-view--scroll-x-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3638
|
+
ref: refScrollXLeftCornerElem,
|
|
3639
|
+
class: "vxe-gantt-view--scroll-x-left-corner"
|
|
3640
|
+
}),
|
|
3641
|
+
h5(
|
|
3642
|
+
"div",
|
|
3643
|
+
{
|
|
3644
|
+
ref: refScrollXWrapperElem,
|
|
3645
|
+
class: "vxe-gantt-view--scroll-x-wrapper"
|
|
3646
|
+
},
|
|
3647
|
+
[
|
|
3648
|
+
h5(
|
|
3649
|
+
"div",
|
|
3650
|
+
{
|
|
3651
|
+
ref: refScrollXHandleElem,
|
|
3652
|
+
class: "vxe-gantt-view--scroll-x-handle",
|
|
3653
|
+
onScroll: $xeGanttView.triggerVirtualScrollXEvent
|
|
3654
|
+
},
|
|
3655
|
+
[
|
|
3656
|
+
h5("div", {
|
|
3657
|
+
ref: refScrollXSpaceElem,
|
|
3658
|
+
class: "vxe-gantt-view--scroll-x-space"
|
|
3659
|
+
})
|
|
3660
|
+
]
|
|
3661
|
+
),
|
|
3662
|
+
h5("div", {
|
|
3663
|
+
class: "vxe-gantt-view--scroll-x-handle-appearance"
|
|
3664
|
+
})
|
|
3665
|
+
]
|
|
3666
|
+
),
|
|
3623
3667
|
h5("div", {
|
|
3624
|
-
|
|
3668
|
+
ref: refScrollXRightCornerElem,
|
|
3669
|
+
class: "vxe-gantt-view--scroll-x-right-corner"
|
|
3625
3670
|
})
|
|
3626
|
-
]
|
|
3627
|
-
|
|
3628
|
-
ref: refScrollXRightCornerElem,
|
|
3629
|
-
class: "vxe-gantt-view--scroll-x-right-corner"
|
|
3630
|
-
})
|
|
3631
|
-
]);
|
|
3671
|
+
]
|
|
3672
|
+
);
|
|
3632
3673
|
};
|
|
3633
3674
|
const renderScrollY = () => {
|
|
3634
|
-
return h5(
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
}),
|
|
3643
|
-
h5("div", {
|
|
3644
|
-
ref: refScrollYWrapperElem,
|
|
3645
|
-
class: "vxe-gantt-view--scroll-y-wrapper"
|
|
3646
|
-
}, [
|
|
3675
|
+
return h5(
|
|
3676
|
+
"div",
|
|
3677
|
+
{
|
|
3678
|
+
key: "vsy",
|
|
3679
|
+
ref: refScrollYVirtualElem,
|
|
3680
|
+
class: "vxe-gantt-view--scroll-y-virtual"
|
|
3681
|
+
},
|
|
3682
|
+
[
|
|
3647
3683
|
h5("div", {
|
|
3648
|
-
ref:
|
|
3649
|
-
class: "vxe-gantt-view--scroll-y-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3684
|
+
ref: refScrollYTopCornerElem,
|
|
3685
|
+
class: "vxe-gantt-view--scroll-y-top-corner"
|
|
3686
|
+
}),
|
|
3687
|
+
h5(
|
|
3688
|
+
"div",
|
|
3689
|
+
{
|
|
3690
|
+
ref: refScrollYWrapperElem,
|
|
3691
|
+
class: "vxe-gantt-view--scroll-y-wrapper"
|
|
3692
|
+
},
|
|
3693
|
+
[
|
|
3694
|
+
h5(
|
|
3695
|
+
"div",
|
|
3696
|
+
{
|
|
3697
|
+
ref: refScrollYHandleElem,
|
|
3698
|
+
class: "vxe-gantt-view--scroll-y-handle",
|
|
3699
|
+
onScroll: $xeGanttView.triggerVirtualScrollYEvent
|
|
3700
|
+
},
|
|
3701
|
+
[
|
|
3702
|
+
h5("div", {
|
|
3703
|
+
ref: refScrollYSpaceElem,
|
|
3704
|
+
class: "vxe-gantt-view--scroll-y-space"
|
|
3705
|
+
})
|
|
3706
|
+
]
|
|
3707
|
+
),
|
|
3708
|
+
h5("div", {
|
|
3709
|
+
class: "vxe-gantt-view--scroll-y-handle-appearance"
|
|
3710
|
+
})
|
|
3711
|
+
]
|
|
3712
|
+
),
|
|
3657
3713
|
h5("div", {
|
|
3658
|
-
|
|
3714
|
+
ref: refScrollYBottomCornerElem,
|
|
3715
|
+
class: "vxe-gantt-view--scroll-y-bottom-corner"
|
|
3659
3716
|
})
|
|
3660
|
-
]
|
|
3661
|
-
|
|
3662
|
-
ref: refScrollYBottomCornerElem,
|
|
3663
|
-
class: "vxe-gantt-view--scroll-y-bottom-corner"
|
|
3664
|
-
})
|
|
3665
|
-
]);
|
|
3717
|
+
]
|
|
3718
|
+
);
|
|
3666
3719
|
};
|
|
3667
3720
|
const renderViewport = () => {
|
|
3668
|
-
return h5(
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
h5(gantt_footer_default)
|
|
3675
|
-
|
|
3721
|
+
return h5(
|
|
3722
|
+
"div",
|
|
3723
|
+
{
|
|
3724
|
+
key: "tvw",
|
|
3725
|
+
class: "vxe-gantt-view--viewport-wrapper"
|
|
3726
|
+
},
|
|
3727
|
+
[h5(gantt_header_default), h5(gantt_body_default), h5(gantt_footer_default)]
|
|
3728
|
+
);
|
|
3676
3729
|
};
|
|
3677
3730
|
const renderNativeBody = () => {
|
|
3678
3731
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
3679
|
-
return h5(
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
renderScrollY()
|
|
3688
|
-
]);
|
|
3732
|
+
return h5(
|
|
3733
|
+
"div",
|
|
3734
|
+
{
|
|
3735
|
+
key: "lnb",
|
|
3736
|
+
class: "vxe-gantt-view--layout-wrapper"
|
|
3737
|
+
},
|
|
3738
|
+
scrollbarYToLeft ? [renderScrollY(), renderViewport()] : [renderViewport(), renderScrollY()]
|
|
3739
|
+
);
|
|
3689
3740
|
};
|
|
3690
3741
|
const renderVirtualBody = () => {
|
|
3691
3742
|
const { showLeftView } = ganttReactData;
|
|
@@ -3699,89 +3750,115 @@ var gantt_view_default = defineVxeComponent({
|
|
|
3699
3750
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
3700
3751
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
3701
3752
|
const scrollbarWrapperClss = computeScrollbarWrapperClss.value;
|
|
3702
|
-
return h5(
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
"
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3753
|
+
return h5(
|
|
3754
|
+
"div",
|
|
3755
|
+
{
|
|
3756
|
+
key: "lvb",
|
|
3757
|
+
class: [
|
|
3758
|
+
"vxe-gantt--layout-wrapper",
|
|
3759
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
3760
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
3761
|
+
{
|
|
3762
|
+
"is--virtual-scrollbar": isVScrollbar,
|
|
3763
|
+
"ov-padding": isVScrollbar && scrollbarOpts.padding,
|
|
3764
|
+
"ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
|
|
3765
|
+
"ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
|
|
3766
|
+
"overflow-y": yThumbHeight,
|
|
3767
|
+
"overflow-x": xThumbWidth
|
|
3768
|
+
}
|
|
3769
|
+
]
|
|
3770
|
+
},
|
|
3771
|
+
[
|
|
3772
|
+
renderViewport(),
|
|
3773
|
+
h5(
|
|
3774
|
+
"div",
|
|
3775
|
+
{
|
|
3776
|
+
class: scrollbarWrapperClss
|
|
3777
|
+
},
|
|
3778
|
+
[
|
|
3779
|
+
scrollXVisible === false ? renderEmptyElement2($xeGantt) : h5(
|
|
3780
|
+
"div",
|
|
3781
|
+
{
|
|
3782
|
+
ref: refTrackXElem,
|
|
3783
|
+
class: "vxe-scrollbar--track-x",
|
|
3784
|
+
onClick: clickTrackXEvent
|
|
3785
|
+
},
|
|
3786
|
+
[
|
|
3787
|
+
h5("div", {
|
|
3788
|
+
ref: refThumbXElem,
|
|
3789
|
+
class: "vxe-scrollbar--thumb-x",
|
|
3790
|
+
onPointerdown: pointerdownThumbXEvent,
|
|
3791
|
+
onPointermove: pointermoveThumbXEvent,
|
|
3792
|
+
onPointerup: cleatPointerThumbEvent,
|
|
3793
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
3794
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
3795
|
+
})
|
|
3796
|
+
]
|
|
3797
|
+
),
|
|
3798
|
+
scrollbarYToLeft && showLeftView || scrollYVisible === false ? renderEmptyElement2($xeGantt) : h5(
|
|
3799
|
+
"div",
|
|
3800
|
+
{
|
|
3801
|
+
ref: refTrackYElem,
|
|
3802
|
+
class: "vxe-scrollbar--track-y",
|
|
3803
|
+
onClick: clickTrackYEvent
|
|
3804
|
+
},
|
|
3805
|
+
[
|
|
3806
|
+
h5("div", {
|
|
3807
|
+
ref: refThumbYElem,
|
|
3808
|
+
class: "vxe-scrollbar--thumb-y",
|
|
3809
|
+
onPointerdown: pointerdownThumbYEvent,
|
|
3810
|
+
onPointermove: pointermoveThumbYEvent,
|
|
3811
|
+
onPointerup: cleatPointerThumbEvent,
|
|
3812
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
3813
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
3814
|
+
})
|
|
3815
|
+
]
|
|
3816
|
+
)
|
|
3817
|
+
]
|
|
3818
|
+
)
|
|
3819
|
+
]
|
|
3820
|
+
);
|
|
3749
3821
|
};
|
|
3750
3822
|
const renderVN = () => {
|
|
3751
3823
|
const { overflowX, overflowY, scrollXLoad, scrollYLoad } = reactData;
|
|
3752
3824
|
const isVScrollbar = computeGanttIsVScrollbar.value;
|
|
3753
3825
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
3754
|
-
return h5(
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
class: "vxe-gantt-view--render-wrapper"
|
|
3767
|
-
},
|
|
3768
|
-
isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [
|
|
3769
|
-
renderScrollX(),
|
|
3770
|
-
renderNativeBody()
|
|
3771
|
-
] : [
|
|
3772
|
-
renderNativeBody(),
|
|
3773
|
-
renderScrollX()
|
|
3826
|
+
return h5(
|
|
3827
|
+
"div",
|
|
3828
|
+
{
|
|
3829
|
+
ref: refElem,
|
|
3830
|
+
class: [
|
|
3831
|
+
"vxe-gantt-view",
|
|
3832
|
+
{
|
|
3833
|
+
"is--scroll-y": overflowY,
|
|
3834
|
+
"is--scroll-x": overflowX,
|
|
3835
|
+
"is--virtual-x": scrollXLoad,
|
|
3836
|
+
"is--virtual-y": scrollYLoad
|
|
3837
|
+
}
|
|
3774
3838
|
]
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3839
|
+
},
|
|
3840
|
+
[
|
|
3841
|
+
h5(
|
|
3842
|
+
"div",
|
|
3843
|
+
{
|
|
3844
|
+
class: "vxe-gantt-view--render-wrapper"
|
|
3845
|
+
},
|
|
3846
|
+
isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [renderScrollX(), renderNativeBody()] : [renderNativeBody(), renderScrollX()]
|
|
3847
|
+
),
|
|
3848
|
+
h5(
|
|
3849
|
+
"div",
|
|
3850
|
+
{
|
|
3851
|
+
class: "vxe-gantt-view--render-vars"
|
|
3852
|
+
},
|
|
3853
|
+
[
|
|
3854
|
+
h5("div", {
|
|
3855
|
+
ref: refColInfoElem,
|
|
3856
|
+
class: "vxe-gantt-view--column-info"
|
|
3857
|
+
})
|
|
3858
|
+
]
|
|
3859
|
+
)
|
|
3860
|
+
]
|
|
3861
|
+
);
|
|
3785
3862
|
};
|
|
3786
3863
|
const reScrollFlag = ref5(0);
|
|
3787
3864
|
watch(computeGanttIsVScrollbar, () => {
|
|
@@ -3847,10 +3924,180 @@ var gantt_view_default = defineVxeComponent({
|
|
|
3847
3924
|
// packages_temp/gantt/src/gantt.ts
|
|
3848
3925
|
import { VxeTable as VxeTableComponent } from "vxe-table";
|
|
3849
3926
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("gantt");
|
|
3850
|
-
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } =
|
|
3927
|
+
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } = VxeUI7;
|
|
3851
3928
|
var tableProps = VxeTableComponent.props;
|
|
3852
3929
|
var tableComponentPropKeys = Object.keys(tableProps);
|
|
3853
|
-
var tableComponentMethodKeys = [
|
|
3930
|
+
var tableComponentMethodKeys = [
|
|
3931
|
+
"clearAll",
|
|
3932
|
+
"syncData",
|
|
3933
|
+
"updateData",
|
|
3934
|
+
"loadData",
|
|
3935
|
+
"reloadData",
|
|
3936
|
+
"reloadRow",
|
|
3937
|
+
"loadColumn",
|
|
3938
|
+
"reloadColumn",
|
|
3939
|
+
"getRowNode",
|
|
3940
|
+
"getColumnNode",
|
|
3941
|
+
"getRowIndex",
|
|
3942
|
+
"getVTRowIndex",
|
|
3943
|
+
"getVMRowIndex",
|
|
3944
|
+
"getColumnIndex",
|
|
3945
|
+
"getVTColumnIndex",
|
|
3946
|
+
"getVMColumnIndex",
|
|
3947
|
+
"setRow",
|
|
3948
|
+
"createData",
|
|
3949
|
+
"createRow",
|
|
3950
|
+
"revertData",
|
|
3951
|
+
"clearData",
|
|
3952
|
+
"isRemoveByRow",
|
|
3953
|
+
"isInsertByRow",
|
|
3954
|
+
"isUpdateByRow",
|
|
3955
|
+
"getColumns",
|
|
3956
|
+
"getColumnById",
|
|
3957
|
+
"getColumnByField",
|
|
3958
|
+
"getTableColumn",
|
|
3959
|
+
"getFullColumns",
|
|
3960
|
+
"getData",
|
|
3961
|
+
"getCheckboxRecords",
|
|
3962
|
+
"getParentRow",
|
|
3963
|
+
"getTreeRowChildren",
|
|
3964
|
+
"getTreeRowLevel",
|
|
3965
|
+
"getTreeParentRow",
|
|
3966
|
+
"getRowSeq",
|
|
3967
|
+
"getRowById",
|
|
3968
|
+
"getRowid",
|
|
3969
|
+
"getTableData",
|
|
3970
|
+
"getFullData",
|
|
3971
|
+
"setColumnFixed",
|
|
3972
|
+
"clearColumnFixed",
|
|
3973
|
+
"setColumnWidth",
|
|
3974
|
+
"getColumnWidth",
|
|
3975
|
+
"recalcRowHeight",
|
|
3976
|
+
"setRowHeightConf",
|
|
3977
|
+
"getRowHeightConf",
|
|
3978
|
+
"setRowHeight",
|
|
3979
|
+
"getRowHeight",
|
|
3980
|
+
"hideColumn",
|
|
3981
|
+
"showColumn",
|
|
3982
|
+
"resetColumn",
|
|
3983
|
+
"refreshColumn",
|
|
3984
|
+
"refreshScroll",
|
|
3985
|
+
"recalculate",
|
|
3986
|
+
"closeTooltip",
|
|
3987
|
+
"isAllCheckboxChecked",
|
|
3988
|
+
"isAllCheckboxIndeterminate",
|
|
3989
|
+
"getCheckboxIndeterminateRecords",
|
|
3990
|
+
"setCheckboxRow",
|
|
3991
|
+
"setCheckboxRowKey",
|
|
3992
|
+
"isCheckedByCheckboxRow",
|
|
3993
|
+
"isCheckedByCheckboxRowKey",
|
|
3994
|
+
"isIndeterminateByCheckboxRow",
|
|
3995
|
+
"isIndeterminateByCheckboxRowKey",
|
|
3996
|
+
"toggleCheckboxRow",
|
|
3997
|
+
"setAllCheckboxRow",
|
|
3998
|
+
"getRadioReserveRecord",
|
|
3999
|
+
"clearRadioReserve",
|
|
4000
|
+
"getCheckboxReserveRecords",
|
|
4001
|
+
"clearCheckboxReserve",
|
|
4002
|
+
"toggleAllCheckboxRow",
|
|
4003
|
+
"clearCheckboxRow",
|
|
4004
|
+
"setCurrentRow",
|
|
4005
|
+
"isCheckedByRadioRow",
|
|
4006
|
+
"isCheckedByRadioRowKey",
|
|
4007
|
+
"setRadioRow",
|
|
4008
|
+
"setRadioRowKey",
|
|
4009
|
+
"clearCurrentRow",
|
|
4010
|
+
"clearRadioRow",
|
|
4011
|
+
"getCurrentRecord",
|
|
4012
|
+
"getRadioRecord",
|
|
4013
|
+
"getCurrentColumn",
|
|
4014
|
+
"setCurrentColumn",
|
|
4015
|
+
"clearCurrentColumn",
|
|
4016
|
+
"setPendingRow",
|
|
4017
|
+
"togglePendingRow",
|
|
4018
|
+
"hasPendingByRow",
|
|
4019
|
+
"isPendingByRow",
|
|
4020
|
+
"getPendingRecords",
|
|
4021
|
+
"clearPendingRow",
|
|
4022
|
+
"setFilterByEvent",
|
|
4023
|
+
"sort",
|
|
4024
|
+
"setSort",
|
|
4025
|
+
"setSortByEvent",
|
|
4026
|
+
"clearSort",
|
|
4027
|
+
"clearSortByEvent",
|
|
4028
|
+
"isSort",
|
|
4029
|
+
"getSortColumns",
|
|
4030
|
+
"closeFilter",
|
|
4031
|
+
"isFilter",
|
|
4032
|
+
"clearFilterByEvent",
|
|
4033
|
+
"isActiveFilterByColumn",
|
|
4034
|
+
"isRowExpandLoaded",
|
|
4035
|
+
"clearRowExpandLoaded",
|
|
4036
|
+
"reloadRowExpand",
|
|
4037
|
+
"reloadRowExpand",
|
|
4038
|
+
"toggleRowExpand",
|
|
4039
|
+
"setAllRowExpand",
|
|
4040
|
+
"setRowExpand",
|
|
4041
|
+
"isExpandByRow",
|
|
4042
|
+
"isRowExpandByRow",
|
|
4043
|
+
"clearRowExpand",
|
|
4044
|
+
"clearRowExpandReserve",
|
|
4045
|
+
"getRowExpandRecords",
|
|
4046
|
+
"getTreeExpandRecords",
|
|
4047
|
+
"isTreeExpandLoaded",
|
|
4048
|
+
"clearTreeExpandLoaded",
|
|
4049
|
+
"reloadTreeExpand",
|
|
4050
|
+
"reloadTreeChilds",
|
|
4051
|
+
"toggleTreeExpand",
|
|
4052
|
+
"setAllTreeExpand",
|
|
4053
|
+
"setTreeExpand",
|
|
4054
|
+
"isTreeExpandByRow",
|
|
4055
|
+
"clearTreeExpand",
|
|
4056
|
+
"clearTreeExpandReserve",
|
|
4057
|
+
"getScroll",
|
|
4058
|
+
"scrollTo",
|
|
4059
|
+
"scrollToStartRow",
|
|
4060
|
+
"scrollToEndRow",
|
|
4061
|
+
"scrollToRow",
|
|
4062
|
+
"scrollToStartColumn",
|
|
4063
|
+
"scrollToEndColumn",
|
|
4064
|
+
"scrollToColumn",
|
|
4065
|
+
"clearScroll",
|
|
4066
|
+
"updateFooter",
|
|
4067
|
+
"updateStatus",
|
|
4068
|
+
"setMergeCells",
|
|
4069
|
+
"removeInsertRow",
|
|
4070
|
+
"removeMergeCells",
|
|
4071
|
+
"getMergeCells",
|
|
4072
|
+
"clearMergeCells",
|
|
4073
|
+
"setMergeFooterItems",
|
|
4074
|
+
"removeMergeFooterItems",
|
|
4075
|
+
"getMergeFooterItems",
|
|
4076
|
+
"clearMergeFooterItems",
|
|
4077
|
+
"getCustomStoreData",
|
|
4078
|
+
"setRowGroupExpand",
|
|
4079
|
+
"setRowGroupExpandByField",
|
|
4080
|
+
"setAllRowGroupExpand",
|
|
4081
|
+
"clearRowGroupExpand",
|
|
4082
|
+
"isRowGroupExpandByRow",
|
|
4083
|
+
"isRowGroupRecord",
|
|
4084
|
+
"isAggregateRecord",
|
|
4085
|
+
"isAggregateExpandByRow",
|
|
4086
|
+
"getAggregateContentByRow",
|
|
4087
|
+
"getAggregateRowChildren",
|
|
4088
|
+
"setRowGroups",
|
|
4089
|
+
"clearRowGroups",
|
|
4090
|
+
"openTooltip",
|
|
4091
|
+
"moveColumnTo",
|
|
4092
|
+
"moveRowTo",
|
|
4093
|
+
"getCellLabel",
|
|
4094
|
+
"undo",
|
|
4095
|
+
"redo",
|
|
4096
|
+
"getCellElement",
|
|
4097
|
+
"focus",
|
|
4098
|
+
"blur",
|
|
4099
|
+
"connect"
|
|
4100
|
+
];
|
|
3854
4101
|
var defaultLayouts = [["Form"], ["Toolbar", "Top", "Gantt", "Bottom", "Pager"]];
|
|
3855
4102
|
function createInternalData2() {
|
|
3856
4103
|
return {
|
|
@@ -3977,11 +4224,11 @@ var gantt_default = defineVxeComponent({
|
|
|
3977
4224
|
setup(props, context) {
|
|
3978
4225
|
const { slots, emit } = context;
|
|
3979
4226
|
const xID = XEUtils8.uniqueId();
|
|
3980
|
-
const VxeUIFormComponent =
|
|
3981
|
-
const VxeUIPagerComponent =
|
|
3982
|
-
const VxeTableComponent2 =
|
|
3983
|
-
const VxeToolbarComponent =
|
|
3984
|
-
const VxeUITooltipComponent =
|
|
4227
|
+
const VxeUIFormComponent = VxeUI7.getComponent("VxeForm");
|
|
4228
|
+
const VxeUIPagerComponent = VxeUI7.getComponent("VxePager");
|
|
4229
|
+
const VxeTableComponent2 = VxeUI7.getComponent("VxeTable");
|
|
4230
|
+
const VxeToolbarComponent = VxeUI7.getComponent("VxeToolbar");
|
|
4231
|
+
const VxeUITooltipComponent = VxeUI7.getComponent("VxeTooltip");
|
|
3985
4232
|
const scrollDefaultConf = Object.assign({}, getConfig2().scrollbar);
|
|
3986
4233
|
const { computeSize } = useFns2.useSize(props);
|
|
3987
4234
|
const { computeIsVScrollbar } = useFns2.useVScrollbar(props);
|
|
@@ -4523,8 +4770,8 @@ var gantt_default = defineVxeComponent({
|
|
|
4523
4770
|
$xeGantt.clearCheckboxRow();
|
|
4524
4771
|
} else {
|
|
4525
4772
|
if (isActiveMsg) {
|
|
4526
|
-
if (
|
|
4527
|
-
|
|
4773
|
+
if (VxeUI7.modal) {
|
|
4774
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4528
4775
|
}
|
|
4529
4776
|
}
|
|
4530
4777
|
}
|
|
@@ -4545,16 +4792,16 @@ var gantt_default = defineVxeComponent({
|
|
|
4545
4792
|
const selectRecords = $xeGantt.getCheckboxRecords();
|
|
4546
4793
|
if (isActiveMsg) {
|
|
4547
4794
|
if (selectRecords.length) {
|
|
4548
|
-
if (
|
|
4549
|
-
return
|
|
4795
|
+
if (VxeUI7.modal) {
|
|
4796
|
+
return VxeUI7.modal.confirm({ id: `cfm_${code}`, content: getI18n2(alertKey), escClosable: true }).then((type) => {
|
|
4550
4797
|
if (type === "confirm") {
|
|
4551
4798
|
return callback();
|
|
4552
4799
|
}
|
|
4553
4800
|
});
|
|
4554
4801
|
}
|
|
4555
4802
|
} else {
|
|
4556
|
-
if (
|
|
4557
|
-
|
|
4803
|
+
if (VxeUI7.modal) {
|
|
4804
|
+
VxeUI7.modal.message({ id: `msg_${code}`, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4558
4805
|
}
|
|
4559
4806
|
}
|
|
4560
4807
|
} else {
|
|
@@ -5058,10 +5305,7 @@ var gantt_default = defineVxeComponent({
|
|
|
5058
5305
|
reactData.sortData = sortList;
|
|
5059
5306
|
reactData.filterData = filterList;
|
|
5060
5307
|
reactData.tableLoading = true;
|
|
5061
|
-
return Promise.all([
|
|
5062
|
-
Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)),
|
|
5063
|
-
operPromise
|
|
5064
|
-
]).then(([rest]) => {
|
|
5308
|
+
return Promise.all([Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)), operPromise]).then(([rest]) => {
|
|
5065
5309
|
reactData.tableLoading = false;
|
|
5066
5310
|
if (aqMethod) {
|
|
5067
5311
|
aqMethod({ ...commitParams, response: rest, status: "success" }, ...args);
|
|
@@ -5236,8 +5480,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5236
5480
|
} else {
|
|
5237
5481
|
$xeTable.setPendingRow(removeRecords, false);
|
|
5238
5482
|
if (isRespMsg) {
|
|
5239
|
-
if (
|
|
5240
|
-
|
|
5483
|
+
if (VxeUI7.modal) {
|
|
5484
|
+
VxeUI7.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
5241
5485
|
}
|
|
5242
5486
|
}
|
|
5243
5487
|
if (oldAfterDelete) {
|
|
@@ -5259,8 +5503,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5259
5503
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5260
5504
|
} else {
|
|
5261
5505
|
if (isRespMsg) {
|
|
5262
|
-
if (
|
|
5263
|
-
|
|
5506
|
+
if (VxeUI7.modal) {
|
|
5507
|
+
VxeUI7.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5264
5508
|
}
|
|
5265
5509
|
}
|
|
5266
5510
|
}
|
|
@@ -5281,8 +5525,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5281
5525
|
});
|
|
5282
5526
|
} else {
|
|
5283
5527
|
if (isActiveMsg) {
|
|
5284
|
-
if (
|
|
5285
|
-
|
|
5528
|
+
if (VxeUI7.modal) {
|
|
5529
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
5286
5530
|
}
|
|
5287
5531
|
}
|
|
5288
5532
|
}
|
|
@@ -5334,8 +5578,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5334
5578
|
} else {
|
|
5335
5579
|
$xeTable.clearPendingRow();
|
|
5336
5580
|
if (isRespMsg) {
|
|
5337
|
-
if (
|
|
5338
|
-
|
|
5581
|
+
if (VxeUI7.modal) {
|
|
5582
|
+
VxeUI7.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
5339
5583
|
}
|
|
5340
5584
|
}
|
|
5341
5585
|
if (oldAfterSave) {
|
|
@@ -5357,8 +5601,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5357
5601
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5358
5602
|
} else {
|
|
5359
5603
|
if (isRespMsg) {
|
|
5360
|
-
if (
|
|
5361
|
-
|
|
5604
|
+
if (VxeUI7.modal) {
|
|
5605
|
+
VxeUI7.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5362
5606
|
}
|
|
5363
5607
|
}
|
|
5364
5608
|
}
|
|
@@ -5378,8 +5622,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5378
5622
|
return handleSave();
|
|
5379
5623
|
} else {
|
|
5380
5624
|
if (isActiveMsg) {
|
|
5381
|
-
if (
|
|
5382
|
-
|
|
5625
|
+
if (VxeUI7.modal) {
|
|
5626
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.dataUnchanged"), status: "info" });
|
|
5383
5627
|
}
|
|
5384
5628
|
}
|
|
5385
5629
|
}
|
|
@@ -5431,9 +5675,13 @@ var gantt_default = defineVxeComponent({
|
|
|
5431
5675
|
const { formConfig } = props;
|
|
5432
5676
|
const { items } = formOpts;
|
|
5433
5677
|
const itemList = [];
|
|
5434
|
-
XEUtils8.eachTree(
|
|
5435
|
-
|
|
5436
|
-
|
|
5678
|
+
XEUtils8.eachTree(
|
|
5679
|
+
formConfig && isEnableConf(formOpts) && items ? items : [],
|
|
5680
|
+
(item) => {
|
|
5681
|
+
itemList.push(item);
|
|
5682
|
+
},
|
|
5683
|
+
{ children: "children" }
|
|
5684
|
+
);
|
|
5437
5685
|
return XEUtils8.isUndefined(itemIndex) ? itemList : itemList[itemIndex];
|
|
5438
5686
|
},
|
|
5439
5687
|
getFormFlatItems() {
|
|
@@ -5787,11 +6035,17 @@ var gantt_default = defineVxeComponent({
|
|
|
5787
6035
|
const rowOpts = computeRowOpts.value;
|
|
5788
6036
|
const { row } = params;
|
|
5789
6037
|
if (rowOpts.isCurrent || highlightCurrentRow) {
|
|
5790
|
-
$xeTable.triggerCurrentRowEvent(
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
6038
|
+
$xeTable.triggerCurrentRowEvent(
|
|
6039
|
+
evnt,
|
|
6040
|
+
Object.assign(
|
|
6041
|
+
{
|
|
6042
|
+
$table: $xeTable,
|
|
6043
|
+
rowIndex: $xeTable.getRowIndex(row),
|
|
6044
|
+
$rowIndex: $xeTable.getVMRowIndex(row)
|
|
6045
|
+
},
|
|
6046
|
+
params
|
|
6047
|
+
)
|
|
6048
|
+
);
|
|
5795
6049
|
}
|
|
5796
6050
|
if (radioColumn && radioOpts.trigger === "row") {
|
|
5797
6051
|
$xeTable.triggerRadioRowEvent(evnt, params);
|
|
@@ -5969,6 +6223,7 @@ var gantt_default = defineVxeComponent({
|
|
|
5969
6223
|
if (formOpts.items) {
|
|
5970
6224
|
const formSlots = {};
|
|
5971
6225
|
if (!formOpts.inited) {
|
|
6226
|
+
;
|
|
5972
6227
|
formOpts.inited = true;
|
|
5973
6228
|
const beforeItem = proxyOpts.beforeItem;
|
|
5974
6229
|
if (proxyOpts && beforeItem) {
|
|
@@ -5988,25 +6243,33 @@ var gantt_default = defineVxeComponent({
|
|
|
5988
6243
|
});
|
|
5989
6244
|
if (VxeUIFormComponent) {
|
|
5990
6245
|
slotVNs.push(
|
|
5991
|
-
h6(
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6246
|
+
h6(
|
|
6247
|
+
VxeUIFormComponent,
|
|
6248
|
+
{
|
|
6249
|
+
ref: refForm,
|
|
6250
|
+
...Object.assign({}, formOpts, {
|
|
6251
|
+
data: proxyConfig && isEnableConf(proxyOpts) && proxyOpts.form ? formData : formOpts.data
|
|
6252
|
+
}),
|
|
6253
|
+
onSubmit: submitFormEvent,
|
|
6254
|
+
onReset: resetFormEvent,
|
|
6255
|
+
onSubmitInvalid: submitInvalidEvent,
|
|
6256
|
+
onCollapse: collapseEvent
|
|
6257
|
+
},
|
|
6258
|
+
formSlots
|
|
6259
|
+
)
|
|
6001
6260
|
);
|
|
6002
6261
|
}
|
|
6003
6262
|
}
|
|
6004
6263
|
}
|
|
6005
|
-
return h6(
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6264
|
+
return h6(
|
|
6265
|
+
"div",
|
|
6266
|
+
{
|
|
6267
|
+
ref: refFormWrapper,
|
|
6268
|
+
key: "form",
|
|
6269
|
+
class: "vxe-gantt--form-wrapper"
|
|
6270
|
+
},
|
|
6271
|
+
slotVNs
|
|
6272
|
+
);
|
|
6010
6273
|
}
|
|
6011
6274
|
return renderEmptyElement3($xeGantt);
|
|
6012
6275
|
};
|
|
@@ -6048,47 +6311,67 @@ var gantt_default = defineVxeComponent({
|
|
|
6048
6311
|
}
|
|
6049
6312
|
}
|
|
6050
6313
|
slotVNs.push(
|
|
6051
|
-
h6(
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6314
|
+
h6(
|
|
6315
|
+
VxeToolbarComponent,
|
|
6316
|
+
{
|
|
6317
|
+
ref: refToolbar,
|
|
6318
|
+
...toolbarOpts,
|
|
6319
|
+
slots: void 0
|
|
6320
|
+
},
|
|
6321
|
+
toolbarSlots
|
|
6322
|
+
)
|
|
6056
6323
|
);
|
|
6057
6324
|
}
|
|
6058
|
-
return h6(
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6325
|
+
return h6(
|
|
6326
|
+
"div",
|
|
6327
|
+
{
|
|
6328
|
+
ref: refToolbarWrapper,
|
|
6329
|
+
key: "toolbar",
|
|
6330
|
+
class: "vxe-gantt--toolbar-wrapper"
|
|
6331
|
+
},
|
|
6332
|
+
slotVNs
|
|
6333
|
+
);
|
|
6063
6334
|
}
|
|
6064
6335
|
return renderEmptyElement3($xeGantt);
|
|
6065
6336
|
};
|
|
6066
6337
|
const renderTop = () => {
|
|
6067
6338
|
const topSlot = slots.top;
|
|
6068
6339
|
if (topSlot) {
|
|
6069
|
-
return h6(
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6340
|
+
return h6(
|
|
6341
|
+
"div",
|
|
6342
|
+
{
|
|
6343
|
+
ref: refTopWrapper,
|
|
6344
|
+
key: "top",
|
|
6345
|
+
class: "vxe-gantt--top-wrapper"
|
|
6346
|
+
},
|
|
6347
|
+
topSlot({ $grid: null, $gantt: $xeGantt })
|
|
6348
|
+
);
|
|
6074
6349
|
}
|
|
6075
6350
|
return renderEmptyElement3($xeGantt);
|
|
6076
6351
|
};
|
|
6077
6352
|
const renderTableLeft = () => {
|
|
6078
6353
|
const leftSlot = slots.left;
|
|
6079
6354
|
if (leftSlot) {
|
|
6080
|
-
return h6(
|
|
6081
|
-
|
|
6082
|
-
|
|
6355
|
+
return h6(
|
|
6356
|
+
"div",
|
|
6357
|
+
{
|
|
6358
|
+
class: "vxe-gantt--left-wrapper"
|
|
6359
|
+
},
|
|
6360
|
+
leftSlot({ $grid: null, $gantt: $xeGantt })
|
|
6361
|
+
);
|
|
6083
6362
|
}
|
|
6084
6363
|
return renderEmptyElement3($xeGantt);
|
|
6085
6364
|
};
|
|
6086
6365
|
const renderTableRight = () => {
|
|
6087
6366
|
const rightSlot = slots.right;
|
|
6088
6367
|
if (rightSlot) {
|
|
6089
|
-
return h6(
|
|
6090
|
-
|
|
6091
|
-
|
|
6368
|
+
return h6(
|
|
6369
|
+
"div",
|
|
6370
|
+
{
|
|
6371
|
+
class: "vxe-gantt--right-wrapper"
|
|
6372
|
+
},
|
|
6373
|
+
rightSlot({ $grid: null, $gantt: $xeGantt })
|
|
6374
|
+
);
|
|
6092
6375
|
}
|
|
6093
6376
|
return renderEmptyElement3($xeGantt);
|
|
6094
6377
|
};
|
|
@@ -6136,24 +6419,36 @@ var gantt_default = defineVxeComponent({
|
|
|
6136
6419
|
if (footerTooltipSlot) {
|
|
6137
6420
|
slotObj.footerTooltip = footerTooltipSlot;
|
|
6138
6421
|
}
|
|
6139
|
-
return h6(
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6422
|
+
return h6(
|
|
6423
|
+
"div",
|
|
6424
|
+
{
|
|
6425
|
+
ref: refTableWrapper,
|
|
6426
|
+
class: "vxe-gantt--table-wrapper"
|
|
6427
|
+
},
|
|
6428
|
+
[
|
|
6429
|
+
h6(
|
|
6430
|
+
VxeTableComponent2,
|
|
6431
|
+
{
|
|
6432
|
+
ref: refTable,
|
|
6433
|
+
...tableProps2,
|
|
6434
|
+
...tableOns
|
|
6435
|
+
},
|
|
6436
|
+
slotObj
|
|
6437
|
+
)
|
|
6438
|
+
]
|
|
6439
|
+
);
|
|
6149
6440
|
};
|
|
6150
6441
|
const renderBottom = () => {
|
|
6151
6442
|
if (slots.bottom) {
|
|
6152
|
-
return h6(
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6443
|
+
return h6(
|
|
6444
|
+
"div",
|
|
6445
|
+
{
|
|
6446
|
+
ref: refBottomWrapper,
|
|
6447
|
+
key: "bottom",
|
|
6448
|
+
class: "vxe-gantt--bottom-wrapper"
|
|
6449
|
+
},
|
|
6450
|
+
slots.bottom({ $grid: null, $gantt: $xeGantt })
|
|
6451
|
+
);
|
|
6157
6452
|
}
|
|
6158
6453
|
return renderEmptyElement3($xeGantt);
|
|
6159
6454
|
};
|
|
@@ -6163,30 +6458,42 @@ var gantt_default = defineVxeComponent({
|
|
|
6163
6458
|
const pagerOpts = computePagerOpts.value;
|
|
6164
6459
|
const pagerSlot = slots.pager;
|
|
6165
6460
|
if (pagerConfig && isEnableConf(pagerOpts) || slots.pager) {
|
|
6166
|
-
return h6(
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6461
|
+
return h6(
|
|
6462
|
+
"div",
|
|
6463
|
+
{
|
|
6464
|
+
ref: refPagerWrapper,
|
|
6465
|
+
key: "pager",
|
|
6466
|
+
class: "vxe-gantt--pager-wrapper"
|
|
6467
|
+
},
|
|
6468
|
+
pagerSlot ? pagerSlot({ $grid: null, $gantt: $xeGantt }) : [
|
|
6469
|
+
VxeUIPagerComponent ? h6(
|
|
6470
|
+
VxeUIPagerComponent,
|
|
6471
|
+
{
|
|
6472
|
+
ref: refPager,
|
|
6473
|
+
...pagerOpts,
|
|
6474
|
+
...proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {},
|
|
6475
|
+
onPageChange: pageChangeEvent
|
|
6476
|
+
},
|
|
6477
|
+
getConfigSlot(pagerOpts.slots)
|
|
6478
|
+
) : renderEmptyElement3($xeGantt)
|
|
6479
|
+
]
|
|
6480
|
+
);
|
|
6178
6481
|
}
|
|
6179
6482
|
return renderEmptyElement3($xeGantt);
|
|
6180
6483
|
};
|
|
6181
6484
|
const renderTaskView = () => {
|
|
6182
|
-
return h6(
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6485
|
+
return h6(
|
|
6486
|
+
"div",
|
|
6487
|
+
{
|
|
6488
|
+
ref: refGanttWrapper,
|
|
6489
|
+
class: "vxe-gantt--view-wrapper"
|
|
6490
|
+
},
|
|
6491
|
+
[
|
|
6492
|
+
h6(gantt_view_default, {
|
|
6493
|
+
ref: refGanttView
|
|
6494
|
+
})
|
|
6495
|
+
]
|
|
6496
|
+
);
|
|
6190
6497
|
};
|
|
6191
6498
|
const renderSplitBar = () => {
|
|
6192
6499
|
const { showLeftView, showRightView } = reactData;
|
|
@@ -6200,36 +6507,55 @@ var gantt_default = defineVxeComponent({
|
|
|
6200
6507
|
if (isResize) {
|
|
6201
6508
|
ons.onMousedown = dragSplitEvent;
|
|
6202
6509
|
}
|
|
6203
|
-
return h6(
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6510
|
+
return h6(
|
|
6511
|
+
"div",
|
|
6512
|
+
{
|
|
6513
|
+
class: [
|
|
6514
|
+
"vxe-gantt--view-split-bar",
|
|
6515
|
+
{
|
|
6516
|
+
"is--resize": isResize
|
|
6517
|
+
}
|
|
6518
|
+
]
|
|
6519
|
+
},
|
|
6520
|
+
[
|
|
6521
|
+
h6("div", {
|
|
6522
|
+
class: "vxe-gantt--view-split-bar-handle",
|
|
6523
|
+
...ons
|
|
6524
|
+
}),
|
|
6525
|
+
showCollapseTableButton || showCollapseTaskButton ? h6(
|
|
6526
|
+
"div",
|
|
6527
|
+
{
|
|
6528
|
+
class: "vxe-gantt--view-split-bar-btn-wrapper"
|
|
6529
|
+
},
|
|
6530
|
+
[
|
|
6531
|
+
showCollapseTableButton && showRightView ? h6(
|
|
6532
|
+
"div",
|
|
6533
|
+
{
|
|
6534
|
+
class: ["vxe-gantt--view-split-bar-action-btn", showLeftView ? "is--prev" : "is--next"],
|
|
6535
|
+
onClick: handleSplitLeftViewEvent
|
|
6536
|
+
},
|
|
6537
|
+
[
|
|
6538
|
+
h6("i", {
|
|
6539
|
+
class: showLeftView ? getIcon2().GANTT_VIEW_LEFT_OPEN : getIcon2().GANTT_VIEW_LEFT_CLOSE
|
|
6540
|
+
})
|
|
6541
|
+
]
|
|
6542
|
+
) : renderEmptyElement3($xeGantt),
|
|
6543
|
+
showCollapseTaskButton && showLeftView ? h6(
|
|
6544
|
+
"div",
|
|
6545
|
+
{
|
|
6546
|
+
class: ["vxe-gantt--view-split-bar-action-btn", showRightView ? "is--next" : "is--prev"],
|
|
6547
|
+
onClick: handleSplitRightViewEvent
|
|
6548
|
+
},
|
|
6549
|
+
[
|
|
6550
|
+
h6("i", {
|
|
6551
|
+
class: showRightView ? getIcon2().GANTT_VIEW_RIGHT_OPEN : getIcon2().GANTT_VIEW_RIGHT_CLOSE
|
|
6552
|
+
})
|
|
6553
|
+
]
|
|
6554
|
+
) : renderEmptyElement3($xeGantt)
|
|
6555
|
+
]
|
|
6556
|
+
) : renderEmptyElement3($xeGantt)
|
|
6557
|
+
]
|
|
6558
|
+
);
|
|
6233
6559
|
};
|
|
6234
6560
|
const renderChildLayout = (layoutKeys) => {
|
|
6235
6561
|
const { showLeftView, showRightView } = reactData;
|
|
@@ -6254,47 +6580,64 @@ var gantt_default = defineVxeComponent({
|
|
|
6254
6580
|
break;
|
|
6255
6581
|
case "Gantt":
|
|
6256
6582
|
childVNs.push(
|
|
6257
|
-
h6(
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
"
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6583
|
+
h6(
|
|
6584
|
+
"div",
|
|
6585
|
+
{
|
|
6586
|
+
ref: refGanttContainerElem,
|
|
6587
|
+
key: "tv",
|
|
6588
|
+
class: [
|
|
6589
|
+
"vxe-gantt--gantt-container",
|
|
6590
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
6591
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
6592
|
+
{
|
|
6593
|
+
"is--virtual-scrollbar": isVScrollbar,
|
|
6594
|
+
"ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
|
|
6595
|
+
"ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
|
|
6596
|
+
"show--left": showLeftView,
|
|
6597
|
+
"hide--left": !showLeftView,
|
|
6598
|
+
"show--right": showRightView,
|
|
6599
|
+
"hide--right": !showRightView,
|
|
6600
|
+
"is--ah-split-btn": autoHideCollapseButton
|
|
6601
|
+
}
|
|
6602
|
+
]
|
|
6603
|
+
},
|
|
6604
|
+
[
|
|
6605
|
+
renderTableLeft(),
|
|
6606
|
+
renderTable(),
|
|
6607
|
+
renderSplitBar(),
|
|
6608
|
+
renderTaskView(),
|
|
6609
|
+
renderTableRight(),
|
|
6283
6610
|
h6("div", {
|
|
6284
|
-
|
|
6285
|
-
},
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
class: "vxe-gantt--resizable-split-
|
|
6291
|
-
}
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6611
|
+
ref: refClassifyWrapperElem
|
|
6612
|
+
}),
|
|
6613
|
+
h6(
|
|
6614
|
+
"div",
|
|
6615
|
+
{
|
|
6616
|
+
ref: refResizableSplitTip,
|
|
6617
|
+
class: "vxe-gantt--resizable-split-tip"
|
|
6618
|
+
},
|
|
6619
|
+
[
|
|
6620
|
+
h6(
|
|
6621
|
+
"div",
|
|
6622
|
+
{
|
|
6623
|
+
class: "vxe-gantt--resizable-split-tip-number"
|
|
6624
|
+
},
|
|
6625
|
+
[
|
|
6626
|
+
h6("div", {
|
|
6627
|
+
class: "vxe-gantt--resizable-split-number-left"
|
|
6628
|
+
}),
|
|
6629
|
+
h6("div", {
|
|
6630
|
+
class: "vxe-gantt--resizable-split-number-right"
|
|
6631
|
+
})
|
|
6632
|
+
]
|
|
6633
|
+
)
|
|
6634
|
+
]
|
|
6635
|
+
),
|
|
6636
|
+
h6("div", {
|
|
6637
|
+
class: "vxe-gantt--border-line"
|
|
6638
|
+
})
|
|
6639
|
+
]
|
|
6640
|
+
)
|
|
6298
6641
|
);
|
|
6299
6642
|
break;
|
|
6300
6643
|
case "Bottom":
|
|
@@ -6319,56 +6662,84 @@ var gantt_default = defineVxeComponent({
|
|
|
6319
6662
|
const asideRightSlot = slots.asideRight || slots["aside-right"];
|
|
6320
6663
|
const taskBarTooltipSlot = slots.taskBarTooltip || slots["task-bar-tooltip"];
|
|
6321
6664
|
return [
|
|
6322
|
-
h6(
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
class: "vxe-gantt--layout-body-
|
|
6333
|
-
},
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6665
|
+
h6(
|
|
6666
|
+
"div",
|
|
6667
|
+
{
|
|
6668
|
+
class: "vxe-gantt--layout-header-wrapper"
|
|
6669
|
+
},
|
|
6670
|
+
renderChildLayout(headKeys)
|
|
6671
|
+
),
|
|
6672
|
+
h6(
|
|
6673
|
+
"div",
|
|
6674
|
+
{
|
|
6675
|
+
class: "vxe-gantt--layout-body-wrapper"
|
|
6676
|
+
},
|
|
6677
|
+
[
|
|
6678
|
+
asideLeftSlot ? h6(
|
|
6679
|
+
"div",
|
|
6680
|
+
{
|
|
6681
|
+
class: "vxe-gantt--layout-aside-left-wrapper"
|
|
6682
|
+
},
|
|
6683
|
+
asideLeftSlot({})
|
|
6684
|
+
) : renderEmptyElement3($xeGantt),
|
|
6685
|
+
h6(
|
|
6686
|
+
"div",
|
|
6687
|
+
{
|
|
6688
|
+
class: "vxe-gantt--layout-body-content-wrapper"
|
|
6689
|
+
},
|
|
6690
|
+
renderChildLayout(bodyKeys)
|
|
6691
|
+
),
|
|
6692
|
+
asideRightSlot ? h6(
|
|
6693
|
+
"div",
|
|
6694
|
+
{
|
|
6695
|
+
class: "vxe-gantt--layout-aside-right-wrapper"
|
|
6696
|
+
},
|
|
6697
|
+
asideRightSlot({})
|
|
6698
|
+
) : renderEmptyElement3($xeGantt)
|
|
6699
|
+
]
|
|
6700
|
+
),
|
|
6701
|
+
h6(
|
|
6702
|
+
"div",
|
|
6703
|
+
{
|
|
6704
|
+
class: "vxe-gantt--layout-footer-wrapper"
|
|
6705
|
+
},
|
|
6706
|
+
renderChildLayout(footKeys)
|
|
6707
|
+
),
|
|
6341
6708
|
h6("div", {
|
|
6342
6709
|
ref: refPopupContainerElem
|
|
6343
6710
|
}),
|
|
6344
6711
|
h6("div", {}, [
|
|
6345
6712
|
/**
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
h6(
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6713
|
+
* 任务条提示
|
|
6714
|
+
*/
|
|
6715
|
+
h6(
|
|
6716
|
+
VxeUITooltipComponent,
|
|
6717
|
+
{
|
|
6718
|
+
key: "gtp",
|
|
6719
|
+
ref: refTooltip,
|
|
6720
|
+
theme: taskBarTooltipOpts.theme,
|
|
6721
|
+
enterable: taskBarTooltipOpts.enterable,
|
|
6722
|
+
enterDelay: taskBarTooltipOpts.enterDelay,
|
|
6723
|
+
leaveDelay: taskBarTooltipOpts.leaveDelay,
|
|
6724
|
+
useHtml: XEUtils8.isBoolean(taskBarTooltipOpts.useHtml) ? taskBarTooltipOpts.useHtml : taskBarTooltipOpts.useHTML,
|
|
6725
|
+
width: taskBarTooltipOpts.width,
|
|
6726
|
+
height: taskBarTooltipOpts.height,
|
|
6727
|
+
minWidth: taskBarTooltipOpts.minWidth,
|
|
6728
|
+
minHeight: taskBarTooltipOpts.minHeight,
|
|
6729
|
+
maxWidth: taskBarTooltipOpts.maxWidth,
|
|
6730
|
+
maxHeight: taskBarTooltipOpts.maxHeight,
|
|
6731
|
+
isArrow: false
|
|
6732
|
+
},
|
|
6733
|
+
taskBarTooltipSlot ? {
|
|
6734
|
+
content: () => {
|
|
6735
|
+
const { row, content: tooltipContent } = barTipStore;
|
|
6736
|
+
if (row) {
|
|
6737
|
+
return h6("div", {}, taskBarTooltipSlot(Object.assign({ tooltipContent, $gantt: $xeGantt }, barTipStore.params)));
|
|
6738
|
+
}
|
|
6739
|
+
return renderEmptyElement3($xeGantt);
|
|
6368
6740
|
}
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
} : {})
|
|
6741
|
+
} : {}
|
|
6742
|
+
)
|
|
6372
6743
|
])
|
|
6373
6744
|
];
|
|
6374
6745
|
};
|
|
@@ -6382,39 +6753,58 @@ var gantt_default = defineVxeComponent({
|
|
|
6382
6753
|
const tableBorder = computeTableBorder.value;
|
|
6383
6754
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
6384
6755
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
6385
|
-
return h6(
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6756
|
+
return h6(
|
|
6757
|
+
"div",
|
|
6758
|
+
{
|
|
6759
|
+
ref: refElem,
|
|
6760
|
+
class: [
|
|
6761
|
+
"vxe-gantt",
|
|
6762
|
+
`border--${tableBorder}`,
|
|
6763
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
6764
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
6765
|
+
{
|
|
6766
|
+
[`size--${vSize}`]: vSize,
|
|
6767
|
+
"is--virtual-scrollbar": isVScrollbar,
|
|
6768
|
+
"is--round": props.round,
|
|
6769
|
+
"show--animat": taskSplitOpts.animation,
|
|
6770
|
+
"is--maximize": reactData.isZMax,
|
|
6771
|
+
"is--loading": isLoading,
|
|
6772
|
+
"is--animat": showSplitAnimat,
|
|
6773
|
+
"show--left": showLeftView,
|
|
6774
|
+
"hide--left": !showLeftView,
|
|
6775
|
+
"show--right": showRightView,
|
|
6776
|
+
"hide--right": !showRightView,
|
|
6777
|
+
"is--scroll-y": overflowY,
|
|
6778
|
+
"is--scroll-x": overflowX
|
|
6779
|
+
}
|
|
6780
|
+
],
|
|
6781
|
+
style: wrapperStyle
|
|
6782
|
+
},
|
|
6783
|
+
renderLayout()
|
|
6784
|
+
);
|
|
6404
6785
|
};
|
|
6405
6786
|
const columnFlag = ref6(0);
|
|
6406
|
-
watch2(
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6787
|
+
watch2(
|
|
6788
|
+
() => props.columns ? props.columns.length : -1,
|
|
6789
|
+
() => {
|
|
6790
|
+
columnFlag.value++;
|
|
6791
|
+
}
|
|
6792
|
+
);
|
|
6793
|
+
watch2(
|
|
6794
|
+
() => props.columns,
|
|
6795
|
+
() => {
|
|
6796
|
+
columnFlag.value++;
|
|
6797
|
+
}
|
|
6798
|
+
);
|
|
6412
6799
|
watch2(columnFlag, () => {
|
|
6413
6800
|
nextTick2(() => $xeGantt.loadColumn(props.columns || []));
|
|
6414
6801
|
});
|
|
6415
|
-
watch2(
|
|
6416
|
-
|
|
6417
|
-
|
|
6802
|
+
watch2(
|
|
6803
|
+
() => props.toolbarConfig,
|
|
6804
|
+
() => {
|
|
6805
|
+
initToolbar();
|
|
6806
|
+
}
|
|
6807
|
+
);
|
|
6418
6808
|
watch2(computeCustomCurrentPageFlag, () => {
|
|
6419
6809
|
initPages("currentPage");
|
|
6420
6810
|
});
|
|
@@ -6424,9 +6814,12 @@ var gantt_default = defineVxeComponent({
|
|
|
6424
6814
|
watch2(computeCustomTotalFlag, () => {
|
|
6425
6815
|
initPages("total");
|
|
6426
6816
|
});
|
|
6427
|
-
watch2(
|
|
6428
|
-
|
|
6429
|
-
|
|
6817
|
+
watch2(
|
|
6818
|
+
() => props.proxyConfig,
|
|
6819
|
+
() => {
|
|
6820
|
+
initProxy();
|
|
6821
|
+
}
|
|
6822
|
+
);
|
|
6430
6823
|
const reViewFlag = ref6(0);
|
|
6431
6824
|
watch2(computeTaskViewScales, () => {
|
|
6432
6825
|
handleTaskScaleConfig();
|
|
@@ -6540,18 +6933,142 @@ var VxeGantt = Object.assign({}, gantt_default, {
|
|
|
6540
6933
|
app.component(gantt_default.name, gantt_default);
|
|
6541
6934
|
}
|
|
6542
6935
|
});
|
|
6543
|
-
if (
|
|
6544
|
-
|
|
6936
|
+
if (VxeUI8.dynamicApp) {
|
|
6937
|
+
VxeUI8.dynamicApp.use(VxeGantt);
|
|
6545
6938
|
}
|
|
6546
|
-
|
|
6939
|
+
VxeUI8.component(gantt_default);
|
|
6547
6940
|
var Gantt = VxeGantt;
|
|
6548
6941
|
var gantt_default2 = VxeGantt;
|
|
6549
6942
|
|
|
6943
|
+
// packages_temp/ui/index.ts
|
|
6944
|
+
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
6945
|
+
var { setConfig, setIcon } = VxeUI9;
|
|
6946
|
+
VxeUI9.ganttVersion = "4.9.6";
|
|
6947
|
+
var ymdFormat = "yyyy-MM-dd";
|
|
6948
|
+
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
6949
|
+
setConfig({
|
|
6950
|
+
gantt: {
|
|
6951
|
+
// size: null,
|
|
6952
|
+
// zoomConfig: {
|
|
6953
|
+
// escRestore: true
|
|
6954
|
+
// },
|
|
6955
|
+
formConfig: {
|
|
6956
|
+
enabled: true
|
|
6957
|
+
},
|
|
6958
|
+
pagerConfig: {
|
|
6959
|
+
enabled: true
|
|
6960
|
+
// perfect: false
|
|
6961
|
+
},
|
|
6962
|
+
toolbarConfig: {
|
|
6963
|
+
enabled: true
|
|
6964
|
+
// perfect: false
|
|
6965
|
+
},
|
|
6966
|
+
proxyConfig: {
|
|
6967
|
+
enabled: true,
|
|
6968
|
+
autoLoad: true,
|
|
6969
|
+
showLoading: true,
|
|
6970
|
+
showResponseMsg: true,
|
|
6971
|
+
showActionMsg: true,
|
|
6972
|
+
response: {
|
|
6973
|
+
list: null,
|
|
6974
|
+
result: "result",
|
|
6975
|
+
total: "page.total",
|
|
6976
|
+
message: "message"
|
|
6977
|
+
}
|
|
6978
|
+
// beforeItem: null,
|
|
6979
|
+
// beforeColumn: null,
|
|
6980
|
+
// beforeQuery: null,
|
|
6981
|
+
// afterQuery: null,
|
|
6982
|
+
// beforeDelete: null,
|
|
6983
|
+
// afterDelete: null,
|
|
6984
|
+
// beforeSave: null,
|
|
6985
|
+
// afterSave: null
|
|
6986
|
+
},
|
|
6987
|
+
taskBarTooltipConfig: {
|
|
6988
|
+
enterable: true
|
|
6989
|
+
},
|
|
6990
|
+
taskLinkConfig: {
|
|
6991
|
+
enabled: true,
|
|
6992
|
+
isHover: true,
|
|
6993
|
+
showArrow: true
|
|
6994
|
+
},
|
|
6995
|
+
taskViewScaleConfig: {
|
|
6996
|
+
year: {
|
|
6997
|
+
valueFormat: ymdFormat
|
|
6998
|
+
},
|
|
6999
|
+
quarter: {
|
|
7000
|
+
valueFormat: ymdFormat
|
|
7001
|
+
},
|
|
7002
|
+
month: {
|
|
7003
|
+
valueFormat: ymdFormat
|
|
7004
|
+
},
|
|
7005
|
+
week: {
|
|
7006
|
+
startDay: 1,
|
|
7007
|
+
valueFormat: ymdFormat
|
|
7008
|
+
},
|
|
7009
|
+
day: {
|
|
7010
|
+
valueFormat: ymdFormat
|
|
7011
|
+
},
|
|
7012
|
+
date: {
|
|
7013
|
+
valueFormat: ymdFormat
|
|
7014
|
+
},
|
|
7015
|
+
hour: {
|
|
7016
|
+
valueFormat: ymdhmsFormat
|
|
7017
|
+
},
|
|
7018
|
+
minute: {
|
|
7019
|
+
valueFormat: ymdhmsFormat
|
|
7020
|
+
},
|
|
7021
|
+
second: {
|
|
7022
|
+
valueFormat: ymdhmsFormat
|
|
7023
|
+
}
|
|
7024
|
+
},
|
|
7025
|
+
taskViewConfig: {
|
|
7026
|
+
showNowLine: true,
|
|
7027
|
+
gridding: {
|
|
7028
|
+
leftSpacing: 1,
|
|
7029
|
+
rightSpacing: 1
|
|
7030
|
+
}
|
|
7031
|
+
},
|
|
7032
|
+
taskSplitConfig: {
|
|
7033
|
+
enabled: true,
|
|
7034
|
+
resize: true,
|
|
7035
|
+
autoHideCollapseButton: true,
|
|
7036
|
+
showCollapseTableButton: true,
|
|
7037
|
+
showCollapseTaskButton: true
|
|
7038
|
+
},
|
|
7039
|
+
taskBarSubviewConfig: {
|
|
7040
|
+
// showOverview: false
|
|
7041
|
+
},
|
|
7042
|
+
taskBarMoveConfig: {
|
|
7043
|
+
isLimitByLink: true
|
|
7044
|
+
},
|
|
7045
|
+
taskBarResizeConfig: {
|
|
7046
|
+
minWidthSize: 0.5,
|
|
7047
|
+
isLimitByLink: true
|
|
7048
|
+
},
|
|
7049
|
+
taskBarMoveTooltipConfig: {
|
|
7050
|
+
enterable: true,
|
|
7051
|
+
enterDelay: 0
|
|
7052
|
+
},
|
|
7053
|
+
taskBarResizeTooltipConfig: {
|
|
7054
|
+
enterable: true,
|
|
7055
|
+
enterDelay: 0
|
|
7056
|
+
}
|
|
7057
|
+
}
|
|
7058
|
+
});
|
|
7059
|
+
var iconPrefix = "vxe-icon-";
|
|
7060
|
+
setIcon({
|
|
7061
|
+
// gantt
|
|
7062
|
+
GANTT_VIEW_LEFT_OPEN: iconPrefix + "arrow-left",
|
|
7063
|
+
GANTT_VIEW_LEFT_CLOSE: iconPrefix + "arrow-right",
|
|
7064
|
+
GANTT_VIEW_RIGHT_OPEN: iconPrefix + "arrow-right",
|
|
7065
|
+
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + "arrow-left",
|
|
7066
|
+
GANTT_VIEW_TASK_MILESTONE: iconPrefix + "square-fill rotate45"
|
|
7067
|
+
});
|
|
7068
|
+
|
|
6550
7069
|
// packages_temp/components.ts
|
|
6551
|
-
var { setConfig: setConfig2 } =
|
|
6552
|
-
var components = [
|
|
6553
|
-
gantt_default2
|
|
6554
|
-
];
|
|
7070
|
+
var { setConfig: setConfig2 } = VxeUI10;
|
|
7071
|
+
var components = [gantt_default2];
|
|
6555
7072
|
function install(app, options) {
|
|
6556
7073
|
setConfig2(options);
|
|
6557
7074
|
components.forEach((component) => app.use(component));
|
|
@@ -6564,7 +7081,7 @@ export {
|
|
|
6564
7081
|
VxeGantt,
|
|
6565
7082
|
VxeGanttDependencyType,
|
|
6566
7083
|
VxeGanttTaskType,
|
|
6567
|
-
|
|
7084
|
+
VxeUI10 as VxeUI,
|
|
6568
7085
|
index_default as default,
|
|
6569
7086
|
install
|
|
6570
7087
|
};
|