vxe-gantt 3.0.0-beta.5 → 3.0.0
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 +0 -4
- package/es/gantt/src/gantt-footer.js +51 -0
- package/es/gantt/src/gantt-header.js +1 -5
- package/es/gantt/src/gantt-view.js +16 -3
- package/es/gantt/src/gantt.js +12 -2
- package/es/gantt/style.css +8 -0
- 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 +8 -0
- package/es/vxe-gantt/style.min.css +1 -1
- package/lib/gantt/src/gantt-body.js +0 -4
- package/lib/gantt/src/gantt-body.min.js +1 -1
- package/lib/gantt/src/gantt-footer.js +55 -0
- package/lib/gantt/src/gantt-footer.min.js +1 -0
- package/lib/gantt/src/gantt-header.js +1 -5
- package/lib/gantt/src/gantt-header.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +14 -2
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +12 -2
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/style/style.css +8 -0
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.umd.js +80 -15
- 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 +8 -0
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/gantt/src/gantt-body.ts +0 -4
- package/packages/gantt/src/gantt-footer.ts +62 -0
- package/packages/gantt/src/gantt-header.ts +1 -5
- package/packages/gantt/src/gantt-view.ts +17 -3
- package/packages/gantt/src/gantt.ts +14 -2
- package/styles/components/gantt.scss +11 -0
package/lib/index.umd.js
CHANGED
|
@@ -7584,7 +7584,7 @@ var core_ = __webpack_require__(4345);
|
|
|
7584
7584
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
7585
7585
|
|
|
7586
7586
|
var log = core_.VxeUI.log;
|
|
7587
|
-
var version = "gantt v".concat("3.0.0
|
|
7587
|
+
var version = "gantt v".concat("3.0.0");
|
|
7588
7588
|
var warnLog = log.create('warn', version);
|
|
7589
7589
|
var errLog = log.create('error', version);
|
|
7590
7590
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
@@ -7593,7 +7593,7 @@ var errLog = log.create('error', version);
|
|
|
7593
7593
|
var setConfig = core_.VxeUI.setConfig,
|
|
7594
7594
|
setIcon = core_.VxeUI.setIcon,
|
|
7595
7595
|
checkVersion = core_.VxeUI.checkVersion;
|
|
7596
|
-
core_.VxeUI.ganttVersion = "3.0.0
|
|
7596
|
+
core_.VxeUI.ganttVersion = "3.0.0";
|
|
7597
7597
|
setConfig({
|
|
7598
7598
|
gantt: {
|
|
7599
7599
|
// size: null,
|
|
@@ -8295,7 +8295,7 @@ function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
|
8295
8295
|
|
|
8296
8296
|
|
|
8297
8297
|
/* harmony default export */ var gantt_header = (defineVxeComponent({
|
|
8298
|
-
name: '
|
|
8298
|
+
name: 'VxeGanttViewHeader',
|
|
8299
8299
|
inject: {
|
|
8300
8300
|
$xeGantt: {
|
|
8301
8301
|
default: null
|
|
@@ -8304,10 +8304,6 @@ function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
|
8304
8304
|
default: null
|
|
8305
8305
|
}
|
|
8306
8306
|
},
|
|
8307
|
-
props: {},
|
|
8308
|
-
data: function data() {
|
|
8309
|
-
return {};
|
|
8310
|
-
},
|
|
8311
8307
|
computed: _objectSpread2({}, {}),
|
|
8312
8308
|
methods: {
|
|
8313
8309
|
//
|
|
@@ -8569,10 +8565,6 @@ var renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
|
8569
8565
|
default: null
|
|
8570
8566
|
}
|
|
8571
8567
|
},
|
|
8572
|
-
props: {},
|
|
8573
|
-
data: function data() {
|
|
8574
|
-
return {};
|
|
8575
|
-
},
|
|
8576
8568
|
computed: _objectSpread2({}, {}),
|
|
8577
8569
|
methods: {
|
|
8578
8570
|
//
|
|
@@ -8762,6 +8754,57 @@ var renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
|
8762
8754
|
return this.renderVN(h);
|
|
8763
8755
|
}
|
|
8764
8756
|
}));
|
|
8757
|
+
;// CONCATENATED MODULE: ./packages/gantt/src/gantt-footer.ts
|
|
8758
|
+
|
|
8759
|
+
|
|
8760
|
+
/* harmony default export */ var gantt_footer = (defineVxeComponent({
|
|
8761
|
+
name: 'VxeGanttViewHeader',
|
|
8762
|
+
inject: {
|
|
8763
|
+
$xeGantt: {
|
|
8764
|
+
default: null
|
|
8765
|
+
},
|
|
8766
|
+
$xeGanttView: {
|
|
8767
|
+
default: null
|
|
8768
|
+
}
|
|
8769
|
+
},
|
|
8770
|
+
props: {},
|
|
8771
|
+
computed: _objectSpread2({}, {}),
|
|
8772
|
+
methods: {
|
|
8773
|
+
//
|
|
8774
|
+
// Render
|
|
8775
|
+
//
|
|
8776
|
+
renderVN: function renderVN(h) {
|
|
8777
|
+
return h('div', {
|
|
8778
|
+
ref: 'refElem',
|
|
8779
|
+
class: 'vxe-gantt-view--footer-wrapper'
|
|
8780
|
+
}, [h('div', {
|
|
8781
|
+
ref: 'refHeaderScroll',
|
|
8782
|
+
class: 'vxe-gantt-view--footer-inner-wrapper'
|
|
8783
|
+
}, [])]);
|
|
8784
|
+
}
|
|
8785
|
+
},
|
|
8786
|
+
mounted: function mounted() {
|
|
8787
|
+
var _vm = this;
|
|
8788
|
+
var $xeGanttView = _vm.$xeGanttView;
|
|
8789
|
+
var internalData = $xeGanttView.internalData;
|
|
8790
|
+
var elemStore = internalData.elemStore;
|
|
8791
|
+
var prefix = 'main-footer-';
|
|
8792
|
+
elemStore["".concat(prefix, "wrapper")] = _vm.$refs.refElem;
|
|
8793
|
+
elemStore["".concat(prefix, "scroll")] = _vm.$refs.refHeaderScroll;
|
|
8794
|
+
},
|
|
8795
|
+
destroyed: function destroyed() {
|
|
8796
|
+
var _vm = this;
|
|
8797
|
+
var $xeGanttView = _vm.$xeGanttView;
|
|
8798
|
+
var internalData = $xeGanttView.internalData;
|
|
8799
|
+
var elemStore = internalData.elemStore;
|
|
8800
|
+
var prefix = 'main-headefooterr-';
|
|
8801
|
+
elemStore["".concat(prefix, "wrapper")] = null;
|
|
8802
|
+
elemStore["".concat(prefix, "scroll")] = null;
|
|
8803
|
+
},
|
|
8804
|
+
render: function render(h) {
|
|
8805
|
+
return this.renderVN(h);
|
|
8806
|
+
}
|
|
8807
|
+
}));
|
|
8765
8808
|
;// CONCATENATED MODULE: ./packages/gantt/src/gantt-view.ts
|
|
8766
8809
|
|
|
8767
8810
|
|
|
@@ -8775,6 +8818,7 @@ var renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
|
8775
8818
|
|
|
8776
8819
|
|
|
8777
8820
|
|
|
8821
|
+
|
|
8778
8822
|
var globalEvents = core_.VxeUI.globalEvents;
|
|
8779
8823
|
function createInternalData() {
|
|
8780
8824
|
return {
|
|
@@ -9015,7 +9059,9 @@ function updateStyle($xeGanttView) {
|
|
|
9015
9059
|
if (!el || !el.clientHeight) {
|
|
9016
9060
|
return;
|
|
9017
9061
|
}
|
|
9062
|
+
var scrollbarOpts = $xeGantt.computeScrollbarOpts;
|
|
9018
9063
|
var scrollbarXToTop = $xeGantt.computeScrollbarXToTop;
|
|
9064
|
+
var scrollbarYToLeft = $xeGantt.computeScrollbarYToLeft;
|
|
9019
9065
|
var xLeftCornerEl = $xeGanttView.$refs.refScrollXLeftCornerElem;
|
|
9020
9066
|
var xRightCornerEl = $xeGanttView.$refs.refScrollXRightCornerElem;
|
|
9021
9067
|
var scrollXVirtualEl = $xeGanttView.$refs.refScrollXVirtualElem;
|
|
@@ -9030,6 +9076,11 @@ function updateStyle($xeGanttView) {
|
|
|
9030
9076
|
tHeaderHeight = tableInternalData.tHeaderHeight;
|
|
9031
9077
|
tFooterHeight = tableInternalData.tFooterHeight;
|
|
9032
9078
|
}
|
|
9079
|
+
var yScrollbarVisible = 'visible';
|
|
9080
|
+
if (scrollbarYToLeft && scrollbarOpts.y && scrollbarOpts.y.visible === false) {
|
|
9081
|
+
osbWidth = 0;
|
|
9082
|
+
yScrollbarVisible = 'hidden';
|
|
9083
|
+
}
|
|
9033
9084
|
var headerScrollElem = getRefElem(elemStore['main-header-scroll']);
|
|
9034
9085
|
if (headerScrollElem) {
|
|
9035
9086
|
headerScrollElem.style.height = "".concat(tHeaderHeight, "px");
|
|
@@ -9038,6 +9089,10 @@ function updateStyle($xeGanttView) {
|
|
|
9038
9089
|
if (bodyScrollElem) {
|
|
9039
9090
|
bodyScrollElem.style.height = "".concat(tbHeight, "px");
|
|
9040
9091
|
}
|
|
9092
|
+
var footerScrollElem = getRefElem(elemStore['main-footer-scroll']);
|
|
9093
|
+
if (footerScrollElem) {
|
|
9094
|
+
footerScrollElem.style.height = "".concat(tFooterHeight, "px");
|
|
9095
|
+
}
|
|
9041
9096
|
if (scrollXVirtualEl) {
|
|
9042
9097
|
scrollXVirtualEl.style.height = "".concat(osbHeight, "px");
|
|
9043
9098
|
scrollXVirtualEl.style.visibility = 'visible';
|
|
@@ -9059,7 +9114,7 @@ function updateStyle($xeGanttView) {
|
|
|
9059
9114
|
if (scrollYVirtualEl) {
|
|
9060
9115
|
scrollYVirtualEl.style.width = "".concat(osbWidth, "px");
|
|
9061
9116
|
scrollYVirtualEl.style.height = "".concat(tbHeight + tHeaderHeight + tFooterHeight, "px");
|
|
9062
|
-
scrollYVirtualEl.style.visibility =
|
|
9117
|
+
scrollYVirtualEl.style.visibility = yScrollbarVisible;
|
|
9063
9118
|
}
|
|
9064
9119
|
var yTopCornerEl = $xeGanttView.$refs.refScrollYTopCornerElem;
|
|
9065
9120
|
if (yTopCornerEl) {
|
|
@@ -9599,7 +9654,7 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
9599
9654
|
renderViewport: function renderViewport(h) {
|
|
9600
9655
|
return h('div', {
|
|
9601
9656
|
class: 'vxe-gantt-view--viewport-wrapper'
|
|
9602
|
-
}, [h(gantt_header), h(gantt_body)]);
|
|
9657
|
+
}, [h(gantt_header), h(gantt_body), h(gantt_footer)]);
|
|
9603
9658
|
},
|
|
9604
9659
|
renderBody: function renderBody(h) {
|
|
9605
9660
|
var $xeGanttView = this;
|
|
@@ -9949,10 +10004,10 @@ function gantt_createInternalData() {
|
|
|
9949
10004
|
var pagerOpts = $xeGantt.computePagerOpts;
|
|
9950
10005
|
var isLoading = $xeGantt.computeIsLoading;
|
|
9951
10006
|
var tProps = Object.assign({}, tableExtendProps, {
|
|
10007
|
+
// 不支持修改的属性
|
|
9952
10008
|
showOverflow: true,
|
|
9953
10009
|
showHeaderOverflow: true,
|
|
9954
|
-
showFooterOverflow: true
|
|
9955
|
-
showFooter: false
|
|
10010
|
+
showFooterOverflow: true
|
|
9956
10011
|
});
|
|
9957
10012
|
if (isZMax) {
|
|
9958
10013
|
if (tableExtendProps.maxHeight) {
|
|
@@ -11273,6 +11328,7 @@ function gantt_createInternalData() {
|
|
|
11273
11328
|
var slots = $xeGantt.$scopedSlots;
|
|
11274
11329
|
var $xeTable = $xeGantt.$refs.refTable;
|
|
11275
11330
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(columns, function (column) {
|
|
11331
|
+
var type = column.type;
|
|
11276
11332
|
if (column.slots) {
|
|
11277
11333
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, function (func) {
|
|
11278
11334
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
@@ -11282,6 +11338,9 @@ function gantt_createInternalData() {
|
|
|
11282
11338
|
}
|
|
11283
11339
|
});
|
|
11284
11340
|
}
|
|
11341
|
+
if (type === 'expand') {
|
|
11342
|
+
errLog('vxe.error.errProp', ['type=expand', 'type=seq,radio,checkbox,html']);
|
|
11343
|
+
}
|
|
11285
11344
|
});
|
|
11286
11345
|
return $xeTable.loadColumn(columns);
|
|
11287
11346
|
},
|
|
@@ -11721,6 +11780,12 @@ function gantt_createInternalData() {
|
|
|
11721
11780
|
if (proxyOpts.props) {
|
|
11722
11781
|
warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response']);
|
|
11723
11782
|
}
|
|
11783
|
+
if (props.expandConfig) {
|
|
11784
|
+
warnLog('vxe.error.notProp', ['expand-config']);
|
|
11785
|
+
}
|
|
11786
|
+
if (props.aggregateConfig) {
|
|
11787
|
+
warnLog('vxe.error.notProp', ['aggregate-config']);
|
|
11788
|
+
}
|
|
11724
11789
|
$xeGantt.$nextTick(function () {
|
|
11725
11790
|
if (props.formConfig) {
|
|
11726
11791
|
if (!VxeUIFormComponent) {
|