vxe-table 3.14.0-beta.21 → 3.14.0-beta.22
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/export/mixin.js +1 -1
- package/es/table/module/keyboard/mixin.js +10 -0
- package/es/table/src/methods.js +5 -5
- package/es/table/src/table.js +4 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +23 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/mixin.js +1 -1
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +10 -0
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/src/methods.js +5 -4
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +4 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -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/table/module/export/mixin.ts +1 -1
- package/packages/table/module/keyboard/mixin.ts +10 -0
- package/packages/table/src/methods.ts +5 -5
- package/packages/table/src/table.ts +4 -1
- package/packages/ui/index.ts +1 -0
- /package/es/{iconfont.1742437924038.ttf → iconfont.1742525024841.ttf} +0 -0
- /package/es/{iconfont.1742437924038.woff → iconfont.1742525024841.woff} +0 -0
- /package/es/{iconfont.1742437924038.woff2 → iconfont.1742525024841.woff2} +0 -0
- /package/lib/{iconfont.1742437924038.ttf → iconfont.1742525024841.ttf} +0 -0
- /package/lib/{iconfont.1742437924038.woff → iconfont.1742525024841.woff} +0 -0
- /package/lib/{iconfont.1742437924038.woff2 → iconfont.1742525024841.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -2485,7 +2485,7 @@ const Methods = {
|
|
|
2485
2485
|
*/
|
|
2486
2486
|
getParentHeight() {
|
|
2487
2487
|
const $xeTable = this;
|
|
2488
|
-
const $xeGrid = $xeTable
|
|
2488
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
2489
2489
|
const props = $xeTable;
|
|
2490
2490
|
const { height } = props;
|
|
2491
2491
|
const el = $xeTable.$refs.refElem;
|
|
@@ -3597,7 +3597,7 @@ const Methods = {
|
|
|
3597
3597
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
3598
3598
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
3599
3599
|
const { transform, rowField, parentField, mapChildrenField } = treeOpts;
|
|
3600
|
-
const { remote: allRemoteFilter, filterMethod: allFilterMethod } = filterOpts;
|
|
3600
|
+
const { isEvery, remote: allRemoteFilter, filterMethod: allFilterMethod } = filterOpts;
|
|
3601
3601
|
const { remote: allRemoteSort, sortMethod: allSortMethod, multiple: sortMultiple, chronological } = sortOpts;
|
|
3602
3602
|
let tableData = [];
|
|
3603
3603
|
let tableTree = [];
|
|
@@ -3656,7 +3656,7 @@ const Methods = {
|
|
|
3656
3656
|
// 筛选虚拟树
|
|
3657
3657
|
tableTree = XEUtils.searchTree(tableFullTreeData, handleFilter, {
|
|
3658
3658
|
original: true,
|
|
3659
|
-
isEvery
|
|
3659
|
+
isEvery,
|
|
3660
3660
|
children: mapChildrenField,
|
|
3661
3661
|
mapChildren: childrenField
|
|
3662
3662
|
});
|
|
@@ -3672,7 +3672,7 @@ const Methods = {
|
|
|
3672
3672
|
// 还原虚拟树
|
|
3673
3673
|
tableTree = XEUtils.searchTree(tableFullTreeData, () => true, {
|
|
3674
3674
|
original: true,
|
|
3675
|
-
isEvery
|
|
3675
|
+
isEvery,
|
|
3676
3676
|
children: mapChildrenField,
|
|
3677
3677
|
mapChildren: childrenField
|
|
3678
3678
|
});
|
|
@@ -3735,7 +3735,7 @@ const Methods = {
|
|
|
3735
3735
|
// 还原虚拟树
|
|
3736
3736
|
tableTree = XEUtils.searchTree(tableFullTreeData, () => true, {
|
|
3737
3737
|
original: true,
|
|
3738
|
-
isEvery
|
|
3738
|
+
isEvery,
|
|
3739
3739
|
children: treeOpts.mapChildrenField,
|
|
3740
3740
|
mapChildren: childrenField
|
|
3741
3741
|
});
|
package/es/table/src/table.js
CHANGED
|
@@ -409,6 +409,9 @@ export default {
|
|
|
409
409
|
},
|
|
410
410
|
$xegrid: {
|
|
411
411
|
default: null
|
|
412
|
+
},
|
|
413
|
+
xeGrid: {
|
|
414
|
+
default: null
|
|
412
415
|
}
|
|
413
416
|
},
|
|
414
417
|
data() {
|
|
@@ -1606,7 +1609,7 @@ export default {
|
|
|
1606
1609
|
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading');
|
|
1607
1610
|
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip');
|
|
1608
1611
|
const $xeTable = this;
|
|
1609
|
-
const $xeGrid = $xeTable
|
|
1612
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
1610
1613
|
const props = $xeTable;
|
|
1611
1614
|
const slots = $xeTable.$scopedSlots;
|
|
1612
1615
|
const reactData = $xeTable;
|
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.14.0-beta.
|
|
3
|
+
export const version = "3.14.0-beta.22";
|
|
4
4
|
VxeUI.version = version;
|
|
5
5
|
VxeUI.tableVersion = version;
|
|
6
6
|
VxeUI.setConfig({
|
|
@@ -124,6 +124,7 @@ VxeUI.setConfig({
|
|
|
124
124
|
// remote: false,
|
|
125
125
|
// filterMethod: null,
|
|
126
126
|
// destroyOnClose: false,
|
|
127
|
+
isEvery: true,
|
|
127
128
|
showIcon: true
|
|
128
129
|
},
|
|
129
130
|
treeConfig: {
|
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.14.0-beta.
|
|
2223
|
+
const version = "3.14.0-beta.22";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2344,6 +2344,7 @@ core_.VxeUI.setConfig({
|
|
|
2344
2344
|
// remote: false,
|
|
2345
2345
|
// filterMethod: null,
|
|
2346
2346
|
// destroyOnClose: false,
|
|
2347
|
+
isEvery: true,
|
|
2347
2348
|
showIcon: true
|
|
2348
2349
|
},
|
|
2349
2350
|
treeConfig: {
|
|
@@ -2843,7 +2844,7 @@ function isNodeElement(elem) {
|
|
|
2843
2844
|
const {
|
|
2844
2845
|
log: log_log
|
|
2845
2846
|
} = core_.VxeUI;
|
|
2846
|
-
const log_version = `table v${"3.14.0-beta.
|
|
2847
|
+
const log_version = `table v${"3.14.0-beta.22"}`;
|
|
2847
2848
|
const warnLog = log_log.create('warn', log_version);
|
|
2848
2849
|
const errLog = log_log.create('error', log_version);
|
|
2849
2850
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -8040,7 +8041,7 @@ const Methods = {
|
|
|
8040
8041
|
*/
|
|
8041
8042
|
getParentHeight() {
|
|
8042
8043
|
const $xeTable = this;
|
|
8043
|
-
const $xeGrid = $xeTable
|
|
8044
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
8044
8045
|
const props = $xeTable;
|
|
8045
8046
|
const {
|
|
8046
8047
|
height
|
|
@@ -9335,6 +9336,7 @@ const Methods = {
|
|
|
9335
9336
|
mapChildrenField
|
|
9336
9337
|
} = treeOpts;
|
|
9337
9338
|
const {
|
|
9339
|
+
isEvery,
|
|
9338
9340
|
remote: allRemoteFilter,
|
|
9339
9341
|
filterMethod: allFilterMethod
|
|
9340
9342
|
} = filterOpts;
|
|
@@ -9447,7 +9449,7 @@ const Methods = {
|
|
|
9447
9449
|
// 筛选虚拟树
|
|
9448
9450
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, handleFilter, {
|
|
9449
9451
|
original: true,
|
|
9450
|
-
isEvery
|
|
9452
|
+
isEvery,
|
|
9451
9453
|
children: mapChildrenField,
|
|
9452
9454
|
mapChildren: childrenField
|
|
9453
9455
|
});
|
|
@@ -9461,7 +9463,7 @@ const Methods = {
|
|
|
9461
9463
|
// 还原虚拟树
|
|
9462
9464
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
|
|
9463
9465
|
original: true,
|
|
9464
|
-
isEvery
|
|
9466
|
+
isEvery,
|
|
9465
9467
|
children: mapChildrenField,
|
|
9466
9468
|
mapChildren: childrenField
|
|
9467
9469
|
});
|
|
@@ -9538,7 +9540,7 @@ const Methods = {
|
|
|
9538
9540
|
// 还原虚拟树
|
|
9539
9541
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
|
|
9540
9542
|
original: true,
|
|
9541
|
-
isEvery
|
|
9543
|
+
isEvery,
|
|
9542
9544
|
children: treeOpts.mapChildrenField,
|
|
9543
9545
|
mapChildren: childrenField
|
|
9544
9546
|
});
|
|
@@ -23579,7 +23581,7 @@ function handleExportAndPrint($xeTable, options, isPrint) {
|
|
|
23579
23581
|
const props = $xeTable;
|
|
23580
23582
|
const reactData = $xeTable;
|
|
23581
23583
|
const internalData = $xeTable;
|
|
23582
|
-
const $xeGrid = $xeTable
|
|
23584
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
23583
23585
|
const {
|
|
23584
23586
|
treeConfig,
|
|
23585
23587
|
showHeader,
|
|
@@ -24588,6 +24590,10 @@ function getCheckboxRangeRows($xeTable, evnt, params, targetTrElem, trRect, offs
|
|
|
24588
24590
|
afterFullData,
|
|
24589
24591
|
visibleColumn
|
|
24590
24592
|
} = internalData;
|
|
24593
|
+
const rowOpts = $xeTable.computeRowOpts;
|
|
24594
|
+
const currentRowOpts = $xeTable.computeCurrentRowOpts;
|
|
24595
|
+
const columnOpts = $xeTable.computeColumnOpts;
|
|
24596
|
+
const currentColumnOpts = $xeTable.computeCurrentColumnOpts;
|
|
24591
24597
|
const params = Object.assign({}, args);
|
|
24592
24598
|
const _rowIndex = $xeTable.getVTRowIndex(params.row);
|
|
24593
24599
|
const _columnIndex = $xeTable.getVTColumnIndex(params.column);
|
|
@@ -24609,6 +24615,12 @@ function getCheckboxRangeRows($xeTable, evnt, params, targetTrElem, trRect, offs
|
|
|
24609
24615
|
params.columnIndex = _columnIndex + 1;
|
|
24610
24616
|
params.column = visibleColumn[params.columnIndex];
|
|
24611
24617
|
}
|
|
24618
|
+
if (rowOpts.isCurrent && currentRowOpts.isFollowSelected) {
|
|
24619
|
+
$xeTable.triggerCurrentRowEvent(evnt, params);
|
|
24620
|
+
}
|
|
24621
|
+
if (columnOpts.isCurrent && currentColumnOpts.isFollowSelected) {
|
|
24622
|
+
$xeTable.triggerCurrentColumnEvent(evnt, params);
|
|
24623
|
+
}
|
|
24612
24624
|
$xeTable.scrollToRow(params.row, params.column).then(() => {
|
|
24613
24625
|
params.cell = $xeTable.getCellElement(params.row, params.column);
|
|
24614
24626
|
$xeTable.handleSelected(params, evnt);
|
|
@@ -26185,6 +26197,9 @@ function renderBody(h, $xeTable) {
|
|
|
26185
26197
|
},
|
|
26186
26198
|
$xegrid: {
|
|
26187
26199
|
default: null
|
|
26200
|
+
},
|
|
26201
|
+
xeGrid: {
|
|
26202
|
+
default: null
|
|
26188
26203
|
}
|
|
26189
26204
|
},
|
|
26190
26205
|
data() {
|
|
@@ -27465,7 +27480,7 @@ function renderBody(h, $xeTable) {
|
|
|
27465
27480
|
const VxeUILoadingComponent = core_.VxeUI.getComponent('VxeLoading');
|
|
27466
27481
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
27467
27482
|
const $xeTable = this;
|
|
27468
|
-
const $xeGrid = $xeTable
|
|
27483
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
27469
27484
|
const props = $xeTable;
|
|
27470
27485
|
const slots = $xeTable.$scopedSlots;
|
|
27471
27486
|
const reactData = $xeTable;
|