vxe-gantt 4.9.4 → 4.9.7
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 +202 -178
- package/es/components.d.ts +2 -2
- package/es/components.js +3 -2
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/log.js +1 -1
- package/lib/components.js +4 -3
- package/lib/index.umd.js +180 -179
- 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 +3 -3
- package/packages/components.ts +3 -2
- package/packages/ui/index.ts +0 -1
package/dist/all.esm.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2
5
|
var __export = (target, all) => {
|
|
3
6
|
for (var name in all)
|
|
4
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
8
|
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
|
|
19
|
+
// packages_temp/index.ts
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
Gantt: () => Gantt,
|
|
23
|
+
VxeGantt: () => VxeGantt,
|
|
24
|
+
VxeGanttDependencyType: () => VxeGanttDependencyType,
|
|
25
|
+
VxeGanttTaskType: () => VxeGanttTaskType,
|
|
26
|
+
default: () => index_default,
|
|
27
|
+
install: () => install
|
|
28
|
+
});
|
|
6
29
|
|
|
7
30
|
// packages_temp/components.ts
|
|
8
31
|
var components_exports = {};
|
|
@@ -11,151 +34,24 @@ __export(components_exports, {
|
|
|
11
34
|
VxeGantt: () => VxeGantt,
|
|
12
35
|
VxeGanttDependencyType: () => VxeGanttDependencyType,
|
|
13
36
|
VxeGanttTaskType: () => VxeGanttTaskType,
|
|
14
|
-
VxeUI: () => ui_default,
|
|
15
37
|
install: () => install
|
|
16
38
|
});
|
|
17
|
-
|
|
18
|
-
// packages_temp/ui/index.ts
|
|
19
|
-
import { VxeUI } from "@vxe-ui/core";
|
|
20
|
-
var { setConfig, setIcon } = VxeUI;
|
|
21
|
-
VxeUI.ganttVersion = "4.9.4";
|
|
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;
|
|
39
|
+
import { VxeUI as VxeUI10 } from "@vxe-ui/core";
|
|
144
40
|
|
|
145
41
|
// packages_temp/gantt/index.ts
|
|
146
|
-
import { VxeUI as
|
|
42
|
+
import { VxeUI as VxeUI8 } from "@vxe-ui/core";
|
|
147
43
|
|
|
148
44
|
// packages_temp/ui/src/depend.ts
|
|
149
|
-
import { VxeUI as
|
|
45
|
+
import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
150
46
|
|
|
151
47
|
// packages_temp/ui/src/log.ts
|
|
152
|
-
import { VxeUI
|
|
153
|
-
var { log } =
|
|
154
|
-
var ganttVersion = `gantt v${"4.9.
|
|
48
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
49
|
+
var { log } = VxeUI;
|
|
50
|
+
var ganttVersion = `gantt v${"4.9.7"}`;
|
|
155
51
|
function createComponentLog(name) {
|
|
156
|
-
const uiVersion =
|
|
157
|
-
const tableVersion =
|
|
158
|
-
const designVersion =
|
|
52
|
+
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
53
|
+
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
|
|
54
|
+
const designVersion = VxeUI.designVersion ? `design v${VxeUI.designVersion}` : "";
|
|
159
55
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
160
56
|
return {
|
|
161
57
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -169,9 +65,9 @@ var errLog = log.create("error", ganttVersion);
|
|
|
169
65
|
function checkDependVersion() {
|
|
170
66
|
const pVersion = 4;
|
|
171
67
|
const sVersion = 23;
|
|
172
|
-
if (
|
|
173
|
-
if (!
|
|
174
|
-
errLog("vxe.error.errorVersion", [`vxe-table@${
|
|
68
|
+
if (VxeUI2.checkVersion) {
|
|
69
|
+
if (!VxeUI2.checkVersion(VxeUI2.tableVersion, pVersion, sVersion)) {
|
|
70
|
+
errLog("vxe.error.errorVersion", [`vxe-table@${VxeUI2.tableVersion || "?"}`, `vxe-table v${pVersion}.${sVersion}+`]);
|
|
175
71
|
}
|
|
176
72
|
} else {
|
|
177
73
|
errLog(`Requires vxe-table v${pVersion}.${sVersion}+`);
|
|
@@ -190,8 +86,8 @@ import XEUtils8 from "xe-utils";
|
|
|
190
86
|
|
|
191
87
|
// packages_temp/ui/src/utils.ts
|
|
192
88
|
import XEUtils from "xe-utils";
|
|
193
|
-
import { VxeUI as
|
|
194
|
-
var { zIndex } =
|
|
89
|
+
import { VxeUI as VxeUI3 } from "@vxe-ui/core";
|
|
90
|
+
var { zIndex } = VxeUI3;
|
|
195
91
|
function isEnableConf(conf) {
|
|
196
92
|
return conf && conf.enabled !== false;
|
|
197
93
|
}
|
|
@@ -208,7 +104,7 @@ function getLastZIndex() {
|
|
|
208
104
|
return zIndex.getLast();
|
|
209
105
|
}
|
|
210
106
|
function formatText(value, placeholder) {
|
|
211
|
-
return "" + (isEmptyValue(value) ? placeholder ?
|
|
107
|
+
return "" + (isEmptyValue(value) ? placeholder ? VxeUI3.getConfig().emptyCell : "" : value);
|
|
212
108
|
}
|
|
213
109
|
function eqEmptyValue(cellValue) {
|
|
214
110
|
return cellValue === "" || XEUtils.eqNull(cellValue);
|
|
@@ -301,7 +197,7 @@ function getSlotVNs(vns) {
|
|
|
301
197
|
}
|
|
302
198
|
|
|
303
199
|
// packages_temp/gantt/src/gantt.ts
|
|
304
|
-
import { VxeUI as
|
|
200
|
+
import { VxeUI as VxeUI7 } from "@vxe-ui/core";
|
|
305
201
|
|
|
306
202
|
// packages_temp/gantt/src/table-emits.ts
|
|
307
203
|
var tableEmits = [
|
|
@@ -489,7 +385,7 @@ function getTaskType(type) {
|
|
|
489
385
|
|
|
490
386
|
// packages_temp/gantt/src/gantt-view.ts
|
|
491
387
|
import { h as h5, ref as ref5, reactive, nextTick, inject as inject5, onBeforeUnmount, watch, provide, computed, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
|
|
492
|
-
import { VxeUI as
|
|
388
|
+
import { VxeUI as VxeUI6, useFns } from "@vxe-ui/core";
|
|
493
389
|
|
|
494
390
|
// packages_temp/gantt/src/static.ts
|
|
495
391
|
var VxeGanttDependencyType = /* @__PURE__ */ ((VxeGanttDependencyType2) => {
|
|
@@ -510,9 +406,9 @@ import XEUtils7 from "xe-utils";
|
|
|
510
406
|
|
|
511
407
|
// packages_temp/gantt/src/gantt-header.ts
|
|
512
408
|
import { h, inject, ref, onMounted, onUnmounted } from "vue";
|
|
513
|
-
import { VxeUI as
|
|
409
|
+
import { VxeUI as VxeUI4 } from "@vxe-ui/core";
|
|
514
410
|
import XEUtils4 from "xe-utils";
|
|
515
|
-
var { getI18n } =
|
|
411
|
+
var { getI18n } = VxeUI4;
|
|
516
412
|
var sourceType = "gantt";
|
|
517
413
|
var viewType = "header";
|
|
518
414
|
var gantt_header_default = defineVxeComponent({
|
|
@@ -696,9 +592,9 @@ import XEUtils6 from "xe-utils";
|
|
|
696
592
|
|
|
697
593
|
// packages_temp/gantt/src/gantt-chart.ts
|
|
698
594
|
import { h as h2, inject as inject2, ref as ref2, onMounted as onMounted2, onUnmounted as onUnmounted2 } from "vue";
|
|
699
|
-
import { VxeUI as
|
|
595
|
+
import { VxeUI as VxeUI5 } from "@vxe-ui/core";
|
|
700
596
|
import XEUtils5 from "xe-utils";
|
|
701
|
-
var { getIcon, renderEmptyElement } =
|
|
597
|
+
var { getIcon, renderEmptyElement } = VxeUI5;
|
|
702
598
|
var sourceType2 = "gantt";
|
|
703
599
|
var viewType2 = "chart";
|
|
704
600
|
var gantt_chart_default = defineVxeComponent({
|
|
@@ -1610,7 +1506,7 @@ var gantt_footer_default = defineVxeComponent({
|
|
|
1610
1506
|
});
|
|
1611
1507
|
|
|
1612
1508
|
// packages_temp/gantt/src/gantt-view.ts
|
|
1613
|
-
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } =
|
|
1509
|
+
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } = VxeUI6;
|
|
1614
1510
|
var { FinishToStart, StartToFinish, StartToStart, FinishToFinish } = VxeGanttDependencyType;
|
|
1615
1511
|
var sourceType5 = "gantt";
|
|
1616
1512
|
var secondMs = 1e3;
|
|
@@ -4050,7 +3946,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
4050
3946
|
// packages_temp/gantt/src/gantt.ts
|
|
4051
3947
|
import { VxeTable as VxeTableComponent } from "vxe-table";
|
|
4052
3948
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("gantt");
|
|
4053
|
-
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } =
|
|
3949
|
+
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } = VxeUI7;
|
|
4054
3950
|
var tableProps = VxeTableComponent.props;
|
|
4055
3951
|
var tableComponentPropKeys = Object.keys(tableProps);
|
|
4056
3952
|
var tableComponentMethodKeys = [
|
|
@@ -4350,11 +4246,11 @@ var gantt_default = defineVxeComponent({
|
|
|
4350
4246
|
setup(props, context) {
|
|
4351
4247
|
const { slots, emit } = context;
|
|
4352
4248
|
const xID = XEUtils8.uniqueId();
|
|
4353
|
-
const VxeUIFormComponent =
|
|
4354
|
-
const VxeUIPagerComponent =
|
|
4355
|
-
const VxeTableComponent2 =
|
|
4356
|
-
const VxeToolbarComponent =
|
|
4357
|
-
const VxeUITooltipComponent =
|
|
4249
|
+
const VxeUIFormComponent = VxeUI7.getComponent("VxeForm");
|
|
4250
|
+
const VxeUIPagerComponent = VxeUI7.getComponent("VxePager");
|
|
4251
|
+
const VxeTableComponent2 = VxeUI7.getComponent("VxeTable");
|
|
4252
|
+
const VxeToolbarComponent = VxeUI7.getComponent("VxeToolbar");
|
|
4253
|
+
const VxeUITooltipComponent = VxeUI7.getComponent("VxeTooltip");
|
|
4358
4254
|
const scrollDefaultConf = Object.assign({}, getConfig2().scrollbar);
|
|
4359
4255
|
const { computeSize } = useFns2.useSize(props);
|
|
4360
4256
|
const { computeIsVScrollbar } = useFns2.useVScrollbar(props);
|
|
@@ -4896,8 +4792,8 @@ var gantt_default = defineVxeComponent({
|
|
|
4896
4792
|
$xeGantt.clearCheckboxRow();
|
|
4897
4793
|
} else {
|
|
4898
4794
|
if (isActiveMsg) {
|
|
4899
|
-
if (
|
|
4900
|
-
|
|
4795
|
+
if (VxeUI7.modal) {
|
|
4796
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4901
4797
|
}
|
|
4902
4798
|
}
|
|
4903
4799
|
}
|
|
@@ -4918,16 +4814,16 @@ var gantt_default = defineVxeComponent({
|
|
|
4918
4814
|
const selectRecords = $xeGantt.getCheckboxRecords();
|
|
4919
4815
|
if (isActiveMsg) {
|
|
4920
4816
|
if (selectRecords.length) {
|
|
4921
|
-
if (
|
|
4922
|
-
return
|
|
4817
|
+
if (VxeUI7.modal) {
|
|
4818
|
+
return VxeUI7.modal.confirm({ id: `cfm_${code}`, content: getI18n2(alertKey), escClosable: true }).then((type) => {
|
|
4923
4819
|
if (type === "confirm") {
|
|
4924
4820
|
return callback();
|
|
4925
4821
|
}
|
|
4926
4822
|
});
|
|
4927
4823
|
}
|
|
4928
4824
|
} else {
|
|
4929
|
-
if (
|
|
4930
|
-
|
|
4825
|
+
if (VxeUI7.modal) {
|
|
4826
|
+
VxeUI7.modal.message({ id: `msg_${code}`, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4931
4827
|
}
|
|
4932
4828
|
}
|
|
4933
4829
|
} else {
|
|
@@ -5606,8 +5502,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5606
5502
|
} else {
|
|
5607
5503
|
$xeTable.setPendingRow(removeRecords, false);
|
|
5608
5504
|
if (isRespMsg) {
|
|
5609
|
-
if (
|
|
5610
|
-
|
|
5505
|
+
if (VxeUI7.modal) {
|
|
5506
|
+
VxeUI7.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
5611
5507
|
}
|
|
5612
5508
|
}
|
|
5613
5509
|
if (oldAfterDelete) {
|
|
@@ -5629,8 +5525,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5629
5525
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5630
5526
|
} else {
|
|
5631
5527
|
if (isRespMsg) {
|
|
5632
|
-
if (
|
|
5633
|
-
|
|
5528
|
+
if (VxeUI7.modal) {
|
|
5529
|
+
VxeUI7.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5634
5530
|
}
|
|
5635
5531
|
}
|
|
5636
5532
|
}
|
|
@@ -5651,8 +5547,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5651
5547
|
});
|
|
5652
5548
|
} else {
|
|
5653
5549
|
if (isActiveMsg) {
|
|
5654
|
-
if (
|
|
5655
|
-
|
|
5550
|
+
if (VxeUI7.modal) {
|
|
5551
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
5656
5552
|
}
|
|
5657
5553
|
}
|
|
5658
5554
|
}
|
|
@@ -5704,8 +5600,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5704
5600
|
} else {
|
|
5705
5601
|
$xeTable.clearPendingRow();
|
|
5706
5602
|
if (isRespMsg) {
|
|
5707
|
-
if (
|
|
5708
|
-
|
|
5603
|
+
if (VxeUI7.modal) {
|
|
5604
|
+
VxeUI7.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
5709
5605
|
}
|
|
5710
5606
|
}
|
|
5711
5607
|
if (oldAfterSave) {
|
|
@@ -5727,8 +5623,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5727
5623
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5728
5624
|
} else {
|
|
5729
5625
|
if (isRespMsg) {
|
|
5730
|
-
if (
|
|
5731
|
-
|
|
5626
|
+
if (VxeUI7.modal) {
|
|
5627
|
+
VxeUI7.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5732
5628
|
}
|
|
5733
5629
|
}
|
|
5734
5630
|
}
|
|
@@ -5748,8 +5644,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5748
5644
|
return handleSave();
|
|
5749
5645
|
} else {
|
|
5750
5646
|
if (isActiveMsg) {
|
|
5751
|
-
if (
|
|
5752
|
-
|
|
5647
|
+
if (VxeUI7.modal) {
|
|
5648
|
+
VxeUI7.modal.message({ id: code, content: getI18n2("vxe.grid.dataUnchanged"), status: "info" });
|
|
5753
5649
|
}
|
|
5754
5650
|
}
|
|
5755
5651
|
}
|
|
@@ -7059,15 +6955,143 @@ var VxeGantt = Object.assign({}, gantt_default, {
|
|
|
7059
6955
|
app.component(gantt_default.name, gantt_default);
|
|
7060
6956
|
}
|
|
7061
6957
|
});
|
|
7062
|
-
if (
|
|
7063
|
-
|
|
6958
|
+
if (VxeUI8.dynamicApp) {
|
|
6959
|
+
VxeUI8.dynamicApp.use(VxeGantt);
|
|
7064
6960
|
}
|
|
7065
|
-
|
|
6961
|
+
VxeUI8.component(gantt_default);
|
|
7066
6962
|
var Gantt = VxeGantt;
|
|
7067
6963
|
var gantt_default2 = VxeGantt;
|
|
7068
6964
|
|
|
6965
|
+
// packages_temp/ui/index.ts
|
|
6966
|
+
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
6967
|
+
var { setConfig, setIcon } = VxeUI9;
|
|
6968
|
+
VxeUI9.ganttVersion = "4.9.7";
|
|
6969
|
+
var ymdFormat = "yyyy-MM-dd";
|
|
6970
|
+
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
6971
|
+
setConfig({
|
|
6972
|
+
gantt: {
|
|
6973
|
+
// size: null,
|
|
6974
|
+
// zoomConfig: {
|
|
6975
|
+
// escRestore: true
|
|
6976
|
+
// },
|
|
6977
|
+
formConfig: {
|
|
6978
|
+
enabled: true
|
|
6979
|
+
},
|
|
6980
|
+
pagerConfig: {
|
|
6981
|
+
enabled: true
|
|
6982
|
+
// perfect: false
|
|
6983
|
+
},
|
|
6984
|
+
toolbarConfig: {
|
|
6985
|
+
enabled: true
|
|
6986
|
+
// perfect: false
|
|
6987
|
+
},
|
|
6988
|
+
proxyConfig: {
|
|
6989
|
+
enabled: true,
|
|
6990
|
+
autoLoad: true,
|
|
6991
|
+
showLoading: true,
|
|
6992
|
+
showResponseMsg: true,
|
|
6993
|
+
showActionMsg: true,
|
|
6994
|
+
response: {
|
|
6995
|
+
list: null,
|
|
6996
|
+
result: "result",
|
|
6997
|
+
total: "page.total",
|
|
6998
|
+
message: "message"
|
|
6999
|
+
}
|
|
7000
|
+
// beforeItem: null,
|
|
7001
|
+
// beforeColumn: null,
|
|
7002
|
+
// beforeQuery: null,
|
|
7003
|
+
// afterQuery: null,
|
|
7004
|
+
// beforeDelete: null,
|
|
7005
|
+
// afterDelete: null,
|
|
7006
|
+
// beforeSave: null,
|
|
7007
|
+
// afterSave: null
|
|
7008
|
+
},
|
|
7009
|
+
taskBarTooltipConfig: {
|
|
7010
|
+
enterable: true
|
|
7011
|
+
},
|
|
7012
|
+
taskLinkConfig: {
|
|
7013
|
+
enabled: true,
|
|
7014
|
+
isHover: true,
|
|
7015
|
+
showArrow: true
|
|
7016
|
+
},
|
|
7017
|
+
taskViewScaleConfig: {
|
|
7018
|
+
year: {
|
|
7019
|
+
valueFormat: ymdFormat
|
|
7020
|
+
},
|
|
7021
|
+
quarter: {
|
|
7022
|
+
valueFormat: ymdFormat
|
|
7023
|
+
},
|
|
7024
|
+
month: {
|
|
7025
|
+
valueFormat: ymdFormat
|
|
7026
|
+
},
|
|
7027
|
+
week: {
|
|
7028
|
+
startDay: 1,
|
|
7029
|
+
valueFormat: ymdFormat
|
|
7030
|
+
},
|
|
7031
|
+
day: {
|
|
7032
|
+
valueFormat: ymdFormat
|
|
7033
|
+
},
|
|
7034
|
+
date: {
|
|
7035
|
+
valueFormat: ymdFormat
|
|
7036
|
+
},
|
|
7037
|
+
hour: {
|
|
7038
|
+
valueFormat: ymdhmsFormat
|
|
7039
|
+
},
|
|
7040
|
+
minute: {
|
|
7041
|
+
valueFormat: ymdhmsFormat
|
|
7042
|
+
},
|
|
7043
|
+
second: {
|
|
7044
|
+
valueFormat: ymdhmsFormat
|
|
7045
|
+
}
|
|
7046
|
+
},
|
|
7047
|
+
taskViewConfig: {
|
|
7048
|
+
showNowLine: true,
|
|
7049
|
+
gridding: {
|
|
7050
|
+
leftSpacing: 1,
|
|
7051
|
+
rightSpacing: 1
|
|
7052
|
+
}
|
|
7053
|
+
},
|
|
7054
|
+
taskSplitConfig: {
|
|
7055
|
+
enabled: true,
|
|
7056
|
+
resize: true,
|
|
7057
|
+
autoHideCollapseButton: true,
|
|
7058
|
+
showCollapseTableButton: true,
|
|
7059
|
+
showCollapseTaskButton: true
|
|
7060
|
+
},
|
|
7061
|
+
taskBarSubviewConfig: {
|
|
7062
|
+
// showOverview: false
|
|
7063
|
+
},
|
|
7064
|
+
taskBarMoveConfig: {
|
|
7065
|
+
isLimitByLink: true
|
|
7066
|
+
},
|
|
7067
|
+
taskBarResizeConfig: {
|
|
7068
|
+
minWidthSize: 0.5,
|
|
7069
|
+
isLimitByLink: true
|
|
7070
|
+
},
|
|
7071
|
+
taskBarMoveTooltipConfig: {
|
|
7072
|
+
enterable: true,
|
|
7073
|
+
enterDelay: 0
|
|
7074
|
+
},
|
|
7075
|
+
taskBarResizeTooltipConfig: {
|
|
7076
|
+
enterable: true,
|
|
7077
|
+
enterDelay: 0
|
|
7078
|
+
}
|
|
7079
|
+
}
|
|
7080
|
+
});
|
|
7081
|
+
var iconPrefix = "vxe-icon-";
|
|
7082
|
+
setIcon({
|
|
7083
|
+
// gantt
|
|
7084
|
+
GANTT_VIEW_LEFT_OPEN: iconPrefix + "arrow-left",
|
|
7085
|
+
GANTT_VIEW_LEFT_CLOSE: iconPrefix + "arrow-right",
|
|
7086
|
+
GANTT_VIEW_RIGHT_OPEN: iconPrefix + "arrow-right",
|
|
7087
|
+
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + "arrow-left",
|
|
7088
|
+
GANTT_VIEW_TASK_MILESTONE: iconPrefix + "square-fill rotate45"
|
|
7089
|
+
});
|
|
7090
|
+
|
|
7069
7091
|
// packages_temp/components.ts
|
|
7070
|
-
|
|
7092
|
+
__reExport(components_exports, core_star);
|
|
7093
|
+
import * as core_star from "@vxe-ui/core";
|
|
7094
|
+
var { setConfig: setConfig2 } = VxeUI10;
|
|
7071
7095
|
var components = [gantt_default2];
|
|
7072
7096
|
function install(app, options) {
|
|
7073
7097
|
setConfig2(options);
|
|
@@ -7075,13 +7099,13 @@ function install(app, options) {
|
|
|
7075
7099
|
}
|
|
7076
7100
|
|
|
7077
7101
|
// packages_temp/index.ts
|
|
7102
|
+
__reExport(index_exports, components_exports);
|
|
7078
7103
|
var index_default = components_exports;
|
|
7079
7104
|
export {
|
|
7080
7105
|
Gantt,
|
|
7081
7106
|
VxeGantt,
|
|
7082
7107
|
VxeGanttDependencyType,
|
|
7083
7108
|
VxeGanttTaskType,
|
|
7084
|
-
ui_default as VxeUI,
|
|
7085
7109
|
index_default as default,
|
|
7086
7110
|
install
|
|
7087
7111
|
};
|
package/es/components.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import './ui';
|
|
3
3
|
import type { VxeGlobalConfig } from 'vxe-pc-ui';
|
|
4
4
|
export declare function install(app: App, options?: VxeGlobalConfig): void;
|
|
5
|
-
export
|
|
5
|
+
export * from '@vxe-ui/core';
|
|
6
6
|
export * from './gantt';
|
package/es/components.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import VxeUI from "
|
|
1
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
import VxeGantt from "./gantt";
|
|
3
|
+
import "./ui";
|
|
3
4
|
const { setConfig } = VxeUI;
|
|
4
5
|
const components = [VxeGantt];
|
|
5
6
|
function install(app, options) {
|
|
6
7
|
setConfig(options);
|
|
7
8
|
components.forEach((component) => app.use(component));
|
|
8
9
|
}
|
|
10
|
+
export * from "@vxe-ui/core";
|
|
9
11
|
export * from "./gantt";
|
|
10
12
|
export {
|
|
11
|
-
VxeUI,
|
|
12
13
|
install
|
|
13
14
|
};
|
package/es/ui/index.d.ts
CHANGED
package/es/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { setConfig, setIcon } = VxeUI;
|
|
3
|
-
VxeUI.ganttVersion = "4.9.
|
|
3
|
+
VxeUI.ganttVersion = "4.9.7";
|
|
4
4
|
const ymdFormat = "yyyy-MM-dd";
|
|
5
5
|
const ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
6
6
|
setConfig({
|
|
@@ -124,6 +124,5 @@ setIcon({
|
|
|
124
124
|
});
|
|
125
125
|
var ui_default = VxeUI;
|
|
126
126
|
export {
|
|
127
|
-
VxeUI,
|
|
128
127
|
ui_default as default
|
|
129
128
|
};
|
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const ganttVersion = `gantt v${"4.9.
|
|
3
|
+
const ganttVersion = `gantt v${"4.9.7"}`;
|
|
4
4
|
function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
6
6
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
|
package/lib/components.js
CHANGED
|
@@ -29,14 +29,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
var components_exports = {};
|
|
31
31
|
__export(components_exports, {
|
|
32
|
-
VxeUI: () => import_ui.default,
|
|
33
32
|
install: () => install
|
|
34
33
|
});
|
|
35
34
|
module.exports = __toCommonJS(components_exports);
|
|
36
|
-
var
|
|
35
|
+
var import_core = require("@vxe-ui/core");
|
|
37
36
|
var import_gantt = __toESM(require("./gantt"));
|
|
37
|
+
var import_ui = require("./ui");
|
|
38
|
+
__reExport(components_exports, require("@vxe-ui/core"), module.exports);
|
|
38
39
|
__reExport(components_exports, require("./gantt"), module.exports);
|
|
39
|
-
const { setConfig } =
|
|
40
|
+
const { setConfig } = import_core.VxeUI;
|
|
40
41
|
const components = [import_gantt.default];
|
|
41
42
|
function install(app, options) {
|
|
42
43
|
setConfig(options);
|