vxe-table 3.18.0-beta.0 → 3.18.0-beta.2
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/grid/src/grid.js +3 -1
- package/es/style.css +1 -1
- package/es/table/module/custom/mixin.js +4 -2
- package/es/table/module/custom/panel.js +4 -0
- package/es/table/module/export/export-panel.js +3 -0
- package/es/table/module/export/import-panel.js +3 -0
- package/es/table/module/export/mixin.js +41 -22
- package/es/table/module/menu/mixin.js +5 -3
- package/es/table/src/body.js +6 -1
- package/es/table/src/column.js +2 -1
- package/es/table/src/columnInfo.js +6 -2
- package/es/table/src/footer.js +2 -0
- package/es/table/src/group.js +2 -1
- package/es/table/src/header.js +2 -0
- package/es/table/src/methods.js +39 -20
- package/es/table/src/table.js +13 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +3 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +161 -58
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/mixin.js +4 -2
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +4 -0
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +3 -0
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +3 -0
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +49 -18
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +8 -3
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/src/body.js +7 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/column.js +2 -1
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +11 -5
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +2 -0
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +2 -1
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +2 -0
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +44 -21
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +15 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +3 -1
- package/packages/table/module/custom/mixin.ts +7 -5
- package/packages/table/module/custom/panel.ts +4 -0
- package/packages/table/module/export/export-panel.ts +3 -0
- package/packages/table/module/export/import-panel.ts +3 -0
- package/packages/table/module/export/mixin.ts +43 -22
- package/packages/table/module/menu/mixin.ts +8 -6
- package/packages/table/src/body.ts +6 -1
- package/packages/table/src/column.ts +2 -1
- package/packages/table/src/columnInfo.ts +8 -4
- package/packages/table/src/footer.ts +2 -0
- package/packages/table/src/group.ts +2 -1
- package/packages/table/src/header.ts +5 -1
- package/packages/table/src/methods.ts +50 -31
- package/packages/table/src/table.ts +13 -5
- /package/es/{iconfont.1755178463571.ttf → iconfont.1755245623987.ttf} +0 -0
- /package/es/{iconfont.1755178463571.woff → iconfont.1755245623987.woff} +0 -0
- /package/es/{iconfont.1755178463571.woff2 → iconfont.1755245623987.woff2} +0 -0
- /package/lib/{iconfont.1755178463571.ttf → iconfont.1755245623987.ttf} +0 -0
- /package/lib/{iconfont.1755178463571.woff → iconfont.1755245623987.woff} +0 -0
- /package/lib/{iconfont.1755178463571.woff2 → iconfont.1755245623987.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.18.0-beta.
|
|
2005
|
+
const version = "3.18.0-beta.2";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
|
|
|
2678
2678
|
const {
|
|
2679
2679
|
log: log_log
|
|
2680
2680
|
} = core_.VxeUI;
|
|
2681
|
-
const log_version = `table v${"3.18.0-beta.
|
|
2681
|
+
const log_version = `table v${"3.18.0-beta.2"}`;
|
|
2682
2682
|
const warnLog = log_log.create('warn', log_version);
|
|
2683
2683
|
const errLog = log_log.create('error', log_version);
|
|
2684
2684
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -2701,6 +2701,8 @@ class ColumnInfo {
|
|
|
2701
2701
|
} = {}) {
|
|
2702
2702
|
const tableProps = $xeTable;
|
|
2703
2703
|
const $xeGrid = $xeTable.$xeGrid;
|
|
2704
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
2705
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
2704
2706
|
const {
|
|
2705
2707
|
field,
|
|
2706
2708
|
editRender
|
|
@@ -2854,11 +2856,15 @@ class ColumnInfo {
|
|
|
2854
2856
|
// 单元格插槽,只对 grid 有效
|
|
2855
2857
|
slots: _vm.slots
|
|
2856
2858
|
});
|
|
2857
|
-
if (
|
|
2858
|
-
proxyOpts.beforeColumn
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2859
|
+
if ($xeGGWrapper) {
|
|
2860
|
+
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
2861
|
+
proxyOpts.beforeColumn({
|
|
2862
|
+
$table: $xeTable,
|
|
2863
|
+
$grid: $xeGrid,
|
|
2864
|
+
$gantt: $xeGantt,
|
|
2865
|
+
column: this
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2862
2868
|
}
|
|
2863
2869
|
}
|
|
2864
2870
|
getTitle() {
|
|
@@ -5215,7 +5221,8 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5215
5221
|
provide() {
|
|
5216
5222
|
return {
|
|
5217
5223
|
$xeColumn: this,
|
|
5218
|
-
$xeGrid: null
|
|
5224
|
+
$xeGrid: null,
|
|
5225
|
+
$xeGantt: null
|
|
5219
5226
|
};
|
|
5220
5227
|
},
|
|
5221
5228
|
inject: {
|
|
@@ -5272,7 +5279,8 @@ const Column = VxeColumn;
|
|
|
5272
5279
|
provide() {
|
|
5273
5280
|
return {
|
|
5274
5281
|
$xeColumn: this,
|
|
5275
|
-
$xeGrid: null
|
|
5282
|
+
$xeGrid: null,
|
|
5283
|
+
$xeGantt: null
|
|
5276
5284
|
};
|
|
5277
5285
|
},
|
|
5278
5286
|
inject: {
|
|
@@ -6157,6 +6165,7 @@ function updateScrollYStatus($xeTable, fullData) {
|
|
|
6157
6165
|
const {
|
|
6158
6166
|
treeConfig
|
|
6159
6167
|
} = props;
|
|
6168
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
6160
6169
|
const virtualYOpts = $xeTable.computeVirtualYOpts;
|
|
6161
6170
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
6162
6171
|
const {
|
|
@@ -6166,6 +6175,9 @@ function updateScrollYStatus($xeTable, fullData) {
|
|
|
6166
6175
|
// 如果gt为0,则总是启用
|
|
6167
6176
|
const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
|
|
6168
6177
|
reactData.scrollYLoad = scrollYLoad;
|
|
6178
|
+
if ($xeGanttView) {
|
|
6179
|
+
$xeGanttView.updateScrollYStatus(scrollYLoad);
|
|
6180
|
+
}
|
|
6169
6181
|
return scrollYLoad;
|
|
6170
6182
|
}
|
|
6171
6183
|
/**
|
|
@@ -10124,9 +10136,11 @@ const Methods = {
|
|
|
10124
10136
|
const $xeTable = this;
|
|
10125
10137
|
// const slots = $xeTable.$scopedSlots
|
|
10126
10138
|
const $xeGrid = $xeTable.$xeGrid;
|
|
10139
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
10140
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
10127
10141
|
if (slotFunc) {
|
|
10128
|
-
if ($
|
|
10129
|
-
return $
|
|
10142
|
+
if ($xeGGWrapper) {
|
|
10143
|
+
return $xeGGWrapper.callSlot(slotFunc, params, h, vNodes);
|
|
10130
10144
|
}
|
|
10131
10145
|
// if (XEUtils.isString(slotFunc)) {
|
|
10132
10146
|
// slotFunc = slots[slotFunc] || null
|
|
@@ -10147,10 +10161,12 @@ const Methods = {
|
|
|
10147
10161
|
getParentElem() {
|
|
10148
10162
|
const $xeTable = this;
|
|
10149
10163
|
const $xeGrid = $xeTable.$xeGrid;
|
|
10164
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
10165
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
10150
10166
|
const {
|
|
10151
10167
|
$el
|
|
10152
10168
|
} = this;
|
|
10153
|
-
return $
|
|
10169
|
+
return $xeGGWrapper ? $xeGGWrapper.$el.parentNode : $el.parentNode;
|
|
10154
10170
|
},
|
|
10155
10171
|
/**
|
|
10156
10172
|
* 获取父容器的高度
|
|
@@ -10158,6 +10174,8 @@ const Methods = {
|
|
|
10158
10174
|
getParentHeight() {
|
|
10159
10175
|
const $xeTable = this;
|
|
10160
10176
|
const $xeGrid = $xeTable.$xeGrid;
|
|
10177
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
10178
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
10161
10179
|
const props = $xeTable;
|
|
10162
10180
|
const {
|
|
10163
10181
|
height
|
|
@@ -10168,8 +10186,8 @@ const Methods = {
|
|
|
10168
10186
|
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
10169
10187
|
let parentWrapperHeight = 0;
|
|
10170
10188
|
if (parentElem) {
|
|
10171
|
-
if ($
|
|
10172
|
-
parentWrapperHeight = $
|
|
10189
|
+
if ($xeGGWrapper && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
|
|
10190
|
+
parentWrapperHeight = $xeGGWrapper.getParentHeight();
|
|
10173
10191
|
} else {
|
|
10174
10192
|
parentWrapperHeight = parentElem.clientHeight;
|
|
10175
10193
|
}
|
|
@@ -10186,7 +10204,9 @@ const Methods = {
|
|
|
10186
10204
|
getExcludeHeight() {
|
|
10187
10205
|
const $xeTable = this;
|
|
10188
10206
|
const $xeGrid = $xeTable.$xeGrid;
|
|
10189
|
-
|
|
10207
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
10208
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
10209
|
+
return $xeGGWrapper ? $xeGGWrapper.getExcludeHeight() : 0;
|
|
10190
10210
|
},
|
|
10191
10211
|
/**
|
|
10192
10212
|
* 重置表格的一切数据状态
|
|
@@ -12698,6 +12718,7 @@ const Methods = {
|
|
|
12698
12718
|
preventEvent(evnt, type, args, next, end) {
|
|
12699
12719
|
const $xeTable = this;
|
|
12700
12720
|
const $xeGrid = $xeTable.$xeGrid;
|
|
12721
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
12701
12722
|
let evntList = methods_interceptor.get(type);
|
|
12702
12723
|
// 兼容老版本
|
|
12703
12724
|
if (!evntList.length && type === 'event.clearEdit') {
|
|
@@ -12712,8 +12733,9 @@ const Methods = {
|
|
|
12712
12733
|
for (let i = 0; i < evntList.length; i++) {
|
|
12713
12734
|
const func = evntList[i];
|
|
12714
12735
|
const fnRest = func(Object.assign({
|
|
12715
|
-
$grid: $xeGrid,
|
|
12716
12736
|
$table: $xeTable,
|
|
12737
|
+
$grid: $xeGrid,
|
|
12738
|
+
$gantt: $xeGantt,
|
|
12717
12739
|
$event: evnt
|
|
12718
12740
|
}, args));
|
|
12719
12741
|
if (fnRest === false) {
|
|
@@ -12741,6 +12763,8 @@ const Methods = {
|
|
|
12741
12763
|
handleGlobalMousedownEvent(evnt) {
|
|
12742
12764
|
const $xeTable = this;
|
|
12743
12765
|
const $xeGrid = $xeTable.$xeGrid;
|
|
12766
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
12767
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
12744
12768
|
const {
|
|
12745
12769
|
$el,
|
|
12746
12770
|
$refs,
|
|
@@ -12841,7 +12865,7 @@ const Methods = {
|
|
|
12841
12865
|
}
|
|
12842
12866
|
}
|
|
12843
12867
|
} else if (mouseConfig) {
|
|
12844
|
-
if (!getEventTargetNode(evnt, $el).flag && !($
|
|
12868
|
+
if (!getEventTargetNode(evnt, $el).flag && !($xeGGWrapper && getEventTargetNode(evnt, $xeGGWrapper.$el).flag) && !(tableMenu && getEventTargetNode(evnt, tableMenu.$el).flag) && !($toolbar && getEventTargetNode(evnt, $toolbar.$el).flag)) {
|
|
12845
12869
|
if (this.clearSelected) {
|
|
12846
12870
|
this.clearSelected();
|
|
12847
12871
|
}
|
|
@@ -12865,7 +12889,7 @@ const Methods = {
|
|
|
12865
12889
|
if (ctxMenuStore.visible && tableMenu && !getEventTargetNode(evnt, tableMenu.$el).flag) {
|
|
12866
12890
|
this.closeMenu();
|
|
12867
12891
|
}
|
|
12868
|
-
const isActivated = getEventTargetNode(evnt, ($
|
|
12892
|
+
const isActivated = getEventTargetNode(evnt, ($xeGGWrapper || $xeTable).$el).flag;
|
|
12869
12893
|
// 如果存在校验,点击了表格之外则清除
|
|
12870
12894
|
if (!isActivated && editRules && validOpts.autoClear) {
|
|
12871
12895
|
this.validErrorMaps = {};
|
|
@@ -12943,6 +12967,7 @@ const Methods = {
|
|
|
12943
12967
|
const internalData = $xeTable;
|
|
12944
12968
|
const reactData = $xeTable;
|
|
12945
12969
|
const $xeGrid = $xeTable.$xeGrid;
|
|
12970
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
12946
12971
|
// 该行为只对当前激活的表格有效
|
|
12947
12972
|
if (internalData.isActivated) {
|
|
12948
12973
|
$xeTable.preventEvent(evnt, 'event.keydown', null, () => {
|
|
@@ -13169,7 +13194,8 @@ const Methods = {
|
|
|
13169
13194
|
column: selected.column,
|
|
13170
13195
|
columnIndex: $xeTable.getColumnIndex(selected.column),
|
|
13171
13196
|
$table: $xeTable,
|
|
13172
|
-
$grid: $xeGrid
|
|
13197
|
+
$grid: $xeGrid,
|
|
13198
|
+
$gantt: $xeGantt
|
|
13173
13199
|
};
|
|
13174
13200
|
// 是否被禁用
|
|
13175
13201
|
if (!beforeEditMethod || beforeEditMethod(params)) {
|
|
@@ -13197,7 +13223,8 @@ const Methods = {
|
|
|
13197
13223
|
column: selected.column,
|
|
13198
13224
|
columnIndex: $xeTable.getColumnIndex(selected.column),
|
|
13199
13225
|
$table: $xeTable,
|
|
13200
|
-
$grid: $xeGrid
|
|
13226
|
+
$grid: $xeGrid,
|
|
13227
|
+
$gantt: $xeGantt
|
|
13201
13228
|
};
|
|
13202
13229
|
// 是否被禁用
|
|
13203
13230
|
if (!beforeEditMethod || beforeEditMethod(params)) {
|
|
@@ -13228,7 +13255,8 @@ const Methods = {
|
|
|
13228
13255
|
rowIndex: $xeTable.getRowIndex(parentRow),
|
|
13229
13256
|
$rowIndex: $xeTable.getVMRowIndex(parentRow),
|
|
13230
13257
|
$table: $xeTable,
|
|
13231
|
-
$grid: $xeGrid
|
|
13258
|
+
$grid: $xeGrid,
|
|
13259
|
+
$gantt: $xeGantt
|
|
13232
13260
|
};
|
|
13233
13261
|
$xeTable.setTreeExpand(parentRow, false).then(() => $xeTable.scrollToRow(parentRow)).then(() => $xeTable.triggerCurrentRowEvent(evnt, params));
|
|
13234
13262
|
}
|
|
@@ -13249,7 +13277,8 @@ const Methods = {
|
|
|
13249
13277
|
column: selected.column,
|
|
13250
13278
|
columnIndex: $xeTable.getColumnIndex(selected.column),
|
|
13251
13279
|
$table: $xeTable,
|
|
13252
|
-
$grid: $xeGrid
|
|
13280
|
+
$grid: $xeGrid,
|
|
13281
|
+
$gantt: $xeGantt
|
|
13253
13282
|
};
|
|
13254
13283
|
if (!beforeEditMethod || beforeEditMethod(params)) {
|
|
13255
13284
|
if (editMethod) {
|
|
@@ -17837,7 +17866,6 @@ const Methods = {
|
|
|
17837
17866
|
elemStore,
|
|
17838
17867
|
fullColumnIdData
|
|
17839
17868
|
} = internalData;
|
|
17840
|
-
const $xeGanttView = internalData.xeGanttView;
|
|
17841
17869
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
17842
17870
|
const tableBody = $xeTable.$refs.refTableBody;
|
|
17843
17871
|
const tableBodyElem = tableBody ? tableBody.$el : null;
|
|
@@ -17902,9 +17930,6 @@ const Methods = {
|
|
|
17902
17930
|
if (isScrollXBig && mouseOpts.area) {
|
|
17903
17931
|
errLog('vxe.error.notProp', ['mouse-config.area']);
|
|
17904
17932
|
}
|
|
17905
|
-
if ($xeGanttView) {
|
|
17906
|
-
$xeGanttView.updateScrollXSpace();
|
|
17907
|
-
}
|
|
17908
17933
|
return $xeTable.$nextTick(() => {
|
|
17909
17934
|
updateStyle($xeTable);
|
|
17910
17935
|
});
|
|
@@ -18225,6 +18250,7 @@ const Methods = {
|
|
|
18225
18250
|
const reactData = $xeTable;
|
|
18226
18251
|
const internalData = $xeTable;
|
|
18227
18252
|
const $xeGrid = $xeTable.$xeGrid;
|
|
18253
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
18228
18254
|
const {
|
|
18229
18255
|
showFooter,
|
|
18230
18256
|
footerData,
|
|
@@ -18242,7 +18268,8 @@ const Methods = {
|
|
|
18242
18268
|
columns: visibleColumn,
|
|
18243
18269
|
data: afterFullData,
|
|
18244
18270
|
$table: $xeTable,
|
|
18245
|
-
$grid: $xeGrid
|
|
18271
|
+
$grid: $xeGrid,
|
|
18272
|
+
$gantt: $xeGantt
|
|
18246
18273
|
}) : [];
|
|
18247
18274
|
}
|
|
18248
18275
|
reactData.footerTableData = footData;
|
|
@@ -18410,20 +18437,24 @@ const Methods = {
|
|
|
18410
18437
|
dispatchEvent(type, params, evnt) {
|
|
18411
18438
|
const $xeTable = this;
|
|
18412
18439
|
const $xeGrid = $xeTable.$xeGrid;
|
|
18440
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
18413
18441
|
$xeTable.$emit(type, createEvent(evnt, {
|
|
18414
18442
|
$table: $xeTable,
|
|
18415
|
-
$grid: $xeGrid
|
|
18443
|
+
$grid: $xeGrid,
|
|
18444
|
+
$gantt: $xeGantt
|
|
18416
18445
|
}, params));
|
|
18417
18446
|
},
|
|
18418
18447
|
// 已废弃,使用 dispatchEvent
|
|
18419
18448
|
emitEvent(type, params, evnt) {
|
|
18420
18449
|
const $xeTable = this;
|
|
18421
18450
|
const $xeGrid = $xeTable.$xeGrid;
|
|
18422
|
-
|
|
18451
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
18452
|
+
$xeTable.$emit(type, createEvent(evnt, {
|
|
18423
18453
|
$table: $xeTable,
|
|
18424
18454
|
$grid: $xeGrid,
|
|
18455
|
+
$gantt: $xeGantt,
|
|
18425
18456
|
$event: evnt
|
|
18426
|
-
}
|
|
18457
|
+
}));
|
|
18427
18458
|
},
|
|
18428
18459
|
focus() {
|
|
18429
18460
|
this.isActivated = true;
|
|
@@ -18598,6 +18629,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
18598
18629
|
const tableReactData = $xeTable;
|
|
18599
18630
|
const tableInternalData = $xeTable;
|
|
18600
18631
|
const $xeGrid = $xeTable.$xeGrid;
|
|
18632
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
18601
18633
|
const {
|
|
18602
18634
|
columnKey,
|
|
18603
18635
|
resizable: allResizable,
|
|
@@ -18722,6 +18754,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
18722
18754
|
const cellParams = {
|
|
18723
18755
|
$table: $xeTable,
|
|
18724
18756
|
$grid: $xeGrid,
|
|
18757
|
+
$gantt: $xeGantt,
|
|
18725
18758
|
isEdit: false,
|
|
18726
18759
|
seq,
|
|
18727
18760
|
rowid,
|
|
@@ -19008,6 +19041,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
19008
19041
|
const tableReactData = $xeTable;
|
|
19009
19042
|
const tableInternalData = $xeTable;
|
|
19010
19043
|
const $xeGrid = $xeTable.$xeGrid;
|
|
19044
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
19011
19045
|
const {
|
|
19012
19046
|
stripe,
|
|
19013
19047
|
rowKey,
|
|
@@ -19195,6 +19229,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
19195
19229
|
const expandParams = {
|
|
19196
19230
|
$grid: $xeGrid,
|
|
19197
19231
|
$table: $xeTable,
|
|
19232
|
+
$gantt: $xeGantt,
|
|
19198
19233
|
seq,
|
|
19199
19234
|
column: expandColumn,
|
|
19200
19235
|
columnIndex,
|
|
@@ -19301,6 +19336,7 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
19301
19336
|
const tableReactData = $xeTable;
|
|
19302
19337
|
const tableInternalData = $xeTable;
|
|
19303
19338
|
const $xeGrid = $xeTable.$xeGrid;
|
|
19339
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
19304
19340
|
const slots = $xeTable.$scopedSlots;
|
|
19305
19341
|
const {
|
|
19306
19342
|
xID
|
|
@@ -19404,7 +19440,8 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
19404
19440
|
const emptySlot = slots ? slots.empty : null;
|
|
19405
19441
|
const emptyParams = {
|
|
19406
19442
|
$table: $xeTable,
|
|
19407
|
-
$grid: $xeGrid
|
|
19443
|
+
$grid: $xeGrid,
|
|
19444
|
+
$gantt: $xeGantt
|
|
19408
19445
|
};
|
|
19409
19446
|
if (emptySlot) {
|
|
19410
19447
|
emptyContent = emptySlot.call($xeTable, emptyParams);
|
|
@@ -19521,6 +19558,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
19521
19558
|
const props = _vm;
|
|
19522
19559
|
const $xeTable = _vm.$parent;
|
|
19523
19560
|
const $xeGrid = $xeTable.$xeGrid;
|
|
19561
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
19524
19562
|
const tableProps = $xeTable;
|
|
19525
19563
|
const tableReactData = $xeTable;
|
|
19526
19564
|
const tableInternalData = $xeTable;
|
|
@@ -19597,6 +19635,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
19597
19635
|
const cellParams = {
|
|
19598
19636
|
$table: $xeTable,
|
|
19599
19637
|
$grid: $xeGrid,
|
|
19638
|
+
$gantt: $xeGantt,
|
|
19600
19639
|
$rowIndex,
|
|
19601
19640
|
column,
|
|
19602
19641
|
columnIndex,
|
|
@@ -19968,6 +20007,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
|
|
|
19968
20007
|
const tableReactData = $xeTable;
|
|
19969
20008
|
const tableInternalData = $xeTable;
|
|
19970
20009
|
const $xeGrid = $xeTable.$xeGrid;
|
|
20010
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
19971
20011
|
const {
|
|
19972
20012
|
fixedType
|
|
19973
20013
|
} = props;
|
|
@@ -20040,6 +20080,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
|
|
|
20040
20080
|
const cellParams = {
|
|
20041
20081
|
$table: $xeTable,
|
|
20042
20082
|
$grid: $xeGrid,
|
|
20083
|
+
$gantt: $xeGantt,
|
|
20043
20084
|
row,
|
|
20044
20085
|
rowIndex: _rowIndex,
|
|
20045
20086
|
_rowIndex,
|
|
@@ -20489,6 +20530,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
20489
20530
|
const tableProps = $xeTable;
|
|
20490
20531
|
const tableReactData = $xeTable;
|
|
20491
20532
|
const $xeGrid = $xeTable.$xeGrid;
|
|
20533
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
20492
20534
|
const {
|
|
20493
20535
|
customStore
|
|
20494
20536
|
} = props;
|
|
@@ -20540,6 +20582,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
20540
20582
|
const params = {
|
|
20541
20583
|
$table: $xeTable,
|
|
20542
20584
|
$grid: $xeGrid,
|
|
20585
|
+
$gantt: $xeGantt,
|
|
20543
20586
|
columns: customColumnList,
|
|
20544
20587
|
isAllChecked,
|
|
20545
20588
|
isAllIndeterminate,
|
|
@@ -20763,6 +20806,7 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20763
20806
|
const tableProps = $xeTable;
|
|
20764
20807
|
const tableReactData = $xeTable;
|
|
20765
20808
|
const $xeGrid = $xeTable.$xeGrid;
|
|
20809
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
20766
20810
|
const {
|
|
20767
20811
|
customStore
|
|
20768
20812
|
} = props;
|
|
@@ -20819,6 +20863,7 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20819
20863
|
const params = {
|
|
20820
20864
|
$table: $xeTable,
|
|
20821
20865
|
$grid: $xeGrid,
|
|
20866
|
+
$gantt: $xeGantt,
|
|
20822
20867
|
columns: customColumnList,
|
|
20823
20868
|
isAllChecked,
|
|
20824
20869
|
isAllIndeterminate,
|
|
@@ -22047,6 +22092,7 @@ const {
|
|
|
22047
22092
|
render(h) {
|
|
22048
22093
|
const $xeTable = this.$parent;
|
|
22049
22094
|
const $xeGrid = $xeTable.$xeGrid;
|
|
22095
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
22050
22096
|
const {
|
|
22051
22097
|
hasFile,
|
|
22052
22098
|
loading,
|
|
@@ -22089,6 +22135,7 @@ const {
|
|
|
22089
22135
|
const params = {
|
|
22090
22136
|
$table: $xeTable,
|
|
22091
22137
|
$grid: $xeGrid,
|
|
22138
|
+
$gantt: $xeGantt,
|
|
22092
22139
|
options: defaultOptions,
|
|
22093
22140
|
params: defaultOptions.params
|
|
22094
22141
|
};
|
|
@@ -22142,6 +22189,7 @@ const {
|
|
|
22142
22189
|
const params = {
|
|
22143
22190
|
$table: $xeTable,
|
|
22144
22191
|
$grid: $xeGrid,
|
|
22192
|
+
$gantt: $xeGantt,
|
|
22145
22193
|
options: defaultOptions,
|
|
22146
22194
|
params: defaultOptions.params
|
|
22147
22195
|
};
|
|
@@ -22302,6 +22350,7 @@ const {
|
|
|
22302
22350
|
render(h) {
|
|
22303
22351
|
const $xeTable = this.$xeTable;
|
|
22304
22352
|
const $xeGrid = $xeTable.$xeGrid;
|
|
22353
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
22305
22354
|
const {
|
|
22306
22355
|
_e,
|
|
22307
22356
|
checkedAll,
|
|
@@ -22396,6 +22445,7 @@ const {
|
|
|
22396
22445
|
const params = {
|
|
22397
22446
|
$table: $xeTable,
|
|
22398
22447
|
$grid: $xeGrid,
|
|
22448
|
+
$gantt: $xeGantt,
|
|
22399
22449
|
options: defaultOptions,
|
|
22400
22450
|
columns,
|
|
22401
22451
|
params: defaultOptions.params
|
|
@@ -22593,6 +22643,7 @@ const {
|
|
|
22593
22643
|
const params = {
|
|
22594
22644
|
$table: $xeTable,
|
|
22595
22645
|
$grid: $xeGrid,
|
|
22646
|
+
$gantt: $xeGantt,
|
|
22596
22647
|
options: defaultOptions,
|
|
22597
22648
|
columns,
|
|
22598
22649
|
params: defaultOptions.params
|
|
@@ -23313,6 +23364,7 @@ const {
|
|
|
23313
23364
|
handleGlobalContextmenuEvent(evnt) {
|
|
23314
23365
|
const $xeTable = this;
|
|
23315
23366
|
const $xeGrid = $xeTable.$xeGrid;
|
|
23367
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
23316
23368
|
const internalData = $xeTable;
|
|
23317
23369
|
const {
|
|
23318
23370
|
$refs,
|
|
@@ -23339,8 +23391,9 @@ const {
|
|
|
23339
23391
|
const type = 'body';
|
|
23340
23392
|
const params = {
|
|
23341
23393
|
type,
|
|
23394
|
+
$table: $xeTable,
|
|
23342
23395
|
$grid: $xeGrid,
|
|
23343
|
-
$
|
|
23396
|
+
$gantt: $xeGantt,
|
|
23344
23397
|
keyboard: true,
|
|
23345
23398
|
columns: this.visibleColumn.slice(0),
|
|
23346
23399
|
$event: evnt
|
|
@@ -23373,8 +23426,9 @@ const {
|
|
|
23373
23426
|
});
|
|
23374
23427
|
const params = {
|
|
23375
23428
|
type: layout,
|
|
23429
|
+
$table: $xeTable,
|
|
23376
23430
|
$grid: $xeGrid,
|
|
23377
|
-
$
|
|
23431
|
+
$gantt: $xeGantt,
|
|
23378
23432
|
columns: this.visibleColumn.slice(0),
|
|
23379
23433
|
$event: evnt
|
|
23380
23434
|
};
|
|
@@ -23565,13 +23619,15 @@ const {
|
|
|
23565
23619
|
ctxMenuLinkEvent(evnt, menu) {
|
|
23566
23620
|
const $xeTable = this;
|
|
23567
23621
|
const $xeGrid = $xeTable.$xeGrid;
|
|
23622
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
23568
23623
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
23569
23624
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
23570
23625
|
const gMenuOpts = mixin_menus.get(menu.code);
|
|
23571
23626
|
const params = Object.assign({
|
|
23572
23627
|
menu,
|
|
23628
|
+
$table: $xeTable,
|
|
23573
23629
|
$grid: $xeGrid,
|
|
23574
|
-
$
|
|
23630
|
+
$gantt: $xeGantt,
|
|
23575
23631
|
$event: evnt
|
|
23576
23632
|
}, this.ctxMenuStore.args);
|
|
23577
23633
|
if (gMenuOpts && gMenuOpts.menuMethod) {
|
|
@@ -25142,6 +25198,8 @@ function getBodyLabelData($xeTable, opts, columns, datas) {
|
|
|
25142
25198
|
});
|
|
25143
25199
|
}
|
|
25144
25200
|
function getExportData($xeTable, opts) {
|
|
25201
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
25202
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
25145
25203
|
const {
|
|
25146
25204
|
columns,
|
|
25147
25205
|
dataFilterMethod
|
|
@@ -25150,6 +25208,8 @@ function getExportData($xeTable, opts) {
|
|
|
25150
25208
|
if (dataFilterMethod) {
|
|
25151
25209
|
datas = datas.filter((row, index) => dataFilterMethod({
|
|
25152
25210
|
$table: $xeTable,
|
|
25211
|
+
$grid: $xeGrid,
|
|
25212
|
+
$gantt: $xeGantt,
|
|
25153
25213
|
row,
|
|
25154
25214
|
$rowIndex: index
|
|
25155
25215
|
}));
|
|
@@ -25200,11 +25260,15 @@ function getFooterCellValue($xeTable, opts, row, column) {
|
|
|
25200
25260
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
25201
25261
|
}
|
|
25202
25262
|
function getFooterData($xeTable, opts, footerTableData) {
|
|
25263
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
25264
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
25203
25265
|
const {
|
|
25204
25266
|
footerFilterMethod
|
|
25205
25267
|
} = opts;
|
|
25206
25268
|
return footerFilterMethod ? footerTableData.filter((items, index) => footerFilterMethod({
|
|
25207
25269
|
$table: $xeTable,
|
|
25270
|
+
$grid: $xeGrid,
|
|
25271
|
+
$gantt: $xeGantt,
|
|
25208
25272
|
items,
|
|
25209
25273
|
$rowIndex: index
|
|
25210
25274
|
})) : footerTableData;
|
|
@@ -25553,6 +25617,7 @@ function clearColumnConvert(columns) {
|
|
|
25553
25617
|
}
|
|
25554
25618
|
function handleExport($xeTable, opts) {
|
|
25555
25619
|
const $xeGrid = $xeTable.$xeGrid;
|
|
25620
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
25556
25621
|
const {
|
|
25557
25622
|
remote,
|
|
25558
25623
|
columns,
|
|
@@ -25565,7 +25630,8 @@ function handleExport($xeTable, opts) {
|
|
|
25565
25630
|
const params = {
|
|
25566
25631
|
options: opts,
|
|
25567
25632
|
$table: $xeTable,
|
|
25568
|
-
$grid: $xeGrid
|
|
25633
|
+
$grid: $xeGrid,
|
|
25634
|
+
$gantt: $xeGantt
|
|
25569
25635
|
};
|
|
25570
25636
|
resolve(exportMethod ? exportMethod(params) : params);
|
|
25571
25637
|
} else {
|
|
@@ -25587,7 +25653,8 @@ function handleExport($xeTable, opts) {
|
|
|
25587
25653
|
status: true,
|
|
25588
25654
|
options: opts,
|
|
25589
25655
|
$table: $xeTable,
|
|
25590
|
-
$grid: $xeGrid
|
|
25656
|
+
$grid: $xeGrid,
|
|
25657
|
+
$gantt: $xeGantt
|
|
25591
25658
|
});
|
|
25592
25659
|
}
|
|
25593
25660
|
}
|
|
@@ -25602,7 +25669,8 @@ function handleExport($xeTable, opts) {
|
|
|
25602
25669
|
status: false,
|
|
25603
25670
|
options: opts,
|
|
25604
25671
|
$table: $xeTable,
|
|
25605
|
-
$grid: $xeGrid
|
|
25672
|
+
$grid: $xeGrid,
|
|
25673
|
+
$gantt: $xeGantt
|
|
25606
25674
|
});
|
|
25607
25675
|
}
|
|
25608
25676
|
}
|
|
@@ -26009,6 +26077,8 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
26009
26077
|
const reactData = $xeTable;
|
|
26010
26078
|
const internalData = $xeTable;
|
|
26011
26079
|
const $xeGrid = $xeTable.$xeGrid;
|
|
26080
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
26081
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
26012
26082
|
const {
|
|
26013
26083
|
treeConfig,
|
|
26014
26084
|
showHeader,
|
|
@@ -26030,7 +26100,7 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
26030
26100
|
const hasTree = treeConfig;
|
|
26031
26101
|
const customOpts = $xeTable.computeCustomOpts;
|
|
26032
26102
|
const selectRecords = $xeTable.getCheckboxRecords();
|
|
26033
|
-
const proxyOpts = $
|
|
26103
|
+
const proxyOpts = $xeGGWrapper ? $xeGGWrapper.computeProxyOpts : {};
|
|
26034
26104
|
const hasFooter = !!footerTableData.length;
|
|
26035
26105
|
const hasMerge = !!(mergeBodyList.length || mergeFooterList.length);
|
|
26036
26106
|
const defOpts = Object.assign({
|
|
@@ -26117,7 +26187,8 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
26117
26187
|
exportParams.filename = filename({
|
|
26118
26188
|
options: defOpts,
|
|
26119
26189
|
$table: $xeTable,
|
|
26120
|
-
$grid: $xeGrid
|
|
26190
|
+
$grid: $xeGrid,
|
|
26191
|
+
$gantt: $xeGantt
|
|
26121
26192
|
});
|
|
26122
26193
|
} else {
|
|
26123
26194
|
exportParams.filename = `${filename}`;
|
|
@@ -26128,7 +26199,8 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
26128
26199
|
exportParams.sheetName = sheetName({
|
|
26129
26200
|
options: defOpts,
|
|
26130
26201
|
$table: $xeTable,
|
|
26131
|
-
$grid: $xeGrid
|
|
26202
|
+
$grid: $xeGrid,
|
|
26203
|
+
$gantt: $xeGantt
|
|
26132
26204
|
});
|
|
26133
26205
|
} else {
|
|
26134
26206
|
exportParams.sheetName = `${sheetName}`;
|
|
@@ -26209,6 +26281,7 @@ const convertToRows = originColumns => {
|
|
|
26209
26281
|
const internalData = $xeTable;
|
|
26210
26282
|
const $xeGrid = $xeTable.$xeGrid;
|
|
26211
26283
|
const $xeGantt = $xeTable.$xeGantt;
|
|
26284
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
26212
26285
|
const {
|
|
26213
26286
|
treeConfig,
|
|
26214
26287
|
showHeader,
|
|
@@ -26227,7 +26300,7 @@ const convertToRows = originColumns => {
|
|
|
26227
26300
|
} = internalData;
|
|
26228
26301
|
const exportOpts = $xeTable.computeExportOpts;
|
|
26229
26302
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
26230
|
-
const proxyOpts = $
|
|
26303
|
+
const proxyOpts = $xeGGWrapper ? $xeGGWrapper.computeProxyOpts : {};
|
|
26231
26304
|
const hasMerge = !!(mergeBodyList.length || mergeFooterList.length);
|
|
26232
26305
|
const opts = Object.assign({
|
|
26233
26306
|
message: true,
|
|
@@ -26348,6 +26421,8 @@ const convertToRows = originColumns => {
|
|
|
26348
26421
|
mapChildren: '_children'
|
|
26349
26422
|
}), (column, index) => isColumnInfo(column) && (!columnFilterMethod || columnFilterMethod({
|
|
26350
26423
|
$table: $xeTable,
|
|
26424
|
+
$grid: $xeGrid,
|
|
26425
|
+
$gantt: $xeGantt,
|
|
26351
26426
|
column: column,
|
|
26352
26427
|
$columnIndex: index
|
|
26353
26428
|
})), {
|
|
@@ -26358,6 +26433,8 @@ const convertToRows = originColumns => {
|
|
|
26358
26433
|
} else {
|
|
26359
26434
|
groups = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(isGroup ? collectColumn : tableFullColumn, (column, index) => column.visible && (!columnFilterMethod || columnFilterMethod({
|
|
26360
26435
|
$table: $xeTable,
|
|
26436
|
+
$grid: $xeGrid,
|
|
26437
|
+
$gantt: $xeGantt,
|
|
26361
26438
|
column,
|
|
26362
26439
|
$columnIndex: index
|
|
26363
26440
|
})), {
|
|
@@ -26384,7 +26461,8 @@ const convertToRows = originColumns => {
|
|
|
26384
26461
|
handleOptions.filename = filename({
|
|
26385
26462
|
options: opts,
|
|
26386
26463
|
$table: $xeTable,
|
|
26387
|
-
$grid: $xeGrid
|
|
26464
|
+
$grid: $xeGrid,
|
|
26465
|
+
$gantt: $xeGantt
|
|
26388
26466
|
});
|
|
26389
26467
|
} else {
|
|
26390
26468
|
handleOptions.filename = `${filename}`;
|
|
@@ -26398,7 +26476,8 @@ const convertToRows = originColumns => {
|
|
|
26398
26476
|
handleOptions.sheetName = sheetName({
|
|
26399
26477
|
options: opts,
|
|
26400
26478
|
$table: $xeTable,
|
|
26401
|
-
$grid: $xeGrid
|
|
26479
|
+
$grid: $xeGrid,
|
|
26480
|
+
$gantt: $xeGantt
|
|
26402
26481
|
});
|
|
26403
26482
|
} else {
|
|
26404
26483
|
handleOptions.sheetName = `${sheetName}`;
|
|
@@ -26423,7 +26502,8 @@ const convertToRows = originColumns => {
|
|
|
26423
26502
|
beforeExportMethod({
|
|
26424
26503
|
options: handleOptions,
|
|
26425
26504
|
$table: $xeTable,
|
|
26426
|
-
$grid: $xeGrid
|
|
26505
|
+
$grid: $xeGrid,
|
|
26506
|
+
$gantt: $xeGantt
|
|
26427
26507
|
});
|
|
26428
26508
|
}
|
|
26429
26509
|
}
|
|
@@ -26438,12 +26518,12 @@ const convertToRows = originColumns => {
|
|
|
26438
26518
|
handleOptions.data = selectRecords;
|
|
26439
26519
|
}
|
|
26440
26520
|
} else if (mode === 'all') {
|
|
26441
|
-
if (!$
|
|
26521
|
+
if (!$xeGGWrapper) {
|
|
26442
26522
|
errLog('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
26443
26523
|
}
|
|
26444
|
-
if ($
|
|
26445
|
-
const gridReactData = $
|
|
26446
|
-
const proxyOpts = $
|
|
26524
|
+
if ($xeGGWrapper && !handleOptions.remote) {
|
|
26525
|
+
const gridReactData = $xeGGWrapper;
|
|
26526
|
+
const proxyOpts = $xeGGWrapper.computeProxyOpts;
|
|
26447
26527
|
const {
|
|
26448
26528
|
sortData
|
|
26449
26529
|
} = gridReactData;
|
|
@@ -26565,10 +26645,12 @@ const convertToRows = originColumns => {
|
|
|
26565
26645
|
_print(options) {
|
|
26566
26646
|
const $xeTable = this;
|
|
26567
26647
|
const $xeGrid = $xeTable.$xeGrid;
|
|
26648
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
26649
|
+
const printOpts = $xeTable.computePrintOpts;
|
|
26568
26650
|
const opts = Object.assign({
|
|
26569
26651
|
original: false
|
|
26570
26652
|
// beforePrintMethod
|
|
26571
|
-
},
|
|
26653
|
+
}, printOpts, options, {
|
|
26572
26654
|
type: 'html',
|
|
26573
26655
|
download: false,
|
|
26574
26656
|
remote: false,
|
|
@@ -26583,7 +26665,8 @@ const convertToRows = originColumns => {
|
|
|
26583
26665
|
printTitle = sheetName({
|
|
26584
26666
|
options: opts,
|
|
26585
26667
|
$table: $xeTable,
|
|
26586
|
-
$grid: $xeGrid
|
|
26668
|
+
$grid: $xeGrid,
|
|
26669
|
+
$gantt: $xeGantt
|
|
26587
26670
|
});
|
|
26588
26671
|
} else {
|
|
26589
26672
|
printTitle = `${sheetName}`;
|
|
@@ -26608,7 +26691,9 @@ const convertToRows = originColumns => {
|
|
|
26608
26691
|
html,
|
|
26609
26692
|
content: html,
|
|
26610
26693
|
options: opts,
|
|
26611
|
-
$table: $xeTable
|
|
26694
|
+
$table: $xeTable,
|
|
26695
|
+
$grid: $xeGrid,
|
|
26696
|
+
$gantt: $xeGantt
|
|
26612
26697
|
});
|
|
26613
26698
|
} : undefined
|
|
26614
26699
|
}));
|
|
@@ -26627,7 +26712,9 @@ const convertToRows = originColumns => {
|
|
|
26627
26712
|
html,
|
|
26628
26713
|
content: html,
|
|
26629
26714
|
options: opts,
|
|
26630
|
-
$table: $xeTable
|
|
26715
|
+
$table: $xeTable,
|
|
26716
|
+
$grid: $xeGrid,
|
|
26717
|
+
$gantt: $xeGantt
|
|
26631
26718
|
});
|
|
26632
26719
|
} : undefined
|
|
26633
26720
|
});
|
|
@@ -28051,7 +28138,8 @@ function calcMaxHeight($xeTable) {
|
|
|
28051
28138
|
}
|
|
28052
28139
|
function emitCustomEvent($xeTable, type, evnt) {
|
|
28053
28140
|
const $xeGrid = $xeTable.$xeGrid;
|
|
28054
|
-
const
|
|
28141
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
28142
|
+
const comp = $xeGrid || $xeGantt || $xeTable;
|
|
28055
28143
|
comp.dispatchEvent('custom', {
|
|
28056
28144
|
type
|
|
28057
28145
|
}, evnt);
|
|
@@ -28376,7 +28464,8 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
28376
28464
|
emitCustomEvent(type, evnt) {
|
|
28377
28465
|
const $xeTable = this;
|
|
28378
28466
|
const $xeGrid = $xeTable.$xeGrid;
|
|
28379
|
-
const
|
|
28467
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
28468
|
+
const comp = $xeGrid || $xeGantt || $xeTable;
|
|
28380
28469
|
comp.dispatchEvent('custom', {
|
|
28381
28470
|
type
|
|
28382
28471
|
}, evnt);
|
|
@@ -28562,12 +28651,14 @@ function renderFixed(h, $xeTable, fixedType) {
|
|
|
28562
28651
|
function renderEmptyBody(h, $xeTable) {
|
|
28563
28652
|
const slots = $xeTable.$scopedSlots;
|
|
28564
28653
|
const $xeGrid = $xeTable.$xeGrid;
|
|
28654
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
28565
28655
|
const emptyOpts = $xeTable.computeEmptyOpts;
|
|
28566
28656
|
const emptySlot = slots.empty;
|
|
28567
28657
|
let emptyContent = '';
|
|
28568
28658
|
const emptyParams = {
|
|
28569
28659
|
$table: $xeTable,
|
|
28570
|
-
$grid: $xeGrid
|
|
28660
|
+
$grid: $xeGrid,
|
|
28661
|
+
$gantt: $xeGantt
|
|
28571
28662
|
};
|
|
28572
28663
|
if (emptySlot) {
|
|
28573
28664
|
emptyContent = emptySlot.call($xeTable, emptyParams);
|
|
@@ -28664,6 +28755,7 @@ function renderRowExpandedVNs(h, $xeTable) {
|
|
|
28664
28755
|
const reactData = $xeTable;
|
|
28665
28756
|
const internalData = $xeTable;
|
|
28666
28757
|
const $xeGrid = $xeTable.$xeGrid;
|
|
28758
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
28667
28759
|
const {
|
|
28668
28760
|
treeConfig
|
|
28669
28761
|
} = props;
|
|
@@ -28740,8 +28832,9 @@ function renderRowExpandedVNs(h, $xeTable) {
|
|
|
28740
28832
|
_columnIndex = colRest._index;
|
|
28741
28833
|
}
|
|
28742
28834
|
const expandParams = {
|
|
28743
|
-
$grid: $xeGrid,
|
|
28744
28835
|
$table: $xeTable,
|
|
28836
|
+
$grid: $xeGrid,
|
|
28837
|
+
$gantt: $xeGantt,
|
|
28745
28838
|
seq,
|
|
28746
28839
|
column: expandColumn,
|
|
28747
28840
|
columnIndex,
|
|
@@ -28909,6 +29002,9 @@ function renderBody(h, $xeTable) {
|
|
|
28909
29002
|
},
|
|
28910
29003
|
$xeGrid: {
|
|
28911
29004
|
default: null
|
|
29005
|
+
},
|
|
29006
|
+
$xeGantt: {
|
|
29007
|
+
default: null
|
|
28912
29008
|
}
|
|
28913
29009
|
},
|
|
28914
29010
|
data() {
|
|
@@ -29164,6 +29260,7 @@ function renderBody(h, $xeTable) {
|
|
|
29164
29260
|
const $xeTable = this;
|
|
29165
29261
|
const props = $xeTable;
|
|
29166
29262
|
const $xeGrid = $xeTable.$xeGrid;
|
|
29263
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
29167
29264
|
const {
|
|
29168
29265
|
id
|
|
29169
29266
|
} = props;
|
|
@@ -29171,7 +29268,8 @@ function renderBody(h, $xeTable) {
|
|
|
29171
29268
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(id)) {
|
|
29172
29269
|
return `${id({
|
|
29173
29270
|
$table: $xeTable,
|
|
29174
|
-
$grid: $xeGrid
|
|
29271
|
+
$grid: $xeGrid,
|
|
29272
|
+
$gantt: $xeGantt
|
|
29175
29273
|
}) || ''}`;
|
|
29176
29274
|
}
|
|
29177
29275
|
return `${id}`;
|
|
@@ -30315,6 +30413,7 @@ function renderBody(h, $xeTable) {
|
|
|
30315
30413
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
30316
30414
|
const $xeTable = this;
|
|
30317
30415
|
const $xeGrid = $xeTable.$xeGrid;
|
|
30416
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
30318
30417
|
const props = $xeTable;
|
|
30319
30418
|
const slots = $xeTable.$scopedSlots;
|
|
30320
30419
|
const reactData = $xeTable;
|
|
@@ -30486,6 +30585,7 @@ function renderBody(h, $xeTable) {
|
|
|
30486
30585
|
default: () => $xeTable.callSlot(loadingSlot, {
|
|
30487
30586
|
$table: $xeTable,
|
|
30488
30587
|
$grid: $xeGrid,
|
|
30588
|
+
$gantt: $xeGantt,
|
|
30489
30589
|
loading: currLoading
|
|
30490
30590
|
}, h)
|
|
30491
30591
|
} : {}
|
|
@@ -30496,6 +30596,7 @@ function renderBody(h, $xeTable) {
|
|
|
30496
30596
|
}, $xeTable.callSlot(loadingSlot, {
|
|
30497
30597
|
$table: $xeTable,
|
|
30498
30598
|
$grid: $xeGrid,
|
|
30599
|
+
$gantt: $xeGantt,
|
|
30499
30600
|
loading: currLoading
|
|
30500
30601
|
}, h)) : table_renderEmptyElement($xeTable),
|
|
30501
30602
|
/**
|
|
@@ -31576,8 +31677,10 @@ function grid_createInternalData() {
|
|
|
31576
31677
|
},
|
|
31577
31678
|
provide() {
|
|
31578
31679
|
const $xeGrid = this;
|
|
31680
|
+
const $xeGantt = null;
|
|
31579
31681
|
return {
|
|
31580
|
-
$xeGrid
|
|
31682
|
+
$xeGrid,
|
|
31683
|
+
$xeGantt
|
|
31581
31684
|
};
|
|
31582
31685
|
},
|
|
31583
31686
|
data() {
|