vxe-gantt 4.1.13 → 4.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 +14 -3
- package/es/gantt/src/gantt.js +4 -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 +14 -3
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +6 -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 +27 -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 +14 -3
- package/packages/gantt/src/gantt.ts +4 -0
- package/packages/gantt/src/util.ts +4 -5
package/lib/index.umd.js
CHANGED
|
@@ -2785,7 +2785,7 @@ const {
|
|
|
2785
2785
|
setConfig,
|
|
2786
2786
|
setIcon
|
|
2787
2787
|
} = core_.VxeUI;
|
|
2788
|
-
core_.VxeUI.ganttVersion = "4.1.
|
|
2788
|
+
core_.VxeUI.ganttVersion = "4.1.15";
|
|
2789
2789
|
const ymdFormat = 'yyyy-MM-dd';
|
|
2790
2790
|
const ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
2791
2791
|
setConfig({
|
|
@@ -2894,7 +2894,7 @@ setIcon({
|
|
|
2894
2894
|
const {
|
|
2895
2895
|
log
|
|
2896
2896
|
} = core_.VxeUI;
|
|
2897
|
-
const version = `gantt v${"4.1.
|
|
2897
|
+
const version = `gantt v${"4.1.15"}`;
|
|
2898
2898
|
const warnLog = log.create('warn', version);
|
|
2899
2899
|
const errLog = log.create('error', version);
|
|
2900
2900
|
;// ./packages/ui/src/depend.ts
|
|
@@ -3383,12 +3383,12 @@ function getTaskBarWidth(chartRest, viewCellWidth) {
|
|
|
3383
3383
|
function getTaskLinkKey(from, to) {
|
|
3384
3384
|
return `${from}_${to}`;
|
|
3385
3385
|
}
|
|
3386
|
-
function hasMilestoneTask(type) {
|
|
3387
|
-
return type === 'milestone';
|
|
3388
|
-
}
|
|
3389
3386
|
const taskTypeMaps = {
|
|
3390
|
-
milestone:
|
|
3387
|
+
milestone: true
|
|
3391
3388
|
};
|
|
3389
|
+
function hasMilestoneTask(type) {
|
|
3390
|
+
return taskTypeMaps[type];
|
|
3391
|
+
}
|
|
3392
3392
|
function gettaskType(type) {
|
|
3393
3393
|
return taskTypeMaps[type] ? type : 'default';
|
|
3394
3394
|
}
|
|
@@ -4003,7 +4003,7 @@ const gantt_body_viewType = 'body';
|
|
|
4003
4003
|
_rowIndex
|
|
4004
4004
|
};
|
|
4005
4005
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
4006
|
-
key: $columnIndex,
|
|
4006
|
+
key: cellClassName || cellStyle ? field : $columnIndex,
|
|
4007
4007
|
class: ['vxe-gantt-view--body-column', {
|
|
4008
4008
|
'is--now': showNowLine && todayValue === field
|
|
4009
4009
|
}, getClass(cellClassName, ctParams)],
|
|
@@ -4376,7 +4376,9 @@ const maxYHeight = 5e6;
|
|
|
4376
4376
|
});
|
|
4377
4377
|
const internalData = createInternalData();
|
|
4378
4378
|
const refMaps = {
|
|
4379
|
-
refElem
|
|
4379
|
+
refElem,
|
|
4380
|
+
refScrollXHandleElem,
|
|
4381
|
+
refScrollYHandleElem
|
|
4380
4382
|
};
|
|
4381
4383
|
const computeScaleDateList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
4382
4384
|
const {
|
|
@@ -5024,6 +5026,7 @@ const maxYHeight = 5e6;
|
|
|
5024
5026
|
if ($xeTable) {
|
|
5025
5027
|
const startField = computeStartField.value;
|
|
5026
5028
|
const endField = computeEndField.value;
|
|
5029
|
+
const typeField = computeTypeField.value;
|
|
5027
5030
|
const {
|
|
5028
5031
|
computeAggregateOpts,
|
|
5029
5032
|
computeTreeOpts
|
|
@@ -5045,8 +5048,16 @@ const maxYHeight = 5e6;
|
|
|
5045
5048
|
} = treeOpts;
|
|
5046
5049
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
5047
5050
|
const handleMinMaxData = row => {
|
|
5048
|
-
|
|
5049
|
-
|
|
5051
|
+
let startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
5052
|
+
let endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
5053
|
+
const typeValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, typeField);
|
|
5054
|
+
const isMilestone = hasMilestoneTask(typeValue);
|
|
5055
|
+
if (!startValue) {
|
|
5056
|
+
startValue = endValue;
|
|
5057
|
+
}
|
|
5058
|
+
if (isMilestone || !endValue) {
|
|
5059
|
+
endValue = startValue;
|
|
5060
|
+
}
|
|
5050
5061
|
if (startValue) {
|
|
5051
5062
|
const startDate = parseStringDate(startValue);
|
|
5052
5063
|
if (!minDate || minDate.getTime() > startDate.getTime()) {
|
|
@@ -7971,6 +7982,12 @@ function getViewTypeLevel(type) {
|
|
|
7971
7982
|
const {
|
|
7972
7983
|
barTipStore
|
|
7973
7984
|
} = reactData;
|
|
7985
|
+
const {
|
|
7986
|
+
dragBarRow
|
|
7987
|
+
} = internalData;
|
|
7988
|
+
if (dragBarRow) {
|
|
7989
|
+
return;
|
|
7990
|
+
}
|
|
7974
7991
|
const taskBarTooltipOpts = computeTaskBarTooltipOpts.value;
|
|
7975
7992
|
const titleField = computeTitleField.value;
|
|
7976
7993
|
const {
|