vxe-gantt 3.6.2 → 3.6.4
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-view.js +9 -2
- package/es/gantt/src/gantt.js +28 -8
- package/es/gantt/style.css +35 -19
- 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 +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-gantt/style.css +35 -19
- package/es/vxe-gantt/style.min.css +1 -1
- package/lib/gantt/src/gantt-view.js +9 -2
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +31 -7
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/style/style.css +35 -19
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.umd.js +42 -11
- 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 +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/lib/vxe-gantt/style/style.css +35 -19
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/gantt/src/gantt-view.ts +9 -2
- package/packages/gantt/src/gantt.ts +28 -8
- package/styles/components/gantt.scss +53 -25
package/lib/index.umd.js
CHANGED
|
@@ -8468,7 +8468,7 @@ var core_ = __webpack_require__(4345);
|
|
|
8468
8468
|
|
|
8469
8469
|
var setConfig = core_.VxeUI.setConfig,
|
|
8470
8470
|
setIcon = core_.VxeUI.setIcon;
|
|
8471
|
-
core_.VxeUI.ganttVersion = "3.6.
|
|
8471
|
+
core_.VxeUI.ganttVersion = "3.6.4";
|
|
8472
8472
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8473
8473
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8474
8474
|
setConfig({
|
|
@@ -8593,7 +8593,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
8593
8593
|
|
|
8594
8594
|
|
|
8595
8595
|
var log = core_.VxeUI.log;
|
|
8596
|
-
var ganttVersion = "gantt v".concat("3.6.
|
|
8596
|
+
var ganttVersion = "gantt v".concat("3.6.4");
|
|
8597
8597
|
function createComponentLog(name) {
|
|
8598
8598
|
var uiVersion = core_.VxeUI.uiVersion ? "ui v".concat(core_.VxeUI.uiVersion) : '';
|
|
8599
8599
|
var tableVersion = core_.VxeUI.tableVersion ? "table v".concat(core_.VxeUI.tableVersion) : '';
|
|
@@ -11345,6 +11345,7 @@ function calcScrollbar($xeGanttView) {
|
|
|
11345
11345
|
var $xeGantt = $xeGanttView.$xeGantt;
|
|
11346
11346
|
var reactData = $xeGanttView.reactData;
|
|
11347
11347
|
var internalData = $xeGanttView.internalData;
|
|
11348
|
+
var ganttReactData = $xeGantt.reactData;
|
|
11348
11349
|
var scrollXWidth = reactData.scrollXWidth,
|
|
11349
11350
|
scrollYHeight = reactData.scrollYHeight;
|
|
11350
11351
|
var elemStore = internalData.elemStore;
|
|
@@ -11357,14 +11358,20 @@ function calcScrollbar($xeGanttView) {
|
|
|
11357
11358
|
if (bodyWrapperElem) {
|
|
11358
11359
|
overflowY = scrollYHeight > bodyWrapperElem.clientHeight;
|
|
11359
11360
|
if (yHandleEl) {
|
|
11360
|
-
|
|
11361
|
+
var scrollbarWidth = scrollbarOpts.width || yHandleEl.offsetWidth - yHandleEl.clientWidth || 14;
|
|
11362
|
+
reactData.scrollbarWidth = scrollbarWidth;
|
|
11363
|
+
ganttReactData.scrollbarWidth = scrollbarWidth;
|
|
11361
11364
|
}
|
|
11362
11365
|
reactData.overflowY = overflowY;
|
|
11366
|
+
ganttReactData.overflowY = overflowY;
|
|
11363
11367
|
overflowX = scrollXWidth > bodyWrapperElem.clientWidth;
|
|
11364
11368
|
if (xHandleEl) {
|
|
11365
|
-
|
|
11369
|
+
var scrollbarHeight = scrollbarOpts.height || xHandleEl.offsetHeight - xHandleEl.clientHeight || 14;
|
|
11370
|
+
reactData.scrollbarHeight = scrollbarHeight;
|
|
11371
|
+
ganttReactData.scrollbarHeight = scrollbarHeight;
|
|
11366
11372
|
}
|
|
11367
11373
|
reactData.overflowX = overflowX;
|
|
11374
|
+
ganttReactData.overflowX = overflowX;
|
|
11368
11375
|
}
|
|
11369
11376
|
}
|
|
11370
11377
|
function handleSubTaskMinMaxSize($xeGanttView, $xeTable, list) {
|
|
@@ -12646,6 +12653,14 @@ function gantt_createReactData() {
|
|
|
12646
12653
|
return {
|
|
12647
12654
|
tableLoading: false,
|
|
12648
12655
|
proxyInited: false,
|
|
12656
|
+
// 是否存在纵向滚动条
|
|
12657
|
+
overflowY: false,
|
|
12658
|
+
// 是否存在横向滚动条
|
|
12659
|
+
overflowX: false,
|
|
12660
|
+
// 纵向滚动条的宽度
|
|
12661
|
+
scrollbarWidth: 0,
|
|
12662
|
+
// 横向滚动条的高度
|
|
12663
|
+
scrollbarHeight: 0,
|
|
12649
12664
|
isZMax: false,
|
|
12650
12665
|
tableLinks: [],
|
|
12651
12666
|
tableData: [],
|
|
@@ -12921,7 +12936,7 @@ function gantt_createReactData() {
|
|
|
12921
12936
|
var scrollbarOpts = $xeGantt.computeScrollbarOpts;
|
|
12922
12937
|
return !!(scrollbarOpts.y && scrollbarOpts.y.position === 'left');
|
|
12923
12938
|
},
|
|
12924
|
-
|
|
12939
|
+
computeWrapperStyle: function computeWrapperStyle() {
|
|
12925
12940
|
var $xeGantt = this;
|
|
12926
12941
|
var props = $xeGantt;
|
|
12927
12942
|
var reactData = $xeGantt.reactData;
|
|
@@ -12929,7 +12944,9 @@ function gantt_createReactData() {
|
|
|
12929
12944
|
maxHeight = props.maxHeight,
|
|
12930
12945
|
taskBarSubviewConfig = props.taskBarSubviewConfig;
|
|
12931
12946
|
var isZMax = reactData.isZMax,
|
|
12932
|
-
tZindex = reactData.tZindex
|
|
12947
|
+
tZindex = reactData.tZindex,
|
|
12948
|
+
overflowY = reactData.overflowY,
|
|
12949
|
+
scrollbarWidth = reactData.scrollbarWidth;
|
|
12933
12950
|
var taskViewOpts = $xeGantt.computeTaskViewOpts;
|
|
12934
12951
|
var viewStyle = taskViewOpts.viewStyle,
|
|
12935
12952
|
tableStyle = taskViewOpts.tableStyle;
|
|
@@ -12940,7 +12957,9 @@ function gantt_createReactData() {
|
|
|
12940
12957
|
var nlfColor = taskNowLineOpts.fontColor,
|
|
12941
12958
|
nlbgColor = taskNowLineOpts.bgColor,
|
|
12942
12959
|
nlWidth = taskNowLineOpts.width;
|
|
12943
|
-
var stys = {
|
|
12960
|
+
var stys = {
|
|
12961
|
+
'--vxe-ui-gantt-scrollbar-width': (overflowY && scrollbarWidth ? scrollbarWidth : 0) + 'px'
|
|
12962
|
+
};
|
|
12944
12963
|
if (isZMax) {
|
|
12945
12964
|
stys.zIndex = tZindex;
|
|
12946
12965
|
} else {
|
|
@@ -15156,7 +15175,12 @@ function gantt_createReactData() {
|
|
|
15156
15175
|
},
|
|
15157
15176
|
renderChildLayout: function renderChildLayout(h, layoutKeys) {
|
|
15158
15177
|
var $xeGantt = this;
|
|
15178
|
+
var reactData = $xeGantt.reactData;
|
|
15179
|
+
var showLeftView = reactData.showLeftView,
|
|
15180
|
+
showRightView = reactData.showRightView;
|
|
15159
15181
|
var taskSplitOpts = $xeGantt.computeTaskSplitOpts;
|
|
15182
|
+
var scrollbarXToTop = $xeGantt.computeScrollbarXToTop;
|
|
15183
|
+
var scrollbarYToLeft = $xeGantt.computeScrollbarYToLeft;
|
|
15160
15184
|
var autoHideCollapseButton = taskSplitOpts.autoHideCollapseButton;
|
|
15161
15185
|
var childVNs = [];
|
|
15162
15186
|
layoutKeys.forEach(function (key) {
|
|
@@ -15174,7 +15198,11 @@ function gantt_createReactData() {
|
|
|
15174
15198
|
childVNs.push(h('div', {
|
|
15175
15199
|
ref: 'refGanttContainerElem',
|
|
15176
15200
|
key: 'tv',
|
|
15177
|
-
class: ['vxe-gantt--gantt-container', {
|
|
15201
|
+
class: ['vxe-gantt--gantt-container', "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right'), {
|
|
15202
|
+
'show--left': showLeftView,
|
|
15203
|
+
'hide--left': !showLeftView,
|
|
15204
|
+
'show--right': showRightView,
|
|
15205
|
+
'hide--right': !showRightView,
|
|
15178
15206
|
'is--ah-split-btn': autoHideCollapseButton
|
|
15179
15207
|
}]
|
|
15180
15208
|
}, [$xeGantt.renderTableLeft(h), $xeGantt.renderTable(h), $xeGantt.renderSplitBar(h), $xeGantt.renderTaskView(h), $xeGantt.renderTableRight(h), h('div', {
|
|
@@ -15270,14 +15298,17 @@ function gantt_createReactData() {
|
|
|
15270
15298
|
})])];
|
|
15271
15299
|
},
|
|
15272
15300
|
renderVN: function renderVN(h) {
|
|
15301
|
+
var _ref5;
|
|
15273
15302
|
var $xeGantt = this;
|
|
15274
15303
|
var props = $xeGantt;
|
|
15275
15304
|
var reactData = $xeGantt.reactData;
|
|
15276
15305
|
var showLeftView = reactData.showLeftView,
|
|
15277
15306
|
showRightView = reactData.showRightView,
|
|
15307
|
+
overflowY = reactData.overflowY,
|
|
15308
|
+
overflowX = reactData.overflowX,
|
|
15278
15309
|
showSplitAnimat = reactData.showSplitAnimat;
|
|
15279
15310
|
var vSize = $xeGantt.computeSize;
|
|
15280
|
-
var
|
|
15311
|
+
var wrapperStyle = $xeGantt.computeWrapperStyle;
|
|
15281
15312
|
var isLoading = $xeGantt.computeIsLoading;
|
|
15282
15313
|
var taskSplitOpts = $xeGantt.computeTaskSplitOpts;
|
|
15283
15314
|
var tableBorder = $xeGantt.computeTableBorder;
|
|
@@ -15285,8 +15316,8 @@ function gantt_createReactData() {
|
|
|
15285
15316
|
var scrollbarYToLeft = $xeGantt.computeScrollbarYToLeft;
|
|
15286
15317
|
return h('div', {
|
|
15287
15318
|
ref: 'refElem',
|
|
15288
|
-
class: ['vxe-gantt', "border--".concat(tableBorder), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
15289
|
-
style:
|
|
15319
|
+
class: ['vxe-gantt', "border--".concat(tableBorder), "sx-pos--".concat(scrollbarXToTop ? 'top' : 'bottom'), "sy-pos--".concat(scrollbarYToLeft ? 'left' : 'right'), (_ref5 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref5, "size--".concat(vSize), vSize), 'is--round', props.round), 'show--animat', taskSplitOpts.animation), 'is--maximize', reactData.isZMax), 'is--loading', isLoading), 'is--animat', showSplitAnimat), 'show--left', showLeftView), 'hide--left', !showLeftView), 'show--right', showRightView), 'hide--right', !showRightView), _defineProperty(_defineProperty(_ref5, 'is--scroll-y', overflowY), 'is--scroll-x', overflowX))],
|
|
15320
|
+
style: wrapperStyle
|
|
15290
15321
|
}, $xeGantt.renderLayout(h));
|
|
15291
15322
|
}
|
|
15292
15323
|
}),
|