vxe-gantt 4.9.3 → 4.9.4

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.
Files changed (48) hide show
  1. package/dist/all.esm.js +1398 -881
  2. package/es/components.js +1 -3
  3. package/es/gantt/src/gantt-body.js +100 -76
  4. package/es/gantt/src/gantt-chart.js +363 -239
  5. package/es/gantt/src/gantt-footer.js +16 -12
  6. package/es/gantt/src/gantt-header.js +135 -104
  7. package/es/gantt/src/gantt-view.js +235 -201
  8. package/es/gantt/src/gantt.js +545 -229
  9. package/es/gantt/src/grid-emits.js +1 -15
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/ui/src/utils.d.ts +1 -1
  13. package/lib/components.js +1 -3
  14. package/lib/gantt/src/gantt-body.js +100 -76
  15. package/lib/gantt/src/gantt-chart.js +363 -239
  16. package/lib/gantt/src/gantt-footer.js +16 -12
  17. package/lib/gantt/src/gantt-header.js +135 -104
  18. package/lib/gantt/src/gantt-view.js +235 -201
  19. package/lib/gantt/src/gantt.js +545 -229
  20. package/lib/gantt/src/grid-emits.js +1 -15
  21. package/lib/index.umd.js +1398 -881
  22. package/lib/index.umd.min.js +1 -1
  23. package/lib/ui/index.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/package.json +7 -1
  26. package/packages/components.ts +20 -22
  27. package/packages/gantt/index.ts +21 -21
  28. package/packages/gantt/src/emits.ts +25 -25
  29. package/packages/gantt/src/gantt-body.ts +317 -293
  30. package/packages/gantt/src/gantt-chart.ts +655 -531
  31. package/packages/gantt/src/gantt-footer.ts +55 -51
  32. package/packages/gantt/src/gantt-header.ts +193 -162
  33. package/packages/gantt/src/gantt-view.ts +2695 -2663
  34. package/packages/gantt/src/gantt.ts +3317 -2982
  35. package/packages/gantt/src/grid-emits.ts +5 -19
  36. package/packages/gantt/src/static.ts +35 -35
  37. package/packages/gantt/src/table-emits.ts +134 -134
  38. package/packages/gantt/src/util.ts +45 -45
  39. package/packages/index.ts +4 -4
  40. package/packages/ui/index.ts +133 -135
  41. package/packages/ui/src/comp.ts +3 -3
  42. package/packages/ui/src/depend.ts +14 -14
  43. package/packages/ui/src/dom.ts +202 -202
  44. package/packages/ui/src/log.ts +19 -19
  45. package/packages/ui/src/utils.ts +80 -80
  46. package/packages/ui/src/vn.ts +9 -9
  47. package/types/all.d.ts +33 -33
  48. package/types/index.d.ts +4 -4
