vxe-gantt 3.1.13 → 3.1.15
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 +11 -2
- package/es/gantt/src/gantt.js +5 -0
- package/es/gantt/src/util.js +4 -4
- 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 +9 -0
- 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/gantt/src/util.js +4 -4
- package/lib/gantt/src/util.min.js +1 -1
- package/lib/index.umd.js +21 -7
- 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 +11 -2
- package/packages/gantt/src/gantt.ts +5 -0
- package/packages/gantt/src/util.ts +4 -5
package/lib/index.umd.js
CHANGED
|
@@ -8286,7 +8286,7 @@ var core_ = __webpack_require__(4345);
|
|
|
8286
8286
|
|
|
8287
8287
|
var setConfig = core_.VxeUI.setConfig,
|
|
8288
8288
|
setIcon = core_.VxeUI.setIcon;
|
|
8289
|
-
core_.VxeUI.ganttVersion = "3.1.
|
|
8289
|
+
core_.VxeUI.ganttVersion = "3.1.15";
|
|
8290
8290
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8291
8291
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8292
8292
|
setConfig({
|
|
@@ -8399,7 +8399,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
8399
8399
|
;// ./packages/ui/src/log.ts
|
|
8400
8400
|
|
|
8401
8401
|
var log = core_.VxeUI.log;
|
|
8402
|
-
var version = "gantt v".concat("3.1.
|
|
8402
|
+
var version = "gantt v".concat("3.1.15");
|
|
8403
8403
|
var warnLog = log.create('warn', version);
|
|
8404
8404
|
var errLog = log.create('error', version);
|
|
8405
8405
|
;// ./packages/ui/src/depend.ts
|
|
@@ -9154,12 +9154,12 @@ function getTaskBarWidth(chartRest, viewCellWidth) {
|
|
|
9154
9154
|
function getTaskLinkKey(from, to) {
|
|
9155
9155
|
return "".concat(from, "_").concat(to);
|
|
9156
9156
|
}
|
|
9157
|
-
function hasMilestoneTask(type) {
|
|
9158
|
-
return type === 'milestone';
|
|
9159
|
-
}
|
|
9160
9157
|
var taskTypeMaps = {
|
|
9161
|
-
milestone:
|
|
9158
|
+
milestone: true
|
|
9162
9159
|
};
|
|
9160
|
+
function hasMilestoneTask(type) {
|
|
9161
|
+
return taskTypeMaps[type];
|
|
9162
|
+
}
|
|
9163
9163
|
function gettaskType(type) {
|
|
9164
9164
|
return taskTypeMaps[type] ? type : 'default';
|
|
9165
9165
|
}
|
|
@@ -9735,7 +9735,7 @@ var gantt_body_viewType = 'body';
|
|
|
9735
9735
|
_rowIndex: _rowIndex
|
|
9736
9736
|
};
|
|
9737
9737
|
return h('td', {
|
|
9738
|
-
key: $columnIndex,
|
|
9738
|
+
key: cellClassName || cellStyle ? field : $columnIndex,
|
|
9739
9739
|
class: ['vxe-gantt-view--body-column', {
|
|
9740
9740
|
'is--now': showNowLine && todayValue === field
|
|
9741
9741
|
}, getClass(cellClassName, ctParams)],
|
|
@@ -10606,6 +10606,7 @@ function handleUpdateData($xeGanttView) {
|
|
|
10606
10606
|
if ($xeTable) {
|
|
10607
10607
|
var startField = $xeGantt.computeStartField;
|
|
10608
10608
|
var endField = $xeGantt.computeEndField;
|
|
10609
|
+
var typeField = $xeGantt.computeTypeField;
|
|
10609
10610
|
var tableReactData = $xeTable;
|
|
10610
10611
|
var isRowGroupStatus = tableReactData.isRowGroupStatus;
|
|
10611
10612
|
var tableInternalData = $xeTable;
|
|
@@ -10619,6 +10620,14 @@ function handleUpdateData($xeGanttView) {
|
|
|
10619
10620
|
var handleMinMaxData = function handleMinMaxData(row) {
|
|
10620
10621
|
var startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
10621
10622
|
var endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
10623
|
+
var typeValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, typeField);
|
|
10624
|
+
var isMilestone = hasMilestoneTask(typeValue);
|
|
10625
|
+
if (!startValue) {
|
|
10626
|
+
startValue = endValue;
|
|
10627
|
+
}
|
|
10628
|
+
if (isMilestone || !endValue) {
|
|
10629
|
+
endValue = startValue;
|
|
10630
|
+
}
|
|
10622
10631
|
if (startValue) {
|
|
10623
10632
|
var startDate = parseStringDate($xeGanttView, startValue);
|
|
10624
10633
|
if (!minDate || minDate.getTime() > startDate.getTime()) {
|
|
@@ -13711,7 +13720,12 @@ function gantt_createInternalData() {
|
|
|
13711
13720
|
triggerTaskBarTooltipEvent: function triggerTaskBarTooltipEvent(evnt, params) {
|
|
13712
13721
|
var $xeGantt = this;
|
|
13713
13722
|
var reactData = $xeGantt.reactData;
|
|
13723
|
+
var internalData = $xeGantt.internalData;
|
|
13714
13724
|
var barTipStore = reactData.barTipStore;
|
|
13725
|
+
var dragBarRow = internalData.dragBarRow;
|
|
13726
|
+
if (dragBarRow) {
|
|
13727
|
+
return;
|
|
13728
|
+
}
|
|
13715
13729
|
var taskBarTooltipOpts = $xeGantt.computeTaskBarTooltipOpts;
|
|
13716
13730
|
var titleField = $xeGantt.computeTitleField;
|
|
13717
13731
|
var contentMethod = taskBarTooltipOpts.contentMethod;
|