vxe-table 4.7.85 → 4.7.87
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/README.md +63 -21
- package/es/grid/src/grid.js +4 -4
- package/es/locale/lang/en-US.js +4 -1
- package/es/style.css +1 -1
- package/es/table/module/export/import-panel.js +1 -1
- package/es/table/src/table.js +43 -37
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +4 -4
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +66 -56
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/import-panel.js +1 -1
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/src/table.js +53 -48
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -2
- 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 +2 -2
- package/packages/grid/src/grid.ts +4 -4
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/table/module/export/import-panel.ts +1 -1
- package/packages/table/src/table.ts +43 -37
- package/types/all.d.ts +1 -0
- /package/es/{iconfont.1727599604340.ttf → iconfont.1728483552005.ttf} +0 -0
- /package/es/{iconfont.1727599604340.woff → iconfont.1728483552005.woff} +0 -0
- /package/es/{iconfont.1727599604340.woff2 → iconfont.1728483552005.woff2} +0 -0
- /package/lib/{iconfont.1727599604340.ttf → iconfont.1728483552005.ttf} +0 -0
- /package/lib/{iconfont.1727599604340.woff → iconfont.1728483552005.woff} +0 -0
- /package/lib/{iconfont.1727599604340.woff2 → iconfont.1728483552005.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -391,13 +391,13 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
391
391
|
return '';
|
|
392
392
|
});
|
|
393
393
|
const computeValidOpts = (0, _vue.computed)(() => {
|
|
394
|
-
return Object.assign({},
|
|
394
|
+
return Object.assign({}, getConfig().table.validConfig, props.validConfig);
|
|
395
395
|
});
|
|
396
396
|
const computeSXOpts = (0, _vue.computed)(() => {
|
|
397
|
-
return Object.assign({},
|
|
397
|
+
return Object.assign({}, getConfig().table.scrollX, props.scrollX);
|
|
398
398
|
});
|
|
399
399
|
const computeSYOpts = (0, _vue.computed)(() => {
|
|
400
|
-
return Object.assign({},
|
|
400
|
+
return Object.assign({}, getConfig().table.scrollY, props.scrollY);
|
|
401
401
|
});
|
|
402
402
|
const computeRowHeightMaps = (0, _vue.computed)(() => {
|
|
403
403
|
return {
|
|
@@ -408,31 +408,31 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
408
408
|
};
|
|
409
409
|
});
|
|
410
410
|
const computeColumnOpts = (0, _vue.computed)(() => {
|
|
411
|
-
return Object.assign({},
|
|
411
|
+
return Object.assign({}, getConfig().table.columnConfig, props.columnConfig);
|
|
412
412
|
});
|
|
413
413
|
const computeRowOpts = (0, _vue.computed)(() => {
|
|
414
|
-
return Object.assign({},
|
|
414
|
+
return Object.assign({}, getConfig().table.rowConfig, props.rowConfig);
|
|
415
415
|
});
|
|
416
416
|
const computeResizeOpts = (0, _vue.computed)(() => {
|
|
417
|
-
return Object.assign({},
|
|
417
|
+
return Object.assign({}, getConfig().table.resizeConfig, props.resizeConfig);
|
|
418
418
|
});
|
|
419
419
|
const computeResizableOpts = (0, _vue.computed)(() => {
|
|
420
|
-
return Object.assign({},
|
|
420
|
+
return Object.assign({}, getConfig().table.resizableConfig, props.resizableConfig);
|
|
421
421
|
});
|
|
422
422
|
const computeSeqOpts = (0, _vue.computed)(() => {
|
|
423
423
|
return Object.assign({
|
|
424
424
|
startIndex: 0
|
|
425
|
-
},
|
|
425
|
+
}, getConfig().table.seqConfig, props.seqConfig);
|
|
426
426
|
});
|
|
427
427
|
const computeRadioOpts = (0, _vue.computed)(() => {
|
|
428
|
-
return Object.assign({},
|
|
428
|
+
return Object.assign({}, getConfig().table.radioConfig, props.radioConfig);
|
|
429
429
|
});
|
|
430
430
|
const computeCheckboxOpts = (0, _vue.computed)(() => {
|
|
431
|
-
return Object.assign({},
|
|
431
|
+
return Object.assign({}, getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
432
432
|
});
|
|
433
433
|
let computeTooltipOpts = (0, _vue.ref)();
|
|
434
434
|
computeTooltipOpts = (0, _vue.computed)(() => {
|
|
435
|
-
return Object.assign({},
|
|
435
|
+
return Object.assign({}, getConfig().tooltip, getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
436
436
|
});
|
|
437
437
|
const computeTipConfig = (0, _vue.computed)(() => {
|
|
438
438
|
const tooltipOpts = computeTooltipOpts.value;
|
|
@@ -445,33 +445,33 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
445
445
|
}, tooltipOpts);
|
|
446
446
|
});
|
|
447
447
|
const computeEditOpts = (0, _vue.computed)(() => {
|
|
448
|
-
return Object.assign({},
|
|
448
|
+
return Object.assign({}, getConfig().table.editConfig, props.editConfig);
|
|
449
449
|
});
|
|
450
450
|
const computeSortOpts = (0, _vue.computed)(() => {
|
|
451
451
|
return Object.assign({
|
|
452
452
|
orders: ['asc', 'desc', null]
|
|
453
|
-
},
|
|
453
|
+
}, getConfig().table.sortConfig, props.sortConfig);
|
|
454
454
|
});
|
|
455
455
|
const computeFilterOpts = (0, _vue.computed)(() => {
|
|
456
|
-
return Object.assign({},
|
|
456
|
+
return Object.assign({}, getConfig().table.filterConfig, props.filterConfig);
|
|
457
457
|
});
|
|
458
458
|
const computeMouseOpts = (0, _vue.computed)(() => {
|
|
459
|
-
return Object.assign({},
|
|
459
|
+
return Object.assign({}, getConfig().table.mouseConfig, props.mouseConfig);
|
|
460
460
|
});
|
|
461
461
|
const computeAreaOpts = (0, _vue.computed)(() => {
|
|
462
|
-
return Object.assign({},
|
|
462
|
+
return Object.assign({}, getConfig().table.areaConfig, props.areaConfig);
|
|
463
463
|
});
|
|
464
464
|
const computeKeyboardOpts = (0, _vue.computed)(() => {
|
|
465
|
-
return Object.assign({},
|
|
465
|
+
return Object.assign({}, getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
466
466
|
});
|
|
467
467
|
const computeClipOpts = (0, _vue.computed)(() => {
|
|
468
|
-
return Object.assign({},
|
|
468
|
+
return Object.assign({}, getConfig().table.clipConfig, props.clipConfig);
|
|
469
469
|
});
|
|
470
470
|
const computeFNROpts = (0, _vue.computed)(() => {
|
|
471
|
-
return Object.assign({},
|
|
471
|
+
return Object.assign({}, getConfig().table.fnrConfig, props.fnrConfig);
|
|
472
472
|
});
|
|
473
473
|
const computeMenuOpts = (0, _vue.computed)(() => {
|
|
474
|
-
return Object.assign({},
|
|
474
|
+
return Object.assign({}, getConfig().table.menuConfig, props.menuConfig);
|
|
475
475
|
});
|
|
476
476
|
const computeHeaderMenu = (0, _vue.computed)(() => {
|
|
477
477
|
const menuOpts = computeMenuOpts.value;
|
|
@@ -508,31 +508,31 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
508
508
|
return rest;
|
|
509
509
|
});
|
|
510
510
|
const computeExportOpts = (0, _vue.computed)(() => {
|
|
511
|
-
return Object.assign({},
|
|
511
|
+
return Object.assign({}, getConfig().table.exportConfig, props.exportConfig);
|
|
512
512
|
});
|
|
513
513
|
const computeImportOpts = (0, _vue.computed)(() => {
|
|
514
|
-
return Object.assign({},
|
|
514
|
+
return Object.assign({}, getConfig().table.importConfig, props.importConfig);
|
|
515
515
|
});
|
|
516
516
|
const computePrintOpts = (0, _vue.computed)(() => {
|
|
517
|
-
return Object.assign({},
|
|
517
|
+
return Object.assign({}, getConfig().table.printConfig, props.printConfig);
|
|
518
518
|
});
|
|
519
519
|
const computeExpandOpts = (0, _vue.computed)(() => {
|
|
520
|
-
return Object.assign({},
|
|
520
|
+
return Object.assign({}, getConfig().table.expandConfig, props.expandConfig);
|
|
521
521
|
});
|
|
522
522
|
const computeTreeOpts = (0, _vue.computed)(() => {
|
|
523
|
-
return Object.assign({},
|
|
523
|
+
return Object.assign({}, getConfig().table.treeConfig, props.treeConfig);
|
|
524
524
|
});
|
|
525
525
|
const computeEmptyOpts = (0, _vue.computed)(() => {
|
|
526
|
-
return Object.assign({},
|
|
526
|
+
return Object.assign({}, getConfig().table.emptyRender, props.emptyRender);
|
|
527
527
|
});
|
|
528
528
|
const computeLoadingOpts = (0, _vue.computed)(() => {
|
|
529
|
-
return Object.assign({},
|
|
529
|
+
return Object.assign({}, getConfig().table.loadingConfig, props.loadingConfig);
|
|
530
530
|
});
|
|
531
531
|
const computeCellOffsetWidth = (0, _vue.computed)(() => {
|
|
532
532
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
533
533
|
});
|
|
534
534
|
const computeCustomOpts = (0, _vue.computed)(() => {
|
|
535
|
-
return Object.assign({},
|
|
535
|
+
return Object.assign({}, getConfig().table.customConfig, props.customConfig);
|
|
536
536
|
});
|
|
537
537
|
const computeAutoWidthColumnList = (0, _vue.computed)(() => {
|
|
538
538
|
const {
|
|
@@ -768,12 +768,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
768
768
|
}
|
|
769
769
|
return {
|
|
770
770
|
toVisibleIndex: Math.max(0, toVisibleIndex),
|
|
771
|
-
visibleSize: Math.max(
|
|
771
|
+
visibleSize: Math.max(6, visibleSize)
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
774
|
return {
|
|
775
775
|
toVisibleIndex: 0,
|
|
776
|
-
visibleSize:
|
|
776
|
+
visibleSize: 6
|
|
777
777
|
};
|
|
778
778
|
};
|
|
779
779
|
const computeVirtualY = () => {
|
|
@@ -6249,8 +6249,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6249
6249
|
treeConfig
|
|
6250
6250
|
} = props;
|
|
6251
6251
|
const treeOpts = computeTreeOpts.value;
|
|
6252
|
-
|
|
6253
|
-
fullDataRowIdData,
|
|
6252
|
+
const {
|
|
6254
6253
|
fullAllDataRowIdData,
|
|
6255
6254
|
tableFullData,
|
|
6256
6255
|
tableFullTreeData
|
|
@@ -6259,6 +6258,8 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6259
6258
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
6260
6259
|
const rowkey = (0, _util.getRowkey)($xeTable);
|
|
6261
6260
|
const isLazy = treeConfig && treeOpts.lazy;
|
|
6261
|
+
const fullAllDataRowIdMaps = {};
|
|
6262
|
+
const fullDataRowIdMaps = {};
|
|
6262
6263
|
const handleRow = (row, index, items, path, parent, nodes) => {
|
|
6263
6264
|
let rowid = (0, _util.getRowid)($xeTable, row);
|
|
6264
6265
|
const seq = treeConfig && path ? (0, _util.toTreePathSeq)(path) : index + 1;
|
|
@@ -6270,26 +6271,30 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
6270
6271
|
if (isLazy && row[hasChildField] && _xeUtils.default.isUndefined(row[childrenField])) {
|
|
6271
6272
|
row[childrenField] = null;
|
|
6272
6273
|
}
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6274
|
+
let cacheItem = fullAllDataRowIdData[rowid];
|
|
6275
|
+
if (!cacheItem) {
|
|
6276
|
+
cacheItem = {
|
|
6277
|
+
row,
|
|
6278
|
+
rowid,
|
|
6279
|
+
seq,
|
|
6280
|
+
index: -1,
|
|
6281
|
+
_index: -1,
|
|
6282
|
+
$index: -1,
|
|
6283
|
+
items,
|
|
6284
|
+
parent,
|
|
6285
|
+
level
|
|
6286
|
+
};
|
|
6287
|
+
}
|
|
6284
6288
|
if (isSource) {
|
|
6285
|
-
|
|
6289
|
+
cacheItem.index = treeConfig && parent ? -1 : index;
|
|
6290
|
+
fullDataRowIdMaps[rowid] = cacheItem;
|
|
6286
6291
|
}
|
|
6287
|
-
|
|
6292
|
+
fullAllDataRowIdMaps[rowid] = cacheItem;
|
|
6288
6293
|
};
|
|
6289
6294
|
if (isSource) {
|
|
6290
|
-
|
|
6295
|
+
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
6291
6296
|
}
|
|
6292
|
-
|
|
6297
|
+
internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
|
|
6293
6298
|
if (treeConfig) {
|
|
6294
6299
|
_xeUtils.default.eachTree(tableFullTreeData, handleRow, {
|
|
6295
6300
|
children: childrenField
|
|
@@ -8258,7 +8263,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
8258
8263
|
}) : null;
|
|
8259
8264
|
resizeObserver = globalResize.create(handleOptimizeResize ? () => {
|
|
8260
8265
|
if (props.autoResize) {
|
|
8261
|
-
|
|
8266
|
+
handleOptimizeResize();
|
|
8262
8267
|
}
|
|
8263
8268
|
} : () => {
|
|
8264
8269
|
if (props.autoResize) {
|