package/dist/all.esm.js CHANGED
@@ -18,7 +18,7 @@ __export(components_exports, {
18
18
  // packages_temp/ui/index.ts
19
19
  import { VxeUI } from "@vxe-ui/core";
20
20
  var { setConfig, setIcon } = VxeUI;
21
- VxeUI.ganttVersion = "4.9.3";
21
+ VxeUI.ganttVersion = "4.9.4";
22
22
  var ymdFormat = "yyyy-MM-dd";
23
23
  var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
24
24
  setConfig({
@@ -151,7 +151,7 @@ import { VxeUI as VxeUI3 } from "@vxe-ui/core";
151
151
  // packages_temp/ui/src/log.ts
152
152
  import { VxeUI as VxeUI2 } from "@vxe-ui/core";
153
153
  var { log } = VxeUI2;
154
- var ganttVersion = `gantt v${"4.9.3"}`;
154
+ var ganttVersion = `gantt v${"4.9.4"}`;
155
155
  function createComponentLog(name) {
156
156
  const uiVersion = VxeUI2.uiVersion ? `ui v${VxeUI2.uiVersion}` : "";
157
157
  const tableVersion = VxeUI2.tableVersion ? `table v${VxeUI2.tableVersion}` : "";
@@ -430,21 +430,7 @@ var tableEmits = [
430
430
  ];
431
431
 
432
432
  // 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
- ];
433
+ 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
434
 
449
435
  // packages_temp/gantt/src/emits.ts
450
436
  var ganttEmits = [
@@ -547,111 +533,142 @@ var gantt_header_default = defineVxeComponent({
547
533
  const minScale = computeMinScale.value;
548
534
  const scaleStep = computeScaleStep.value;
549
535
  const { showNowLine } = taskViewOpts;
550
- return h("div", {
551
- ref: refElem,
552
- class: "vxe-gantt-view--header-wrapper"
553
- }, [
554
- h("div", {
555
- ref: refHeaderScroll,
556
- class: "vxe-gantt-view--header-inner-wrapper",
557
- onScroll: $xeGanttView.triggerHeaderScrollEvent
558
- }, [
559
- h("div", {
560
- ref: refHeaderXSpace,
561
- class: "vxe-body--x-space"
562
- }),
563
- h("table", {
564
- ref: refHeaderTable,
565
- class: "vxe-gantt-view--header-table"
566
- }, [
567
- h("colgroup", {}, visibleColumn.map((column, cIndex) => {
568
- return h("col", {
569
- key: cIndex,
570
- style: {
571
- width: `${viewCellWidth}px`
572
- }
573
- });
574
- })),
575
- h("thead", {}, headerGroups.map(({ scaleItem, columns }, $rowIndex) => {
576
- const { type, titleFormat, titleMethod, headerCellStyle, slots } = scaleItem;
577
- const titleSlot = slots ? slots.title : null;
578
- const isLast = $rowIndex === headerGroups.length - 1;
579
- const todayValue = isLast && showNowLine ? todayDateMaps[type] : null;
580
- return h("tr", {
581
- key: $rowIndex
582
- }, columns.map((column, cIndex) => {
583
- const { field, childCount, dateObj, startDateObj, endDateObj } = column;
584
- let label = `${column.title}`;
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}`)
536
+ return h(
537
+ "div",
538
+ {
539
+ ref: refElem,
540
+ class: "vxe-gantt-view--header-wrapper"
541
+ },
542
+ [
543
+ h(
544
+ "div",
545
+ {
546
+ ref: refHeaderScroll,
547
+ class: "vxe-gantt-view--header-inner-wrapper",
548
+ onScroll: $xeGanttView.triggerHeaderScrollEvent
549
+ },
550
+ [
551
+ h("div", {
552
+ ref: refHeaderXSpace,
553
+ class: "vxe-body--x-space"
554
+ }),
555
+ h(
556
+ "table",
557
+ {
558
+ ref: refHeaderTable,
559
+ class: "vxe-gantt-view--header-table"
560
+ },
561
+ [
562
+ h(
563
+ "colgroup",
564
+ {},
565
+ visibleColumn.map((column, cIndex) => {
566
+ return h("col", {
567
+ key: cIndex,
568
+ style: {
569
+ width: `${viewCellWidth}px`
570
+ }
601
571
  });
602
- }
603
- } else {
604
- if ($rowIndex) {
605
- label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, dateObj);
606
- } else {
607
- label = getI18n(`vxe.gantt.tFullFormat.${type}`, dateObj);
608
- }
609
- }
610
- }
611
- let cellVNs = label;
612
- const ctParams = {
613
- source: sourceType,
614
- type: viewType,
615
- column,
616
- scaleObj: scaleItem,
617
- title: label,
618
- dateObj,
619
- startDateObj,
620
- endDateObj,
621
- $rowIndex
622
- };
623
- if (titleSlot) {
624
- cellVNs = $xeGantt.callSlot(titleSlot, ctParams);
625
- } else if (titleMethod) {
626
- cellVNs = `${titleMethod(ctParams)}`;
627
- } else if (titleFormat) {
628
- cellVNs = XEUtils4.toDateString(dateObj.date, titleFormat);
629
- }
630
- let cellStys = {};
631
- if (headerCellStyle) {
632
- if (XEUtils4.isFunction(headerCellStyle)) {
633
- cellStys = headerCellStyle(ctParams) || null;
634
- } else {
635
- cellStys = headerCellStyle;
636
- }
637
- }
638
- return h("th", {
639
- key: cIndex,
640
- class: ["vxe-gantt-view--header-column", {
641
- "is--now": showNowLine && todayValue && todayValue === field
642
- }],
643
- colspan: childCount || null,
644
- title: titleSlot ? null : label,
645
- style: cellStys || void 0,
646
- onContextmenu(evnt) {
647
- $xeGantt.handleTaskHeaderContextmenuEvent(evnt, ctParams);
648
- }
649
- }, cellVNs);
650
- }));
651
- }))
652
- ])
653
- ])
654
- ]);
572
+ })
573
+ ),
574
+ h(
575
+ "thead",
576
+ {},
577
+ headerGroups.map(({ scaleItem, columns }, $rowIndex) => {
578
+ const { type, titleFormat, titleMethod, headerCellStyle, slots } = scaleItem;
579
+ const titleSlot = slots ? slots.title : null;
580
+ const isLast = $rowIndex === headerGroups.length - 1;
581
+ const todayValue = isLast && showNowLine ? todayDateMaps[type] : null;
582
+ return h(
583
+ "tr",
584
+ {
585
+ key: $rowIndex
586
+ },
587
+ columns.map((column, cIndex) => {
588
+ const { field, childCount, dateObj, startDateObj, endDateObj } = column;
589
+ let label = `${column.title}`;
590
+ if ((isLast || minScale && (minScale.type === "date" || minScale.type === "day") && (type === "date" || type === "day")) && scaleStep > 1) {
591
+ label = getI18n(`vxe.gantt.stepFormat.${type}`, {
592
+ start: startDateObj,
593
+ end: endDateObj,
594
+ eStartLabel: getI18n(`vxe.gantt.dayss.w${startDateObj.e}`),
595
+ eEndLabel: getI18n(`vxe.gantt.dayss.w${endDateObj.e}`)
596
+ });
597
+ } else {
598
+ if (type === "day") {
599
+ if ($rowIndex) {
600
+ label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, {
601
+ eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
602
+ });
603
+ } else {
604
+ label = getI18n(`vxe.gantt.tFullFormat.${type}`, {
605
+ eLabel: getI18n(`vxe.gantt.dayss.w${dateObj.e}`)
606
+ });
607
+ }
608
+ } else {
609
+ if ($rowIndex) {
610
+ label = getI18n(`vxe.gantt.tSimpleFormat.${type}`, dateObj);
611
+ } else {
612
+ label = getI18n(`vxe.gantt.tFullFormat.${type}`, dateObj);
613
+ }
614
+ }
615
+ }
616
+ let cellVNs = label;
617
+ const ctParams = {
618
+ source: sourceType,
619
+ type: viewType,
620
+ column,
621
+ scaleObj: scaleItem,
622
+ title: label,
623
+ dateObj,
624
+ startDateObj,
625
+ endDateObj,
626
+ $rowIndex
627
+ };
628
+ if (titleSlot) {
629
+ cellVNs = $xeGantt.callSlot(titleSlot, ctParams);
630
+ } else if (titleMethod) {
631
+ cellVNs = `${titleMethod(ctParams)}`;
632
+ } else if (titleFormat) {
633
+ cellVNs = XEUtils4.toDateString(dateObj.date, titleFormat);
634
+ }
635
+ let cellStys = {};
636
+ if (headerCellStyle) {
637
+ if (XEUtils4.isFunction(headerCellStyle)) {
638
+ cellStys = headerCellStyle(ctParams) || null;
639
+ } else {
640
+ cellStys = headerCellStyle;
641
+ }
642
+ }
643
+ return h(
644
+ "th",
645
+ {
646
+ key: cIndex,
647
+ class: [
648
+ "vxe-gantt-view--header-column",
649
+ {
650
+ "is--now": showNowLine && todayValue && todayValue === field
651
+ }
652
+ ],
653
+ colspan: childCount || null,
654
+ title: titleSlot ? null : label,
655
+ style: cellStys || void 0,
656
+ onContextmenu(evnt) {
657
+ $xeGantt.handleTaskHeaderContextmenuEvent(evnt, ctParams);
658
+ }
659
+ },
660
+ cellVNs
661
+ );
662
+ })
663
+ );
664
+ })
665
+ )
666
+ ]
667
+ )
668
+ ]
669
+ )
670
+ ]
671
+ );
655
672
  };
656
673
  onMounted(() => {
657
674
  const { elemStore } = internalData;
@@ -800,242 +817,337 @@ var gantt_chart_default = defineVxeComponent({
800
817
  if (isExpandTree) {
801
818
  if (showOverview) {
802
819
  cbVNs.push(
803
- h2("div", {
804
- key: "vcso",
805
- class: "vxe-gantt-view--chart-subview-wrapper is--overview"
806
- }, [
807
- h2("div", {
808
- key: rowid,
809
- rowid,
810
- class: ["vxe-gantt-view--chart-subview-row", {
811
- "is--progress": showProgress,
812
- "is--round": barRound,
813
- "is--move": moveable
814
- }]
815
- }, [
816
- h2("div", {
817
- rowid,
818
- class: [taskBarOverviewSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${renderTaskType}`]
819
- }, [
820
- taskBarOverviewSlot ? h2("div", {
821
- key: "cbc",
822
- class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper"
823
- }, $xeGantt.callSlot(taskBarOverviewSlot, barParams)) : h2("div", {
824
- class: "vxe-gantt-view--chart-subview-bar-content-wrapper"
825
- }, [
826
- showContent ? h2("div", {
827
- class: "vxe-gantt-view--chart-content"
828
- }, title) : renderEmptyElement($xeGantt)
829
- ])
830
- ])
831
- ])
832
- ])
820
+ h2(
821
+ "div",
822
+ {
823
+ key: "vcso",
824
+ class: "vxe-gantt-view--chart-subview-wrapper is--overview"
825
+ },
826
+ [
827
+ h2(
828
+ "div",
829
+ {
830
+ key: rowid,
831
+ rowid,
832
+ class: [
833
+ "vxe-gantt-view--chart-subview-row",
834
+ {
835
+ "is--progress": showProgress,
836
+ "is--round": barRound,
837
+ "is--move": moveable
838
+ }
839
+ ]
840
+ },
841
+ [
842
+ h2(
843
+ "div",
844
+ {
845
+ rowid,
846
+ class: [taskBarOverviewSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${renderTaskType}`]
847
+ },
848
+ [
849
+ taskBarOverviewSlot ? h2(
850
+ "div",
851
+ {
852
+ key: "cbc",
853
+ class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper"
854
+ },
855
+ $xeGantt.callSlot(taskBarOverviewSlot, barParams)
856
+ ) : h2(
857
+ "div",
858
+ {
859
+ class: "vxe-gantt-view--chart-subview-bar-content-wrapper"
860
+ },
861
+ [
862
+ showContent ? h2(
863
+ "div",
864
+ {
865
+ class: "vxe-gantt-view--chart-content"
866
+ },
867
+ title
868
+ ) : renderEmptyElement($xeGantt)
869
+ ]
870
+ )
871
+ ]
872
+ )
873
+ ]
874
+ )
875
+ ]
876
+ )
833
877
  );
834
878
  }
835
879
  } else {
836
880
  const cbcVNs = [];
837
- XEUtils5.eachTree(rowChildren, (childRow) => {
838
- const childBarParams = {
839
- $gantt: $xeGantt,
840
- source: sourceType2,
841
- type: viewType2,
842
- scaleType: scaleUnit,
843
- row: childRow,
844
- $rowIndex: $xeTable.getRowIndex(childRow),
845
- rowIndex: $xeTable.getVMRowIndex(childRow),
846
- _rowIndex: $xeTable.getVTRowIndex(childRow)
847
- };
848
- const isChildBarRowStyle = XEUtils5.isFunction(subBarStyle);
849
- const childBarStyObj = XEUtils5.assign(
850
- {},
851
- (barStyle ? isBarRowStyle ? barStyle(childBarParams) : barStyle : {}) || {},
852
- (subBarStyle ? isChildBarRowStyle ? subBarStyle(childBarParams) : subBarStyle : {}) || {}
853
- );
854
- const childRound = childBarStyObj.round;
855
- const childBgColor = childBarStyObj.bgColor;
856
- const childCompletedBgColor = childBarStyObj.completedBgColor;
857
- const childBarHtmlStyle = childBarStyObj.style;
858
- const childRowid = $xeTable.getRowid(childRow);
859
- let childTitle = getStringValue(XEUtils5.get(childRow, titleField));
860
- const childProgressValue = showProgress ? Math.min(100, Math.max(0, XEUtils5.toNumber(XEUtils5.get(childRow, progressField)))) : 0;
861
- const childRenderTaskType = getTaskType(XEUtils5.get(childRow, typeField));
862
- const isChildMilestone = !!(hasEnableConf(taskBarMilestoneConfig, taskBarMilestoneOpts) && hasMilestoneTask(childRenderTaskType));
863
- const isChildSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(childRenderTaskType));
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;
881
+ XEUtils5.eachTree(
882
+ rowChildren,
883
+ (childRow) => {
884
+ const childBarParams = {
885
+ $gantt: $xeGantt,
886
+ source: sourceType2,
887
+ type: viewType2,
888
+ scaleType: scaleUnit,
889
+ row: childRow,
890
+ $rowIndex: $xeTable.getRowIndex(childRow),
891
+ rowIndex: $xeTable.getVMRowIndex(childRow),
892
+ _rowIndex: $xeTable.getVTRowIndex(childRow)
893
+ };
894
+ const isChildBarRowStyle = XEUtils5.isFunction(subBarStyle);
895
+ const childBarStyObj = XEUtils5.assign({}, (barStyle ? isBarRowStyle ? barStyle(childBarParams) : barStyle : {}) || {}, (subBarStyle ? isChildBarRowStyle ? subBarStyle(childBarParams) : subBarStyle : {}) || {});
896
+ const childRound = childBarStyObj.round;
897
+ const childBgColor = childBarStyObj.bgColor;
898
+ const childCompletedBgColor = childBarStyObj.completedBgColor;
899
+ const childBarHtmlStyle = childBarStyObj.style;
900
+ const childRowid = $xeTable.getRowid(childRow);
901
+ let childTitle = getStringValue(XEUtils5.get(childRow, titleField));
902
+ const childProgressValue = showProgress ? Math.min(100, Math.max(0, XEUtils5.toNumber(XEUtils5.get(childRow, progressField)))) : 0;
903
+ const childRenderTaskType = getTaskType(XEUtils5.get(childRow, typeField));
904
+ const isChildMilestone = !!(hasEnableConf(taskBarMilestoneConfig, taskBarMilestoneOpts) && hasMilestoneTask(childRenderTaskType));
905
+ const isChildSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(childRenderTaskType));
906
+ if (isChildSubview) {
907
+ return;
874
908
  }
875
- if (childCompletedBgColor) {
876
- childVpStyle["--vxe-ui-gantt-view-task-bar-completed-background-color"] = childCompletedBgColor;
909
+ const childVbStyle = {};
910
+ const childVpStyle = {
911
+ width: `${childProgressValue || 0}%`
912
+ };
913
+ if (!isChildMilestone) {
914
+ if (childBgColor) {
915
+ childVbStyle["--vxe-ui-gantt-view-task-bar-background-color"] = childBgColor;
916
+ }
917
+ if (childCompletedBgColor) {
918
+ childVpStyle["--vxe-ui-gantt-view-task-bar-completed-background-color"] = childCompletedBgColor;
919
+ }
877
920
  }
878
- }
879
- if (childBarStyObj.top) {
880
- childVbStyle.top = childBarStyObj.top;
881
- }
882
- if (childBarHtmlStyle) {
883
- XEUtils5.assign(childVbStyle, childBarHtmlStyle);
884
- }
885
- const childCtParams = { ...childBarParams };
886
- if (contentMethod) {
887
- childTitle = getStringValue(contentMethod({ row: childRow, title: childTitle, scaleType: scaleUnit }));
888
- }
889
- cbcVNs.push(
890
- h2("div", {
891
- key: childRowid,
892
- rowid: childRowid,
893
- class: ["vxe-gantt-view--chart-subview-row", `is--${childRenderTaskType}`, {
894
- "is--progress": showProgress,
895
- "is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(childRowid),
896
- "is--round": childRound,
897
- "is--move": moveable,
898
- "row--pending": !!pendingRowFlag && !!pendingRowMaps[childRowid]
899
- }]
900
- }, [
901
- h2("div", {
902
- rowid: childRowid,
903
- class: [taskBarSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${childRenderTaskType}`],
904
- style: childVbStyle,
905
- onClick(evnt) {
906
- evnt.stopPropagation();
907
- $xeGantt.handleTaskBarClickEvent(evnt, childCtParams);
908
- },
909
- onDblclick(evnt) {
910
- evnt.stopPropagation();
911
- $xeGantt.handleTaskBarDblclickEvent(evnt, childCtParams);
921
+ if (childBarStyObj.top) {
922
+ childVbStyle.top = childBarStyObj.top;
923
+ }
924
+ if (childBarHtmlStyle) {
925
+ XEUtils5.assign(childVbStyle, childBarHtmlStyle);
926
+ }
927
+ const childCtParams = { ...childBarParams };
928
+ if (contentMethod) {
929
+ childTitle = getStringValue(contentMethod({ row: childRow, title: childTitle, scaleType: scaleUnit }));
930
+ }
931
+ cbcVNs.push(
932
+ h2(
933
+ "div",
934
+ {
935
+ key: childRowid,
936
+ rowid: childRowid,
937
+ class: [
938
+ "vxe-gantt-view--chart-subview-row",
939
+ `is--${childRenderTaskType}`,
940
+ {
941
+ "is--progress": showProgress,
942
+ "is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(childRowid),
943
+ "is--round": childRound,
944
+ "is--move": moveable,
945
+ "row--pending": !!pendingRowFlag && !!pendingRowMaps[childRowid]
946
+ }
947
+ ]
912
948
  },
913
- onMousedown(evnt) {
914
- evnt.stopPropagation();
915
- if ($xeGantt.handleTaskBarModnEvent) {
916
- $xeGantt.handleTaskBarModnEvent(evnt, childCtParams);
917
- }
918
- }
919
- }, [
920
- taskBarSlot ? h2("div", {
921
- key: "cbc",
922
- class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper",
923
- ...ctOns
924
- }, $xeGantt.callSlot(taskBarSlot, childCtParams)) : h2("div", {
925
- class: "vxe-gantt-view--chart-subview-bar-content-wrapper",
926
- ...ctOns
927
- }, [
928
- showProgress ? h2("div", {
929
- class: "vxe-gantt-view--chart-progress",
930
- style: childVpStyle
931
- }) : renderEmptyElement($xeGantt),
932
- showContent ? h2("div", {
933
- class: "vxe-gantt-view--chart-content"
934
- }, childTitle) : renderEmptyElement($xeGantt)
935
- ])
936
- ])
937
- ])
938
- );
939
- }, { children: childrenField });
949
+ [
950
+ h2(
951
+ "div",
952
+ {
953
+ rowid: childRowid,
954
+ class: [taskBarSlot ? "vxe-gantt-view--chart-subview-custom-bar" : "vxe-gantt-view--chart-subview-bar", `is--${childRenderTaskType}`],
955
+ style: childVbStyle,
956
+ onClick(evnt) {
957
+ evnt.stopPropagation();
958
+ $xeGantt.handleTaskBarClickEvent(evnt, childCtParams);
959
+ },
960
+ onDblclick(evnt) {
961
+ evnt.stopPropagation();
962
+ $xeGantt.handleTaskBarDblclickEvent(evnt, childCtParams);
963
+ },
964
+ onMousedown(evnt) {
965
+ evnt.stopPropagation();
966
+ if ($xeGantt.handleTaskBarModnEvent) {
967
+ $xeGantt.handleTaskBarModnEvent(evnt, childCtParams);
968
+ }
969
+ }
970
+ },
971
+ [
972
+ taskBarSlot ? h2(
973
+ "div",
974
+ {
975
+ key: "cbc",
976
+ class: "vxe-gantt-view--chart-subview-custom-bar-content-wrapper",
977
+ ...ctOns
978
+ },
979
+ $xeGantt.callSlot(taskBarSlot, childCtParams)
980
+ ) : h2(
981
+ "div",
982
+ {
983
+ class: "vxe-gantt-view--chart-subview-bar-content-wrapper",
984
+ ...ctOns
985
+ },
986
+ [
987
+ showProgress ? h2("div", {
988
+ class: "vxe-gantt-view--chart-progress",
989
+ style: childVpStyle
990
+ }) : renderEmptyElement($xeGantt),
991
+ showContent ? h2(
992
+ "div",
993
+ {
994
+ class: "vxe-gantt-view--chart-content"
995
+ },
996
+ childTitle
997
+ ) : renderEmptyElement($xeGantt)
998
+ ]
999
+ )
1000
+ ]
1001
+ )
1002
+ ]
1003
+ )
1004
+ );
1005
+ },
1006
+ { children: childrenField }
1007
+ );
940
1008
  cbVNs.push(
941
- h2("div", {
942
- key: "vcsc",
943
- class: "vxe-gantt-view--chart-subview-wrapper is--inline"
944
- }, cbcVNs)
1009
+ h2(
1010
+ "div",
1011
+ {
1012
+ key: "vcsc",
1013
+ class: "vxe-gantt-view--chart-subview-wrapper is--inline"
1014
+ },
1015
+ cbcVNs
1016
+ )
945
1017
  );
946
1018
  }
947
1019
  } else {
948
1020
  if (taskBarSlot) {
949
1021
  cbVNs.push(
950
- h2("div", {
951
- key: "cbc",
952
- class: "vxe-gantt-view--chart-custom-bar-content-wrapper",
953
- ...ctOns
954
- }, $xeGantt.callSlot(taskBarSlot, barParams))
1022
+ h2(
1023
+ "div",
1024
+ {
1025
+ key: "cbc",
1026
+ class: "vxe-gantt-view--chart-custom-bar-content-wrapper",
1027
+ ...ctOns
1028
+ },
1029
+ $xeGantt.callSlot(taskBarSlot, barParams)
1030
+ )
955
1031
  );
956
1032
  } else if (isMilestone) {
957
1033
  const { icon, iconStatus, iconStyle } = taskBarMilestoneOpts;
958
1034
  const tbmParams = { $gantt: $xeGantt, row };
959
1035
  cbVNs.push(
960
- h2("div", {
961
- key: "vcm",
962
- class: "vxe-gantt-view--chart-milestone-wrapper",
963
- ...ctOns
964
- }, [
965
- h2("div", {
966
- class: ["vxe-gantt-view--chart-milestone-icon", iconStatus ? `theme--${XEUtils5.isFunction(iconStatus) ? iconStatus(tbmParams) : iconStatus}` : ""],
967
- style: iconStyle ? Object.assign({}, XEUtils5.isFunction(iconStyle) ? iconStyle(tbmParams) : iconStyle) : void 0
968
- }, [
969
- h2("i", {
970
- class: (icon ? XEUtils5.isFunction(icon) ? icon(tbmParams) : icon : "") || getIcon().GANTT_VIEW_TASK_MILESTONE
971
- })
972
- ]),
973
- showContent ? h2("div", {
974
- class: "vxe-gantt-view--chart-milestone-content"
975
- }, title) : renderEmptyElement($xeGantt)
976
- ])
1036
+ h2(
1037
+ "div",
1038
+ {
1039
+ key: "vcm",
1040
+ class: "vxe-gantt-view--chart-milestone-wrapper",
1041
+ ...ctOns
1042
+ },
1043
+ [
1044
+ h2(
1045
+ "div",
1046
+ {
1047
+ class: ["vxe-gantt-view--chart-milestone-icon", iconStatus ? `theme--${XEUtils5.isFunction(iconStatus) ? iconStatus(tbmParams) : iconStatus}` : ""],
1048
+ style: iconStyle ? Object.assign({}, XEUtils5.isFunction(iconStyle) ? iconStyle(tbmParams) : iconStyle) : void 0
1049
+ },
1050
+ [
1051
+ h2("i", {
1052
+ class: (icon ? XEUtils5.isFunction(icon) ? icon(tbmParams) : icon : "") || getIcon().GANTT_VIEW_TASK_MILESTONE
1053
+ })
1054
+ ]
1055
+ ),
1056
+ showContent ? h2(
1057
+ "div",
1058
+ {
1059
+ class: "vxe-gantt-view--chart-milestone-content"
1060
+ },
1061
+ title
1062
+ ) : renderEmptyElement($xeGantt)
1063
+ ]
1064
+ )
977
1065
  );
978
1066
  } else {
979
1067
  cbVNs.push(
980
- h2("div", {
981
- key: "vbc",
982
- class: "vxe-gantt-view--chart-bar-content-wrapper",
983
- ...ctOns
984
- }, [
985
- showProgress ? h2("div", {
986
- class: "vxe-gantt-view--chart-progress",
987
- style: vpStyle
988
- }) : renderEmptyElement($xeGantt),
989
- showContent ? h2("div", {
990
- class: "vxe-gantt-view--chart-content"
991
- }, title) : renderEmptyElement($xeGantt)
992
- ])
1068
+ h2(
1069
+ "div",
1070
+ {
1071
+ key: "vbc",
1072
+ class: "vxe-gantt-view--chart-bar-content-wrapper",
1073
+ ...ctOns
1074
+ },
1075
+ [
1076
+ showProgress ? h2("div", {
1077
+ class: "vxe-gantt-view--chart-progress",
1078
+ style: vpStyle
1079
+ }) : renderEmptyElement($xeGantt),
1080
+ showContent ? h2(
1081
+ "div",
1082
+ {
1083
+ class: "vxe-gantt-view--chart-content"
1084
+ },
1085
+ title
1086
+ ) : renderEmptyElement($xeGantt)
1087
+ ]
1088
+ )
993
1089
  );
994
1090
  }
995
1091
  }
996
1092
  }
997
- return h2("div", {
998
- key: rowid,
999
- rowid,
1000
- class: ["vxe-gantt-view--chart-row", `is--${renderTaskType}`, {
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,
1093
+ return h2(
1094
+ "div",
1095
+ {
1096
+ key: rowid,
1025
1097
  rowid,
1026
- onClick(evnt) {
1027
- $xeGantt.handleTaskBarClickEvent(evnt, barParams);
1028
- },
1029
- onDblclick(evnt) {
1030
- $xeGantt.handleTaskBarDblclickEvent(evnt, barParams);
1098
+ class: [
1099
+ "vxe-gantt-view--chart-row",
1100
+ `is--${renderTaskType}`,
1101
+ {
1102
+ "is--progress": showProgress,
1103
+ "is--critical": showCriticalPath && criticalPathFlag && criticalRowMaps.has(rowid),
1104
+ "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
1105
+ "is--round": barRound,
1106
+ "is--move": moveable
1107
+ }
1108
+ ],
1109
+ style: {
1110
+ height: `${cellHeight}px`
1031
1111
  },
1032
- onMousedown(evnt) {
1033
- if ($xeGantt.handleTaskBarModnEvent) {
1034
- $xeGantt.handleTaskBarModnEvent(evnt, barParams);
1112
+ onDragstart(evnt) {
1113
+ if (ganttInternalData.dragBarRow) {
1114
+ evnt.preventDefault();
1035
1115
  }
1116
+ },
1117
+ onContextmenu(evnt) {
1118
+ $xeGantt.handleTaskBarContextmenuEvent(evnt, ctParams);
1036
1119
  }
1037
- }, cbVNs)
1038
- ]);
1120
+ },
1121
+ [
1122
+ h2(
1123
+ "div",
1124
+ {
1125
+ class: [
1126
+ taskBarSlot ? "vxe-gantt-view--chart-custom-bar" : "vxe-gantt-view--chart-bar",
1127
+ `is--${renderTaskType}`,
1128
+ {
1129
+ "is--active": activeBarRowid === rowid,
1130
+ "active--link": activeLink && (rowid === `${activeLink.from}` || rowid === `${activeLink.to}`)
1131
+ }
1132
+ ],
1133
+ style: vbStyle,
1134
+ rowid,
1135
+ onClick(evnt) {
1136
+ $xeGantt.handleTaskBarClickEvent(evnt, barParams);
1137
+ },
1138
+ onDblclick(evnt) {
1139
+ $xeGantt.handleTaskBarDblclickEvent(evnt, barParams);
1140
+ },
1141
+ onMousedown(evnt) {
1142
+ if ($xeGantt.handleTaskBarModnEvent) {
1143
+ $xeGantt.handleTaskBarModnEvent(evnt, barParams);
1144
+ }
1145
+ }
1146
+ },
1147
+ cbVNs
1148
+ )
1149
+ ]
1150
+ );
1039
1151
  };
1040
1152
  const renderTaskRows = ($xeTable, tableData) => {
1041
1153
  const tableProps2 = $xeTable.props;
@@ -1083,38 +1195,67 @@ var gantt_chart_default = defineVxeComponent({
1083
1195
  const { isCurrent, isHover } = taskLinkOpts;
1084
1196
  const { linkCreatable } = taskBarOpts;
1085
1197
  const taskNowLineSlot = ganttSlots.taskNowLine || ganttSlots["task-now-line"];
1086
- return h2("div", {
1087
- ref: refElem,
1088
- class: ["vxe-gantt-view--chart-wrapper", {
1089
- "is--cl-drag": dragLinkFromStore.rowid
1090
- }]
1091
- }, [
1092
- nowLineLeft > 0 ? h2("div", {
1093
- ref: refNowLineElem,
1094
- class: "vxe-gantt-view--chart-now-line",
1095
- style: {
1096
- left: nowLineLeft + "px"
1097
- }
1098
- }, taskNowLineSlot ? taskNowLineSlot({}) : []) : renderEmptyElement($xeGantt),
1099
- $xeGantt.renderGanttTaskChartBefores ? h2("div", {
1100
- ref: refChartBeforeWrapperElem,
1101
- class: ["vxe-gantt-view--chart-before-wrapper", {
1102
- "link--current": isCurrent,
1103
- "link--hover": isHover
1104
- }]
1105
- }, $xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartBefores() : []) : renderEmptyElement($xeGantt),
1106
- h2("div", {
1107
- ref: refTaskWrapperElem,
1108
- class: ["vxe-gantt-view--chart-task-wrapper", {
1109
- "link--current": isCurrent,
1110
- "link--create": linkCreatable
1111
- }]
1112
- }, $xeTable ? renderTaskRows($xeTable, tableData) : []),
1113
- $xeGantt.renderGanttTaskChartAfters ? h2("div", {
1114
- ref: refChartAfterWrapperElem,
1115
- class: "vxe-gantt-view--chart-after-wrapper"
1116
- }, $xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartAfters() : []) : renderEmptyElement($xeGantt)
1117
- ]);
1198
+ return h2(
1199
+ "div",
1200
+ {
1201
+ ref: refElem,
1202
+ class: [
1203
+ "vxe-gantt-view--chart-wrapper",
1204
+ {
1205
+ "is--cl-drag": dragLinkFromStore.rowid
1206
+ }
1207
+ ]
1208
+ },
1209
+ [
1210
+ nowLineLeft > 0 ? h2(
1211
+ "div",
1212
+ {
1213
+ ref: refNowLineElem,
1214
+ class: "vxe-gantt-view--chart-now-line",
1215
+ style: {
1216
+ left: nowLineLeft + "px"
1217
+ }
1218
+ },
1219
+ taskNowLineSlot ? taskNowLineSlot({}) : []
1220
+ ) : renderEmptyElement($xeGantt),
1221
+ $xeGantt.renderGanttTaskChartBefores ? h2(
1222
+ "div",
1223
+ {
1224
+ ref: refChartBeforeWrapperElem,
1225
+ class: [
1226
+ "vxe-gantt-view--chart-before-wrapper",
1227
+ {
1228
+ "link--current": isCurrent,
1229
+ "link--hover": isHover
1230
+ }
1231
+ ]
1232
+ },
1233
+ $xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartBefores() : []
1234
+ ) : renderEmptyElement($xeGantt),
1235
+ h2(
1236
+ "div",
1237
+ {
1238
+ ref: refTaskWrapperElem,
1239
+ class: [
1240
+ "vxe-gantt-view--chart-task-wrapper",
1241
+ {
1242
+ "link--current": isCurrent,
1243
+ "link--create": linkCreatable
1244
+ }
1245
+ ]
1246
+ },
1247
+ $xeTable ? renderTaskRows($xeTable, tableData) : []
1248
+ ),
1249
+ $xeGantt.renderGanttTaskChartAfters ? h2(
1250
+ "div",
1251
+ {
1252
+ ref: refChartAfterWrapperElem,
1253
+ class: "vxe-gantt-view--chart-after-wrapper"
1254
+ },
1255
+ $xeTable && isEnableConf(taskLinkOpts) ? $xeGantt.renderGanttTaskChartAfters() : []
1256
+ ) : renderEmptyElement($xeGantt)
1257
+ ]
1258
+ );
1118
1259
  };
1119
1260
  onMounted2(() => {
1120
1261
  const { elemStore } = ganttViewInternalData;
@@ -1222,30 +1363,34 @@ var gantt_body_default = defineVxeComponent({
1222
1363
  rowIndex,
1223
1364
  _rowIndex
1224
1365
  };
1225
- return h3("td", {
1226
- key: cellClassName || cellStyle ? field : $columnIndex,
1227
- class: [
1228
- "vxe-gantt-view--body-column",
1229
- {
1230
- "is--now": showNowLine && todayValue === field
1366
+ return h3(
1367
+ "td",
1368
+ {
1369
+ key: cellClassName || cellStyle ? field : $columnIndex,
1370
+ class: [
1371
+ "vxe-gantt-view--body-column",
1372
+ {
1373
+ "is--now": showNowLine && todayValue === field
1374
+ },
1375
+ getClass(cellClassName, ctParams)
1376
+ ],
1377
+ style: cellStyle ? Object.assign({}, XEUtils6.isFunction(cellStyle) ? cellStyle(ctParams) : cellStyle, {
1378
+ height: `${cellHeight}px`
1379
+ }) : {
1380
+ height: `${cellHeight}px`
1231
1381
  },
1232
- getClass(cellClassName, ctParams)
1233
- ],
1234
- style: cellStyle ? Object.assign({}, XEUtils6.isFunction(cellStyle) ? cellStyle(ctParams) : cellStyle, {
1235
- height: `${cellHeight}px`
1236
- }) : {
1237
- height: `${cellHeight}px`
1238
- },
1239
- onClick(evnt) {
1240
- $xeGantt.handleTaskCellClickEvent(evnt, { row, column });
1241
- },
1242
- onDblclick(evnt) {
1243
- $xeGantt.handleTaskCellDblclickEvent(evnt, { row, column });
1382
+ onClick(evnt) {
1383
+ $xeGantt.handleTaskCellClickEvent(evnt, { row, column });
1384
+ },
1385
+ onDblclick(evnt) {
1386
+ $xeGantt.handleTaskCellDblclickEvent(evnt, { row, column });
1387
+ },
1388
+ onContextmenu(evnt) {
1389
+ $xeGantt.handleTaskBodyContextmenuEvent(evnt, ctParams);
1390
+ }
1244
1391
  },
1245
- onContextmenu(evnt) {
1246
- $xeGantt.handleTaskBodyContextmenuEvent(evnt, ctParams);
1247
- }
1248
- }, tdVNs);
1392
+ tdVNs
1393
+ );
1249
1394
  };
1250
1395
  const renderRows = ($xeTable, tableData) => {
1251
1396
  const tableProps2 = $xeTable.props;
@@ -1305,23 +1450,27 @@ var gantt_body_default = defineVxeComponent({
1305
1450
  _rowIndex
1306
1451
  };
1307
1452
  trVNs.push(
1308
- h3("tr", {
1309
- key: rowClassName || rowStyle || cellClassName || cellStyle ? rowid : $rowIndex,
1310
- class: [
1311
- "vxe-gantt-view--body-row",
1312
- {
1313
- "row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
1314
- "is--new": isNewRow,
1315
- "row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
1316
- "row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
1317
- "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid]
1318
- },
1319
- getClass(rowClassName, rowParams)
1320
- ],
1321
- rowid,
1322
- style: rowStyle ? XEUtils6.isFunction(rowStyle) ? rowStyle(rowParams) || void 0 : rowStyle : void 0,
1323
- ...trOns
1324
- }, tableColumn.map((column, $columnIndex) => renderColumn($xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex, column, $columnIndex)))
1453
+ h3(
1454
+ "tr",
1455
+ {
1456
+ key: rowClassName || rowStyle || cellClassName || cellStyle ? rowid : $rowIndex,
1457
+ class: [
1458
+ "vxe-gantt-view--body-row",
1459
+ {
1460
+ "row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
1461
+ "is--new": isNewRow,
1462
+ "row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
1463
+ "row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
1464
+ "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid]
1465
+ },
1466
+ getClass(rowClassName, rowParams)
1467
+ ],
1468
+ rowid,
1469
+ style: rowStyle ? XEUtils6.isFunction(rowStyle) ? rowStyle(rowParams) || void 0 : rowStyle : void 0,
1470
+ ...trOns
1471
+ },
1472
+ tableColumn.map((column, $columnIndex) => renderColumn($xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex, column, $columnIndex))
1473
+ )
1325
1474
  );
1326
1475
  let isExpandTree = false;
1327
1476
  let rowChildren = [];
@@ -1338,43 +1487,59 @@ var gantt_body_default = defineVxeComponent({
1338
1487
  const renderVN = () => {
1339
1488
  const $xeTable = $xeGanttView.internalData.xeTable;
1340
1489
  const { tableData, tableColumn, viewCellWidth } = reactData;
1341
- return h3("div", {
1342
- ref: refElem,
1343
- class: "vxe-gantt-view--body-wrapper"
1344
- }, [
1345
- h3("div", {
1346
- ref: refBodyScroll,
1347
- class: "vxe-gantt-view--body-inner-wrapper",
1348
- onScroll: $xeGanttView.triggerBodyScrollEvent,
1349
- onContextmenu(evnt) {
1350
- $xeGantt.handleTaskBodyContextmenuEvent(evnt, { source: sourceType3, type: viewType3, rowIndex: -1, $rowIndex: -1, _rowIndex: -1 });
1351
- }
1352
- }, [
1353
- h3("div", {
1354
- ref: refBodyXSpace,
1355
- class: "vxe-body--x-space"
1356
- }),
1357
- h3("div", {
1358
- ref: refBodyYSpace,
1359
- class: "vxe-body--y-space"
1360
- }),
1361
- h3("table", {
1362
- ref: refBodyTable,
1363
- class: "vxe-gantt-view--body-table"
1364
- }, [
1365
- h3("colgroup", {}, tableColumn.map((column, cIndex) => {
1366
- return h3("col", {
1367
- key: cIndex,
1368
- style: {
1369
- width: `${viewCellWidth}px`
1370
- }
1371
- });
1372
- })),
1373
- h3("tbody", {}, $xeTable ? renderRows($xeTable, tableData) : [])
1374
- ]),
1375
- h3(gantt_chart_default)
1376
- ])
1377
- ]);
1490
+ return h3(
1491
+ "div",
1492
+ {
1493
+ ref: refElem,
1494
+ class: "vxe-gantt-view--body-wrapper"
1495
+ },
1496
+ [
1497
+ h3(
1498
+ "div",
1499
+ {
1500
+ ref: refBodyScroll,
1501
+ class: "vxe-gantt-view--body-inner-wrapper",
1502
+ onScroll: $xeGanttView.triggerBodyScrollEvent,
1503
+ onContextmenu(evnt) {
1504
+ $xeGantt.handleTaskBodyContextmenuEvent(evnt, { source: sourceType3, type: viewType3, rowIndex: -1, $rowIndex: -1, _rowIndex: -1 });
1505
+ }
1506
+ },
1507
+ [
1508
+ h3("div", {
1509
+ ref: refBodyXSpace,
1510
+ class: "vxe-body--x-space"
1511
+ }),
1512
+ h3("div", {
1513
+ ref: refBodyYSpace,
1514
+ class: "vxe-body--y-space"
1515
+ }),
1516
+ h3(
1517
+ "table",
1518
+ {
1519
+ ref: refBodyTable,
1520
+ class: "vxe-gantt-view--body-table"
1521
+ },
1522
+ [
1523
+ h3(
1524
+ "colgroup",
1525
+ {},
1526
+ tableColumn.map((column, cIndex) => {
1527
+ return h3("col", {
1528
+ key: cIndex,
1529
+ style: {
1530
+ width: `${viewCellWidth}px`
1531
+ }
1532
+ });
1533
+ })
1534
+ ),
1535
+ h3("tbody", {}, $xeTable ? renderRows($xeTable, tableData) : [])
1536
+ ]
1537
+ ),
1538
+ h3(gantt_chart_default)
1539
+ ]
1540
+ )
1541
+ ]
1542
+ );
1378
1543
  };
1379
1544
  onMounted3(() => {
1380
1545
  const { elemStore } = internalData;
@@ -1411,18 +1576,22 @@ var gantt_footer_default = defineVxeComponent({
1411
1576
  const refElem = ref4();
1412
1577
  const refHeaderScroll = ref4();
1413
1578
  const renderVN = () => {
1414
- return h4("div", {
1415
- ref: refElem,
1416
- class: "vxe-gantt-view--footer-wrapper",
1417
- onContextmenu(evnt) {
1418
- $xeGantt.handleTaskFooterContextmenuEvent(evnt, { source: sourceType4, type: viewType4, $rowIndex: -1 });
1419
- }
1420
- }, [
1421
- h4("div", {
1422
- ref: refHeaderScroll,
1423
- class: "vxe-gantt-view--footer-inner-wrapper"
1424
- })
1425
- ]);
1579
+ return h4(
1580
+ "div",
1581
+ {
1582
+ ref: refElem,
1583
+ class: "vxe-gantt-view--footer-wrapper",
1584
+ onContextmenu(evnt) {
1585
+ $xeGantt.handleTaskFooterContextmenuEvent(evnt, { source: sourceType4, type: viewType4, $rowIndex: -1 });
1586
+ }
1587
+ },
1588
+ [
1589
+ h4("div", {
1590
+ ref: refHeaderScroll,
1591
+ class: "vxe-gantt-view--footer-inner-wrapper"
1592
+ })
1593
+ ]
1594
+ );
1426
1595
  };
1427
1596
  onMounted4(() => {
1428
1597
  const { elemStore } = internalData;
@@ -1625,17 +1794,20 @@ var gantt_view_default = defineVxeComponent({
1625
1794
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
1626
1795
  const scrollXVisible = computeScrollXVisible.value;
1627
1796
  const scrollYVisible = computeScrollYVisible.value;
1628
- return domUtils.buildClass([
1629
- "vxe-scrollbar is--virtual",
1630
- scrollbarOpts.fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
1631
- `ov-x--${scrollXVisible === false ? "hidden" : "visible"}`,
1632
- `ov-y--${scrollYVisible === false ? "hidden" : "visible"}`,
1633
- `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
1634
- `sy-pos--${scrollbarYToLeft ? "left" : "right"}`
1635
- ], {
1636
- "overflow-y": yThumbHeight,
1637
- "overflow-x": xThumbWidth
1638
- });
1797
+ return domUtils.buildClass(
1798
+ [
1799
+ "vxe-scrollbar is--virtual",
1800
+ scrollbarOpts.fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
1801
+ `ov-x--${scrollXVisible === false ? "hidden" : "visible"}`,
1802
+ `ov-y--${scrollYVisible === false ? "hidden" : "visible"}`,
1803
+ `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
1804
+ `sy-pos--${scrollbarYToLeft ? "left" : "right"}`
1805
+ ],
1806
+ {
1807
+ "overflow-y": yThumbHeight,
1808
+ "overflow-x": xThumbWidth
1809
+ }
1810
+ );
1639
1811
  });
1640
1812
  const computeScaleDateList = computed(() => {
1641
1813
  const { minViewDate, maxViewDate } = reactData;
@@ -1800,21 +1972,7 @@ var gantt_view_default = defineVxeComponent({
1800
1972
  getRefMaps: () => refMaps,
1801
1973
  getComputeMaps: () => computeMaps
1802
1974
  };
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);
1975
+ const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeGanttView);
1818
1976
  const parseStringDate = (dateValue) => {
1819
1977
  const dateFormat = computeDateFormat.value;
1820
1978
  return XEUtils7.toStringDate(dateValue, dateFormat);
@@ -2796,18 +2954,22 @@ var gantt_view_default = defineVxeComponent({
2796
2954
  const typeField = computeTypeField.value;
2797
2955
  let minChildLeftSize = 0;
2798
2956
  let maxChildLeftSize = 0;
2799
- XEUtils7.eachTree(list, (childRow) => {
2800
- const childRowid = $xeTable.getRowid(childRow);
2801
- const renderTaskType = XEUtils7.get(childRow, typeField);
2802
- if (hasSubviewTask(renderTaskType)) {
2803
- return;
2804
- }
2805
- const childChartRest = childRowid ? chartMaps[childRowid] : null;
2806
- if (childChartRest) {
2807
- maxChildLeftSize = Math.max(maxChildLeftSize, childChartRest.oLeftSize + childChartRest.oWidthSize);
2808
- minChildLeftSize = minChildLeftSize ? Math.min(minChildLeftSize, childChartRest.oLeftSize) : childChartRest.oLeftSize;
2809
- }
2810
- }, { children: childrenField });
2957
+ XEUtils7.eachTree(
2958
+ list,
2959
+ (childRow) => {
2960
+ const childRowid = $xeTable.getRowid(childRow);
2961
+ const renderTaskType = XEUtils7.get(childRow, typeField);
2962
+ if (hasSubviewTask(renderTaskType)) {
2963
+ return;
2964
+ }
2965
+ const childChartRest = childRowid ? chartMaps[childRowid] : null;
2966
+ if (childChartRest) {
2967
+ maxChildLeftSize = Math.max(maxChildLeftSize, childChartRest.oLeftSize + childChartRest.oWidthSize);
2968
+ minChildLeftSize = minChildLeftSize ? Math.min(minChildLeftSize, childChartRest.oLeftSize) : childChartRest.oLeftSize;
2969
+ }
2970
+ },
2971
+ { children: childrenField }
2972
+ );
2811
2973
  return {
2812
2974
  minSize: minChildLeftSize,
2813
2975
  maxSize: maxChildLeftSize
@@ -2993,10 +3155,7 @@ var gantt_view_default = defineVxeComponent({
2993
3155
  bodyTableElem.style.width = `${vmTableWidth}px`;
2994
3156
  }
2995
3157
  reactData.scrollXWidth = viewTableWidth;
2996
- return Promise.all([
2997
- updateTaskChartStyle(),
2998
- $xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null
2999
- ]);
3158
+ return Promise.all([updateTaskChartStyle(), $xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null]);
3000
3159
  };
3001
3160
  const handleRecalculateStyle = () => {
3002
3161
  const el = refElem.value;
@@ -3025,18 +3184,14 @@ var gantt_view_default = defineVxeComponent({
3025
3184
  if (rceTimeout) {
3026
3185
  clearTimeout(rceTimeout);
3027
3186
  if (rceRunTime && rceRunTime + (refreshDelay - 5) < Date.now()) {
3028
- resolve(
3029
- handleRecalculateStyle()
3030
- );
3187
+ resolve(handleRecalculateStyle());
3031
3188
  } else {
3032
3189
  nextTick(() => {
3033
3190
  resolve();
3034
3191
  });
3035
3192
  }
3036
3193
  } else {
3037
- resolve(
3038
- handleRecalculateStyle()
3039
- );
3194
+ resolve(handleRecalculateStyle());
3040
3195
  }
3041
3196
  internalData.rceTimeout = setTimeout(() => {
3042
3197
  internalData.rceTimeout = void 0;
@@ -3597,95 +3752,117 @@ var gantt_view_default = defineVxeComponent({
3597
3752
  };
3598
3753
  Object.assign($xeGanttView, ganttViewMethods, ganttViewPrivateMethods);
3599
3754
  const renderScrollX = () => {
3600
- return h5("div", {
3601
- key: "vsx",
3602
- ref: refScrollXVirtualElem,
3603
- class: "vxe-gantt-view--scroll-x-virtual"
3604
- }, [
3605
- h5("div", {
3606
- ref: refScrollXLeftCornerElem,
3607
- class: "vxe-gantt-view--scroll-x-left-corner"
3608
- }),
3609
- h5("div", {
3610
- ref: refScrollXWrapperElem,
3611
- class: "vxe-gantt-view--scroll-x-wrapper"
3612
- }, [
3755
+ return h5(
3756
+ "div",
3757
+ {
3758
+ key: "vsx",
3759
+ ref: refScrollXVirtualElem,
3760
+ class: "vxe-gantt-view--scroll-x-virtual"
3761
+ },
3762
+ [
3613
3763
  h5("div", {
3614
- ref: refScrollXHandleElem,
3615
- class: "vxe-gantt-view--scroll-x-handle",
3616
- onScroll: $xeGanttView.triggerVirtualScrollXEvent
3617
- }, [
3618
- h5("div", {
3619
- ref: refScrollXSpaceElem,
3620
- class: "vxe-gantt-view--scroll-x-space"
3621
- })
3622
- ]),
3764
+ ref: refScrollXLeftCornerElem,
3765
+ class: "vxe-gantt-view--scroll-x-left-corner"
3766
+ }),
3767
+ h5(
3768
+ "div",
3769
+ {
3770
+ ref: refScrollXWrapperElem,
3771
+ class: "vxe-gantt-view--scroll-x-wrapper"
3772
+ },
3773
+ [
3774
+ h5(
3775
+ "div",
3776
+ {
3777
+ ref: refScrollXHandleElem,
3778
+ class: "vxe-gantt-view--scroll-x-handle",
3779
+ onScroll: $xeGanttView.triggerVirtualScrollXEvent
3780
+ },
3781
+ [
3782
+ h5("div", {
3783
+ ref: refScrollXSpaceElem,
3784
+ class: "vxe-gantt-view--scroll-x-space"
3785
+ })
3786
+ ]
3787
+ ),
3788
+ h5("div", {
3789
+ class: "vxe-gantt-view--scroll-x-handle-appearance"
3790
+ })
3791
+ ]
3792
+ ),
3623
3793
  h5("div", {
3624
- class: "vxe-gantt-view--scroll-x-handle-appearance"
3794
+ ref: refScrollXRightCornerElem,
3795
+ class: "vxe-gantt-view--scroll-x-right-corner"
3625
3796
  })
3626
- ]),
3627
- h5("div", {
3628
- ref: refScrollXRightCornerElem,
3629
- class: "vxe-gantt-view--scroll-x-right-corner"
3630
- })
3631
- ]);
3797
+ ]
3798
+ );
3632
3799
  };
3633
3800
  const renderScrollY = () => {
3634
- return h5("div", {
3635
- key: "vsy",
3636
- ref: refScrollYVirtualElem,
3637
- class: "vxe-gantt-view--scroll-y-virtual"
3638
- }, [
3639
- h5("div", {
3640
- ref: refScrollYTopCornerElem,
3641
- class: "vxe-gantt-view--scroll-y-top-corner"
3642
- }),
3643
- h5("div", {
3644
- ref: refScrollYWrapperElem,
3645
- class: "vxe-gantt-view--scroll-y-wrapper"
3646
- }, [
3801
+ return h5(
3802
+ "div",
3803
+ {
3804
+ key: "vsy",
3805
+ ref: refScrollYVirtualElem,
3806
+ class: "vxe-gantt-view--scroll-y-virtual"
3807
+ },
3808
+ [
3647
3809
  h5("div", {
3648
- ref: refScrollYHandleElem,
3649
- class: "vxe-gantt-view--scroll-y-handle",
3650
- onScroll: $xeGanttView.triggerVirtualScrollYEvent
3651
- }, [
3652
- h5("div", {
3653
- ref: refScrollYSpaceElem,
3654
- class: "vxe-gantt-view--scroll-y-space"
3655
- })
3656
- ]),
3810
+ ref: refScrollYTopCornerElem,
3811
+ class: "vxe-gantt-view--scroll-y-top-corner"
3812
+ }),
3813
+ h5(
3814
+ "div",
3815
+ {
3816
+ ref: refScrollYWrapperElem,
3817
+ class: "vxe-gantt-view--scroll-y-wrapper"
3818
+ },
3819
+ [
3820
+ h5(
3821
+ "div",
3822
+ {
3823
+ ref: refScrollYHandleElem,
3824
+ class: "vxe-gantt-view--scroll-y-handle",
3825
+ onScroll: $xeGanttView.triggerVirtualScrollYEvent
3826
+ },
3827
+ [
3828
+ h5("div", {
3829
+ ref: refScrollYSpaceElem,
3830
+ class: "vxe-gantt-view--scroll-y-space"
3831
+ })
3832
+ ]
3833
+ ),
3834
+ h5("div", {
3835
+ class: "vxe-gantt-view--scroll-y-handle-appearance"
3836
+ })
3837
+ ]
3838
+ ),
3657
3839
  h5("div", {
3658
- class: "vxe-gantt-view--scroll-y-handle-appearance"
3840
+ ref: refScrollYBottomCornerElem,
3841
+ class: "vxe-gantt-view--scroll-y-bottom-corner"
3659
3842
  })
3660
- ]),
3661
- h5("div", {
3662
- ref: refScrollYBottomCornerElem,
3663
- class: "vxe-gantt-view--scroll-y-bottom-corner"
3664
- })
3665
- ]);
3843
+ ]
3844
+ );
3666
3845
  };
3667
3846
  const renderViewport = () => {
3668
- return h5("div", {
3669
- key: "tvw",
3670
- class: "vxe-gantt-view--viewport-wrapper"
3671
- }, [
3672
- h5(gantt_header_default),
3673
- h5(gantt_body_default),
3674
- h5(gantt_footer_default)
3675
- ]);
3847
+ return h5(
3848
+ "div",
3849
+ {
3850
+ key: "tvw",
3851
+ class: "vxe-gantt-view--viewport-wrapper"
3852
+ },
3853
+ [h5(gantt_header_default), h5(gantt_body_default), h5(gantt_footer_default)]
3854
+ );
3676
3855
  };
3677
3856
  const renderNativeBody = () => {
3678
3857
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
3679
- return h5("div", {
3680
- key: "lnb",
3681
- class: "vxe-gantt-view--layout-wrapper"
3682
- }, scrollbarYToLeft ? [
3683
- renderScrollY(),
3684
- renderViewport()
3685
- ] : [
3686
- renderViewport(),
3687
- renderScrollY()
3688
- ]);
3858
+ return h5(
3859
+ "div",
3860
+ {
3861
+ key: "lnb",
3862
+ class: "vxe-gantt-view--layout-wrapper"
3863
+ },
3864
+ scrollbarYToLeft ? [renderScrollY(), renderViewport()] : [renderViewport(), renderScrollY()]
3865
+ );
3689
3866
  };
3690
3867
  const renderVirtualBody = () => {
3691
3868
  const { showLeftView } = ganttReactData;
@@ -3699,89 +3876,115 @@ var gantt_view_default = defineVxeComponent({
3699
3876
  const scrollbarXToTop = computeScrollbarXToTop.value;
3700
3877
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
3701
3878
  const scrollbarWrapperClss = computeScrollbarWrapperClss.value;
3702
- return h5("div", {
3703
- key: "lvb",
3704
- class: ["vxe-gantt--layout-wrapper", `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`, `sy-pos--${scrollbarYToLeft ? "left" : "right"}`, {
3705
- "is--virtual-scrollbar": isVScrollbar,
3706
- "ov-padding": isVScrollbar && scrollbarOpts.padding,
3707
- "ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
3708
- "ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
3709
- "overflow-y": yThumbHeight,
3710
- "overflow-x": xThumbWidth
3711
- }]
3712
- }, [
3713
- renderViewport(),
3714
- h5("div", {
3715
- class: scrollbarWrapperClss
3716
- }, [
3717
- scrollXVisible === false ? renderEmptyElement2($xeGantt) : h5("div", {
3718
- ref: refTrackXElem,
3719
- class: "vxe-scrollbar--track-x",
3720
- onClick: clickTrackXEvent
3721
- }, [
3722
- h5("div", {
3723
- ref: refThumbXElem,
3724
- class: "vxe-scrollbar--thumb-x",
3725
- onPointerdown: pointerdownThumbXEvent,
3726
- onPointermove: pointermoveThumbXEvent,
3727
- onPointerup: cleatPointerThumbEvent,
3728
- onPointercancel: cleatPointerThumbEvent,
3729
- onLostpointercapture: cleatPointerThumbEvent
3730
- })
3731
- ]),
3732
- scrollbarYToLeft && showLeftView || scrollYVisible === false ? renderEmptyElement2($xeGantt) : h5("div", {
3733
- ref: refTrackYElem,
3734
- class: "vxe-scrollbar--track-y",
3735
- onClick: clickTrackYEvent
3736
- }, [
3737
- h5("div", {
3738
- ref: refThumbYElem,
3739
- class: "vxe-scrollbar--thumb-y",
3740
- onPointerdown: pointerdownThumbYEvent,
3741
- onPointermove: pointermoveThumbYEvent,
3742
- onPointerup: cleatPointerThumbEvent,
3743
- onPointercancel: cleatPointerThumbEvent,
3744
- onLostpointercapture: cleatPointerThumbEvent
3745
- })
3746
- ])
3747
- ])
3748
- ]);
3879
+ return h5(
3880
+ "div",
3881
+ {
3882
+ key: "lvb",
3883
+ class: [
3884
+ "vxe-gantt--layout-wrapper",
3885
+ `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
3886
+ `sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
3887
+ {
3888
+ "is--virtual-scrollbar": isVScrollbar,
3889
+ "ov-padding": isVScrollbar && scrollbarOpts.padding,
3890
+ "ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
3891
+ "ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
3892
+ "overflow-y": yThumbHeight,
3893
+ "overflow-x": xThumbWidth
3894
+ }
3895
+ ]
3896
+ },
3897
+ [
3898
+ renderViewport(),
3899
+ h5(
3900
+ "div",
3901
+ {
3902
+ class: scrollbarWrapperClss
3903
+ },
3904
+ [
3905
+ scrollXVisible === false ? renderEmptyElement2($xeGantt) : h5(
3906
+ "div",
3907
+ {
3908
+ ref: refTrackXElem,
3909
+ class: "vxe-scrollbar--track-x",
3910
+ onClick: clickTrackXEvent
3911
+ },
3912
+ [
3913
+ h5("div", {
3914
+ ref: refThumbXElem,
3915
+ class: "vxe-scrollbar--thumb-x",
3916
+ onPointerdown: pointerdownThumbXEvent,
3917
+ onPointermove: pointermoveThumbXEvent,
3918
+ onPointerup: cleatPointerThumbEvent,
3919
+ onPointercancel: cleatPointerThumbEvent,
3920
+ onLostpointercapture: cleatPointerThumbEvent
3921
+ })
3922
+ ]
3923
+ ),
3924
+ scrollbarYToLeft && showLeftView || scrollYVisible === false ? renderEmptyElement2($xeGantt) : h5(
3925
+ "div",
3926
+ {
3927
+ ref: refTrackYElem,
3928
+ class: "vxe-scrollbar--track-y",
3929
+ onClick: clickTrackYEvent
3930
+ },
3931
+ [
3932
+ h5("div", {
3933
+ ref: refThumbYElem,
3934
+ class: "vxe-scrollbar--thumb-y",
3935
+ onPointerdown: pointerdownThumbYEvent,
3936
+ onPointermove: pointermoveThumbYEvent,
3937
+ onPointerup: cleatPointerThumbEvent,
3938
+ onPointercancel: cleatPointerThumbEvent,
3939
+ onLostpointercapture: cleatPointerThumbEvent
3940
+ })
3941
+ ]
3942
+ )
3943
+ ]
3944
+ )
3945
+ ]
3946
+ );
3749
3947
  };
3750
3948
  const renderVN = () => {
3751
3949
  const { overflowX, overflowY, scrollXLoad, scrollYLoad } = reactData;
3752
3950
  const isVScrollbar = computeGanttIsVScrollbar.value;
3753
3951
  const scrollbarXToTop = computeScrollbarXToTop.value;
3754
- return h5("div", {
3755
- ref: refElem,
3756
- class: ["vxe-gantt-view", {
3757
- "is--scroll-y": overflowY,
3758
- "is--scroll-x": overflowX,
3759
- "is--virtual-x": scrollXLoad,
3760
- "is--virtual-y": scrollYLoad
3761
- }]
3762
- }, [
3763
- h5(
3764
- "div",
3765
- {
3766
- class: "vxe-gantt-view--render-wrapper"
3767
- },
3768
- isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [
3769
- renderScrollX(),
3770
- renderNativeBody()
3771
- ] : [
3772
- renderNativeBody(),
3773
- renderScrollX()
3952
+ return h5(
3953
+ "div",
3954
+ {
3955
+ ref: refElem,
3956
+ class: [
3957
+ "vxe-gantt-view",
3958
+ {
3959
+ "is--scroll-y": overflowY,
3960
+ "is--scroll-x": overflowX,
3961
+ "is--virtual-x": scrollXLoad,
3962
+ "is--virtual-y": scrollYLoad
3963
+ }
3774
3964
  ]
3775
- ),
3776
- h5("div", {
3777
- class: "vxe-gantt-view--render-vars"
3778
- }, [
3779
- h5("div", {
3780
- ref: refColInfoElem,
3781
- class: "vxe-gantt-view--column-info"
3782
- })
3783
- ])
3784
- ]);
3965
+ },
3966
+ [
3967
+ h5(
3968
+ "div",
3969
+ {
3970
+ class: "vxe-gantt-view--render-wrapper"
3971
+ },
3972
+ isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [renderScrollX(), renderNativeBody()] : [renderNativeBody(), renderScrollX()]
3973
+ ),
3974
+ h5(
3975
+ "div",
3976
+ {
3977
+ class: "vxe-gantt-view--render-vars"
3978
+ },
3979
+ [
3980
+ h5("div", {
3981
+ ref: refColInfoElem,
3982
+ class: "vxe-gantt-view--column-info"
3983
+ })
3984
+ ]
3985
+ )
3986
+ ]
3987
+ );
3785
3988
  };
3786
3989
  const reScrollFlag = ref5(0);
3787
3990
  watch(computeGanttIsVScrollbar, () => {
@@ -3850,7 +4053,177 @@ var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("gantt");
3850
4053
  var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } = VxeUI8;
3851
4054
  var tableProps = VxeTableComponent.props;
3852
4055
  var tableComponentPropKeys = Object.keys(tableProps);
3853
- var tableComponentMethodKeys = ["clearAll", "syncData", "updateData", "loadData", "reloadData", "reloadRow", "loadColumn", "reloadColumn", "getRowNode", "getColumnNode", "getRowIndex", "getVTRowIndex", "getVMRowIndex", "getColumnIndex", "getVTColumnIndex", "getVMColumnIndex", "setRow", "createData", "createRow", "revertData", "clearData", "isRemoveByRow", "isInsertByRow", "isUpdateByRow", "getColumns", "getColumnById", "getColumnByField", "getTableColumn", "getFullColumns", "getData", "getCheckboxRecords", "getParentRow", "getTreeRowChildren", "getTreeRowLevel", "getTreeParentRow", "getRowSeq", "getRowById", "getRowid", "getTableData", "getFullData", "setColumnFixed", "clearColumnFixed", "setColumnWidth", "getColumnWidth", "recalcRowHeight", "setRowHeightConf", "getRowHeightConf", "setRowHeight", "getRowHeight", "hideColumn", "showColumn", "resetColumn", "refreshColumn", "refreshScroll", "recalculate", "closeTooltip", "isAllCheckboxChecked", "isAllCheckboxIndeterminate", "getCheckboxIndeterminateRecords", "setCheckboxRow", "setCheckboxRowKey", "isCheckedByCheckboxRow", "isCheckedByCheckboxRowKey", "isIndeterminateByCheckboxRow", "isIndeterminateByCheckboxRowKey", "toggleCheckboxRow", "setAllCheckboxRow", "getRadioReserveRecord", "clearRadioReserve", "getCheckboxReserveRecords", "clearCheckboxReserve", "toggleAllCheckboxRow", "clearCheckboxRow", "setCurrentRow", "isCheckedByRadioRow", "isCheckedByRadioRowKey", "setRadioRow", "setRadioRowKey", "clearCurrentRow", "clearRadioRow", "getCurrentRecord", "getRadioRecord", "getCurrentColumn", "setCurrentColumn", "clearCurrentColumn", "setPendingRow", "togglePendingRow", "hasPendingByRow", "isPendingByRow", "getPendingRecords", "clearPendingRow", "setFilterByEvent", "sort", "setSort", "setSortByEvent", "clearSort", "clearSortByEvent", "isSort", "getSortColumns", "closeFilter", "isFilter", "clearFilterByEvent", "isActiveFilterByColumn", "isRowExpandLoaded", "clearRowExpandLoaded", "reloadRowExpand", "reloadRowExpand", "toggleRowExpand", "setAllRowExpand", "setRowExpand", "isExpandByRow", "isRowExpandByRow", "clearRowExpand", "clearRowExpandReserve", "getRowExpandRecords", "getTreeExpandRecords", "isTreeExpandLoaded", "clearTreeExpandLoaded", "reloadTreeExpand", "reloadTreeChilds", "toggleTreeExpand", "setAllTreeExpand", "setTreeExpand", "isTreeExpandByRow", "clearTreeExpand", "clearTreeExpandReserve", "getScroll", "scrollTo", "scrollToStartRow", "scrollToEndRow", "scrollToRow", "scrollToStartColumn", "scrollToEndColumn", "scrollToColumn", "clearScroll", "updateFooter", "updateStatus", "setMergeCells", "removeInsertRow", "removeMergeCells", "getMergeCells", "clearMergeCells", "setMergeFooterItems", "removeMergeFooterItems", "getMergeFooterItems", "clearMergeFooterItems", "getCustomStoreData", "setRowGroupExpand", "setRowGroupExpandByField", "setAllRowGroupExpand", "clearRowGroupExpand", "isRowGroupExpandByRow", "isRowGroupRecord", "isAggregateRecord", "isAggregateExpandByRow", "getAggregateContentByRow", "getAggregateRowChildren", "setRowGroups", "clearRowGroups", "openTooltip", "moveColumnTo", "moveRowTo", "getCellLabel", "undo", "redo", "getCellElement", "focus", "blur", "connect"];
4056
+ var tableComponentMethodKeys = [
4057
+ "clearAll",
4058
+ "syncData",
4059
+ "updateData",
4060
+ "loadData",
4061
+ "reloadData",
4062
+ "reloadRow",
4063
+ "loadColumn",
4064
+ "reloadColumn",
4065
+ "getRowNode",
4066
+ "getColumnNode",
4067
+ "getRowIndex",
4068
+ "getVTRowIndex",
4069
+ "getVMRowIndex",
4070
+ "getColumnIndex",
4071
+ "getVTColumnIndex",
4072
+ "getVMColumnIndex",
4073
+ "setRow",
4074
+ "createData",
4075
+ "createRow",
4076
+ "revertData",
4077
+ "clearData",
4078
+ "isRemoveByRow",
4079
+ "isInsertByRow",
4080
+ "isUpdateByRow",
4081
+ "getColumns",
4082
+ "getColumnById",
4083
+ "getColumnByField",
4084
+ "getTableColumn",
4085
+ "getFullColumns",
4086
+ "getData",
4087
+ "getCheckboxRecords",
4088
+ "getParentRow",
4089
+ "getTreeRowChildren",
4090
+ "getTreeRowLevel",
4091
+ "getTreeParentRow",
4092
+ "getRowSeq",
4093
+ "getRowById",
4094
+ "getRowid",
4095
+ "getTableData",
4096
+ "getFullData",
4097
+ "setColumnFixed",
4098
+ "clearColumnFixed",
4099
+ "setColumnWidth",
4100
+ "getColumnWidth",
4101
+ "recalcRowHeight",
4102
+ "setRowHeightConf",
4103
+ "getRowHeightConf",
4104
+ "setRowHeight",
4105
+ "getRowHeight",
4106
+ "hideColumn",
4107
+ "showColumn",
4108
+ "resetColumn",
4109
+ "refreshColumn",
4110
+ "refreshScroll",
4111
+ "recalculate",
4112
+ "closeTooltip",
4113
+ "isAllCheckboxChecked",
4114
+ "isAllCheckboxIndeterminate",
4115
+ "getCheckboxIndeterminateRecords",
4116
+ "setCheckboxRow",
4117
+ "setCheckboxRowKey",
4118
+ "isCheckedByCheckboxRow",
4119
+ "isCheckedByCheckboxRowKey",
4120
+ "isIndeterminateByCheckboxRow",
4121
+ "isIndeterminateByCheckboxRowKey",
4122
+ "toggleCheckboxRow",
4123
+ "setAllCheckboxRow",
4124
+ "getRadioReserveRecord",
4125
+ "clearRadioReserve",
4126
+ "getCheckboxReserveRecords",
4127
+ "clearCheckboxReserve",
4128
+ "toggleAllCheckboxRow",
4129
+ "clearCheckboxRow",
4130
+ "setCurrentRow",
4131
+ "isCheckedByRadioRow",
4132
+ "isCheckedByRadioRowKey",
4133
+ "setRadioRow",
4134
+ "setRadioRowKey",
4135
+ "clearCurrentRow",
4136
+ "clearRadioRow",
4137
+ "getCurrentRecord",
4138
+ "getRadioRecord",
4139
+ "getCurrentColumn",
4140
+ "setCurrentColumn",
4141
+ "clearCurrentColumn",
4142
+ "setPendingRow",
4143
+ "togglePendingRow",
4144
+ "hasPendingByRow",
4145
+ "isPendingByRow",
4146
+ "getPendingRecords",
4147
+ "clearPendingRow",
4148
+ "setFilterByEvent",
4149
+ "sort",
4150
+ "setSort",
4151
+ "setSortByEvent",
4152
+ "clearSort",
4153
+ "clearSortByEvent",
4154
+ "isSort",
4155
+ "getSortColumns",
4156
+ "closeFilter",
4157
+ "isFilter",
4158
+ "clearFilterByEvent",
4159
+ "isActiveFilterByColumn",
4160
+ "isRowExpandLoaded",
4161
+ "clearRowExpandLoaded",
4162
+ "reloadRowExpand",
4163
+ "reloadRowExpand",
4164
+ "toggleRowExpand",
4165
+ "setAllRowExpand",
4166
+ "setRowExpand",
4167
+ "isExpandByRow",
4168
+ "isRowExpandByRow",
4169
+ "clearRowExpand",
4170
+ "clearRowExpandReserve",
4171
+ "getRowExpandRecords",
4172
+ "getTreeExpandRecords",
4173
+ "isTreeExpandLoaded",
4174
+ "clearTreeExpandLoaded",
4175
+ "reloadTreeExpand",
4176
+ "reloadTreeChilds",
4177
+ "toggleTreeExpand",
4178
+ "setAllTreeExpand",
4179
+ "setTreeExpand",
4180
+ "isTreeExpandByRow",
4181
+ "clearTreeExpand",
4182
+ "clearTreeExpandReserve",
4183
+ "getScroll",
4184
+ "scrollTo",
4185
+ "scrollToStartRow",
4186
+ "scrollToEndRow",
4187
+ "scrollToRow",
4188
+ "scrollToStartColumn",
4189
+ "scrollToEndColumn",
4190
+ "scrollToColumn",
4191
+ "clearScroll",
4192
+ "updateFooter",
4193
+ "updateStatus",
4194
+ "setMergeCells",
4195
+ "removeInsertRow",
4196
+ "removeMergeCells",
4197
+ "getMergeCells",
4198
+ "clearMergeCells",
4199
+ "setMergeFooterItems",
4200
+ "removeMergeFooterItems",
4201
+ "getMergeFooterItems",
4202
+ "clearMergeFooterItems",
4203
+ "getCustomStoreData",
4204
+ "setRowGroupExpand",
4205
+ "setRowGroupExpandByField",
4206
+ "setAllRowGroupExpand",
4207
+ "clearRowGroupExpand",
4208
+ "isRowGroupExpandByRow",
4209
+ "isRowGroupRecord",
4210
+ "isAggregateRecord",
4211
+ "isAggregateExpandByRow",
4212
+ "getAggregateContentByRow",
4213
+ "getAggregateRowChildren",
4214
+ "setRowGroups",
4215
+ "clearRowGroups",
4216
+ "openTooltip",
4217
+ "moveColumnTo",
4218
+ "moveRowTo",
4219
+ "getCellLabel",
4220
+ "undo",
4221
+ "redo",
4222
+ "getCellElement",
4223
+ "focus",
4224
+ "blur",
4225
+ "connect"
4226
+ ];
3854
4227
  var defaultLayouts = [["Form"], ["Toolbar", "Top", "Gantt", "Bottom", "Pager"]];
3855
4228
  function createInternalData2() {
3856
4229
  return {
@@ -5058,10 +5431,7 @@ var gantt_default = defineVxeComponent({
5058
5431
  reactData.sortData = sortList;
5059
5432
  reactData.filterData = filterList;
5060
5433
  reactData.tableLoading = true;
5061
- return Promise.all([
5062
- Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)),
5063
- operPromise
5064
- ]).then(([rest]) => {
5434
+ return Promise.all([Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)), operPromise]).then(([rest]) => {
5065
5435
  reactData.tableLoading = false;
5066
5436
  if (aqMethod) {
5067
5437
  aqMethod({ ...commitParams, response: rest, status: "success" }, ...args);
@@ -5431,9 +5801,13 @@ var gantt_default = defineVxeComponent({
5431
5801
  const { formConfig } = props;
5432
5802
  const { items } = formOpts;
5433
5803
  const itemList = [];
5434
- XEUtils8.eachTree(formConfig && isEnableConf(formOpts) && items ? items : [], (item) => {
5435
- itemList.push(item);
5436
- }, { children: "children" });
5804
+ XEUtils8.eachTree(
5805
+ formConfig && isEnableConf(formOpts) && items ? items : [],
5806
+ (item) => {
5807
+ itemList.push(item);
5808
+ },
5809
+ { children: "children" }
5810
+ );
5437
5811
  return XEUtils8.isUndefined(itemIndex) ? itemList : itemList[itemIndex];
5438
5812
  },
5439
5813
  getFormFlatItems() {
@@ -5787,11 +6161,17 @@ var gantt_default = defineVxeComponent({
5787
6161
  const rowOpts = computeRowOpts.value;
5788
6162
  const { row } = params;
5789
6163
  if (rowOpts.isCurrent || highlightCurrentRow) {
5790
- $xeTable.triggerCurrentRowEvent(evnt, Object.assign({
5791
- $table: $xeTable,
5792
- rowIndex: $xeTable.getRowIndex(row),
5793
- $rowIndex: $xeTable.getVMRowIndex(row)
5794
- }, params));
6164
+ $xeTable.triggerCurrentRowEvent(
6165
+ evnt,
6166
+ Object.assign(
6167
+ {
6168
+ $table: $xeTable,
6169
+ rowIndex: $xeTable.getRowIndex(row),
6170
+ $rowIndex: $xeTable.getVMRowIndex(row)
6171
+ },
6172
+ params
6173
+ )
6174
+ );
5795
6175
  }
5796
6176
  if (radioColumn && radioOpts.trigger === "row") {
5797
6177
  $xeTable.triggerRadioRowEvent(evnt, params);
@@ -5969,6 +6349,7 @@ var gantt_default = defineVxeComponent({
5969
6349
  if (formOpts.items) {
5970
6350
  const formSlots = {};
5971
6351
  if (!formOpts.inited) {
6352
+ ;
5972
6353
  formOpts.inited = true;
5973
6354
  const beforeItem = proxyOpts.beforeItem;
5974
6355
  if (proxyOpts && beforeItem) {
@@ -5988,25 +6369,33 @@ var gantt_default = defineVxeComponent({
5988
6369
  });
5989
6370
  if (VxeUIFormComponent) {
5990
6371
  slotVNs.push(
5991
- h6(VxeUIFormComponent, {
5992
- ref: refForm,
5993
- ...Object.assign({}, formOpts, {
5994
- data: proxyConfig && isEnableConf(proxyOpts) && proxyOpts.form ? formData : formOpts.data
5995
- }),
5996
- onSubmit: submitFormEvent,
5997
- onReset: resetFormEvent,
5998
- onSubmitInvalid: submitInvalidEvent,
5999
- onCollapse: collapseEvent
6000
- }, formSlots)
6372
+ h6(
6373
+ VxeUIFormComponent,
6374
+ {
6375
+ ref: refForm,
6376
+ ...Object.assign({}, formOpts, {
6377
+ data: proxyConfig && isEnableConf(proxyOpts) && proxyOpts.form ? formData : formOpts.data
6378
+ }),
6379
+ onSubmit: submitFormEvent,
6380
+ onReset: resetFormEvent,
6381
+ onSubmitInvalid: submitInvalidEvent,
6382
+ onCollapse: collapseEvent
6383
+ },
6384
+ formSlots
6385
+ )
6001
6386
  );
6002
6387
  }
6003
6388
  }
6004
6389
  }
6005
- return h6("div", {
6006
- ref: refFormWrapper,
6007
- key: "form",
6008
- class: "vxe-gantt--form-wrapper"
6009
- }, slotVNs);
6390
+ return h6(
6391
+ "div",
6392
+ {
6393
+ ref: refFormWrapper,
6394
+ key: "form",
6395
+ class: "vxe-gantt--form-wrapper"
6396
+ },
6397
+ slotVNs
6398
+ );
6010
6399
  }
6011
6400
  return renderEmptyElement3($xeGantt);
6012
6401
  };
@@ -6048,47 +6437,67 @@ var gantt_default = defineVxeComponent({
6048
6437
  }
6049
6438
  }
6050
6439
  slotVNs.push(
6051
- h6(VxeToolbarComponent, {
6052
- ref: refToolbar,
6053
- ...toolbarOpts,
6054
- slots: void 0
6055
- }, toolbarSlots)
6440
+ h6(
6441
+ VxeToolbarComponent,
6442
+ {
6443
+ ref: refToolbar,
6444
+ ...toolbarOpts,
6445
+ slots: void 0
6446
+ },
6447
+ toolbarSlots
6448
+ )
6056
6449
  );
6057
6450
  }
6058
- return h6("div", {
6059
- ref: refToolbarWrapper,
6060
- key: "toolbar",
6061
- class: "vxe-gantt--toolbar-wrapper"
6062
- }, slotVNs);
6451
+ return h6(
6452
+ "div",
6453
+ {
6454
+ ref: refToolbarWrapper,
6455
+ key: "toolbar",
6456
+ class: "vxe-gantt--toolbar-wrapper"
6457
+ },
6458
+ slotVNs
6459
+ );
6063
6460
  }
6064
6461
  return renderEmptyElement3($xeGantt);
6065
6462
  };
6066
6463
  const renderTop = () => {
6067
6464
  const topSlot = slots.top;
6068
6465
  if (topSlot) {
6069
- return h6("div", {
6070
- ref: refTopWrapper,
6071
- key: "top",
6072
- class: "vxe-gantt--top-wrapper"
6073
- }, topSlot({ $grid: null, $gantt: $xeGantt }));
6466
+ return h6(
6467
+ "div",
6468
+ {
6469
+ ref: refTopWrapper,
6470
+ key: "top",
6471
+ class: "vxe-gantt--top-wrapper"
6472
+ },
6473
+ topSlot({ $grid: null, $gantt: $xeGantt })
6474
+ );
6074
6475
  }
6075
6476
  return renderEmptyElement3($xeGantt);
6076
6477
  };
6077
6478
  const renderTableLeft = () => {
6078
6479
  const leftSlot = slots.left;
6079
6480
  if (leftSlot) {
6080
- return h6("div", {
6081
- class: "vxe-gantt--left-wrapper"
6082
- }, leftSlot({ $grid: null, $gantt: $xeGantt }));
6481
+ return h6(
6482
+ "div",
6483
+ {
6484
+ class: "vxe-gantt--left-wrapper"
6485
+ },
6486
+ leftSlot({ $grid: null, $gantt: $xeGantt })
6487
+ );
6083
6488
  }
6084
6489
  return renderEmptyElement3($xeGantt);
6085
6490
  };
6086
6491
  const renderTableRight = () => {
6087
6492
  const rightSlot = slots.right;
6088
6493
  if (rightSlot) {
6089
- return h6("div", {
6090
- class: "vxe-gantt--right-wrapper"
6091
- }, rightSlot({ $grid: null, $gantt: $xeGantt }));
6494
+ return h6(
6495
+ "div",
6496
+ {
6497
+ class: "vxe-gantt--right-wrapper"
6498
+ },
6499
+ rightSlot({ $grid: null, $gantt: $xeGantt })
6500
+ );
6092
6501
  }
6093
6502
  return renderEmptyElement3($xeGantt);
6094
6503
  };
@@ -6136,24 +6545,36 @@ var gantt_default = defineVxeComponent({
6136
6545
  if (footerTooltipSlot) {
6137
6546
  slotObj.footerTooltip = footerTooltipSlot;
6138
6547
  }
6139
- return h6("div", {
6140
- ref: refTableWrapper,
6141
- class: "vxe-gantt--table-wrapper"
6142
- }, [
6143
- h6(VxeTableComponent2, {
6144
- ref: refTable,
6145
- ...tableProps2,
6146
- ...tableOns
6147
- }, slotObj)
6148
- ]);
6548
+ return h6(
6549
+ "div",
6550
+ {
6551
+ ref: refTableWrapper,
6552
+ class: "vxe-gantt--table-wrapper"
6553
+ },
6554
+ [
6555
+ h6(
6556
+ VxeTableComponent2,
6557
+ {
6558
+ ref: refTable,
6559
+ ...tableProps2,
6560
+ ...tableOns
6561
+ },
6562
+ slotObj
6563
+ )
6564
+ ]
6565
+ );
6149
6566
  };
6150
6567
  const renderBottom = () => {
6151
6568
  if (slots.bottom) {
6152
- return h6("div", {
6153
- ref: refBottomWrapper,
6154
- key: "bottom",
6155
- class: "vxe-gantt--bottom-wrapper"
6156
- }, slots.bottom({ $grid: null, $gantt: $xeGantt }));
6569
+ return h6(
6570
+ "div",
6571
+ {
6572
+ ref: refBottomWrapper,
6573
+ key: "bottom",
6574
+ class: "vxe-gantt--bottom-wrapper"
6575
+ },
6576
+ slots.bottom({ $grid: null, $gantt: $xeGantt })
6577
+ );
6157
6578
  }
6158
6579
  return renderEmptyElement3($xeGantt);
6159
6580
  };
@@ -6163,30 +6584,42 @@ var gantt_default = defineVxeComponent({
6163
6584
  const pagerOpts = computePagerOpts.value;
6164
6585
  const pagerSlot = slots.pager;
6165
6586
  if (pagerConfig && isEnableConf(pagerOpts) || slots.pager) {
6166
- return h6("div", {
6167
- ref: refPagerWrapper,
6168
- key: "pager",
6169
- class: "vxe-gantt--pager-wrapper"
6170
- }, pagerSlot ? pagerSlot({ $grid: null, $gantt: $xeGantt }) : [
6171
- VxeUIPagerComponent ? h6(VxeUIPagerComponent, {
6172
- ref: refPager,
6173
- ...pagerOpts,
6174
- ...proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {},
6175
- onPageChange: pageChangeEvent
6176
- }, getConfigSlot(pagerOpts.slots)) : renderEmptyElement3($xeGantt)
6177
- ]);
6587
+ return h6(
6588
+ "div",
6589
+ {
6590
+ ref: refPagerWrapper,
6591
+ key: "pager",
6592
+ class: "vxe-gantt--pager-wrapper"
6593
+ },
6594
+ pagerSlot ? pagerSlot({ $grid: null, $gantt: $xeGantt }) : [
6595
+ VxeUIPagerComponent ? h6(
6596
+ VxeUIPagerComponent,
6597
+ {
6598
+ ref: refPager,
6599
+ ...pagerOpts,
6600
+ ...proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {},
6601
+ onPageChange: pageChangeEvent
6602
+ },
6603
+ getConfigSlot(pagerOpts.slots)
6604
+ ) : renderEmptyElement3($xeGantt)
6605
+ ]
6606
+ );
6178
6607
  }
6179
6608
  return renderEmptyElement3($xeGantt);
6180
6609
  };
6181
6610
  const renderTaskView = () => {
6182
- return h6("div", {
6183
- ref: refGanttWrapper,
6184
- class: "vxe-gantt--view-wrapper"
6185
- }, [
6186
- h6(gantt_view_default, {
6187
- ref: refGanttView
6188
- })
6189
- ]);
6611
+ return h6(
6612
+ "div",
6613
+ {
6614
+ ref: refGanttWrapper,
6615
+ class: "vxe-gantt--view-wrapper"
6616
+ },
6617
+ [
6618
+ h6(gantt_view_default, {
6619
+ ref: refGanttView
6620
+ })
6621
+ ]
6622
+ );
6190
6623
  };
6191
6624
  const renderSplitBar = () => {
6192
6625
  const { showLeftView, showRightView } = reactData;
@@ -6200,36 +6633,55 @@ var gantt_default = defineVxeComponent({
6200
6633
  if (isResize) {
6201
6634
  ons.onMousedown = dragSplitEvent;
6202
6635
  }
6203
- return h6("div", {
6204
- class: ["vxe-gantt--view-split-bar", {
6205
- "is--resize": isResize
6206
- }]
6207
- }, [
6208
- h6("div", {
6209
- class: "vxe-gantt--view-split-bar-handle",
6210
- ...ons
6211
- }),
6212
- showCollapseTableButton || showCollapseTaskButton ? h6("div", {
6213
- class: "vxe-gantt--view-split-bar-btn-wrapper"
6214
- }, [
6215
- showCollapseTableButton && showRightView ? h6("div", {
6216
- class: ["vxe-gantt--view-split-bar-action-btn", showLeftView ? "is--prev" : "is--next"],
6217
- onClick: handleSplitLeftViewEvent
6218
- }, [
6219
- h6("i", {
6220
- class: showLeftView ? getIcon2().GANTT_VIEW_LEFT_OPEN : getIcon2().GANTT_VIEW_LEFT_CLOSE
6221
- })
6222
- ]) : renderEmptyElement3($xeGantt),
6223
- showCollapseTaskButton && showLeftView ? h6("div", {
6224
- class: ["vxe-gantt--view-split-bar-action-btn", showRightView ? "is--next" : "is--prev"],
6225
- onClick: handleSplitRightViewEvent
6226
- }, [
6227
- h6("i", {
6228
- class: showRightView ? getIcon2().GANTT_VIEW_RIGHT_OPEN : getIcon2().GANTT_VIEW_RIGHT_CLOSE
6229
- })
6230
- ]) : renderEmptyElement3($xeGantt)
6231
- ]) : renderEmptyElement3($xeGantt)
6232
- ]);
6636
+ return h6(
6637
+ "div",
6638
+ {
6639
+ class: [
6640
+ "vxe-gantt--view-split-bar",
6641
+ {
6642
+ "is--resize": isResize
6643
+ }
6644
+ ]
6645
+ },
6646
+ [
6647
+ h6("div", {
6648
+ class: "vxe-gantt--view-split-bar-handle",
6649
+ ...ons
6650
+ }),
6651
+ showCollapseTableButton || showCollapseTaskButton ? h6(
6652
+ "div",
6653
+ {
6654
+ class: "vxe-gantt--view-split-bar-btn-wrapper"
6655
+ },
6656
+ [
6657
+ showCollapseTableButton && showRightView ? h6(
6658
+ "div",
6659
+ {
6660
+ class: ["vxe-gantt--view-split-bar-action-btn", showLeftView ? "is--prev" : "is--next"],
6661
+ onClick: handleSplitLeftViewEvent
6662
+ },
6663
+ [
6664
+ h6("i", {
6665
+ class: showLeftView ? getIcon2().GANTT_VIEW_LEFT_OPEN : getIcon2().GANTT_VIEW_LEFT_CLOSE
6666
+ })
6667
+ ]
6668
+ ) : renderEmptyElement3($xeGantt),
6669
+ showCollapseTaskButton && showLeftView ? h6(
6670
+ "div",
6671
+ {
6672
+ class: ["vxe-gantt--view-split-bar-action-btn", showRightView ? "is--next" : "is--prev"],
6673
+ onClick: handleSplitRightViewEvent
6674
+ },
6675
+ [
6676
+ h6("i", {
6677
+ class: showRightView ? getIcon2().GANTT_VIEW_RIGHT_OPEN : getIcon2().GANTT_VIEW_RIGHT_CLOSE
6678
+ })
6679
+ ]
6680
+ ) : renderEmptyElement3($xeGantt)
6681
+ ]
6682
+ ) : renderEmptyElement3($xeGantt)
6683
+ ]
6684
+ );
6233
6685
  };
6234
6686
  const renderChildLayout = (layoutKeys) => {
6235
6687
  const { showLeftView, showRightView } = reactData;
@@ -6254,47 +6706,64 @@ var gantt_default = defineVxeComponent({
6254
6706
  break;
6255
6707
  case "Gantt":
6256
6708
  childVNs.push(
6257
- h6("div", {
6258
- ref: refGanttContainerElem,
6259
- key: "tv",
6260
- class: ["vxe-gantt--gantt-container", `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`, `sy-pos--${scrollbarYToLeft ? "left" : "right"}`, {
6261
- "is--virtual-scrollbar": isVScrollbar,
6262
- "ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
6263
- "ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
6264
- "show--left": showLeftView,
6265
- "hide--left": !showLeftView,
6266
- "show--right": showRightView,
6267
- "hide--right": !showRightView,
6268
- "is--ah-split-btn": autoHideCollapseButton
6269
- }]
6270
- }, [
6271
- renderTableLeft(),
6272
- renderTable(),
6273
- renderSplitBar(),
6274
- renderTaskView(),
6275
- renderTableRight(),
6276
- h6("div", {
6277
- ref: refClassifyWrapperElem
6278
- }),
6279
- h6("div", {
6280
- ref: refResizableSplitTip,
6281
- class: "vxe-gantt--resizable-split-tip"
6282
- }, [
6709
+ h6(
6710
+ "div",
6711
+ {
6712
+ ref: refGanttContainerElem,
6713
+ key: "tv",
6714
+ class: [
6715
+ "vxe-gantt--gantt-container",
6716
+ `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
6717
+ `sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
6718
+ {
6719
+ "is--virtual-scrollbar": isVScrollbar,
6720
+ "ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
6721
+ "ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
6722
+ "show--left": showLeftView,
6723
+ "hide--left": !showLeftView,
6724
+ "show--right": showRightView,
6725
+ "hide--right": !showRightView,
6726
+ "is--ah-split-btn": autoHideCollapseButton
6727
+ }
6728
+ ]
6729
+ },
6730
+ [
6731
+ renderTableLeft(),
6732
+ renderTable(),
6733
+ renderSplitBar(),
6734
+ renderTaskView(),
6735
+ renderTableRight(),
6283
6736
  h6("div", {
6284
- class: "vxe-gantt--resizable-split-tip-number"
6285
- }, [
6286
- h6("div", {
6287
- class: "vxe-gantt--resizable-split-number-left"
6288
- }),
6289
- h6("div", {
6290
- class: "vxe-gantt--resizable-split-number-right"
6291
- })
6292
- ])
6293
- ]),
6294
- h6("div", {
6295
- class: "vxe-gantt--border-line"
6296
- })
6297
- ])
6737
+ ref: refClassifyWrapperElem
6738
+ }),
6739
+ h6(
6740
+ "div",
6741
+ {
6742
+ ref: refResizableSplitTip,
6743
+ class: "vxe-gantt--resizable-split-tip"
6744
+ },
6745
+ [
6746
+ h6(
6747
+ "div",
6748
+ {
6749
+ class: "vxe-gantt--resizable-split-tip-number"
6750
+ },
6751
+ [
6752
+ h6("div", {
6753
+ class: "vxe-gantt--resizable-split-number-left"
6754
+ }),
6755
+ h6("div", {
6756
+ class: "vxe-gantt--resizable-split-number-right"
6757
+ })
6758
+ ]
6759
+ )
6760
+ ]
6761
+ ),
6762
+ h6("div", {
6763
+ class: "vxe-gantt--border-line"
6764
+ })
6765
+ ]
6766
+ )
6298
6767
  );
6299
6768
  break;
6300
6769
  case "Bottom":
@@ -6319,56 +6788,84 @@ var gantt_default = defineVxeComponent({
6319
6788
  const asideRightSlot = slots.asideRight || slots["aside-right"];
6320
6789
  const taskBarTooltipSlot = slots.taskBarTooltip || slots["task-bar-tooltip"];
6321
6790
  return [
6322
- h6("div", {
6323
- class: "vxe-gantt--layout-header-wrapper"
6324
- }, renderChildLayout(headKeys)),
6325
- h6("div", {
6326
- class: "vxe-gantt--layout-body-wrapper"
6327
- }, [
6328
- asideLeftSlot ? h6("div", {
6329
- class: "vxe-gantt--layout-aside-left-wrapper"
6330
- }, asideLeftSlot({})) : renderEmptyElement3($xeGantt),
6331
- h6("div", {
6332
- class: "vxe-gantt--layout-body-content-wrapper"
6333
- }, renderChildLayout(bodyKeys)),
6334
- asideRightSlot ? h6("div", {
6335
- class: "vxe-gantt--layout-aside-right-wrapper"
6336
- }, asideRightSlot({})) : renderEmptyElement3($xeGantt)
6337
- ]),
6338
- h6("div", {
6339
- class: "vxe-gantt--layout-footer-wrapper"
6340
- }, renderChildLayout(footKeys)),
6791
+ h6(
6792
+ "div",
6793
+ {
6794
+ class: "vxe-gantt--layout-header-wrapper"
6795
+ },
6796
+ renderChildLayout(headKeys)
6797
+ ),
6798
+ h6(
6799
+ "div",
6800
+ {
6801
+ class: "vxe-gantt--layout-body-wrapper"
6802
+ },
6803
+ [
6804
+ asideLeftSlot ? h6(
6805
+ "div",
6806
+ {
6807
+ class: "vxe-gantt--layout-aside-left-wrapper"
6808
+ },
6809
+ asideLeftSlot({})
6810
+ ) : renderEmptyElement3($xeGantt),
6811
+ h6(
6812
+ "div",
6813
+ {
6814
+ class: "vxe-gantt--layout-body-content-wrapper"
6815
+ },
6816
+ renderChildLayout(bodyKeys)
6817
+ ),
6818
+ asideRightSlot ? h6(
6819
+ "div",
6820
+ {
6821
+ class: "vxe-gantt--layout-aside-right-wrapper"
6822
+ },
6823
+ asideRightSlot({})
6824
+ ) : renderEmptyElement3($xeGantt)
6825
+ ]
6826
+ ),
6827
+ h6(
6828
+ "div",
6829
+ {
6830
+ class: "vxe-gantt--layout-footer-wrapper"
6831
+ },
6832
+ renderChildLayout(footKeys)
6833
+ ),
6341
6834
  h6("div", {
6342
6835
  ref: refPopupContainerElem
6343
6836
  }),
6344
6837
  h6("div", {}, [
6345
6838
  /**
6346
- * 任务条提示
6347
- */
6348
- h6(VxeUITooltipComponent, {
6349
- key: "gtp",
6350
- ref: refTooltip,
6351
- theme: taskBarTooltipOpts.theme,
6352
- enterable: taskBarTooltipOpts.enterable,
6353
- enterDelay: taskBarTooltipOpts.enterDelay,
6354
- leaveDelay: taskBarTooltipOpts.leaveDelay,
6355
- useHtml: XEUtils8.isBoolean(taskBarTooltipOpts.useHtml) ? taskBarTooltipOpts.useHtml : taskBarTooltipOpts.useHTML,
6356
- width: taskBarTooltipOpts.width,
6357
- height: taskBarTooltipOpts.height,
6358
- minWidth: taskBarTooltipOpts.minWidth,
6359
- minHeight: taskBarTooltipOpts.minHeight,
6360
- maxWidth: taskBarTooltipOpts.maxWidth,
6361
- maxHeight: taskBarTooltipOpts.maxHeight,
6362
- isArrow: false
6363
- }, taskBarTooltipSlot ? {
6364
- content: () => {
6365
- const { row, content: tooltipContent } = barTipStore;
6366
- if (row) {
6367
- return h6("div", {}, taskBarTooltipSlot(Object.assign({ tooltipContent, $gantt: $xeGantt }, barTipStore.params)));
6839
+ * 任务条提示
6840
+ */
6841
+ h6(
6842
+ VxeUITooltipComponent,
6843
+ {
6844
+ key: "gtp",
6845
+ ref: refTooltip,
6846
+ theme: taskBarTooltipOpts.theme,
6847
+ enterable: taskBarTooltipOpts.enterable,
6848
+ enterDelay: taskBarTooltipOpts.enterDelay,
6849
+ leaveDelay: taskBarTooltipOpts.leaveDelay,
6850
+ useHtml: XEUtils8.isBoolean(taskBarTooltipOpts.useHtml) ? taskBarTooltipOpts.useHtml : taskBarTooltipOpts.useHTML,
6851
+ width: taskBarTooltipOpts.width,
6852
+ height: taskBarTooltipOpts.height,
6853
+ minWidth: taskBarTooltipOpts.minWidth,
6854
+ minHeight: taskBarTooltipOpts.minHeight,
6855
+ maxWidth: taskBarTooltipOpts.maxWidth,
6856
+ maxHeight: taskBarTooltipOpts.maxHeight,
6857
+ isArrow: false
6858
+ },
6859
+ taskBarTooltipSlot ? {
6860
+ content: () => {
6861
+ const { row, content: tooltipContent } = barTipStore;
6862
+ if (row) {
6863
+ return h6("div", {}, taskBarTooltipSlot(Object.assign({ tooltipContent, $gantt: $xeGantt }, barTipStore.params)));
6864
+ }
6865
+ return renderEmptyElement3($xeGantt);
6368
6866
  }
6369
- return renderEmptyElement3($xeGantt);
6370
- }
6371
- } : {})
6867
+ } : {}
6868
+ )
6372
6869
  ])
6373
6870
  ];
6374
6871
  };
@@ -6382,39 +6879,58 @@ var gantt_default = defineVxeComponent({
6382
6879
  const tableBorder = computeTableBorder.value;
6383
6880
  const scrollbarXToTop = computeScrollbarXToTop.value;
6384
6881
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
6385
- return h6("div", {
6386
- ref: refElem,
6387
- class: ["vxe-gantt", `border--${tableBorder}`, `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`, `sy-pos--${scrollbarYToLeft ? "left" : "right"}`, {
6388
- [`size--${vSize}`]: vSize,
6389
- "is--virtual-scrollbar": isVScrollbar,
6390
- "is--round": props.round,
6391
- "show--animat": taskSplitOpts.animation,
6392
- "is--maximize": reactData.isZMax,
6393
- "is--loading": isLoading,
6394
- "is--animat": showSplitAnimat,
6395
- "show--left": showLeftView,
6396
- "hide--left": !showLeftView,
6397
- "show--right": showRightView,
6398
- "hide--right": !showRightView,
6399
- "is--scroll-y": overflowY,
6400
- "is--scroll-x": overflowX
6401
- }],
6402
- style: wrapperStyle
6403
- }, renderLayout());
6882
+ return h6(
6883
+ "div",
6884
+ {
6885
+ ref: refElem,
6886
+ class: [
6887
+ "vxe-gantt",
6888
+ `border--${tableBorder}`,
6889
+ `sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
6890
+ `sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
6891
+ {
6892
+ [`size--${vSize}`]: vSize,
6893
+ "is--virtual-scrollbar": isVScrollbar,
6894
+ "is--round": props.round,
6895
+ "show--animat": taskSplitOpts.animation,
6896
+ "is--maximize": reactData.isZMax,
6897
+ "is--loading": isLoading,
6898
+ "is--animat": showSplitAnimat,
6899
+ "show--left": showLeftView,
6900
+ "hide--left": !showLeftView,
6901
+ "show--right": showRightView,
6902
+ "hide--right": !showRightView,
6903
+ "is--scroll-y": overflowY,
6904
+ "is--scroll-x": overflowX
6905
+ }
6906
+ ],
6907
+ style: wrapperStyle
6908
+ },
6909
+ renderLayout()
6910
+ );
6404
6911
  };
6405
6912
  const columnFlag = ref6(0);
6406
- watch2(() => props.columns ? props.columns.length : -1, () => {
6407
- columnFlag.value++;
6408
- });
6409
- watch2(() => props.columns, () => {
6410
- columnFlag.value++;
6411
- });
6913
+ watch2(
6914
+ () => props.columns ? props.columns.length : -1,
6915
+ () => {
6916
+ columnFlag.value++;
6917
+ }
6918
+ );
6919
+ watch2(
6920
+ () => props.columns,
6921
+ () => {
6922
+ columnFlag.value++;
6923
+ }
6924
+ );
6412
6925
  watch2(columnFlag, () => {
6413
6926
  nextTick2(() => $xeGantt.loadColumn(props.columns || []));
6414
6927
  });
6415
- watch2(() => props.toolbarConfig, () => {
6416
- initToolbar();
6417
- });
6928
+ watch2(
6929
+ () => props.toolbarConfig,
6930
+ () => {
6931
+ initToolbar();
6932
+ }
6933
+ );
6418
6934
  watch2(computeCustomCurrentPageFlag, () => {
6419
6935
  initPages("currentPage");
6420
6936
  });
@@ -6424,9 +6940,12 @@ var gantt_default = defineVxeComponent({
6424
6940
  watch2(computeCustomTotalFlag, () => {
6425
6941
  initPages("total");
6426
6942
  });
6427
- watch2(() => props.proxyConfig, () => {
6428
- initProxy();
6429
- });
6943
+ watch2(
6944
+ () => props.proxyConfig,
6945
+ () => {
6946
+ initProxy();
6947
+ }
6948
+ );
6430
6949
  const reViewFlag = ref6(0);
6431
6950
  watch2(computeTaskViewScales, () => {
6432
6951
  handleTaskScaleConfig();
@@ -6549,9 +7068,7 @@ var gantt_default2 = VxeGantt;
6549
7068
 
6550
7069
  // packages_temp/components.ts
6551
7070
  var { setConfig: setConfig2 } = ui_default;
6552
- var components = [
6553
- gantt_default2
6554
- ];
7071
+ var components = [gantt_default2];
6555
7072
  function install(app, options) {
6556
7073
  setConfig2(options);
6557
7074
  components.forEach((component) => app.use(component));