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