vxe-gantt 3.1.14 → 3.1.16
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/es/gantt/src/gantt-body.js +1 -1
- package/es/gantt/src/gantt-view.js +7 -7
- package/es/gantt/src/gantt.js +5 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-body.js +1 -1
- package/lib/gantt/src/gantt-body.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +7 -7
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +5 -0
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +15 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/gantt/src/gantt-body.ts +1 -1
- package/packages/gantt/src/gantt-view.ts +7 -7
- package/packages/gantt/src/gantt.ts +5 -0
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.default = void 0;
|
|
|
13
13
|
var _core = require("@vxe-ui/core");
|
|
14
14
|
var setConfig = _core.VxeUI.setConfig,
|
|
15
15
|
setIcon = _core.VxeUI.setIcon;
|
|
16
|
-
_core.VxeUI.ganttVersion = "3.1.
|
|
16
|
+
_core.VxeUI.ganttVersion = "3.1.16";
|
|
17
17
|
var ymdFormat = 'yyyy-MM-dd';
|
|
18
18
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
19
19
|
setConfig({
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.1.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.1.16","yyyy-MM-dd"),ymdhmsFormat="yyyy-MM-dd HH:mm:ss",iconPrefix=(setConfig({gantt:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",message:"message"}},taskBarTooltipConfig:{enterable:!0},taskLinkConfig:{enabled:!0,showArrow:!0},taskViewScaleConfig:{year:{valueFormat:ymdFormat},quarter:{valueFormat:ymdFormat},month:{valueFormat:ymdFormat},week:{startDay:1,valueFormat:ymdFormat},day:{valueFormat:ymdFormat},date:{valueFormat:ymdFormat},hour:{valueFormat:ymdhmsFormat},minute:{valueFormat:ymdhmsFormat},second:{valueFormat:ymdhmsFormat}},taskViewConfig:{showNowLine:!0,gridding:{leftSpacing:1,rightSpacing:1}},taskSplitConfig:{enabled:!0,resize:!0,showCollapseTableButton:!0,showCollapseTaskButton:!0}}}),"vxe-icon-"),_default=(setIcon({GANTT_VIEW_LEFT_OPEN:iconPrefix+"arrow-left",GANTT_VIEW_LEFT_CLOSE:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_OPEN:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_CLOSE:iconPrefix+"arrow-left",GANTT_VIEW_TASK_MILESTONE:iconPrefix+"square-fill rotate45"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
8
|
var log = _core.VxeUI.log;
|
|
9
|
-
var version = "gantt v".concat("3.1.
|
|
9
|
+
var version = "gantt v".concat("3.1.16");
|
|
10
10
|
var warnLog = exports.warnLog = log.create('warn', version);
|
|
11
11
|
var errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.1.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.1.16"),warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -279,7 +279,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
279
279
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
280
280
|
return {
|
|
281
281
|
offsetLeftSize,
|
|
282
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
282
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -302,7 +302,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
302
302
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
303
303
|
return {
|
|
304
304
|
offsetLeftSize,
|
|
305
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
305
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -325,7 +325,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
325
325
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
326
326
|
return {
|
|
327
327
|
offsetLeftSize,
|
|
328
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
328
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -348,7 +348,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
348
348
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
349
349
|
return {
|
|
350
350
|
offsetLeftSize,
|
|
351
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
351
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -395,7 +395,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
395
395
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
396
396
|
return {
|
|
397
397
|
offsetLeftSize,
|
|
398
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
398
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -418,7 +418,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
418
418
|
const offsetLeftSize = (indexMaps[startStr] || 0) + subtract
|
|
419
419
|
return {
|
|
420
420
|
offsetLeftSize,
|
|
421
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
421
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
}
|
|
@@ -431,7 +431,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
|
|
|
431
431
|
let offsetWidthSize = 0
|
|
432
432
|
if (minViewDate) {
|
|
433
433
|
offsetLeftSize = (startDate.getTime() - minViewDate.getTime()) / gapTime
|
|
434
|
-
offsetWidthSize = ((endDate.getTime() - startDate.getTime()) / gapTime)
|
|
434
|
+
offsetWidthSize = ((endDate.getTime() - startDate.getTime()) / gapTime)
|
|
435
435
|
}
|
|
436
436
|
return {
|
|
437
437
|
offsetLeftSize,
|
|
@@ -1935,8 +1935,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1935
1935
|
triggerTaskBarTooltipEvent (evnt: MouseEvent, params: VxeGanttDefines.TaskBarMouseoverParams) {
|
|
1936
1936
|
const $xeGantt = this
|
|
1937
1937
|
const reactData = $xeGantt.reactData
|
|
1938
|
+
const internalData = $xeGantt.internalData
|
|
1938
1939
|
|
|
1939
1940
|
const { barTipStore } = reactData
|
|
1941
|
+
const { dragBarRow } = internalData
|
|
1942
|
+
if (dragBarRow) {
|
|
1943
|
+
return
|
|
1944
|
+
}
|
|
1940
1945
|
const taskBarTooltipOpts = $xeGantt.computeTaskBarTooltipOpts
|
|
1941
1946
|
const titleField = $xeGantt.computeTitleField
|
|
1942
1947
|
const { contentMethod } = taskBarTooltipOpts
|