vxe-table 4.23.7 → 4.23.9
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/dist/all.esm.js +5859 -4018
- package/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.d.ts +3 -0
- package/es/components.js +4 -8
- package/es/grid/index.js +1 -1
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +398 -121
- package/es/grid/src/props.js +1 -1
- package/es/index.esm.js +6 -0
- package/es/index.js +6 -0
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +50 -43
- package/es/table/module/custom/panel.js +778 -528
- package/es/table/module/edit/hook.js +141 -63
- package/es/table/module/export/export-panel.js +400 -317
- package/es/table/module/export/hook.js +396 -338
- package/es/table/module/export/import-panel.js +153 -124
- package/es/table/module/filter/hook.js +17 -3
- package/es/table/module/filter/panel.js +147 -85
- package/es/table/module/keyboard/hook.js +9 -5
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +198 -127
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/render/index.js +152 -99
- package/es/table/src/body.js +356 -234
- package/es/table/src/cell.js +427 -270
- package/es/table/src/columnInfo.js +2 -1
- package/es/table/src/footer.js +145 -100
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +230 -173
- package/es/table/src/props.js +1 -1
- package/es/table/src/table.js +1504 -1031
- package/es/table/src/util.js +15 -19
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +133 -76
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/es/v-x-e-table/index.d.ts +0 -1
- package/es/v-x-e-table/index.js +0 -1
- package/lib/colgroup/index.js +5 -5
- package/lib/column/index.js +5 -5
- package/lib/components.js +8 -12
- package/lib/grid/index.js +4 -4
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +419 -142
- package/lib/grid/src/props.js +2 -2
- package/lib/index.common.js +6 -0
- package/lib/index.js +6 -0
- package/lib/index.umd.js +5825 -3945
- package/lib/index.umd.min.js +3 -3
- package/lib/table/index.js +5 -5
- package/lib/table/module/custom/hook.js +51 -44
- package/lib/table/module/custom/panel.js +790 -540
- package/lib/table/module/edit/hook.js +142 -64
- package/lib/table/module/export/export-panel.js +406 -323
- package/lib/table/module/export/hook.js +419 -361
- package/lib/table/module/export/import-panel.js +157 -128
- package/lib/table/module/filter/hook.js +18 -4
- package/lib/table/module/filter/panel.js +149 -87
- package/lib/table/module/keyboard/hook.js +10 -6
- package/lib/table/module/menu/hook.js +2 -2
- package/lib/table/module/menu/panel.js +199 -128
- package/lib/table/module/validator/hook.js +2 -2
- package/lib/table/render/index.js +153 -100
- package/lib/table/src/body.js +357 -235
- package/lib/table/src/cell.js +428 -271
- package/lib/table/src/columnInfo.js +3 -2
- package/lib/table/src/footer.js +146 -101
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +231 -174
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/table.js +1487 -1045
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/index.js +4 -4
- package/lib/toolbar/src/toolbar.js +135 -78
- package/lib/ui/index.js +1 -3
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/lib/v-x-e-table/index.js +0 -2
- package/package.json +8 -3
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -43
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -4
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -521
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -4
- package/packages/v-x-e-table/index.ts +3 -4
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
package/lib/table/src/util.js
CHANGED
|
@@ -904,17 +904,20 @@ function createColumn($xeTable, options, renderOptions) {
|
|
|
904
904
|
}
|
|
905
905
|
function watchColumn($xeTable, props, column) {
|
|
906
906
|
Object.keys(props).forEach((name) => {
|
|
907
|
-
(0, import_vue.watch)(
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
907
|
+
(0, import_vue.watch)(
|
|
908
|
+
() => props[name],
|
|
909
|
+
(value) => {
|
|
910
|
+
column.update(name, value);
|
|
911
|
+
if ($xeTable) {
|
|
912
|
+
if (name === "filters") {
|
|
913
|
+
$xeTable.setFilter(column, value);
|
|
914
|
+
$xeTable.handleUpdateDataQueue();
|
|
915
|
+
} else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
|
|
916
|
+
$xeTable.handleRefreshColumnQueue();
|
|
917
|
+
}
|
|
915
918
|
}
|
|
916
919
|
}
|
|
917
|
-
|
|
920
|
+
);
|
|
918
921
|
});
|
|
919
922
|
}
|
|
920
923
|
function assembleColumn($xeTable, elem, column, colgroup) {
|
|
@@ -989,20 +992,13 @@ function clearTableDefaultStatus($xeTable) {
|
|
|
989
992
|
$xeTable.clearPendingRow()
|
|
990
993
|
];
|
|
991
994
|
if ($xeTable.clearFilter) {
|
|
992
|
-
actionList.push(
|
|
993
|
-
$xeTable.clearFilter()
|
|
994
|
-
);
|
|
995
|
+
actionList.push($xeTable.clearFilter());
|
|
995
996
|
}
|
|
996
997
|
if ($xeTable.clearSelected && ((0, import_utils.hasEnableConf)(keyboardConfig, keyboardOpts) || (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts))) {
|
|
997
|
-
actionList.push(
|
|
998
|
-
$xeTable.clearSelected()
|
|
999
|
-
);
|
|
998
|
+
actionList.push($xeTable.clearSelected());
|
|
1000
999
|
}
|
|
1001
1000
|
if ($xeTable.clearCellAreas && (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
|
|
1002
|
-
actionList.push(
|
|
1003
|
-
$xeTable.clearCellAreas(),
|
|
1004
|
-
$xeTable.clearCopyCellArea()
|
|
1005
|
-
);
|
|
1001
|
+
actionList.push($xeTable.clearCellAreas(), $xeTable.clearCopyCellArea());
|
|
1006
1002
|
}
|
|
1007
1003
|
return Promise.all(actionList).then(() => {
|
|
1008
1004
|
return $xeTable.clearScroll();
|
package/lib/toolbar/index.js
CHANGED
|
@@ -33,16 +33,16 @@ __export(toolbar_exports, {
|
|
|
33
33
|
default: () => toolbar_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(toolbar_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
37
37
|
var import_toolbar = __toESM(require("./src/toolbar"));
|
|
38
38
|
const VxeToolbar = Object.assign({}, import_toolbar.default, {
|
|
39
39
|
install(app) {
|
|
40
40
|
app.component(import_toolbar.default.name, import_toolbar.default);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
if (
|
|
44
|
-
|
|
43
|
+
if (import_core.VxeUI.dynamicApp) {
|
|
44
|
+
import_core.VxeUI.dynamicApp.component(import_toolbar.default.name, import_toolbar.default);
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
import_core.VxeUI.component(import_toolbar.default);
|
|
47
47
|
const Toolbar = VxeToolbar;
|
|
48
48
|
var toolbar_default = VxeToolbar;
|
|
@@ -34,11 +34,11 @@ module.exports = __toCommonJS(toolbar_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
38
38
|
var import_vn = require("../../ui/src/vn");
|
|
39
39
|
var import_log = require("../../ui/src/log");
|
|
40
40
|
const { warnLog, errLog } = (0, import_log.createComponentLog)("toolbar");
|
|
41
|
-
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } =
|
|
41
|
+
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = import_core.VxeUI;
|
|
42
42
|
function createReactData() {
|
|
43
43
|
return {
|
|
44
44
|
isRefresh: false,
|
|
@@ -85,14 +85,11 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
85
85
|
},
|
|
86
86
|
className: [String, Function]
|
|
87
87
|
},
|
|
88
|
-
emits: [
|
|
89
|
-
"button-click",
|
|
90
|
-
"tool-click"
|
|
91
|
-
],
|
|
88
|
+
emits: ["button-click", "tool-click"],
|
|
92
89
|
setup(props, context) {
|
|
93
90
|
const { slots, emit } = context;
|
|
94
91
|
const xID = import_xe_utils.default.uniqueId();
|
|
95
|
-
const VxeUIButtonComponent =
|
|
92
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
96
93
|
const $xeGrid = (0, import_vue.inject)("$xeGrid", null);
|
|
97
94
|
const $xeGantt = (0, import_vue.inject)("$xeGantt", null);
|
|
98
95
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -401,24 +398,32 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
401
398
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
402
399
|
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, button: item };
|
|
403
400
|
btnVNs.push(
|
|
404
|
-
(0, import_vue.h)(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
401
|
+
(0, import_vue.h)(
|
|
402
|
+
"span",
|
|
403
|
+
{
|
|
404
|
+
key: `br${item.code || index}`,
|
|
405
|
+
class: ["vxe-button--item", toolbarButtonClassName ? import_xe_utils.default.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
|
|
406
|
+
},
|
|
407
|
+
(0, import_vn.getSlotVNs)(compConf.renderToolbarButton(buttonRender, params))
|
|
408
|
+
)
|
|
408
409
|
);
|
|
409
410
|
} else {
|
|
410
411
|
if (VxeUIButtonComponent) {
|
|
411
412
|
btnVNs.push(
|
|
412
|
-
(0, import_vue.h)(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
413
|
+
(0, import_vue.h)(
|
|
414
|
+
VxeUIButtonComponent,
|
|
415
|
+
{
|
|
416
|
+
key: `bd${item.code || index}`,
|
|
417
|
+
...Object.assign({}, item, {
|
|
418
|
+
content: item.content || item.name,
|
|
419
|
+
options: void 0
|
|
420
|
+
}),
|
|
421
|
+
onClick: (eventParams) => btnEvent(eventParams, item)
|
|
422
|
+
},
|
|
423
|
+
dropdowns && dropdowns.length ? {
|
|
424
|
+
dropdowns: () => renderDropdowns(item, true)
|
|
425
|
+
} : {}
|
|
426
|
+
)
|
|
422
427
|
);
|
|
423
428
|
}
|
|
424
429
|
}
|
|
@@ -426,15 +431,27 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
426
431
|
});
|
|
427
432
|
}
|
|
428
433
|
return [
|
|
429
|
-
(0, import_vue.h)(
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
434
|
+
(0, import_vue.h)(
|
|
435
|
+
"div",
|
|
436
|
+
{
|
|
437
|
+
class: "vxe-button--prefix-wrapper"
|
|
438
|
+
},
|
|
439
|
+
buttonPrefixSlot ? (0, import_vn.getSlotVNs)(buttonPrefixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
440
|
+
),
|
|
441
|
+
(0, import_vue.h)(
|
|
442
|
+
"div",
|
|
443
|
+
{
|
|
444
|
+
class: "vxe-button--item-wrapper"
|
|
445
|
+
},
|
|
446
|
+
buttonsSlot ? (0, import_vn.getSlotVNs)(buttonsSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
447
|
+
),
|
|
448
|
+
(0, import_vue.h)(
|
|
449
|
+
"div",
|
|
450
|
+
{
|
|
451
|
+
class: "vxe-button--suffix-wrapper"
|
|
452
|
+
},
|
|
453
|
+
buttonSuffixSlot ? (0, import_vn.getSlotVNs)(buttonSuffixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
454
|
+
)
|
|
438
455
|
];
|
|
439
456
|
};
|
|
440
457
|
const renderRightTools = () => {
|
|
@@ -456,24 +473,32 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
456
473
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
457
474
|
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, tool: item };
|
|
458
475
|
btnVNs.push(
|
|
459
|
-
(0, import_vue.h)(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
476
|
+
(0, import_vue.h)(
|
|
477
|
+
"span",
|
|
478
|
+
{
|
|
479
|
+
key: tIndex,
|
|
480
|
+
class: ["vxe-tool--item", toolbarToolClassName ? import_xe_utils.default.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
|
|
481
|
+
},
|
|
482
|
+
(0, import_vn.getSlotVNs)(compConf.renderToolbarTool(toolRender, params))
|
|
483
|
+
)
|
|
463
484
|
);
|
|
464
485
|
} else {
|
|
465
486
|
if (VxeUIButtonComponent) {
|
|
466
487
|
btnVNs.push(
|
|
467
|
-
(0, import_vue.h)(
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
488
|
+
(0, import_vue.h)(
|
|
489
|
+
VxeUIButtonComponent,
|
|
490
|
+
{
|
|
491
|
+
key: tIndex,
|
|
492
|
+
...Object.assign({}, item, {
|
|
493
|
+
content: item.content || item.name,
|
|
494
|
+
options: void 0
|
|
495
|
+
}),
|
|
496
|
+
onClick: (eventParams) => tolEvent(eventParams, item)
|
|
497
|
+
},
|
|
498
|
+
dropdowns && dropdowns.length ? {
|
|
499
|
+
dropdowns: () => renderDropdowns(item, false)
|
|
500
|
+
} : {}
|
|
501
|
+
)
|
|
477
502
|
);
|
|
478
503
|
}
|
|
479
504
|
}
|
|
@@ -481,15 +506,27 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
481
506
|
});
|
|
482
507
|
}
|
|
483
508
|
return [
|
|
484
|
-
(0, import_vue.h)(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
509
|
+
(0, import_vue.h)(
|
|
510
|
+
"div",
|
|
511
|
+
{
|
|
512
|
+
class: "vxe-tool--prefix-wrapper"
|
|
513
|
+
},
|
|
514
|
+
toolPrefixSlot ? (0, import_vn.getSlotVNs)(toolPrefixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
515
|
+
),
|
|
516
|
+
(0, import_vue.h)(
|
|
517
|
+
"div",
|
|
518
|
+
{
|
|
519
|
+
class: "vxe-tool--item-wrapper"
|
|
520
|
+
},
|
|
521
|
+
toolsSlot ? (0, import_vn.getSlotVNs)(toolsSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
522
|
+
),
|
|
523
|
+
(0, import_vue.h)(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
class: "vxe-tool--suffix-wrapper"
|
|
527
|
+
},
|
|
528
|
+
toolSuffixSlot ? (0, import_vn.getSlotVNs)(toolSuffixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
529
|
+
)
|
|
493
530
|
];
|
|
494
531
|
};
|
|
495
532
|
const renderToolImport = () => {
|
|
@@ -565,31 +602,51 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
565
602
|
const renderVN = () => {
|
|
566
603
|
const { perfect, loading, refresh, zoom, custom, className } = props;
|
|
567
604
|
const vSize = computeSize.value;
|
|
568
|
-
return (0, import_vue.h)(
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
},
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
605
|
+
return (0, import_vue.h)(
|
|
606
|
+
"div",
|
|
607
|
+
{
|
|
608
|
+
ref: refElem,
|
|
609
|
+
class: [
|
|
610
|
+
"vxe-toolbar",
|
|
611
|
+
className ? import_xe_utils.default.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "",
|
|
612
|
+
{
|
|
613
|
+
[`size--${vSize}`]: vSize,
|
|
614
|
+
"is--perfect": perfect,
|
|
615
|
+
"is--loading": loading
|
|
616
|
+
}
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
[
|
|
620
|
+
(0, import_vue.h)(
|
|
621
|
+
"div",
|
|
622
|
+
{
|
|
623
|
+
class: "vxe-buttons--wrapper"
|
|
624
|
+
},
|
|
625
|
+
renderLeftBtns()
|
|
626
|
+
),
|
|
627
|
+
(0, import_vue.h)(
|
|
628
|
+
"div",
|
|
629
|
+
{
|
|
630
|
+
class: "vxe-tools--wrapper"
|
|
631
|
+
},
|
|
632
|
+
renderRightTools()
|
|
633
|
+
),
|
|
634
|
+
(0, import_vue.h)(
|
|
635
|
+
"div",
|
|
636
|
+
{
|
|
637
|
+
class: "vxe-tools--operate"
|
|
638
|
+
},
|
|
639
|
+
[
|
|
640
|
+
props.import ? renderToolImport() : (0, import_vue.createCommentVNode)(),
|
|
641
|
+
props.export ? renderToolExport() : (0, import_vue.createCommentVNode)(),
|
|
642
|
+
props.print ? renderToolPrint() : (0, import_vue.createCommentVNode)(),
|
|
643
|
+
refresh ? renderToolRefresh() : (0, import_vue.createCommentVNode)(),
|
|
644
|
+
zoom && $xeGGWrapper ? renderToolZoom() : (0, import_vue.createCommentVNode)(),
|
|
645
|
+
custom ? renderToolCustom() : (0, import_vue.createCommentVNode)()
|
|
646
|
+
]
|
|
647
|
+
)
|
|
648
|
+
]
|
|
649
|
+
);
|
|
593
650
|
};
|
|
594
651
|
$xeToolbar.renderVN = renderVN;
|
|
595
652
|
(0, import_vue.nextTick)(() => {
|
package/lib/ui/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
var ui_exports = {};
|
|
21
20
|
__export(ui_exports, {
|
|
@@ -34,8 +33,7 @@ __export(ui_exports, {
|
|
|
34
33
|
module.exports = __toCommonJS(ui_exports);
|
|
35
34
|
var import_core = require("@vxe-ui/core");
|
|
36
35
|
var import_utils = require("./src/utils");
|
|
37
|
-
|
|
38
|
-
const version = "4.23.7";
|
|
36
|
+
const version = "4.23.9";
|
|
39
37
|
import_core.VxeUI.version = version;
|
|
40
38
|
import_core.VxeUI.tableVersion = version;
|
|
41
39
|
import_core.VxeUI.setConfig({
|
package/lib/ui/src/dom.js
CHANGED
|
@@ -297,12 +297,15 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
function updatePanelPlacement(targetElem, panelElem, options) {
|
|
300
|
-
const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign(
|
|
301
|
+
{
|
|
302
|
+
appendTo: "",
|
|
303
|
+
teleportTo: false,
|
|
304
|
+
marginSize: 18,
|
|
305
|
+
isMinWidth: true
|
|
306
|
+
},
|
|
307
|
+
options
|
|
308
|
+
);
|
|
306
309
|
let panelPlacement = "bottom";
|
|
307
310
|
let top = "";
|
|
308
311
|
let bottom = "";
|
package/lib/ui/src/log.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(log_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(log_exports);
|
|
26
26
|
var import_core = require("@vxe-ui/core");
|
|
27
27
|
const { log } = import_core.VxeUI;
|
|
28
|
-
const tableVersion = `table v${"4.23.
|
|
28
|
+
const tableVersion = `table v${"4.23.9"}`;
|
|
29
29
|
function createComponentLog(name) {
|
|
30
30
|
const uiVersion = import_core.VxeUI.uiVersion ? `ui v${import_core.VxeUI.uiVersion}` : "";
|
|
31
31
|
const ganttVersion = import_core.VxeUI.ganttVersion ? `gantt v${import_core.VxeUI.ganttVersion}` : "";
|
package/lib/v-x-e-table/index.js
CHANGED
|
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -33,5 +32,4 @@ __export(v_x_e_table_exports, {
|
|
|
33
32
|
});
|
|
34
33
|
module.exports = __toCommonJS(v_x_e_table_exports);
|
|
35
34
|
var import_ui = __toESM(require("../ui"));
|
|
36
|
-
__reExport(v_x_e_table_exports, require("../ui"), module.exports);
|
|
37
35
|
var v_x_e_table_default = import_ui.default;
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.9",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
7
7
|
"serve": "vue-cli-service serve",
|
|
8
|
-
"lint": "vue-cli-service lint",
|
|
9
8
|
"build": "vue-cli-service build",
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
10
|
+
"lint:es": "eslint packages/** types/**",
|
|
11
|
+
"lint:ox": "oxfmt --check packages/** types/**",
|
|
12
|
+
"esfix": "eslint --fix packages/** types/**",
|
|
13
|
+
"oxfix": "oxfmt packages/** types/** --write",
|
|
10
14
|
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
11
15
|
"lib:modules": "gulp build",
|
|
12
16
|
"lib:old": "npm run lib:pack && npm run lib:modules",
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
"gulp-sourcemaps": "^3.0.0",
|
|
63
67
|
"gulp-typescript": "^5.0.1",
|
|
64
68
|
"gulp-uglify": "^3.0.2",
|
|
69
|
+
"oxfmt": "~0.51.0",
|
|
65
70
|
"postcss": "^8.4.38",
|
|
66
71
|
"rollup": "^4.53.3",
|
|
67
72
|
"sass": "~1.101.7",
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
"typescript": "~5.9.3",
|
|
71
76
|
"vue": "3.4.27",
|
|
72
77
|
"vue-router": "~4.5.1",
|
|
73
|
-
"vxe-pc-ui": "4.20.
|
|
78
|
+
"vxe-pc-ui": "4.20.27"
|
|
74
79
|
},
|
|
75
80
|
"vetur": {
|
|
76
81
|
"tags": "helper/vetur/tags.json",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '
|
|
3
|
-
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
-
|
|
5
|
-
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
-
install
|
|
7
|
-
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColgroupComponent)
|
|
20
|
-
|
|
21
|
-
export const Colgroup = VxeColgroup
|
|
22
|
-
export default VxeColgroup
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
+
|
|
5
|
+
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
+
install(app: App) {
|
|
7
|
+
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColgroupComponent)
|
|
20
|
+
|
|
21
|
+
export const Colgroup = VxeColgroup
|
|
22
|
+
export default VxeColgroup
|
package/packages/column/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '
|
|
3
|
-
import VxeColumnComponent from '../table/src/column'
|
|
4
|
-
|
|
5
|
-
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
-
install
|
|
7
|
-
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColumnComponent)
|
|
20
|
-
|
|
21
|
-
export const Column = VxeColumn
|
|
22
|
-
export default VxeColumn
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import VxeColumnComponent from '../table/src/column'
|
|
4
|
+
|
|
5
|
+
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
+
install(app: App) {
|
|
7
|
+
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColumnComponent)
|
|
20
|
+
|
|
21
|
+
export const Column = VxeColumn
|
|
22
|
+
export default VxeColumn
|
package/packages/components.ts
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export * from './
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './
|
|
42
|
-
export * from './grid'
|
|
43
|
-
export * from './toolbar'
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import './ui'
|
|
4
|
+
|
|
5
|
+
import { VxeColumn } from './column'
|
|
6
|
+
import { VxeColgroup } from './colgroup'
|
|
7
|
+
import { VxeGrid } from './grid'
|
|
8
|
+
import { VxeTable } from './table'
|
|
9
|
+
import { VxeToolbar } from './toolbar'
|
|
10
|
+
|
|
11
|
+
import zhCN from './locale/lang/zh-CN'
|
|
12
|
+
|
|
13
|
+
import type { VxeGlobalConfig } from '../types'
|
|
14
|
+
|
|
15
|
+
const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar]
|
|
16
|
+
|
|
17
|
+
// 默认安装
|
|
18
|
+
export function install(app: App, options?: VxeGlobalConfig) {
|
|
19
|
+
VxeUI.setConfig(options)
|
|
20
|
+
components.forEach((component) => component.install(app))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 保留兼容老版本
|
|
24
|
+
if (!VxeUI.hasLanguage('zh-CN')) {
|
|
25
|
+
const defaultLanguage = 'zh-CN'
|
|
26
|
+
VxeUI.setI18n(defaultLanguage, zhCN)
|
|
27
|
+
VxeUI.setLanguage(defaultLanguage)
|
|
28
|
+
}
|
|
29
|
+
VxeUI.setTheme('light')
|
|
30
|
+
|
|
31
|
+
export { VxeUI }
|
|
32
|
+
|
|
33
|
+
// 兼容老版本
|
|
34
|
+
export * from './ui'
|
|
35
|
+
|
|
36
|
+
// Components
|
|
37
|
+
export * from './table'
|
|
38
|
+
export * from './column'
|
|
39
|
+
export * from './colgroup'
|
|
40
|
+
export * from './grid'
|
|
41
|
+
export * from './toolbar'
|