vxe-table 4.7.84 → 4.7.86
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 +3 -4
- package/es/grid/src/grid.js +5 -5
- 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 +31 -37
- package/es/toolbar/src/toolbar.js +6 -6
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/grid/src/grid.js +5 -5
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +51 -52
- 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 +31 -37
- package/lib/table/src/table.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +6 -6
- package/lib/toolbar/src/toolbar.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 +5 -5
- 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 +31 -37
- package/packages/toolbar/src/toolbar.ts +6 -6
- package/types/all.d.ts +1 -0
- /package/es/{iconfont.1727430214486.ttf → iconfont.1728357720671.ttf} +0 -0
- /package/es/{iconfont.1727430214486.woff → iconfont.1728357720671.woff} +0 -0
- /package/es/{iconfont.1727430214486.woff2 → iconfont.1728357720671.woff2} +0 -0
- /package/lib/{iconfont.1727430214486.ttf → iconfont.1728357720671.ttf} +0 -0
- /package/lib/{iconfont.1727430214486.woff → iconfont.1728357720671.woff} +0 -0
- /package/lib/{iconfont.1727430214486.woff2 → iconfont.1728357720671.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({}, getConfig().table.validConfig, props.validConfig);
|
|
394
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.validConfig, true), props.validConfig);
|
|
395
395
|
});
|
|
396
396
|
const computeSXOpts = (0, _vue.computed)(() => {
|
|
397
|
-
return Object.assign({}, getConfig().table.scrollX, props.scrollX);
|
|
397
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollX, true), props.scrollX);
|
|
398
398
|
});
|
|
399
399
|
const computeSYOpts = (0, _vue.computed)(() => {
|
|
400
|
-
return Object.assign({}, getConfig().table.scrollY, props.scrollY);
|
|
400
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.scrollY, true), 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({}, getConfig().table.columnConfig, props.columnConfig);
|
|
411
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.columnConfig, true), props.columnConfig);
|
|
412
412
|
});
|
|
413
413
|
const computeRowOpts = (0, _vue.computed)(() => {
|
|
414
|
-
return Object.assign({}, getConfig().table.rowConfig, props.rowConfig);
|
|
414
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.rowConfig, true), props.rowConfig);
|
|
415
415
|
});
|
|
416
416
|
const computeResizeOpts = (0, _vue.computed)(() => {
|
|
417
|
-
return Object.assign({}, getConfig().table.resizeConfig, props.resizeConfig);
|
|
417
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizeConfig, true), props.resizeConfig);
|
|
418
418
|
});
|
|
419
419
|
const computeResizableOpts = (0, _vue.computed)(() => {
|
|
420
|
-
return Object.assign({}, getConfig().table.resizableConfig, props.resizableConfig);
|
|
420
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.resizableConfig, true), props.resizableConfig);
|
|
421
421
|
});
|
|
422
422
|
const computeSeqOpts = (0, _vue.computed)(() => {
|
|
423
423
|
return Object.assign({
|
|
424
424
|
startIndex: 0
|
|
425
|
-
}, getConfig().table.seqConfig, props.seqConfig);
|
|
425
|
+
}, _xeUtils.default.clone(getConfig().table.seqConfig, true), props.seqConfig);
|
|
426
426
|
});
|
|
427
427
|
const computeRadioOpts = (0, _vue.computed)(() => {
|
|
428
|
-
return Object.assign({}, getConfig().table.radioConfig, props.radioConfig);
|
|
428
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.radioConfig, true), props.radioConfig);
|
|
429
429
|
});
|
|
430
430
|
const computeCheckboxOpts = (0, _vue.computed)(() => {
|
|
431
|
-
return Object.assign({}, getConfig().table.checkboxConfig, props.checkboxConfig);
|
|
431
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.checkboxConfig, true), props.checkboxConfig);
|
|
432
432
|
});
|
|
433
433
|
let computeTooltipOpts = (0, _vue.ref)();
|
|
434
434
|
computeTooltipOpts = (0, _vue.computed)(() => {
|
|
435
|
-
return Object.assign({}, getConfig().tooltip, getConfig().table.tooltipConfig, props.tooltipConfig);
|
|
435
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().tooltip, true), _xeUtils.default.clone(getConfig().table.tooltipConfig, true), 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({}, getConfig().table.editConfig, props.editConfig);
|
|
448
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.editConfig, true), props.editConfig);
|
|
449
449
|
});
|
|
450
450
|
const computeSortOpts = (0, _vue.computed)(() => {
|
|
451
451
|
return Object.assign({
|
|
452
452
|
orders: ['asc', 'desc', null]
|
|
453
|
-
}, getConfig().table.sortConfig, props.sortConfig);
|
|
453
|
+
}, _xeUtils.default.clone(getConfig().table.sortConfig, true), props.sortConfig);
|
|
454
454
|
});
|
|
455
455
|
const computeFilterOpts = (0, _vue.computed)(() => {
|
|
456
|
-
return Object.assign({}, getConfig().table.filterConfig, props.filterConfig);
|
|
456
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.filterConfig, true), props.filterConfig);
|
|
457
457
|
});
|
|
458
458
|
const computeMouseOpts = (0, _vue.computed)(() => {
|
|
459
|
-
return Object.assign({}, getConfig().table.mouseConfig, props.mouseConfig);
|
|
459
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.mouseConfig, true), props.mouseConfig);
|
|
460
460
|
});
|
|
461
461
|
const computeAreaOpts = (0, _vue.computed)(() => {
|
|
462
|
-
return Object.assign({}, getConfig().table.areaConfig, props.areaConfig);
|
|
462
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.areaConfig, true), props.areaConfig);
|
|
463
463
|
});
|
|
464
464
|
const computeKeyboardOpts = (0, _vue.computed)(() => {
|
|
465
|
-
return Object.assign({}, getConfig().table.keyboardConfig, props.keyboardConfig);
|
|
465
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.keyboardConfig, true), props.keyboardConfig);
|
|
466
466
|
});
|
|
467
467
|
const computeClipOpts = (0, _vue.computed)(() => {
|
|
468
|
-
return Object.assign({}, getConfig().table.clipConfig, props.clipConfig);
|
|
468
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.clipConfig, true), props.clipConfig);
|
|
469
469
|
});
|
|
470
470
|
const computeFNROpts = (0, _vue.computed)(() => {
|
|
471
|
-
return Object.assign({}, getConfig().table.fnrConfig, props.fnrConfig);
|
|
471
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.fnrConfig, true), props.fnrConfig);
|
|
472
472
|
});
|
|
473
473
|
const computeMenuOpts = (0, _vue.computed)(() => {
|
|
474
|
-
return Object.assign({}, getConfig().table.menuConfig, props.menuConfig);
|
|
474
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.menuConfig, true), 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({}, getConfig().table.exportConfig, props.exportConfig);
|
|
511
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.exportConfig, true), props.exportConfig);
|
|
512
512
|
});
|
|
513
513
|
const computeImportOpts = (0, _vue.computed)(() => {
|
|
514
|
-
return Object.assign({}, getConfig().table.importConfig, props.importConfig);
|
|
514
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.importConfig, true), props.importConfig);
|
|
515
515
|
});
|
|
516
516
|
const computePrintOpts = (0, _vue.computed)(() => {
|
|
517
|
-
return Object.assign({}, getConfig().table.printConfig, props.printConfig);
|
|
517
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.printConfig, true), props.printConfig);
|
|
518
518
|
});
|
|
519
519
|
const computeExpandOpts = (0, _vue.computed)(() => {
|
|
520
|
-
return Object.assign({}, getConfig().table.expandConfig, props.expandConfig);
|
|
520
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.expandConfig, true), props.expandConfig);
|
|
521
521
|
});
|
|
522
522
|
const computeTreeOpts = (0, _vue.computed)(() => {
|
|
523
|
-
return Object.assign({}, getConfig().table.treeConfig, props.treeConfig);
|
|
523
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.treeConfig, true), props.treeConfig);
|
|
524
524
|
});
|
|
525
525
|
const computeEmptyOpts = (0, _vue.computed)(() => {
|
|
526
|
-
return Object.assign({}, getConfig().table.emptyRender, props.emptyRender);
|
|
526
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.emptyRender, true), props.emptyRender);
|
|
527
527
|
});
|
|
528
528
|
const computeLoadingOpts = (0, _vue.computed)(() => {
|
|
529
|
-
return Object.assign({}, getConfig().table.loadingConfig, props.loadingConfig);
|
|
529
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.loadingConfig, true), 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({}, getConfig().table.customConfig, props.customConfig);
|
|
535
|
+
return Object.assign({}, _xeUtils.default.clone(getConfig().table.customConfig, true), 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 = () => {
|
|
@@ -5958,12 +5958,6 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
5958
5958
|
(0, _util.setCellValue)(selected.row, selected.column, null);
|
|
5959
5959
|
$xeTable.handleEdit(selected.args, evnt);
|
|
5960
5960
|
}
|
|
5961
|
-
const afterEditMethod = editOpts.afterEditMethod;
|
|
5962
|
-
if (afterEditMethod) {
|
|
5963
|
-
(0, _vue.nextTick)(() => {
|
|
5964
|
-
afterEditMethod(params);
|
|
5965
|
-
});
|
|
5966
|
-
}
|
|
5967
5961
|
}
|
|
5968
5962
|
}
|
|
5969
5963
|
}
|
|
@@ -8264,7 +8258,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
8264
8258
|
}) : null;
|
|
8265
8259
|
resizeObserver = globalResize.create(handleOptimizeResize ? () => {
|
|
8266
8260
|
if (props.autoResize) {
|
|
8267
|
-
|
|
8261
|
+
handleOptimizeResize();
|
|
8268
8262
|
}
|
|
8269
8263
|
} : () => {
|
|
8270
8264
|
if (props.autoResize) {
|