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/lib/index.umd.js
CHANGED
|
@@ -44,6 +44,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
44
44
|
}
|
|
45
45
|
return to;
|
|
46
46
|
};
|
|
47
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
47
48
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
48
49
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
49
50
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -61,7 +62,6 @@ __export(index_exports, {
|
|
|
61
62
|
VxeGantt: () => VxeGantt,
|
|
62
63
|
VxeGanttDependencyType: () => VxeGanttDependencyType,
|
|
63
64
|
VxeGanttTaskType: () => VxeGanttTaskType,
|
|
64
|
-
VxeUI: () => ui_default,
|
|
65
65
|
default: () => index_default,
|
|
66
66
|
install: () => install
|
|
67
67
|
});
|
|
@@ -74,151 +74,24 @@ __export(components_exports, {
|
|
|
74
74
|
VxeGantt: () => VxeGantt,
|
|
75
75
|
VxeGanttDependencyType: () => VxeGanttDependencyType,
|
|
76
76
|
VxeGanttTaskType: () => VxeGanttTaskType,
|
|
77
|
-
VxeUI: () => ui_default,
|
|
78
77
|
install: () => install
|
|
79
78
|
});
|
|
80
|
-
|
|
81
|
-
// packages_temp/ui/index.ts
|
|
82
|
-
var import_core = require("@vxe-ui/core");
|
|
83
|
-
var { setConfig, setIcon } = import_core.VxeUI;
|
|
84
|
-
import_core.VxeUI.ganttVersion = "4.9.4";
|
|
85
|
-
var ymdFormat = "yyyy-MM-dd";
|
|
86
|
-
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
87
|
-
setConfig({
|
|
88
|
-
gantt: {
|
|
89
|
-
// size: null,
|
|
90
|
-
// zoomConfig: {
|
|
91
|
-
// escRestore: true
|
|
92
|
-
// },
|
|
93
|
-
formConfig: {
|
|
94
|
-
enabled: true
|
|
95
|
-
},
|
|
96
|
-
pagerConfig: {
|
|
97
|
-
enabled: true
|
|
98
|
-
// perfect: false
|
|
99
|
-
},
|
|
100
|
-
toolbarConfig: {
|
|
101
|
-
enabled: true
|
|
102
|
-
// perfect: false
|
|
103
|
-
},
|
|
104
|
-
proxyConfig: {
|
|
105
|
-
enabled: true,
|
|
106
|
-
autoLoad: true,
|
|
107
|
-
showLoading: true,
|
|
108
|
-
showResponseMsg: true,
|
|
109
|
-
showActionMsg: true,
|
|
110
|
-
response: {
|
|
111
|
-
list: null,
|
|
112
|
-
result: "result",
|
|
113
|
-
total: "page.total",
|
|
114
|
-
message: "message"
|
|
115
|
-
}
|
|
116
|
-
// beforeItem: null,
|
|
117
|
-
// beforeColumn: null,
|
|
118
|
-
// beforeQuery: null,
|
|
119
|
-
// afterQuery: null,
|
|
120
|
-
// beforeDelete: null,
|
|
121
|
-
// afterDelete: null,
|
|
122
|
-
// beforeSave: null,
|
|
123
|
-
// afterSave: null
|
|
124
|
-
},
|
|
125
|
-
taskBarTooltipConfig: {
|
|
126
|
-
enterable: true
|
|
127
|
-
},
|
|
128
|
-
taskLinkConfig: {
|
|
129
|
-
enabled: true,
|
|
130
|
-
isHover: true,
|
|
131
|
-
showArrow: true
|
|
132
|
-
},
|
|
133
|
-
taskViewScaleConfig: {
|
|
134
|
-
year: {
|
|
135
|
-
valueFormat: ymdFormat
|
|
136
|
-
},
|
|
137
|
-
quarter: {
|
|
138
|
-
valueFormat: ymdFormat
|
|
139
|
-
},
|
|
140
|
-
month: {
|
|
141
|
-
valueFormat: ymdFormat
|
|
142
|
-
},
|
|
143
|
-
week: {
|
|
144
|
-
startDay: 1,
|
|
145
|
-
valueFormat: ymdFormat
|
|
146
|
-
},
|
|
147
|
-
day: {
|
|
148
|
-
valueFormat: ymdFormat
|
|
149
|
-
},
|
|
150
|
-
date: {
|
|
151
|
-
valueFormat: ymdFormat
|
|
152
|
-
},
|
|
153
|
-
hour: {
|
|
154
|
-
valueFormat: ymdhmsFormat
|
|
155
|
-
},
|
|
156
|
-
minute: {
|
|
157
|
-
valueFormat: ymdhmsFormat
|
|
158
|
-
},
|
|
159
|
-
second: {
|
|
160
|
-
valueFormat: ymdhmsFormat
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
taskViewConfig: {
|
|
164
|
-
showNowLine: true,
|
|
165
|
-
gridding: {
|
|
166
|
-
leftSpacing: 1,
|
|
167
|
-
rightSpacing: 1
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
taskSplitConfig: {
|
|
171
|
-
enabled: true,
|
|
172
|
-
resize: true,
|
|
173
|
-
autoHideCollapseButton: true,
|
|
174
|
-
showCollapseTableButton: true,
|
|
175
|
-
showCollapseTaskButton: true
|
|
176
|
-
},
|
|
177
|
-
taskBarSubviewConfig: {
|
|
178
|
-
// showOverview: false
|
|
179
|
-
},
|
|
180
|
-
taskBarMoveConfig: {
|
|
181
|
-
isLimitByLink: true
|
|
182
|
-
},
|
|
183
|
-
taskBarResizeConfig: {
|
|
184
|
-
minWidthSize: 0.5,
|
|
185
|
-
isLimitByLink: true
|
|
186
|
-
},
|
|
187
|
-
taskBarMoveTooltipConfig: {
|
|
188
|
-
enterable: true,
|
|
189
|
-
enterDelay: 0
|
|
190
|
-
},
|
|
191
|
-
taskBarResizeTooltipConfig: {
|
|
192
|
-
enterable: true,
|
|
193
|
-
enterDelay: 0
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
var iconPrefix = "vxe-icon-";
|
|
198
|
-
setIcon({
|
|
199
|
-
// gantt
|
|
200
|
-
GANTT_VIEW_LEFT_OPEN: iconPrefix + "arrow-left",
|
|
201
|
-
GANTT_VIEW_LEFT_CLOSE: iconPrefix + "arrow-right",
|
|
202
|
-
GANTT_VIEW_RIGHT_OPEN: iconPrefix + "arrow-right",
|
|
203
|
-
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + "arrow-left",
|
|
204
|
-
GANTT_VIEW_TASK_MILESTONE: iconPrefix + "square-fill rotate45"
|
|
205
|
-
});
|
|
206
|
-
var ui_default = import_core.VxeUI;
|
|
79
|
+
var import_core10 = require("@vxe-ui/core");
|
|
207
80
|
|
|
208
81
|
// packages_temp/gantt/index.ts
|
|
209
|
-
var
|
|
82
|
+
var import_core8 = require("@vxe-ui/core");
|
|
210
83
|
|
|
211
84
|
// packages_temp/ui/src/depend.ts
|
|
212
|
-
var
|
|
85
|
+
var import_core2 = require("@vxe-ui/core");
|
|
213
86
|
|
|
214
87
|
// packages_temp/ui/src/log.ts
|
|
215
|
-
var
|
|
216
|
-
var { log } =
|
|
217
|
-
var ganttVersion = `gantt v${"4.9.
|
|
88
|
+
var import_core = require("@vxe-ui/core");
|
|
89
|
+
var { log } = import_core.VxeUI;
|
|
90
|
+
var ganttVersion = `gantt v${"4.9.7"}`;
|
|
218
91
|
function createComponentLog(name) {
|
|
219
|
-
const uiVersion =
|
|
220
|
-
const tableVersion =
|
|
221
|
-
const designVersion =
|
|
92
|
+
const uiVersion = import_core.VxeUI.uiVersion ? `ui v${import_core.VxeUI.uiVersion}` : "";
|
|
93
|
+
const tableVersion = import_core.VxeUI.tableVersion ? `table v${import_core.VxeUI.tableVersion}` : "";
|
|
94
|
+
const designVersion = import_core.VxeUI.designVersion ? `design v${import_core.VxeUI.designVersion}` : "";
|
|
222
95
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
223
96
|
return {
|
|
224
97
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -232,9 +105,9 @@ var errLog = log.create("error", ganttVersion);
|
|
|
232
105
|
function checkDependVersion() {
|
|
233
106
|
const pVersion = 4;
|
|
234
107
|
const sVersion = 23;
|
|
235
|
-
if (
|
|
236
|
-
if (!
|
|
237
|
-
errLog("vxe.error.errorVersion", [`vxe-table@${
|
|
108
|
+
if (import_core2.VxeUI.checkVersion) {
|
|
109
|
+
if (!import_core2.VxeUI.checkVersion(import_core2.VxeUI.tableVersion, pVersion, sVersion)) {
|
|
110
|
+
errLog("vxe.error.errorVersion", [`vxe-table@${import_core2.VxeUI.tableVersion || "?"}`, `vxe-table v${pVersion}.${sVersion}+`]);
|
|
238
111
|
}
|
|
239
112
|
} else {
|
|
240
113
|
errLog(`Requires vxe-table v${pVersion}.${sVersion}+`);
|
|
@@ -253,8 +126,8 @@ var import_xe_utils8 = __toESM(require("xe-utils"));
|
|
|
253
126
|
|
|
254
127
|
// packages_temp/ui/src/utils.ts
|
|
255
128
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
256
|
-
var
|
|
257
|
-
var { zIndex } =
|
|
129
|
+
var import_core3 = require("@vxe-ui/core");
|
|
130
|
+
var { zIndex } = import_core3.VxeUI;
|
|
258
131
|
function isEnableConf(conf) {
|
|
259
132
|
return conf && conf.enabled !== false;
|
|
260
133
|
}
|
|
@@ -271,7 +144,7 @@ function getLastZIndex() {
|
|
|
271
144
|
return zIndex.getLast();
|
|
272
145
|
}
|
|
273
146
|
function formatText(value, placeholder) {
|
|
274
|
-
return "" + (isEmptyValue(value) ? placeholder ?
|
|
147
|
+
return "" + (isEmptyValue(value) ? placeholder ? import_core3.VxeUI.getConfig().emptyCell : "" : value);
|
|
275
148
|
}
|
|
276
149
|
function eqEmptyValue(cellValue) {
|
|
277
150
|
return cellValue === "" || import_xe_utils.default.eqNull(cellValue);
|
|
@@ -364,7 +237,7 @@ function getSlotVNs(vns) {
|
|
|
364
237
|
}
|
|
365
238
|
|
|
366
239
|
// packages_temp/gantt/src/gantt.ts
|
|
367
|
-
var
|
|
240
|
+
var import_core7 = require("@vxe-ui/core");
|
|
368
241
|
|
|
369
242
|
// packages_temp/gantt/src/table-emits.ts
|
|
370
243
|
var tableEmits = [
|
|
@@ -552,7 +425,7 @@ function getTaskType(type) {
|
|
|
552
425
|
|
|
553
426
|
// packages_temp/gantt/src/gantt-view.ts
|
|
554
427
|
var import_vue6 = require("vue");
|
|
555
|
-
var
|
|
428
|
+
var import_core6 = require("@vxe-ui/core");
|
|
556
429
|
|
|
557
430
|
// packages_temp/gantt/src/static.ts
|
|
558
431
|
var VxeGanttDependencyType = /* @__PURE__ */ ((VxeGanttDependencyType2) => {
|
|
@@ -573,9 +446,9 @@ var import_xe_utils7 = __toESM(require("xe-utils"));
|
|
|
573
446
|
|
|
574
447
|
// packages_temp/gantt/src/gantt-header.ts
|
|
575
448
|
var import_vue2 = require("vue");
|
|
576
|
-
var
|
|
449
|
+
var import_core4 = require("@vxe-ui/core");
|
|
577
450
|
var import_xe_utils4 = __toESM(require("xe-utils"));
|
|
578
|
-
var { getI18n } =
|
|
451
|
+
var { getI18n } = import_core4.VxeUI;
|
|
579
452
|
var sourceType = "gantt";
|
|
580
453
|
var viewType = "header";
|
|
581
454
|
var gantt_header_default = defineVxeComponent({
|
|
@@ -759,9 +632,9 @@ var import_xe_utils6 = __toESM(require("xe-utils"));
|
|
|
759
632
|
|
|
760
633
|
// packages_temp/gantt/src/gantt-chart.ts
|
|
761
634
|
var import_vue3 = require("vue");
|
|
762
|
-
var
|
|
635
|
+
var import_core5 = require("@vxe-ui/core");
|
|
763
636
|
var import_xe_utils5 = __toESM(require("xe-utils"));
|
|
764
|
-
var { getIcon, renderEmptyElement } =
|
|
637
|
+
var { getIcon, renderEmptyElement } = import_core5.VxeUI;
|
|
765
638
|
var sourceType2 = "gantt";
|
|
766
639
|
var viewType2 = "chart";
|
|
767
640
|
var gantt_chart_default = defineVxeComponent({
|
|
@@ -1673,7 +1546,7 @@ var gantt_footer_default = defineVxeComponent({
|
|
|
1673
1546
|
});
|
|
1674
1547
|
|
|
1675
1548
|
// packages_temp/gantt/src/gantt-view.ts
|
|
1676
|
-
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } =
|
|
1549
|
+
var { getConfig, domUtils, globalResize, globalEvents, renderEmptyElement: renderEmptyElement2 } = import_core6.VxeUI;
|
|
1677
1550
|
var { FinishToStart, StartToFinish, StartToStart, FinishToFinish } = VxeGanttDependencyType;
|
|
1678
1551
|
var sourceType5 = "gantt";
|
|
1679
1552
|
var secondMs = 1e3;
|
|
@@ -2035,7 +1908,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
2035
1908
|
getRefMaps: () => refMaps,
|
|
2036
1909
|
getComputeMaps: () => computeMaps
|
|
2037
1910
|
};
|
|
2038
|
-
const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } =
|
|
1911
|
+
const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = import_core6.useFns.useInitVScrollbar($xeGanttView);
|
|
2039
1912
|
const parseStringDate = (dateValue) => {
|
|
2040
1913
|
const dateFormat = computeDateFormat.value;
|
|
2041
1914
|
return import_xe_utils7.default.toStringDate(dateValue, dateFormat);
|
|
@@ -4113,7 +3986,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
4113
3986
|
// packages_temp/gantt/src/gantt.ts
|
|
4114
3987
|
var import_vxe_table = require("vxe-table");
|
|
4115
3988
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("gantt");
|
|
4116
|
-
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } =
|
|
3989
|
+
var { getConfig: getConfig2, getIcon: getIcon2, getI18n: getI18n2, commands, hooks, useFns: useFns2, createEvent, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS, renderEmptyElement: renderEmptyElement3 } = import_core7.VxeUI;
|
|
4117
3990
|
var tableProps = import_vxe_table.VxeTable.props;
|
|
4118
3991
|
var tableComponentPropKeys = Object.keys(tableProps);
|
|
4119
3992
|
var tableComponentMethodKeys = [
|
|
@@ -4413,11 +4286,11 @@ var gantt_default = defineVxeComponent({
|
|
|
4413
4286
|
setup(props, context) {
|
|
4414
4287
|
const { slots, emit } = context;
|
|
4415
4288
|
const xID = import_xe_utils8.default.uniqueId();
|
|
4416
|
-
const VxeUIFormComponent =
|
|
4417
|
-
const VxeUIPagerComponent =
|
|
4418
|
-
const VxeTableComponent2 =
|
|
4419
|
-
const VxeToolbarComponent =
|
|
4420
|
-
const VxeUITooltipComponent =
|
|
4289
|
+
const VxeUIFormComponent = import_core7.VxeUI.getComponent("VxeForm");
|
|
4290
|
+
const VxeUIPagerComponent = import_core7.VxeUI.getComponent("VxePager");
|
|
4291
|
+
const VxeTableComponent2 = import_core7.VxeUI.getComponent("VxeTable");
|
|
4292
|
+
const VxeToolbarComponent = import_core7.VxeUI.getComponent("VxeToolbar");
|
|
4293
|
+
const VxeUITooltipComponent = import_core7.VxeUI.getComponent("VxeTooltip");
|
|
4421
4294
|
const scrollDefaultConf = Object.assign({}, getConfig2().scrollbar);
|
|
4422
4295
|
const { computeSize } = useFns2.useSize(props);
|
|
4423
4296
|
const { computeIsVScrollbar } = useFns2.useVScrollbar(props);
|
|
@@ -4959,8 +4832,8 @@ var gantt_default = defineVxeComponent({
|
|
|
4959
4832
|
$xeGantt.clearCheckboxRow();
|
|
4960
4833
|
} else {
|
|
4961
4834
|
if (isActiveMsg) {
|
|
4962
|
-
if (
|
|
4963
|
-
|
|
4835
|
+
if (import_core7.VxeUI.modal) {
|
|
4836
|
+
import_core7.VxeUI.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4964
4837
|
}
|
|
4965
4838
|
}
|
|
4966
4839
|
}
|
|
@@ -4981,16 +4854,16 @@ var gantt_default = defineVxeComponent({
|
|
|
4981
4854
|
const selectRecords = $xeGantt.getCheckboxRecords();
|
|
4982
4855
|
if (isActiveMsg) {
|
|
4983
4856
|
if (selectRecords.length) {
|
|
4984
|
-
if (
|
|
4985
|
-
return
|
|
4857
|
+
if (import_core7.VxeUI.modal) {
|
|
4858
|
+
return import_core7.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n2(alertKey), escClosable: true }).then((type) => {
|
|
4986
4859
|
if (type === "confirm") {
|
|
4987
4860
|
return callback();
|
|
4988
4861
|
}
|
|
4989
4862
|
});
|
|
4990
4863
|
}
|
|
4991
4864
|
} else {
|
|
4992
|
-
if (
|
|
4993
|
-
|
|
4865
|
+
if (import_core7.VxeUI.modal) {
|
|
4866
|
+
import_core7.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
4994
4867
|
}
|
|
4995
4868
|
}
|
|
4996
4869
|
} else {
|
|
@@ -5669,8 +5542,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5669
5542
|
} else {
|
|
5670
5543
|
$xeTable.setPendingRow(removeRecords, false);
|
|
5671
5544
|
if (isRespMsg) {
|
|
5672
|
-
if (
|
|
5673
|
-
|
|
5545
|
+
if (import_core7.VxeUI.modal) {
|
|
5546
|
+
import_core7.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
5674
5547
|
}
|
|
5675
5548
|
}
|
|
5676
5549
|
if (oldAfterDelete) {
|
|
@@ -5692,8 +5565,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5692
5565
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5693
5566
|
} else {
|
|
5694
5567
|
if (isRespMsg) {
|
|
5695
|
-
if (
|
|
5696
|
-
|
|
5568
|
+
if (import_core7.VxeUI.modal) {
|
|
5569
|
+
import_core7.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5697
5570
|
}
|
|
5698
5571
|
}
|
|
5699
5572
|
}
|
|
@@ -5714,8 +5587,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5714
5587
|
});
|
|
5715
5588
|
} else {
|
|
5716
5589
|
if (isActiveMsg) {
|
|
5717
|
-
if (
|
|
5718
|
-
|
|
5590
|
+
if (import_core7.VxeUI.modal) {
|
|
5591
|
+
import_core7.VxeUI.modal.message({ id: code, content: getI18n2("vxe.grid.selectOneRecord"), status: "warning" });
|
|
5719
5592
|
}
|
|
5720
5593
|
}
|
|
5721
5594
|
}
|
|
@@ -5767,8 +5640,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5767
5640
|
} else {
|
|
5768
5641
|
$xeTable.clearPendingRow();
|
|
5769
5642
|
if (isRespMsg) {
|
|
5770
|
-
if (
|
|
5771
|
-
|
|
5643
|
+
if (import_core7.VxeUI.modal) {
|
|
5644
|
+
import_core7.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
5772
5645
|
}
|
|
5773
5646
|
}
|
|
5774
5647
|
if (oldAfterSave) {
|
|
@@ -5790,8 +5663,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5790
5663
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
5791
5664
|
} else {
|
|
5792
5665
|
if (isRespMsg) {
|
|
5793
|
-
if (
|
|
5794
|
-
|
|
5666
|
+
if (import_core7.VxeUI.modal) {
|
|
5667
|
+
import_core7.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
5795
5668
|
}
|
|
5796
5669
|
}
|
|
5797
5670
|
}
|
|
@@ -5811,8 +5684,8 @@ var gantt_default = defineVxeComponent({
|
|
|
5811
5684
|
return handleSave();
|
|
5812
5685
|
} else {
|
|
5813
5686
|
if (isActiveMsg) {
|
|
5814
|
-
if (
|
|
5815
|
-
|
|
5687
|
+
if (import_core7.VxeUI.modal) {
|
|
5688
|
+
import_core7.VxeUI.modal.message({ id: code, content: getI18n2("vxe.grid.dataUnchanged"), status: "info" });
|
|
5816
5689
|
}
|
|
5817
5690
|
}
|
|
5818
5691
|
}
|
|
@@ -7122,15 +6995,142 @@ var VxeGantt = Object.assign({}, gantt_default, {
|
|
|
7122
6995
|
app.component(gantt_default.name, gantt_default);
|
|
7123
6996
|
}
|
|
7124
6997
|
});
|
|
7125
|
-
if (
|
|
7126
|
-
|
|
6998
|
+
if (import_core8.VxeUI.dynamicApp) {
|
|
6999
|
+
import_core8.VxeUI.dynamicApp.use(VxeGantt);
|
|
7127
7000
|
}
|
|
7128
|
-
|
|
7001
|
+
import_core8.VxeUI.component(gantt_default);
|
|
7129
7002
|
var Gantt = VxeGantt;
|
|
7130
7003
|
var gantt_default2 = VxeGantt;
|
|
7131
7004
|
|
|
7005
|
+
// packages_temp/ui/index.ts
|
|
7006
|
+
var import_core9 = require("@vxe-ui/core");
|
|
7007
|
+
var { setConfig, setIcon } = import_core9.VxeUI;
|
|
7008
|
+
import_core9.VxeUI.ganttVersion = "4.9.7";
|
|
7009
|
+
var ymdFormat = "yyyy-MM-dd";
|
|
7010
|
+
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
7011
|
+
setConfig({
|
|
7012
|
+
gantt: {
|
|
7013
|
+
// size: null,
|
|
7014
|
+
// zoomConfig: {
|
|
7015
|
+
// escRestore: true
|
|
7016
|
+
// },
|
|
7017
|
+
formConfig: {
|
|
7018
|
+
enabled: true
|
|
7019
|
+
},
|
|
7020
|
+
pagerConfig: {
|
|
7021
|
+
enabled: true
|
|
7022
|
+
// perfect: false
|
|
7023
|
+
},
|
|
7024
|
+
toolbarConfig: {
|
|
7025
|
+
enabled: true
|
|
7026
|
+
// perfect: false
|
|
7027
|
+
},
|
|
7028
|
+
proxyConfig: {
|
|
7029
|
+
enabled: true,
|
|
7030
|
+
autoLoad: true,
|
|
7031
|
+
showLoading: true,
|
|
7032
|
+
showResponseMsg: true,
|
|
7033
|
+
showActionMsg: true,
|
|
7034
|
+
response: {
|
|
7035
|
+
list: null,
|
|
7036
|
+
result: "result",
|
|
7037
|
+
total: "page.total",
|
|
7038
|
+
message: "message"
|
|
7039
|
+
}
|
|
7040
|
+
// beforeItem: null,
|
|
7041
|
+
// beforeColumn: null,
|
|
7042
|
+
// beforeQuery: null,
|
|
7043
|
+
// afterQuery: null,
|
|
7044
|
+
// beforeDelete: null,
|
|
7045
|
+
// afterDelete: null,
|
|
7046
|
+
// beforeSave: null,
|
|
7047
|
+
// afterSave: null
|
|
7048
|
+
},
|
|
7049
|
+
taskBarTooltipConfig: {
|
|
7050
|
+
enterable: true
|
|
7051
|
+
},
|
|
7052
|
+
taskLinkConfig: {
|
|
7053
|
+
enabled: true,
|
|
7054
|
+
isHover: true,
|
|
7055
|
+
showArrow: true
|
|
7056
|
+
},
|
|
7057
|
+
taskViewScaleConfig: {
|
|
7058
|
+
year: {
|
|
7059
|
+
valueFormat: ymdFormat
|
|
7060
|
+
},
|
|
7061
|
+
quarter: {
|
|
7062
|
+
valueFormat: ymdFormat
|
|
7063
|
+
},
|
|
7064
|
+
month: {
|
|
7065
|
+
valueFormat: ymdFormat
|
|
7066
|
+
},
|
|
7067
|
+
week: {
|
|
7068
|
+
startDay: 1,
|
|
7069
|
+
valueFormat: ymdFormat
|
|
7070
|
+
},
|
|
7071
|
+
day: {
|
|
7072
|
+
valueFormat: ymdFormat
|
|
7073
|
+
},
|
|
7074
|
+
date: {
|
|
7075
|
+
valueFormat: ymdFormat
|
|
7076
|
+
},
|
|
7077
|
+
hour: {
|
|
7078
|
+
valueFormat: ymdhmsFormat
|
|
7079
|
+
},
|
|
7080
|
+
minute: {
|
|
7081
|
+
valueFormat: ymdhmsFormat
|
|
7082
|
+
},
|
|
7083
|
+
second: {
|
|
7084
|
+
valueFormat: ymdhmsFormat
|
|
7085
|
+
}
|
|
7086
|
+
},
|
|
7087
|
+
taskViewConfig: {
|
|
7088
|
+
showNowLine: true,
|
|
7089
|
+
gridding: {
|
|
7090
|
+
leftSpacing: 1,
|
|
7091
|
+
rightSpacing: 1
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7094
|
+
taskSplitConfig: {
|
|
7095
|
+
enabled: true,
|
|
7096
|
+
resize: true,
|
|
7097
|
+
autoHideCollapseButton: true,
|
|
7098
|
+
showCollapseTableButton: true,
|
|
7099
|
+
showCollapseTaskButton: true
|
|
7100
|
+
},
|
|
7101
|
+
taskBarSubviewConfig: {
|
|
7102
|
+
// showOverview: false
|
|
7103
|
+
},
|
|
7104
|
+
taskBarMoveConfig: {
|
|
7105
|
+
isLimitByLink: true
|
|
7106
|
+
},
|
|
7107
|
+
taskBarResizeConfig: {
|
|
7108
|
+
minWidthSize: 0.5,
|
|
7109
|
+
isLimitByLink: true
|
|
7110
|
+
},
|
|
7111
|
+
taskBarMoveTooltipConfig: {
|
|
7112
|
+
enterable: true,
|
|
7113
|
+
enterDelay: 0
|
|
7114
|
+
},
|
|
7115
|
+
taskBarResizeTooltipConfig: {
|
|
7116
|
+
enterable: true,
|
|
7117
|
+
enterDelay: 0
|
|
7118
|
+
}
|
|
7119
|
+
}
|
|
7120
|
+
});
|
|
7121
|
+
var iconPrefix = "vxe-icon-";
|
|
7122
|
+
setIcon({
|
|
7123
|
+
// gantt
|
|
7124
|
+
GANTT_VIEW_LEFT_OPEN: iconPrefix + "arrow-left",
|
|
7125
|
+
GANTT_VIEW_LEFT_CLOSE: iconPrefix + "arrow-right",
|
|
7126
|
+
GANTT_VIEW_RIGHT_OPEN: iconPrefix + "arrow-right",
|
|
7127
|
+
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + "arrow-left",
|
|
7128
|
+
GANTT_VIEW_TASK_MILESTONE: iconPrefix + "square-fill rotate45"
|
|
7129
|
+
});
|
|
7130
|
+
|
|
7132
7131
|
// packages_temp/components.ts
|
|
7133
|
-
|
|
7132
|
+
__reExport(components_exports, require("@vxe-ui/core"));
|
|
7133
|
+
var { setConfig: setConfig2 } = import_core10.VxeUI;
|
|
7134
7134
|
var components = [gantt_default2];
|
|
7135
7135
|
function install(app, options) {
|
|
7136
7136
|
setConfig2(options);
|
|
@@ -7138,6 +7138,7 @@ function install(app, options) {
|
|
|
7138
7138
|
}
|
|
7139
7139
|
|
|
7140
7140
|
// packages_temp/index.ts
|
|
7141
|
+
__reExport(index_exports, components_exports, module.exports);
|
|
7141
7142
|
var index_default = components_exports;
|
|
7142
7143
|
|
|
7143
7144
|
return module.exports;
|