vxe-table 3.18.8 → 3.18.10
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/style.css +1 -1
- package/es/table/module/menu/mixin.js +2 -2
- package/es/table/src/body.js +4 -1
- package/es/table/src/header.js +4 -1
- package/es/table/src/methods.js +17 -6
- package/es/table/src/table.js +6 -3
- package/es/ui/index.js +1 -4
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +37 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/menu/mixin.js +2 -2
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/src/body.js +4 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/header.js +4 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +19 -6
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +6 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -4
- 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 +3 -2
- package/packages/table/module/menu/mixin.ts +2 -2
- package/packages/table/src/body.ts +4 -1
- package/packages/table/src/header.ts +4 -1
- package/packages/table/src/methods.ts +18 -7
- package/packages/table/src/table.ts +6 -3
- package/packages/ui/index.ts +0 -3
- /package/es/{iconfont.1757293907433.ttf → iconfont.1757464750041.ttf} +0 -0
- /package/es/{iconfont.1757293907433.woff → iconfont.1757464750041.woff} +0 -0
- /package/es/{iconfont.1757293907433.woff2 → iconfont.1757464750041.woff2} +0 -0
- /package/lib/{iconfont.1757293907433.ttf → iconfont.1757464750041.ttf} +0 -0
- /package/lib/{iconfont.1757293907433.woff → iconfont.1757464750041.woff} +0 -0
- /package/lib/{iconfont.1757293907433.woff2 → iconfont.1757464750041.woff2} +0 -0
package/es/table/src/body.js
CHANGED
package/es/table/src/header.js
CHANGED
package/es/table/src/methods.js
CHANGED
|
@@ -252,6 +252,7 @@ function cacheColumnMap($xeTable) {
|
|
|
252
252
|
const props = $xeTable;
|
|
253
253
|
const reactData = $xeTable;
|
|
254
254
|
const internalData = $xeTable;
|
|
255
|
+
const { treeConfig, showOverflow } = props;
|
|
255
256
|
const { tableFullColumn, collectColumn } = internalData;
|
|
256
257
|
const fullColIdData = internalData.fullColumnIdData = {};
|
|
257
258
|
const fullColFieldData = internalData.fullColumnFieldData = {};
|
|
@@ -259,12 +260,14 @@ function cacheColumnMap($xeTable) {
|
|
|
259
260
|
const expandOpts = $xeTable.computeExpandOpts;
|
|
260
261
|
const columnOpts = $xeTable.computeColumnOpts;
|
|
261
262
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
263
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts;
|
|
262
264
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts;
|
|
263
265
|
const customOpts = $xeTable.computeCustomOpts;
|
|
266
|
+
const treeOpts = $xeTable.computeTreeOpts;
|
|
264
267
|
const { storage } = customOpts;
|
|
265
268
|
const rowOpts = $xeTable.computeRowOpts;
|
|
266
269
|
const isGroup = collectColumn.some(hasChildrenList);
|
|
267
|
-
let isAllOverflow = !!
|
|
270
|
+
let isAllOverflow = !!showOverflow;
|
|
268
271
|
let rowGroupColumn;
|
|
269
272
|
let expandColumn;
|
|
270
273
|
let treeNodeColumn;
|
|
@@ -352,9 +355,15 @@ function cacheColumnMap($xeTable) {
|
|
|
352
355
|
else {
|
|
353
356
|
tableFullColumn.forEach(handleFunc);
|
|
354
357
|
}
|
|
358
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
359
|
+
warnLog('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false']);
|
|
360
|
+
}
|
|
355
361
|
if ((expandColumn && expandOpts.mode !== 'fixed') && mouseOpts.area) {
|
|
356
362
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
357
363
|
}
|
|
364
|
+
if (expandColumn && expandOpts.mode !== 'inside' && (treeConfig && !treeOpts.transform)) {
|
|
365
|
+
errLog('vxe.error.notConflictProp', ['tree-config.transform=false', 'expand-config.mode=fixed']);
|
|
366
|
+
}
|
|
358
367
|
if (htmlColumn) {
|
|
359
368
|
if (!columnOpts.useKey) {
|
|
360
369
|
errLog('vxe.error.notSupportProp', ['column.type=html', 'column-config.useKey=false', 'column-config.useKey=true']);
|
|
@@ -3958,7 +3967,6 @@ const Methods = {
|
|
|
3958
3967
|
const $xeTable = this;
|
|
3959
3968
|
const $xeGrid = $xeTable.$xeGrid;
|
|
3960
3969
|
const $xeGantt = $xeTable.$xeGantt;
|
|
3961
|
-
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
3962
3970
|
const props = $xeTable;
|
|
3963
3971
|
const { height } = props;
|
|
3964
3972
|
const el = $xeTable.$refs.refElem;
|
|
@@ -3967,8 +3975,11 @@ const Methods = {
|
|
|
3967
3975
|
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
3968
3976
|
let parentWrapperHeight = 0;
|
|
3969
3977
|
if (parentElem) {
|
|
3970
|
-
if ($
|
|
3971
|
-
parentWrapperHeight = $
|
|
3978
|
+
if ($xeGantt && hasClass(parentElem, 'vxe-gantt--table-wrapper')) {
|
|
3979
|
+
parentWrapperHeight = $xeGantt.getParentHeight();
|
|
3980
|
+
}
|
|
3981
|
+
else if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
|
|
3982
|
+
parentWrapperHeight = $xeGrid.getParentHeight();
|
|
3972
3983
|
}
|
|
3973
3984
|
else {
|
|
3974
3985
|
parentWrapperHeight = parentElem.clientHeight;
|
|
@@ -6434,7 +6445,7 @@ const Methods = {
|
|
|
6434
6445
|
const { mouseConfig, keyboardConfig, treeConfig, editConfig, highlightCurrentRow, highlightCurrentColumn } = props;
|
|
6435
6446
|
const { ctxMenuStore, editStore, currentRow } = reactData;
|
|
6436
6447
|
const { afterFullData } = internalData;
|
|
6437
|
-
const
|
|
6448
|
+
const isContentMenu = $xeTable.computeIsContentMenu;
|
|
6438
6449
|
const bodyMenu = $xeTable.computeBodyMenu;
|
|
6439
6450
|
const keyboardOpts = $xeTable.computeKeyboardOpts;
|
|
6440
6451
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
@@ -6461,7 +6472,7 @@ const Methods = {
|
|
|
6461
6472
|
const hasShiftKey = evnt.shiftKey;
|
|
6462
6473
|
const hasAltKey = evnt.altKey;
|
|
6463
6474
|
const operArrow = isLeftArrow || isUpArrow || isRightArrow || isDwArrow;
|
|
6464
|
-
const operCtxMenu =
|
|
6475
|
+
const operCtxMenu = isContentMenu && ctxMenuStore.visible && (isEnter || isSpacebar || operArrow);
|
|
6465
6476
|
const isEditStatus = isEnableConf(editConfig) && actived.column && actived.row;
|
|
6466
6477
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
6467
6478
|
const beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
|
package/es/table/src/table.js
CHANGED
|
@@ -1084,9 +1084,12 @@ export default {
|
|
|
1084
1084
|
return footerOpts && footerOpts.options ? footerOpts.options : [];
|
|
1085
1085
|
},
|
|
1086
1086
|
isCtxMenu() {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.computeIsContentMenu;
|
|
1088
1088
|
},
|
|
1089
1089
|
computeIsMenu() {
|
|
1090
|
+
return this.computeIsContentMenu;
|
|
1091
|
+
},
|
|
1092
|
+
computeIsContentMenu() {
|
|
1090
1093
|
const $xeTable = this;
|
|
1091
1094
|
const props = $xeTable;
|
|
1092
1095
|
const menuOpts = $xeTable.computeMenuOpts;
|
|
@@ -1888,7 +1891,7 @@ export default {
|
|
|
1888
1891
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
1889
1892
|
const areaOpts = $xeTable.computeAreaOpts;
|
|
1890
1893
|
const loadingOpts = $xeTable.computeLoadingOpts;
|
|
1891
|
-
const
|
|
1894
|
+
const isContentMenu = $xeTable.computeIsContentMenu;
|
|
1892
1895
|
const currLoading = reactData.isColLoading || reactData.isRowLoading || loading;
|
|
1893
1896
|
const resizableOpts = $xeTable.computeResizableOpts;
|
|
1894
1897
|
const isArea = mouseConfig && mouseOpts.area;
|
|
@@ -2112,7 +2115,7 @@ export default {
|
|
|
2112
2115
|
/**
|
|
2113
2116
|
* 快捷菜单
|
|
2114
2117
|
*/
|
|
2115
|
-
|
|
2118
|
+
isContentMenu
|
|
2116
2119
|
? h(TableMenuPanelComponent, {
|
|
2117
2120
|
key: 'tm',
|
|
2118
2121
|
ref: 'refTableMenu',
|
package/es/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
import { getFuncText } from './src/utils';
|
|
3
|
-
export const version = "3.18.
|
|
3
|
+
export const version = "3.18.10";
|
|
4
4
|
VxeUI.version = version;
|
|
5
5
|
VxeUI.tableVersion = version;
|
|
6
6
|
VxeUI.setConfig({
|
|
@@ -239,9 +239,6 @@ VxeUI.setConfig({
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
|
-
// export: {
|
|
243
|
-
// types: {}
|
|
244
|
-
// },
|
|
245
242
|
grid: {
|
|
246
243
|
// size: null,
|
|
247
244
|
// zoomConfig: {
|
package/es/ui/src/log.js
CHANGED
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.
|
|
2005
|
+
const version = "3.18.10";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2241,9 +2241,6 @@ core_.VxeUI.setConfig({
|
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
2243
|
},
|
|
2244
|
-
// export: {
|
|
2245
|
-
// types: {}
|
|
2246
|
-
// },
|
|
2247
2244
|
grid: {
|
|
2248
2245
|
// size: null,
|
|
2249
2246
|
// zoomConfig: {
|
|
@@ -2678,7 +2675,7 @@ function isNodeElement(elem) {
|
|
|
2678
2675
|
const {
|
|
2679
2676
|
log: log_log
|
|
2680
2677
|
} = core_.VxeUI;
|
|
2681
|
-
const log_version = `table v${"3.18.
|
|
2678
|
+
const log_version = `table v${"3.18.10"}`;
|
|
2682
2679
|
const warnLog = log_log.create('warn', log_version);
|
|
2683
2680
|
const errLog = log_log.create('error', log_version);
|
|
2684
2681
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -6155,6 +6152,10 @@ function cacheColumnMap($xeTable) {
|
|
|
6155
6152
|
const props = $xeTable;
|
|
6156
6153
|
const reactData = $xeTable;
|
|
6157
6154
|
const internalData = $xeTable;
|
|
6155
|
+
const {
|
|
6156
|
+
treeConfig,
|
|
6157
|
+
showOverflow
|
|
6158
|
+
} = props;
|
|
6158
6159
|
const {
|
|
6159
6160
|
tableFullColumn,
|
|
6160
6161
|
collectColumn
|
|
@@ -6165,17 +6166,19 @@ function cacheColumnMap($xeTable) {
|
|
|
6165
6166
|
const expandOpts = $xeTable.computeExpandOpts;
|
|
6166
6167
|
const columnOpts = $xeTable.computeColumnOpts;
|
|
6167
6168
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
6169
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts;
|
|
6168
6170
|
const {
|
|
6169
6171
|
isCrossDrag,
|
|
6170
6172
|
isSelfToChildDrag
|
|
6171
6173
|
} = columnDragOpts;
|
|
6172
6174
|
const customOpts = $xeTable.computeCustomOpts;
|
|
6175
|
+
const treeOpts = $xeTable.computeTreeOpts;
|
|
6173
6176
|
const {
|
|
6174
6177
|
storage
|
|
6175
6178
|
} = customOpts;
|
|
6176
6179
|
const rowOpts = $xeTable.computeRowOpts;
|
|
6177
6180
|
const isGroup = collectColumn.some(hasChildrenList);
|
|
6178
|
-
let isAllOverflow = !!
|
|
6181
|
+
let isAllOverflow = !!showOverflow;
|
|
6179
6182
|
let rowGroupColumn;
|
|
6180
6183
|
let expandColumn;
|
|
6181
6184
|
let treeNodeColumn;
|
|
@@ -6277,9 +6280,15 @@ function cacheColumnMap($xeTable) {
|
|
|
6277
6280
|
} else {
|
|
6278
6281
|
tableFullColumn.forEach(handleFunc);
|
|
6279
6282
|
}
|
|
6283
|
+
if (expandColumn && expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
6284
|
+
warnLog('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false']);
|
|
6285
|
+
}
|
|
6280
6286
|
if (expandColumn && expandOpts.mode !== 'fixed' && mouseOpts.area) {
|
|
6281
6287
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
6282
6288
|
}
|
|
6289
|
+
if (expandColumn && expandOpts.mode !== 'inside' && treeConfig && !treeOpts.transform) {
|
|
6290
|
+
errLog('vxe.error.notConflictProp', ['tree-config.transform=false', 'expand-config.mode=fixed']);
|
|
6291
|
+
}
|
|
6283
6292
|
if (htmlColumn) {
|
|
6284
6293
|
if (!columnOpts.useKey) {
|
|
6285
6294
|
errLog('vxe.error.notSupportProp', ['column.type=html', 'column-config.useKey=false', 'column-config.useKey=true']);
|
|
@@ -10510,7 +10519,6 @@ const Methods = {
|
|
|
10510
10519
|
const $xeTable = this;
|
|
10511
10520
|
const $xeGrid = $xeTable.$xeGrid;
|
|
10512
10521
|
const $xeGantt = $xeTable.$xeGantt;
|
|
10513
|
-
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
10514
10522
|
const props = $xeTable;
|
|
10515
10523
|
const {
|
|
10516
10524
|
height
|
|
@@ -10521,8 +10529,10 @@ const Methods = {
|
|
|
10521
10529
|
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
10522
10530
|
let parentWrapperHeight = 0;
|
|
10523
10531
|
if (parentElem) {
|
|
10524
|
-
if ($
|
|
10525
|
-
parentWrapperHeight = $
|
|
10532
|
+
if ($xeGantt && hasClass(parentElem, 'vxe-gantt--table-wrapper')) {
|
|
10533
|
+
parentWrapperHeight = $xeGantt.getParentHeight();
|
|
10534
|
+
} else if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
|
|
10535
|
+
parentWrapperHeight = $xeGrid.getParentHeight();
|
|
10526
10536
|
} else {
|
|
10527
10537
|
parentWrapperHeight = parentElem.clientHeight;
|
|
10528
10538
|
}
|
|
@@ -13365,7 +13375,7 @@ const Methods = {
|
|
|
13365
13375
|
const {
|
|
13366
13376
|
afterFullData
|
|
13367
13377
|
} = internalData;
|
|
13368
|
-
const
|
|
13378
|
+
const isContentMenu = $xeTable.computeIsContentMenu;
|
|
13369
13379
|
const bodyMenu = $xeTable.computeBodyMenu;
|
|
13370
13380
|
const keyboardOpts = $xeTable.computeKeyboardOpts;
|
|
13371
13381
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
@@ -13397,7 +13407,7 @@ const Methods = {
|
|
|
13397
13407
|
const hasShiftKey = evnt.shiftKey;
|
|
13398
13408
|
const hasAltKey = evnt.altKey;
|
|
13399
13409
|
const operArrow = isLeftArrow || isUpArrow || isRightArrow || isDwArrow;
|
|
13400
|
-
const operCtxMenu =
|
|
13410
|
+
const operCtxMenu = isContentMenu && ctxMenuStore.visible && (isEnter || isSpacebar || operArrow);
|
|
13401
13411
|
const isEditStatus = isEnableConf(editConfig) && actived.column && actived.row;
|
|
13402
13412
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
13403
13413
|
const beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
|
|
@@ -20342,7 +20352,10 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
20342
20352
|
}, renderRows(h, this, fixedType, isOptimizeMode, renderDataList, renderColumnList))]), h('div', {
|
|
20343
20353
|
class: 'vxe-table--checkbox-range'
|
|
20344
20354
|
}), mouseConfig && mouseOpts.area ? h('div', {
|
|
20345
|
-
class: 'vxe-table--cell-area'
|
|
20355
|
+
class: 'vxe-table--cell-area',
|
|
20356
|
+
attrs: {
|
|
20357
|
+
xid: xID
|
|
20358
|
+
}
|
|
20346
20359
|
}, [h('span', {
|
|
20347
20360
|
class: 'vxe-table--cell-main-area'
|
|
20348
20361
|
}, mouseOpts.extension ? [h('span', {
|
|
@@ -20856,7 +20869,10 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
|
|
|
20856
20869
|
h('thead', {
|
|
20857
20870
|
ref: 'refHeaderTHead'
|
|
20858
20871
|
}, renderHeads(h, _vm, isGroup, isOptimizeMode, renderHeaderList))]), mouseConfig && mouseOpts.area ? h('div', {
|
|
20859
|
-
class: 'vxe-table--cell-area'
|
|
20872
|
+
class: 'vxe-table--cell-area',
|
|
20873
|
+
attrs: {
|
|
20874
|
+
xid: xID
|
|
20875
|
+
}
|
|
20860
20876
|
}, [h('span', {
|
|
20861
20877
|
class: 'vxe-table--cell-main-area'
|
|
20862
20878
|
}), h('span', {
|
|
@@ -24423,7 +24439,7 @@ const {
|
|
|
24423
24439
|
const {
|
|
24424
24440
|
ctxMenuStore
|
|
24425
24441
|
} = reactData;
|
|
24426
|
-
const
|
|
24442
|
+
const isContentMenu = $xeTable.computeIsContentMenu;
|
|
24427
24443
|
const menuOpts = $xeTable.computeMenuOpts;
|
|
24428
24444
|
const config = menuOpts[type];
|
|
24429
24445
|
const visibleMethod = menuOpts.visibleMethod;
|
|
@@ -24434,7 +24450,7 @@ const {
|
|
|
24434
24450
|
} = config;
|
|
24435
24451
|
if (disabled) {
|
|
24436
24452
|
evnt.preventDefault();
|
|
24437
|
-
} else if (
|
|
24453
|
+
} else if (isContentMenu && options && options.length) {
|
|
24438
24454
|
params.options = options;
|
|
24439
24455
|
$xeTable.preventEvent(evnt, 'event.showMenu', params, () => {
|
|
24440
24456
|
if (!visibleMethod || visibleMethod(params)) {
|
|
@@ -30661,9 +30677,12 @@ function renderBody(h, $xeTable) {
|
|
|
30661
30677
|
return footerOpts && footerOpts.options ? footerOpts.options : [];
|
|
30662
30678
|
},
|
|
30663
30679
|
isCtxMenu() {
|
|
30664
|
-
return this.
|
|
30680
|
+
return this.computeIsContentMenu;
|
|
30665
30681
|
},
|
|
30666
30682
|
computeIsMenu() {
|
|
30683
|
+
return this.computeIsContentMenu;
|
|
30684
|
+
},
|
|
30685
|
+
computeIsContentMenu() {
|
|
30667
30686
|
const $xeTable = this;
|
|
30668
30687
|
const props = $xeTable;
|
|
30669
30688
|
const menuOpts = $xeTable.computeMenuOpts;
|
|
@@ -31571,7 +31590,7 @@ function renderBody(h, $xeTable) {
|
|
|
31571
31590
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
31572
31591
|
const areaOpts = $xeTable.computeAreaOpts;
|
|
31573
31592
|
const loadingOpts = $xeTable.computeLoadingOpts;
|
|
31574
|
-
const
|
|
31593
|
+
const isContentMenu = $xeTable.computeIsContentMenu;
|
|
31575
31594
|
const currLoading = reactData.isColLoading || reactData.isRowLoading || loading;
|
|
31576
31595
|
const resizableOpts = $xeTable.computeResizableOpts;
|
|
31577
31596
|
const isArea = mouseConfig && mouseOpts.area;
|
|
@@ -31764,7 +31783,7 @@ function renderBody(h, $xeTable) {
|
|
|
31764
31783
|
/**
|
|
31765
31784
|
* 快捷菜单
|
|
31766
31785
|
*/
|
|
31767
|
-
|
|
31786
|
+
isContentMenu ? h(menu_panel, {
|
|
31768
31787
|
key: 'tm',
|
|
31769
31788
|
ref: 'refTableMenu',
|
|
31770
31789
|
props: {
|