vxe-gantt 3.2.5 → 3.2.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/es/gantt/src/gantt-chart.js +91 -14
- package/es/gantt/src/gantt-view.js +37 -8
- package/es/gantt/src/gantt.js +13 -4
- package/es/gantt/src/static.js +6 -2
- package/es/gantt/src/util.js +8 -4
- package/es/gantt/style.css +28 -6
- package/es/gantt/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +4 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.js +3 -0
- package/es/vxe-gantt/style.css +28 -6
- package/es/vxe-gantt/style.min.css +1 -1
- package/lib/gantt/src/gantt-chart.js +75 -12
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +34 -7
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +14 -2
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/src/static.js +6 -2
- package/lib/gantt/src/static.min.js +1 -1
- package/lib/gantt/src/util.js +10 -5
- package/lib/gantt/src/util.min.js +1 -1
- package/lib/gantt/style/style.css +28 -6
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.umd.js +147 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +4 -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/lib/ui/src/utils.js +4 -0
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-gantt/style/style.css +28 -6
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/gantt/src/gantt-chart.ts +97 -14
- package/packages/gantt/src/gantt-view.ts +35 -8
- package/packages/gantt/src/gantt.ts +14 -3
- package/packages/gantt/src/static.ts +7 -3
- package/packages/gantt/src/util.ts +11 -7
- package/packages/ui/index.ts +3 -0
- package/packages/ui/src/utils.ts +4 -0
- package/styles/components/gantt-module/gantt-chart.scss +31 -4
- package/styles/theme/base.scss +1 -0
package/lib/gantt/src/util.js
CHANGED
|
@@ -8,8 +8,9 @@ exports.getRefElem = getRefElem;
|
|
|
8
8
|
exports.getStandardGapTime = getStandardGapTime;
|
|
9
9
|
exports.getTaskBarLeft = getTaskBarLeft;
|
|
10
10
|
exports.getTaskBarWidth = getTaskBarWidth;
|
|
11
|
-
exports.
|
|
11
|
+
exports.getTaskType = getTaskType;
|
|
12
12
|
exports.hasMilestoneTask = hasMilestoneTask;
|
|
13
|
+
exports.hasSubviewTask = hasSubviewTask;
|
|
13
14
|
function getRefElem(refEl) {
|
|
14
15
|
if (refEl) {
|
|
15
16
|
return refEl.$el || refEl;
|
|
@@ -34,14 +35,18 @@ function getTaskBarLeft(chartRest, viewCellWidth) {
|
|
|
34
35
|
return chartRest ? viewCellWidth * chartRest.oLeftSize : 0;
|
|
35
36
|
}
|
|
36
37
|
function getTaskBarWidth(chartRest, viewCellWidth) {
|
|
37
|
-
return Math.max(1, chartRest ? Math.floor(viewCellWidth * chartRest.oWidthSize) - 1 : 0);
|
|
38
|
+
return chartRest && chartRest.oWidthSize ? Math.max(1, chartRest ? Math.floor(viewCellWidth * chartRest.oWidthSize) - 1 : 0) : 0;
|
|
38
39
|
}
|
|
39
40
|
var taskTypeMaps = {
|
|
40
|
-
milestone: true
|
|
41
|
+
milestone: true,
|
|
42
|
+
subview: true
|
|
41
43
|
};
|
|
42
44
|
function hasMilestoneTask(type) {
|
|
43
|
-
return
|
|
45
|
+
return type === 'milestone';
|
|
44
46
|
}
|
|
45
|
-
function
|
|
47
|
+
function hasSubviewTask(type) {
|
|
48
|
+
return type === 'subview';
|
|
49
|
+
}
|
|
50
|
+
function getTaskType(type) {
|
|
46
51
|
return taskTypeMaps[type] ? type : 'default';
|
|
47
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function getRefElem(e){return e?e.$el||e:null}function getCellRestHeight(e,t,a
|
|
1
|
+
function getRefElem(e){return e?e.$el||e:null}function getCellRestHeight(e,t,s,a){return e.resizeHeight||t.height||s.height||e.height||a}function getStandardGapTime(e){switch(e){case"hour":return 36e5;case"minute":return 6e4;case"second":return 1e3}return 864e5}function getTaskBarLeft(e,t){return e?t*e.oLeftSize:0}function getTaskBarWidth(e,t){return e&&e.oWidthSize?Math.max(1,e?Math.floor(t*e.oWidthSize)-1:0):0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCellRestHeight=getCellRestHeight,exports.getRefElem=getRefElem,exports.getStandardGapTime=getStandardGapTime,exports.getTaskBarLeft=getTaskBarLeft,exports.getTaskBarWidth=getTaskBarWidth,exports.getTaskType=getTaskType,exports.hasMilestoneTask=hasMilestoneTask,exports.hasSubviewTask=hasSubviewTask;var taskTypeMaps={milestone:!0,subview:!0};function hasMilestoneTask(e){return"milestone"===e}function hasSubviewTask(e){return"subview"===e}function getTaskType(e){return taskTypeMaps[e]?e:"default"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 0;
|
|
13
13
|
}
|
|
14
|
-
.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar
|
|
14
|
+
.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar,
|
|
15
|
+
.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-subview-bar {
|
|
15
16
|
color: var(--vxe-ui-font-disabled-color);
|
|
16
17
|
opacity: 0.5;
|
|
17
18
|
text-decoration: line-through;
|
|
@@ -28,7 +29,22 @@
|
|
|
28
29
|
border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
.vxe-gantt-view--chart-subview-wrapper.is--round > .vxe-gantt-view--chart-subview-bar {
|
|
33
|
+
border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
|
|
34
|
+
}
|
|
35
|
+
.vxe-gantt-view--chart-subview-wrapper.is--round > .vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper {
|
|
36
|
+
border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
|
|
37
|
+
}
|
|
38
|
+
.vxe-gantt-view--chart-subview-wrapper.is--round > .vxe-gantt-view--chart-subview-bar:hover::after {
|
|
39
|
+
border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
|
|
40
|
+
}
|
|
41
|
+
.vxe-gantt-view--chart-subview-wrapper.is--overview > .vxe-gantt-view--chart-subview-bar {
|
|
42
|
+
color: #ffffff;
|
|
43
|
+
background-color: var(--vxe-ui-gantt-view-task-bar-overview-background-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
31
46
|
.vxe-gantt-view--chart-bar,
|
|
47
|
+
.vxe-gantt-view--chart-subview-bar,
|
|
32
48
|
.vxe-gantt-view--chart-custom-bar {
|
|
33
49
|
display: flex;
|
|
34
50
|
flex-direction: row;
|
|
@@ -39,18 +55,21 @@
|
|
|
39
55
|
pointer-events: all;
|
|
40
56
|
}
|
|
41
57
|
.vxe-gantt-view--chart-bar.is--default,
|
|
58
|
+
.vxe-gantt-view--chart-subview-bar.is--default,
|
|
42
59
|
.vxe-gantt-view--chart-custom-bar.is--default {
|
|
43
60
|
color: #ffffff;
|
|
44
61
|
background-color: var(--vxe-ui-gantt-view-task-bar-background-color);
|
|
45
62
|
}
|
|
46
63
|
|
|
47
64
|
.vxe-gantt-view--chart-bar-content-wrapper,
|
|
48
|
-
.vxe-gantt-view--chart-custom-bar-content-wrapper
|
|
65
|
+
.vxe-gantt-view--chart-custom-bar-content-wrapper,
|
|
66
|
+
.vxe-gantt-view--chart-subview-bar-content-wrapper {
|
|
49
67
|
width: 100%;
|
|
50
68
|
overflow: hidden;
|
|
51
69
|
}
|
|
52
70
|
|
|
53
|
-
.vxe-gantt-view--chart-bar-content-wrapper
|
|
71
|
+
.vxe-gantt-view--chart-bar-content-wrapper,
|
|
72
|
+
.vxe-gantt-view--chart-subview-bar-content-wrapper {
|
|
54
73
|
width: 100%;
|
|
55
74
|
height: 100%;
|
|
56
75
|
display: flex;
|
|
@@ -58,11 +77,13 @@
|
|
|
58
77
|
align-items: center;
|
|
59
78
|
}
|
|
60
79
|
|
|
61
|
-
.vxe-gantt-view--chart-bar
|
|
80
|
+
.vxe-gantt-view--chart-bar,
|
|
81
|
+
.vxe-gantt-view--chart-subview-bar {
|
|
62
82
|
align-items: center;
|
|
63
83
|
height: var(--vxe-ui-gantt-view-chart-bar-height);
|
|
64
84
|
}
|
|
65
|
-
.vxe-gantt-view--chart-bar.is--default:hover::after
|
|
85
|
+
.vxe-gantt-view--chart-bar.is--default:hover::after,
|
|
86
|
+
.vxe-gantt-view--chart-subview-bar.is--default:hover::after {
|
|
66
87
|
content: "";
|
|
67
88
|
position: absolute;
|
|
68
89
|
top: 0;
|
|
@@ -72,7 +93,8 @@
|
|
|
72
93
|
background-color: rgba(0, 0, 0, 0.1);
|
|
73
94
|
pointer-events: none;
|
|
74
95
|
}
|
|
75
|
-
.vxe-gantt-view--chart-bar.is--milestone
|
|
96
|
+
.vxe-gantt-view--chart-bar.is--milestone,
|
|
97
|
+
.vxe-gantt-view--chart-subview-bar.is--milestone {
|
|
76
98
|
white-space: nowrap;
|
|
77
99
|
}
|
|
78
100
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.vxe-gantt-view--chart-task-wrapper{position:absolute;top:0;left:0;pointer-events:none}.vxe-gantt-view--chart-row{position:relative;width:100%;height:0}.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-custom-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar:hover::after,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-custom-bar{display:flex;flex-direction:row;position:absolute;top:50%;left:0;transform:translateY(-50%);pointer-events:all}.vxe-gantt-view--chart-bar.is--default,.vxe-gantt-view--chart-custom-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-custom-bar-content-wrapper{width:100%;overflow:hidden}.vxe-gantt-view--chart-bar-content-wrapper{width:100%;height:100%;display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-bar{align-items:center;height:var(--vxe-ui-gantt-view-chart-bar-height)}.vxe-gantt-view--chart-bar.is--default:hover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.1);pointer-events:none}.vxe-gantt-view--chart-bar.is--milestone{white-space:nowrap}.vxe-gantt-view--chart-progress{flex-shrink:0;width:0;height:100%;text-align:left;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--chart-content{position:absolute;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em;padding:0 .6em}.vxe-gantt-view--chart-milestone-wrapper{display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-milestone-icon{flex-shrink:0;padding:0 .3em;color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-gantt-view--chart-milestone-icon.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-gantt-view--chart-milestone-icon.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-gantt-view--chart-milestone-icon.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-gantt-view--chart-milestone-icon.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-gantt-view--chart-milestone-icon i{display:inline-block}.vxe-gantt-view--chart-milestone-content{flex-grow:1}.vxe-gantt-view--chart-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--chart-row.row--drag-origin{opacity:.3}.vxe-gantt{position:relative;display:flex;flex-direction:column}.vxe-gantt.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--vxe-ui-loading-background-color)}.vxe-gantt.is--loading>.vxe-gantt-view .vxe-loading{background-color:transparent}.vxe-gantt.is--maximize{position:fixed;top:0;left:0;width:100%;height:100%;padding:.5em 1em;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt.is--split-drag{cursor:col-resize}.vxe-gantt.is--split-drag .vxe-gantt--table-wrapper::after,.vxe-gantt.is--split-drag .vxe-gantt--view-wrapper::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background:0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt .vxe-gantt--bottom-wrapper,.vxe-gantt .vxe-gantt--form-wrapper,.vxe-gantt .vxe-gantt--top-wrapper{position:relative}.vxe-gantt .vxe-gantt--gantt-container{position:relative;display:flex;flex-direction:row}.vxe-gantt .vxe-gantt--left-wrapper,.vxe-gantt .vxe-gantt--right-wrapper{flex-shrink:0;overflow:auto;outline:0}.vxe-gantt .vxe-gantt--table-wrapper,.vxe-gantt .vxe-gantt--view-wrapper{display:none;position:relative;flex-grow:1;overflow:hidden}.vxe-gantt .vxe-gantt--view-split-bar{flex-shrink:0;width:var(--vxe-ui-gantt-view-split-bar-width)}.vxe-gantt .vxe-gantt--view-split-bar.is--resize{cursor:col-resize}.vxe-gantt .vxe-gantt--view-split-bar-handle{background-color:var(--vxe-ui-gantt-view-split-bar-background-color)}.vxe-gantt .vxe-gantt--view-split-bar-handle:active,.vxe-gantt .vxe-gantt--view-split-bar-handle:hover{background-color:var(--vxe-ui-gantt-view-split-bar-hover-background-color)}.vxe-gantt.show--left .vxe-gantt--table-wrapper{display:block}.vxe-gantt.show--left.show--right .vxe-gantt--table-wrapper{flex-grow:unset;flex-shrink:0;width:var(--vxe-ui-gantt-view-table-default-width)}.vxe-gantt.show--right .vxe-gantt--view-wrapper{display:block}.vxe-gantt--layout-body-wrapper{display:flex;flex-direction:row;overflow:auto;flex-grow:1}.vxe-gantt--layout-body-content-wrapper{flex-grow:1;overflow:hidden}.vxe-gantt--layout-aside-left-wrapper,.vxe-gantt--layout-footer-wrapper,.vxe-gantt--layout-header-wrapper{flex-shrink:0;overflow:auto}.vxe-gantt--border-line{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none;border:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--full .vxe-gantt-view--body-column,.vxe-gantt.border--full .vxe-gantt-view--footer-column,.vxe-gantt.border--full .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color)),linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:var(--vxe-ui-table-border-width) 100%,100% var(--vxe-ui-table-border-width);background-position:right top,right bottom}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:0;border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{border-bottom-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer .vxe-gantt-view--scroll-x-handle-appearance{position:absolute;left:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance{top:0;border-bottom:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance{bottom:0;height:calc(100% + var(--vxe-ui-table-border-width));border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before{width:calc(100% + 1px);left:-1px}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-handle-appearance{position:absolute;top:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance{left:0;border-right:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance{right:0;width:calc(100% + var(--vxe-ui-table-border-width));border-left:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--body-column,.vxe-gantt.border--default .vxe-gantt-view--footer-column,.vxe-gantt.border--default .vxe-gantt-view--header-column,.vxe-gantt.border--inner .vxe-gantt-view--body-column,.vxe-gantt.border--inner .vxe-gantt-view--footer-column,.vxe-gantt.border--inner .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:100% var(--vxe-ui-table-border-width);background-position:right bottom}.vxe-gantt.border--default .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--full .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--inner .vxe-gantt-view--footer-wrapper{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--inner .vxe-gantt--border-line{border-width:0 0 1px 0}.vxe-gantt.border--none .vxe-gantt--border-line{display:none}.vxe-gantt--view-split-bar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt--view-split-bar-handle{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.vxe-gantt--view-split-bar-btn-wrapper{display:flex;flex-direction:column;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.vxe-gantt--view-split-bar-btn-wrapper>div{margin-top:1em}.vxe-gantt--view-split-bar-btn-wrapper>div:first-child{margin-top:0}.vxe-gantt--view-split-bar-left-btn,.vxe-gantt--view-split-bar-right-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;height:var(--vxe-ui-gantt-view-split-bar-height);width:var(--vxe-ui-gantt-view-split-bar-width);color:var(--vxe-ui-layout-background-color);border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-gantt-view-handle-background-color);border:1px solid var(--vxe-ui-input-border-color);pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:all .1s ease-in-out}.vxe-gantt--view-split-bar-left-btn:hover,.vxe-gantt--view-split-bar-right-btn:hover{color:#fff;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt--view-split-bar-left-btn:active,.vxe-gantt--view-split-bar-right-btn:active{transform:scale(.9)}.vxe-gantt--view-split-bar-left-btn i,.vxe-gantt--view-split-bar-right-btn i{font-size:.5em}.vxe-gantt--resizable-split-tip{display:none;position:absolute;top:0;left:0;width:1px;height:100%;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:col-resize}.vxe-gantt--resizable-split-tip:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.vxe-gantt--resizable-split-number-left,.vxe-gantt--resizable-split-number-right{position:absolute;padding:.25em .25em;font-size:12px;border-radius:var(--vxe-ui-border-radius);white-space:nowrap;color:#fff;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-number-left{right:0}.vxe-gantt--resizable-split-number-right{left:1px}.vxe-gantt.is--loading>.vxe-gantt-view--scroll-x-virtual{visibility:hidden}.vxe-gantt.is--loading>.vxe-gantt-view--layout-wrapper>.vxe-gantt-view--scroll-y-virtual{visibility:hidden}.vxe-gantt .vxe-gantt-view--scroll-x-virtual{height:0}.vxe-gantt .vxe-gantt-view--scroll-y-virtual{width:0}.vxe-gantt .vxe-gantt-view--scroll-x-virtual,.vxe-gantt .vxe-gantt-view--scroll-y-virtual{visibility:hidden;position:relative;flex-shrink:0;z-index:7}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{width:100%;left:0;bottom:0}.vxe-gantt .vxe-gantt-view--scroll-x-handle{overflow-y:hidden;overflow-x:scroll;height:18px}.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{height:100%}.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{width:100%;height:100%;right:0;top:0}.vxe-gantt .vxe-gantt-view--scroll-y-handle{overflow-y:scroll;overflow-x:hidden;width:18px;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-space{height:1px}.vxe-gantt .vxe-gantt-view--scroll-y-space{width:1px}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{display:none;position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{bottom:0;width:0;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner::before,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:var(--vxe-ui-table-border-width);border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner{left:0}.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{right:0}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner{right:1px}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner::before{border-right:0}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner{bottom:1px}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner::before{border-bottom:0}.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{top:0;right:0;width:100%;height:0}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner{margin-top:-1px}.vxe-gantt-view--layout-wrapper{display:flex;flex-direction:row;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt-view--viewport-wrapper{position:relative;overflow:hidden;flex-grow:1}.vxe-gantt-view--render-vars{width:0;height:0;overflow:hidden}.vxe-gantt-view--column-info{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view{flex-grow:1;overflow:hidden}.vxe-gantt-view .vxe-body--x-space{width:100%;height:1px;margin-bottom:-1px}.vxe-gantt-view .vxe-body--y-space{width:0;float:left}.vxe-gantt-view--body-table,.vxe-gantt-view--header-table{border:0;border-spacing:0;border-collapse:separate;table-layout:fixed}.vxe-gantt-view--body-table col,.vxe-gantt-view--header-table col{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view--body-table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt-view--header-wrapper{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt-view--footer-wrapper{margin-top:calc(var(--vxe-ui-table-border-width) * -1);background-color:var(--vxe-ui-table-footer-background-color)}.vxe-gantt-view--body-wrapper,.vxe-gantt-view--header-wrapper{overflow:hidden}.vxe-gantt-view--header-inner-wrapper{overflow-y:hidden;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper{overflow-y:scroll;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper,.vxe-gantt-view--header-inner-wrapper{position:relative;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.vxe-gantt-view--body-inner-wrapper::-webkit-scrollbar,.vxe-gantt-view--header-inner-wrapper::-webkit-scrollbar{display:none}.vxe-gantt-view--header-column{text-align:center;font-size:1em;height:var(--vxe-ui-gantt-view-cell-height,var(--vxe-ui-table-row-line-height))}.vxe-gantt-view--header-column.is--now{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column.is--now::before{content:"";position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column,.vxe-gantt-view--footer-column,.vxe-gantt-view--header-column{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--body-row.row--pending>.vxe-gantt-view--body-column::after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px solid var(--vxe-ui-table-validate-error-color);z-index:1}.vxe-gantt-view--body-row.row--stripe{background-color:var(--vxe-ui-table-row-striped-background-color)}.vxe-gantt-view--body-row.row--radio{background-color:var(--vxe-ui-table-row-radio-checked-background-color)}.vxe-gantt-view--body-row.row--checked{background-color:var(--vxe-ui-table-row-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--current{background-color:var(--vxe-ui-table-row-current-background-color)}.vxe-gantt-view--body-row.row--hover{background-color:var(--vxe-ui-table-row-hover-background-color)}.vxe-gantt-view--body-row.row--hover.row--stripe{background-color:var(--vxe-ui-table-row-hover-striped-background-color)}.vxe-gantt-view--body-row.row--hover.row--radio{background-color:var(--vxe-ui-table-row-hover-radio-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--checked{background-color:var(--vxe-ui-table-row-hover-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--current{background-color:var(--vxe-ui-table-row-hover-current-background-color)}.vxe-gantt-view--body-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--body-row.row--drag-origin>.vxe-gantt-view--body-column{opacity:.3}.vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{position:absolute;left:0;bottom:-.4em;height:.8em;width:100%;text-align:center;z-index:1;cursor:row-resize}.vxe-gantt-view--body-row:last-child .vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{height:.4em;bottom:0}.vxe-gantt{font-size:var(--vxe-ui-font-size-default)}.vxe-gantt.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-gantt.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-gantt.size--mini{font-size:var(--vxe-ui-font-size-mini)}
|
|
1
|
+
@charset "UTF-8";.vxe-gantt-view--chart-task-wrapper{position:absolute;top:0;left:0;pointer-events:none}.vxe-gantt-view--chart-row{position:relative;width:100%;height:0}.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-subview-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-custom-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar:hover::after,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--round>.vxe-gantt-view--chart-subview-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--round>.vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--round>.vxe-gantt-view--chart-subview-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--overview>.vxe-gantt-view--chart-subview-bar{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-custom-bar,.vxe-gantt-view--chart-subview-bar{display:flex;flex-direction:row;position:absolute;top:50%;left:0;transform:translateY(-50%);pointer-events:all}.vxe-gantt-view--chart-bar.is--default,.vxe-gantt-view--chart-custom-bar.is--default,.vxe-gantt-view--chart-subview-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper{width:100%;overflow:hidden}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper{width:100%;height:100%;display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-subview-bar{align-items:center;height:var(--vxe-ui-gantt-view-chart-bar-height)}.vxe-gantt-view--chart-bar.is--default:hover::after,.vxe-gantt-view--chart-subview-bar.is--default:hover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.1);pointer-events:none}.vxe-gantt-view--chart-bar.is--milestone,.vxe-gantt-view--chart-subview-bar.is--milestone{white-space:nowrap}.vxe-gantt-view--chart-progress{flex-shrink:0;width:0;height:100%;text-align:left;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--chart-content{position:absolute;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em;padding:0 .6em}.vxe-gantt-view--chart-milestone-wrapper{display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-milestone-icon{flex-shrink:0;padding:0 .3em;color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-gantt-view--chart-milestone-icon.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-gantt-view--chart-milestone-icon.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-gantt-view--chart-milestone-icon.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-gantt-view--chart-milestone-icon.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-gantt-view--chart-milestone-icon i{display:inline-block}.vxe-gantt-view--chart-milestone-content{flex-grow:1}.vxe-gantt-view--chart-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--chart-row.row--drag-origin{opacity:.3}.vxe-gantt{position:relative;display:flex;flex-direction:column}.vxe-gantt.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--vxe-ui-loading-background-color)}.vxe-gantt.is--loading>.vxe-gantt-view .vxe-loading{background-color:transparent}.vxe-gantt.is--maximize{position:fixed;top:0;left:0;width:100%;height:100%;padding:.5em 1em;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt.is--split-drag{cursor:col-resize}.vxe-gantt.is--split-drag .vxe-gantt--table-wrapper::after,.vxe-gantt.is--split-drag .vxe-gantt--view-wrapper::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background:0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt .vxe-gantt--bottom-wrapper,.vxe-gantt .vxe-gantt--form-wrapper,.vxe-gantt .vxe-gantt--top-wrapper{position:relative}.vxe-gantt .vxe-gantt--gantt-container{position:relative;display:flex;flex-direction:row}.vxe-gantt .vxe-gantt--left-wrapper,.vxe-gantt .vxe-gantt--right-wrapper{flex-shrink:0;overflow:auto;outline:0}.vxe-gantt .vxe-gantt--table-wrapper,.vxe-gantt .vxe-gantt--view-wrapper{display:none;position:relative;flex-grow:1;overflow:hidden}.vxe-gantt .vxe-gantt--view-split-bar{flex-shrink:0;width:var(--vxe-ui-gantt-view-split-bar-width)}.vxe-gantt .vxe-gantt--view-split-bar.is--resize{cursor:col-resize}.vxe-gantt .vxe-gantt--view-split-bar-handle{background-color:var(--vxe-ui-gantt-view-split-bar-background-color)}.vxe-gantt .vxe-gantt--view-split-bar-handle:active,.vxe-gantt .vxe-gantt--view-split-bar-handle:hover{background-color:var(--vxe-ui-gantt-view-split-bar-hover-background-color)}.vxe-gantt.show--left .vxe-gantt--table-wrapper{display:block}.vxe-gantt.show--left.show--right .vxe-gantt--table-wrapper{flex-grow:unset;flex-shrink:0;width:var(--vxe-ui-gantt-view-table-default-width)}.vxe-gantt.show--right .vxe-gantt--view-wrapper{display:block}.vxe-gantt--layout-body-wrapper{display:flex;flex-direction:row;overflow:auto;flex-grow:1}.vxe-gantt--layout-body-content-wrapper{flex-grow:1;overflow:hidden}.vxe-gantt--layout-aside-left-wrapper,.vxe-gantt--layout-footer-wrapper,.vxe-gantt--layout-header-wrapper{flex-shrink:0;overflow:auto}.vxe-gantt--border-line{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none;border:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--full .vxe-gantt-view--body-column,.vxe-gantt.border--full .vxe-gantt-view--footer-column,.vxe-gantt.border--full .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color)),linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:var(--vxe-ui-table-border-width) 100%,100% var(--vxe-ui-table-border-width);background-position:right top,right bottom}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:0;border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{border-bottom-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer .vxe-gantt-view--scroll-x-handle-appearance{position:absolute;left:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance{top:0;border-bottom:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance{bottom:0;height:calc(100% + var(--vxe-ui-table-border-width));border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before{width:calc(100% + 1px);left:-1px}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-handle-appearance{position:absolute;top:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance{left:0;border-right:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance{right:0;width:calc(100% + var(--vxe-ui-table-border-width));border-left:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--body-column,.vxe-gantt.border--default .vxe-gantt-view--footer-column,.vxe-gantt.border--default .vxe-gantt-view--header-column,.vxe-gantt.border--inner .vxe-gantt-view--body-column,.vxe-gantt.border--inner .vxe-gantt-view--footer-column,.vxe-gantt.border--inner .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:100% var(--vxe-ui-table-border-width);background-position:right bottom}.vxe-gantt.border--default .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--full .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--inner .vxe-gantt-view--footer-wrapper{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--inner .vxe-gantt--border-line{border-width:0 0 1px 0}.vxe-gantt.border--none .vxe-gantt--border-line{display:none}.vxe-gantt--view-split-bar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt--view-split-bar-handle{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.vxe-gantt--view-split-bar-btn-wrapper{display:flex;flex-direction:column;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.vxe-gantt--view-split-bar-btn-wrapper>div{margin-top:1em}.vxe-gantt--view-split-bar-btn-wrapper>div:first-child{margin-top:0}.vxe-gantt--view-split-bar-left-btn,.vxe-gantt--view-split-bar-right-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;height:var(--vxe-ui-gantt-view-split-bar-height);width:var(--vxe-ui-gantt-view-split-bar-width);color:var(--vxe-ui-layout-background-color);border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-gantt-view-handle-background-color);border:1px solid var(--vxe-ui-input-border-color);pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:all .1s ease-in-out}.vxe-gantt--view-split-bar-left-btn:hover,.vxe-gantt--view-split-bar-right-btn:hover{color:#fff;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt--view-split-bar-left-btn:active,.vxe-gantt--view-split-bar-right-btn:active{transform:scale(.9)}.vxe-gantt--view-split-bar-left-btn i,.vxe-gantt--view-split-bar-right-btn i{font-size:.5em}.vxe-gantt--resizable-split-tip{display:none;position:absolute;top:0;left:0;width:1px;height:100%;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:col-resize}.vxe-gantt--resizable-split-tip:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.vxe-gantt--resizable-split-number-left,.vxe-gantt--resizable-split-number-right{position:absolute;padding:.25em .25em;font-size:12px;border-radius:var(--vxe-ui-border-radius);white-space:nowrap;color:#fff;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-number-left{right:0}.vxe-gantt--resizable-split-number-right{left:1px}.vxe-gantt.is--loading>.vxe-gantt-view--scroll-x-virtual{visibility:hidden}.vxe-gantt.is--loading>.vxe-gantt-view--layout-wrapper>.vxe-gantt-view--scroll-y-virtual{visibility:hidden}.vxe-gantt .vxe-gantt-view--scroll-x-virtual{height:0}.vxe-gantt .vxe-gantt-view--scroll-y-virtual{width:0}.vxe-gantt .vxe-gantt-view--scroll-x-virtual,.vxe-gantt .vxe-gantt-view--scroll-y-virtual{visibility:hidden;position:relative;flex-shrink:0;z-index:7}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{width:100%;left:0;bottom:0}.vxe-gantt .vxe-gantt-view--scroll-x-handle{overflow-y:hidden;overflow-x:scroll;height:18px}.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{height:100%}.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{width:100%;height:100%;right:0;top:0}.vxe-gantt .vxe-gantt-view--scroll-y-handle{overflow-y:scroll;overflow-x:hidden;width:18px;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-space{height:1px}.vxe-gantt .vxe-gantt-view--scroll-y-space{width:1px}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{display:none;position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{bottom:0;width:0;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner::before,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:var(--vxe-ui-table-border-width);border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner{left:0}.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{right:0}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner{right:1px}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner::before{border-right:0}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner{bottom:1px}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner::before{border-bottom:0}.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{top:0;right:0;width:100%;height:0}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner{margin-top:-1px}.vxe-gantt-view--layout-wrapper{display:flex;flex-direction:row;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt-view--viewport-wrapper{position:relative;overflow:hidden;flex-grow:1}.vxe-gantt-view--render-vars{width:0;height:0;overflow:hidden}.vxe-gantt-view--column-info{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view{flex-grow:1;overflow:hidden}.vxe-gantt-view .vxe-body--x-space{width:100%;height:1px;margin-bottom:-1px}.vxe-gantt-view .vxe-body--y-space{width:0;float:left}.vxe-gantt-view--body-table,.vxe-gantt-view--header-table{border:0;border-spacing:0;border-collapse:separate;table-layout:fixed}.vxe-gantt-view--body-table col,.vxe-gantt-view--header-table col{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view--body-table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt-view--header-wrapper{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt-view--footer-wrapper{margin-top:calc(var(--vxe-ui-table-border-width) * -1);background-color:var(--vxe-ui-table-footer-background-color)}.vxe-gantt-view--body-wrapper,.vxe-gantt-view--header-wrapper{overflow:hidden}.vxe-gantt-view--header-inner-wrapper{overflow-y:hidden;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper{overflow-y:scroll;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper,.vxe-gantt-view--header-inner-wrapper{position:relative;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.vxe-gantt-view--body-inner-wrapper::-webkit-scrollbar,.vxe-gantt-view--header-inner-wrapper::-webkit-scrollbar{display:none}.vxe-gantt-view--header-column{text-align:center;font-size:1em;height:var(--vxe-ui-gantt-view-cell-height,var(--vxe-ui-table-row-line-height))}.vxe-gantt-view--header-column.is--now{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column.is--now::before{content:"";position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column,.vxe-gantt-view--footer-column,.vxe-gantt-view--header-column{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--body-row.row--pending>.vxe-gantt-view--body-column::after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px solid var(--vxe-ui-table-validate-error-color);z-index:1}.vxe-gantt-view--body-row.row--stripe{background-color:var(--vxe-ui-table-row-striped-background-color)}.vxe-gantt-view--body-row.row--radio{background-color:var(--vxe-ui-table-row-radio-checked-background-color)}.vxe-gantt-view--body-row.row--checked{background-color:var(--vxe-ui-table-row-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--current{background-color:var(--vxe-ui-table-row-current-background-color)}.vxe-gantt-view--body-row.row--hover{background-color:var(--vxe-ui-table-row-hover-background-color)}.vxe-gantt-view--body-row.row--hover.row--stripe{background-color:var(--vxe-ui-table-row-hover-striped-background-color)}.vxe-gantt-view--body-row.row--hover.row--radio{background-color:var(--vxe-ui-table-row-hover-radio-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--checked{background-color:var(--vxe-ui-table-row-hover-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--current{background-color:var(--vxe-ui-table-row-hover-current-background-color)}.vxe-gantt-view--body-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--body-row.row--drag-origin>.vxe-gantt-view--body-column{opacity:.3}.vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{position:absolute;left:0;bottom:-.4em;height:.8em;width:100%;text-align:center;z-index:1;cursor:row-resize}.vxe-gantt-view--body-row:last-child .vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{height:.4em;bottom:0}.vxe-gantt{font-size:var(--vxe-ui-font-size-default)}.vxe-gantt.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-gantt.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-gantt.size--mini{font-size:var(--vxe-ui-font-size-mini)}
|
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.2.
|
|
8289
|
+
core_.VxeUI.ganttVersion = "3.2.6";
|
|
8290
8290
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8291
8291
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8292
8292
|
setConfig({
|
|
@@ -8377,6 +8377,9 @@ setConfig({
|
|
|
8377
8377
|
resize: true,
|
|
8378
8378
|
showCollapseTableButton: true,
|
|
8379
8379
|
showCollapseTaskButton: true
|
|
8380
|
+
},
|
|
8381
|
+
taskBarSubviewConfig: {
|
|
8382
|
+
// showOverview: false
|
|
8380
8383
|
}
|
|
8381
8384
|
}
|
|
8382
8385
|
});
|
|
@@ -8400,7 +8403,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
8400
8403
|
;// ./packages/ui/src/log.ts
|
|
8401
8404
|
|
|
8402
8405
|
var log = core_.VxeUI.log;
|
|
8403
|
-
var version = "gantt v".concat("3.2.
|
|
8406
|
+
var version = "gantt v".concat("3.2.6");
|
|
8404
8407
|
var warnLog = log.create('warn', version);
|
|
8405
8408
|
var errLog = log.create('error', version);
|
|
8406
8409
|
;// ./packages/ui/src/depend.ts
|
|
@@ -8862,6 +8865,9 @@ var getConfig = core_.VxeUI.getConfig;
|
|
|
8862
8865
|
function isEnableConf(conf) {
|
|
8863
8866
|
return conf && conf.enabled !== false;
|
|
8864
8867
|
}
|
|
8868
|
+
function hasEnableConf(conf, opts) {
|
|
8869
|
+
return opts && (conf ? opts.enabled !== false : opts.enabled);
|
|
8870
|
+
}
|
|
8865
8871
|
function isEmptyValue(cellValue) {
|
|
8866
8872
|
return cellValue === null || cellValue === undefined || cellValue === '';
|
|
8867
8873
|
}
|
|
@@ -9151,15 +9157,19 @@ function getTaskBarLeft(chartRest, viewCellWidth) {
|
|
|
9151
9157
|
return chartRest ? viewCellWidth * chartRest.oLeftSize : 0;
|
|
9152
9158
|
}
|
|
9153
9159
|
function getTaskBarWidth(chartRest, viewCellWidth) {
|
|
9154
|
-
return Math.max(1, chartRest ? Math.floor(viewCellWidth * chartRest.oWidthSize) - 1 : 0);
|
|
9160
|
+
return chartRest && chartRest.oWidthSize ? Math.max(1, chartRest ? Math.floor(viewCellWidth * chartRest.oWidthSize) - 1 : 0) : 0;
|
|
9155
9161
|
}
|
|
9156
9162
|
var taskTypeMaps = {
|
|
9157
|
-
milestone: true
|
|
9163
|
+
milestone: true,
|
|
9164
|
+
subview: true
|
|
9158
9165
|
};
|
|
9159
9166
|
function hasMilestoneTask(type) {
|
|
9160
|
-
return
|
|
9167
|
+
return type === 'milestone';
|
|
9161
9168
|
}
|
|
9162
|
-
function
|
|
9169
|
+
function hasSubviewTask(type) {
|
|
9170
|
+
return type === 'subview';
|
|
9171
|
+
}
|
|
9172
|
+
function getTaskType(type) {
|
|
9163
9173
|
return taskTypeMaps[type] ? type : 'default';
|
|
9164
9174
|
}
|
|
9165
9175
|
;// ./packages/gantt/src/gantt-header.ts
|
|
@@ -9339,6 +9349,8 @@ var viewType = 'header';
|
|
|
9339
9349
|
|
|
9340
9350
|
|
|
9341
9351
|
|
|
9352
|
+
|
|
9353
|
+
|
|
9342
9354
|
var getIcon = core_.VxeUI.getIcon,
|
|
9343
9355
|
renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
9344
9356
|
var gantt_chart_sourceType = 'gantt';
|
|
@@ -9362,7 +9374,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9362
9374
|
//
|
|
9363
9375
|
// Render
|
|
9364
9376
|
//
|
|
9365
|
-
renderTaskBar: function renderTaskBar(h, $xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex) {
|
|
9377
|
+
renderTaskBar: function renderTaskBar(h, $xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex, rowChildren, isExpandTree) {
|
|
9366
9378
|
var _vm = this;
|
|
9367
9379
|
var $xeGantt = _vm.$xeGantt;
|
|
9368
9380
|
var tableReactData = $xeTable;
|
|
@@ -9379,7 +9391,8 @@ var gantt_chart_viewType = 'chart';
|
|
|
9379
9391
|
var ganttInternalData = $xeGantt.internalData;
|
|
9380
9392
|
var ganttSlots = $xeGantt.$scopedSlots;
|
|
9381
9393
|
var taskBarSlot = ganttSlots.taskBar || ganttSlots['task-bar'];
|
|
9382
|
-
var taskBarMilestoneConfig = ganttProps.taskBarMilestoneConfig
|
|
9394
|
+
var taskBarMilestoneConfig = ganttProps.taskBarMilestoneConfig,
|
|
9395
|
+
taskBarSubviewConfig = ganttProps.taskBarSubviewConfig;
|
|
9383
9396
|
var activeLink = ganttReactData.activeLink,
|
|
9384
9397
|
activeBarRowid = ganttReactData.activeBarRowid;
|
|
9385
9398
|
var titleField = $xeGantt.computeTitleField;
|
|
@@ -9387,6 +9400,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9387
9400
|
var typeField = $xeGantt.computeTypeField;
|
|
9388
9401
|
var taskBarOpts = $xeGantt.computeTaskBarOpts;
|
|
9389
9402
|
var taskBarMilestoneOpts = $xeGantt.computeTaskBarMilestoneOpts;
|
|
9403
|
+
var taskBarSubviewOpts = $xeGantt.computeTaskBarSubviewOpts;
|
|
9390
9404
|
var scaleUnit = $xeGantt.computeScaleUnit;
|
|
9391
9405
|
var barParams = {
|
|
9392
9406
|
$gantt: $xeGantt,
|
|
@@ -9406,8 +9420,9 @@ var gantt_chart_viewType = 'chart';
|
|
|
9406
9420
|
var cellHeight = resizeHeightFlag ? getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) : 0;
|
|
9407
9421
|
var title = getStringValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, titleField));
|
|
9408
9422
|
var progressValue = showProgress ? Math.min(100, Math.max(0, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, progressField)))) : 0;
|
|
9409
|
-
var
|
|
9410
|
-
var isMilestone = !!(taskBarMilestoneConfig && hasMilestoneTask(
|
|
9423
|
+
var renderTaskType = getTaskType(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, typeField));
|
|
9424
|
+
var isMilestone = !!(hasEnableConf(taskBarMilestoneConfig, taskBarMilestoneOpts) && hasMilestoneTask(renderTaskType));
|
|
9425
|
+
var isSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(renderTaskType));
|
|
9411
9426
|
var vbStyle = {};
|
|
9412
9427
|
var vpStyle = {
|
|
9413
9428
|
width: "".concat(progressValue || 0, "%")
|
|
@@ -9479,7 +9494,69 @@ var gantt_chart_viewType = 'chart';
|
|
|
9479
9494
|
on: ctOns
|
|
9480
9495
|
}, $xeGantt.callSlot(taskBarSlot, barParams, h)));
|
|
9481
9496
|
} else {
|
|
9482
|
-
if (
|
|
9497
|
+
if (isSubview && rowChildren && rowChildren.length) {
|
|
9498
|
+
if (isExpandTree) {
|
|
9499
|
+
if (taskBarSubviewOpts.showOverview) {
|
|
9500
|
+
cbVNs.push(h('div', {
|
|
9501
|
+
key: 'vcso',
|
|
9502
|
+
class: ['vxe-gantt-view--chart-subview-wrapper is--overview', {
|
|
9503
|
+
'is--round': round,
|
|
9504
|
+
'is--move': moveable
|
|
9505
|
+
}]
|
|
9506
|
+
}, [h('div', {
|
|
9507
|
+
key: rowid,
|
|
9508
|
+
attrs: {
|
|
9509
|
+
rowid: rowid
|
|
9510
|
+
},
|
|
9511
|
+
class: 'vxe-gantt-view--chart-subview-bar'
|
|
9512
|
+
}, [h('div', {
|
|
9513
|
+
class: 'vxe-gantt-view--chart-subview-bar-content-wrapper'
|
|
9514
|
+
}, [showContent ? h('div', {
|
|
9515
|
+
class: 'vxe-gantt-view--chart-content'
|
|
9516
|
+
}, title) : renderEmptyElement($xeGantt)])])]));
|
|
9517
|
+
}
|
|
9518
|
+
} else {
|
|
9519
|
+
cbVNs.push(h('div', {
|
|
9520
|
+
key: 'vcsc',
|
|
9521
|
+
class: 'vxe-gantt-view--chart-subview-wrapper is--inline'
|
|
9522
|
+
}, rowChildren.map(function (childRow) {
|
|
9523
|
+
var childRowid = $xeTable.getRowid(childRow);
|
|
9524
|
+
var childTitle = getStringValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, titleField));
|
|
9525
|
+
var childProgressValue = showProgress ? Math.min(100, Math.max(0, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, progressField)))) : 0;
|
|
9526
|
+
var childRenderTaskType = getTaskType(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, typeField));
|
|
9527
|
+
var vpcStyle = {
|
|
9528
|
+
width: "".concat(childProgressValue || 0, "%")
|
|
9529
|
+
};
|
|
9530
|
+
if (isBarRowStyle) {
|
|
9531
|
+
var _completedBgColor = barStyObj.completedBgColor;
|
|
9532
|
+
if (_completedBgColor) {
|
|
9533
|
+
vpcStyle.backgroundColor = _completedBgColor;
|
|
9534
|
+
}
|
|
9535
|
+
}
|
|
9536
|
+
if (contentMethod) {
|
|
9537
|
+
childTitle = getStringValue(contentMethod({
|
|
9538
|
+
row: childRow,
|
|
9539
|
+
title: childTitle,
|
|
9540
|
+
scaleType: scaleUnit
|
|
9541
|
+
}));
|
|
9542
|
+
}
|
|
9543
|
+
return h('div', {
|
|
9544
|
+
key: childRowid,
|
|
9545
|
+
attrs: {
|
|
9546
|
+
rowid: childRowid
|
|
9547
|
+
},
|
|
9548
|
+
class: ['vxe-gantt-view--chart-subview-bar', "is--".concat(childRenderTaskType)]
|
|
9549
|
+
}, [h('div', {
|
|
9550
|
+
class: 'vxe-gantt-view--chart-subview-bar-content-wrapper'
|
|
9551
|
+
}, [showProgress ? h('div', {
|
|
9552
|
+
class: 'vxe-gantt-view--chart-progress',
|
|
9553
|
+
style: vpcStyle
|
|
9554
|
+
}) : renderEmptyElement($xeGantt), showContent ? h('div', {
|
|
9555
|
+
class: 'vxe-gantt-view--chart-content'
|
|
9556
|
+
}, childTitle) : renderEmptyElement($xeGantt)])]);
|
|
9557
|
+
})));
|
|
9558
|
+
}
|
|
9559
|
+
} else if (isMilestone) {
|
|
9483
9560
|
var icon = taskBarMilestoneOpts.icon,
|
|
9484
9561
|
iconStatus = taskBarMilestoneOpts.iconStatus,
|
|
9485
9562
|
iconStyle = taskBarMilestoneOpts.iconStyle;
|
|
@@ -9505,11 +9582,9 @@ var gantt_chart_viewType = 'chart';
|
|
|
9505
9582
|
class: 'vxe-gantt-view--chart-bar-content-wrapper',
|
|
9506
9583
|
on: ctOns
|
|
9507
9584
|
}, [showProgress ? h('div', {
|
|
9508
|
-
key: 'vcp',
|
|
9509
9585
|
class: 'vxe-gantt-view--chart-progress',
|
|
9510
9586
|
style: vpStyle
|
|
9511
9587
|
}) : renderEmptyElement($xeGantt), showContent ? h('div', {
|
|
9512
|
-
key: 'vcc',
|
|
9513
9588
|
class: 'vxe-gantt-view--chart-content'
|
|
9514
9589
|
}, title) : renderEmptyElement($xeGantt)]));
|
|
9515
9590
|
}
|
|
@@ -9519,7 +9594,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9519
9594
|
attrs: {
|
|
9520
9595
|
rowid: rowid
|
|
9521
9596
|
},
|
|
9522
|
-
class: ['vxe-gantt-view--chart-row', "is--".concat(
|
|
9597
|
+
class: ['vxe-gantt-view--chart-row', "is--".concat(renderTaskType), {
|
|
9523
9598
|
'row--pending': !!pendingRowFlag && !!pendingRowMaps[rowid],
|
|
9524
9599
|
'is--round': round,
|
|
9525
9600
|
'is--move': moveable
|
|
@@ -9533,7 +9608,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9533
9608
|
}
|
|
9534
9609
|
}
|
|
9535
9610
|
}, [h('div', {
|
|
9536
|
-
class: [taskBarSlot ? 'vxe-gantt-view--chart-custom-bar' : 'vxe-gantt-view--chart-bar', "is--".concat(
|
|
9611
|
+
class: [taskBarSlot ? 'vxe-gantt-view--chart-custom-bar' : 'vxe-gantt-view--chart-bar', "is--".concat(renderTaskType), {
|
|
9537
9612
|
'is--active': activeBarRowid === rowid,
|
|
9538
9613
|
'active--link': activeLink && (rowid === "".concat(activeLink.from) || rowid === "".concat(activeLink.to))
|
|
9539
9614
|
}],
|
|
@@ -9581,15 +9656,15 @@ var gantt_chart_viewType = 'chart';
|
|
|
9581
9656
|
rowIndex = rowRest.index;
|
|
9582
9657
|
_rowIndex = rowRest._index;
|
|
9583
9658
|
}
|
|
9584
|
-
trVNs.push(_vm.renderTaskBar(h, $xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex));
|
|
9585
9659
|
var isExpandTree = false;
|
|
9586
9660
|
var rowChildren = [];
|
|
9587
|
-
if (treeConfig
|
|
9661
|
+
if (treeConfig) {
|
|
9588
9662
|
rowChildren = row[childrenField];
|
|
9589
9663
|
isExpandTree = !!treeExpandedFlag && rowChildren && rowChildren.length > 0 && !!treeExpandedMaps[rowid];
|
|
9590
9664
|
}
|
|
9665
|
+
trVNs.push(_vm.renderTaskBar(h, $xeTable, row, rowid, rowIndex, $rowIndex, _rowIndex, rowChildren, isExpandTree));
|
|
9591
9666
|
// 如果是树形表格
|
|
9592
|
-
if (isExpandTree) {
|
|
9667
|
+
if (treeConfig && isExpandTree && !scrollYLoad && !transform) {
|
|
9593
9668
|
trVNs.push.apply(trVNs, _toConsumableArray(_vm.renderTaskRows(h, $xeTable, rowChildren)));
|
|
9594
9669
|
}
|
|
9595
9670
|
});
|
|
@@ -10655,14 +10730,23 @@ function handleParseColumn($xeGanttView) {
|
|
|
10655
10730
|
var rowid = $xeTable.getRowid(row);
|
|
10656
10731
|
var startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
10657
10732
|
var endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
10658
|
-
var
|
|
10733
|
+
var renderTaskType = getTaskType(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, typeField));
|
|
10734
|
+
var isMilestone = hasMilestoneTask(renderTaskType);
|
|
10735
|
+
var isSubview = hasSubviewTask(renderTaskType);
|
|
10659
10736
|
if (isMilestone) {
|
|
10660
10737
|
if (!startValue) {
|
|
10661
10738
|
startValue = endValue;
|
|
10662
10739
|
}
|
|
10663
10740
|
endValue = startValue;
|
|
10664
10741
|
}
|
|
10665
|
-
if (
|
|
10742
|
+
if (isSubview) {
|
|
10743
|
+
ctMaps[rowid] = {
|
|
10744
|
+
row: row,
|
|
10745
|
+
rowid: rowid,
|
|
10746
|
+
oLeftSize: 0,
|
|
10747
|
+
oWidthSize: 0
|
|
10748
|
+
};
|
|
10749
|
+
} else if (startValue && endValue) {
|
|
10666
10750
|
var _renderFn = renderFn(startValue, endValue),
|
|
10667
10751
|
offsetLeftSize = _renderFn.offsetLeftSize,
|
|
10668
10752
|
offsetWidthSize = _renderFn.offsetWidthSize;
|
|
@@ -10800,7 +10884,7 @@ function calcScrollbar($xeGanttView) {
|
|
|
10800
10884
|
reactData.overflowX = overflowX;
|
|
10801
10885
|
}
|
|
10802
10886
|
}
|
|
10803
|
-
function
|
|
10887
|
+
function updateTaskChartStyle($xeGanttView) {
|
|
10804
10888
|
var $xeGantt = $xeGanttView.$xeGantt;
|
|
10805
10889
|
var reactData = $xeGanttView.reactData;
|
|
10806
10890
|
var internalData = $xeGanttView.internalData;
|
|
@@ -10822,9 +10906,27 @@ function updateTaskChart($xeGanttView) {
|
|
|
10822
10906
|
return;
|
|
10823
10907
|
}
|
|
10824
10908
|
var chartRest = rowid ? chartMaps[rowid] : null;
|
|
10825
|
-
|
|
10826
|
-
if (
|
|
10827
|
-
|
|
10909
|
+
// 子任务视图
|
|
10910
|
+
if (hasClass(barEl, 'is--subview')) {
|
|
10911
|
+
var childWrapperEl = barEl.firstElementChild;
|
|
10912
|
+
if (childWrapperEl) {
|
|
10913
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(childWrapperEl.children, function (childEl) {
|
|
10914
|
+
var childBarEl = childEl;
|
|
10915
|
+
var childRowid = childBarEl.getAttribute('rowid') || '';
|
|
10916
|
+
var childChartRest = childRowid ? chartMaps[childRowid] : null;
|
|
10917
|
+
childBarEl.style.left = "".concat(getTaskBarLeft(childChartRest, viewCellWidth), "px");
|
|
10918
|
+
// 里程碑不需要宽度
|
|
10919
|
+
if (!hasClass(childBarEl, 'is--milestone')) {
|
|
10920
|
+
childBarEl.style.width = "".concat(getTaskBarWidth(childChartRest, viewCellWidth), "px");
|
|
10921
|
+
}
|
|
10922
|
+
});
|
|
10923
|
+
}
|
|
10924
|
+
} else {
|
|
10925
|
+
barEl.style.left = "".concat(getTaskBarLeft(chartRest, viewCellWidth), "px");
|
|
10926
|
+
// 里程碑不需要宽度
|
|
10927
|
+
if (!hasClass(barEl, 'is--milestone')) {
|
|
10928
|
+
barEl.style.width = "".concat(getTaskBarWidth(chartRest, viewCellWidth), "px");
|
|
10929
|
+
}
|
|
10828
10930
|
}
|
|
10829
10931
|
});
|
|
10830
10932
|
}
|
|
@@ -10950,7 +11052,7 @@ function updateStyle($xeGanttView) {
|
|
|
10950
11052
|
bodyTableElem.style.width = "".concat(vmTableWidth, "px");
|
|
10951
11053
|
}
|
|
10952
11054
|
reactData.scrollXWidth = viewTableWidth;
|
|
10953
|
-
return Promise.all([
|
|
11055
|
+
return Promise.all([updateTaskChartStyle($xeGanttView), $xeGantt.handleUpdateTaskLinkStyle ? $xeGantt.handleUpdateTaskLinkStyle($xeGanttView) : null]);
|
|
10954
11056
|
}
|
|
10955
11057
|
function handleRecalculateStyle($xeGanttView) {
|
|
10956
11058
|
var internalData = $xeGanttView.internalData;
|
|
@@ -11989,6 +12091,7 @@ function gantt_createReactData() {
|
|
|
11989
12091
|
taskLinkConfig: Object,
|
|
11990
12092
|
taskBarConfig: Object,
|
|
11991
12093
|
taskBarMilestoneConfig: Object,
|
|
12094
|
+
taskBarSubviewConfig: Object,
|
|
11992
12095
|
taskBarTooltipConfig: Object,
|
|
11993
12096
|
taskSplitConfig: Object,
|
|
11994
12097
|
taskBarResizeConfig: Object,
|
|
@@ -12094,6 +12197,11 @@ function gantt_createReactData() {
|
|
|
12094
12197
|
var props = $xeGantt;
|
|
12095
12198
|
return Object.assign({}, gantt_getConfig().gantt.taskBarMilestoneConfig, props.taskBarMilestoneConfig);
|
|
12096
12199
|
},
|
|
12200
|
+
computeTaskBarSubviewOpts: function computeTaskBarSubviewOpts() {
|
|
12201
|
+
var $xeGantt = this;
|
|
12202
|
+
var props = $xeGantt;
|
|
12203
|
+
return Object.assign({}, gantt_getConfig().gantt.taskBarSubviewConfig, props.taskBarSubviewConfig);
|
|
12204
|
+
},
|
|
12097
12205
|
computeTaskBarTooltipOpts: function computeTaskBarTooltipOpts() {
|
|
12098
12206
|
var $xeGantt = this;
|
|
12099
12207
|
var props = $xeGantt;
|
|
@@ -12190,13 +12298,15 @@ function gantt_createReactData() {
|
|
|
12190
12298
|
var props = $xeGantt;
|
|
12191
12299
|
var reactData = $xeGantt.reactData;
|
|
12192
12300
|
var height = props.height,
|
|
12193
|
-
maxHeight = props.maxHeight
|
|
12301
|
+
maxHeight = props.maxHeight,
|
|
12302
|
+
taskBarSubviewConfig = props.taskBarSubviewConfig;
|
|
12194
12303
|
var isZMax = reactData.isZMax,
|
|
12195
12304
|
tZindex = reactData.tZindex;
|
|
12196
12305
|
var taskViewOpts = $xeGantt.computeTaskViewOpts;
|
|
12197
12306
|
var tableStyle = taskViewOpts.tableStyle;
|
|
12198
12307
|
var taskBarOpts = $xeGantt.computeTaskBarOpts;
|
|
12199
12308
|
var barStyle = taskBarOpts.barStyle;
|
|
12309
|
+
var taskBarSubviewOpts = $xeGantt.computeTaskBarSubviewOpts;
|
|
12200
12310
|
var stys = {};
|
|
12201
12311
|
if (isZMax) {
|
|
12202
12312
|
stys.zIndex = tZindex;
|
|
@@ -12210,13 +12320,17 @@ function gantt_createReactData() {
|
|
|
12210
12320
|
}
|
|
12211
12321
|
if (barStyle && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(barStyle)) {
|
|
12212
12322
|
var bgColor = barStyle.bgColor,
|
|
12213
|
-
completedBgColor = barStyle.completedBgColor
|
|
12323
|
+
completedBgColor = barStyle.completedBgColor,
|
|
12324
|
+
overviewBgColor = barStyle.overviewBgColor;
|
|
12214
12325
|
if (bgColor) {
|
|
12215
12326
|
stys['--vxe-ui-gantt-view-task-bar-background-color'] = bgColor;
|
|
12216
12327
|
}
|
|
12217
12328
|
if (completedBgColor) {
|
|
12218
12329
|
stys['--vxe-ui-gantt-view-task-bar-completed-background-color'] = completedBgColor;
|
|
12219
12330
|
}
|
|
12331
|
+
if (overviewBgColor && hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts)) {
|
|
12332
|
+
stys['--vxe-ui-gantt-view-task-bar-overview-background-color'] = overviewBgColor;
|
|
12333
|
+
}
|
|
12220
12334
|
}
|
|
12221
12335
|
if (tableStyle) {
|
|
12222
12336
|
var defTbWidth = tableStyle.width;
|
|
@@ -14551,14 +14665,18 @@ var VxeGanttDependencyType;
|
|
|
14551
14665
|
VxeGanttDependencyType[VxeGanttDependencyType["FinishToFinish"] = 3] = "FinishToFinish";
|
|
14552
14666
|
})(VxeGanttDependencyType || (VxeGanttDependencyType = {}));
|
|
14553
14667
|
/**
|
|
14554
|
-
*
|
|
14668
|
+
* 任务渲染类型
|
|
14555
14669
|
*/
|
|
14556
14670
|
var VxeGanttTaskType;
|
|
14557
14671
|
(function (VxeGanttTaskType) {
|
|
14558
14672
|
/**
|
|
14559
|
-
*
|
|
14673
|
+
* 里程碑类型,该类型节点不需要结束日期
|
|
14560
14674
|
*/
|
|
14561
14675
|
VxeGanttTaskType["Milestone"] = "milestone";
|
|
14676
|
+
/**
|
|
14677
|
+
* 子视图类型,该类型会将子任务渲染到一行,无需开始日期和结束日期
|
|
14678
|
+
*/
|
|
14679
|
+
VxeGanttTaskType["Subview"] = "subview";
|
|
14562
14680
|
})(VxeGanttTaskType || (VxeGanttTaskType = {}));
|
|
14563
14681
|
;// ./packages/gantt/index.ts
|
|
14564
14682
|
|