vxe-table 4.23.8 → 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 +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- 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/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -44
- 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 -11
- 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 -520
- 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 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.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();
|
|
@@ -85,10 +85,7 @@ 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();
|
|
@@ -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
|
@@ -33,7 +33,7 @@ __export(ui_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(ui_exports);
|
|
34
34
|
var import_core = require("@vxe-ui/core");
|
|
35
35
|
var import_utils = require("./src/utils");
|
|
36
|
-
const version = "4.23.
|
|
36
|
+
const version = "4.23.9";
|
|
37
37
|
import_core.VxeUI.version = version;
|
|
38
38
|
import_core.VxeUI.tableVersion = version;
|
|
39
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typescript": "~5.9.3",
|
|
76
76
|
"vue": "3.4.27",
|
|
77
77
|
"vue-router": "~4.5.1",
|
|
78
|
-
"vxe-pc-ui": "4.20.
|
|
78
|
+
"vxe-pc-ui": "4.20.27"
|
|
79
79
|
},
|
|
80
80
|
"vetur": {
|
|
81
81
|
"tags": "helper/vetur/tags.json",
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
|
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 '@vxe-ui/core'
|
|
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,44 +1,41 @@
|
|
|
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 = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './
|
|
42
|
-
export * from './colgroup'
|
|
43
|
-
export * from './grid'
|
|
44
|
-
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'
|
package/packages/grid/index.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
-
import VxeGridComponent from './src/grid'
|
|
4
|
-
|
|
5
|
-
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
6
|
-
install
|
|
7
|
-
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
8
|
-
}
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
if (VxeUI.dynamicApp) {
|
|
12
|
-
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
VxeUI.component(VxeGridComponent)
|
|
16
|
-
|
|
17
|
-
export const Grid = VxeGrid
|
|
18
|
-
export default VxeGrid
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import VxeGridComponent from './src/grid'
|
|
4
|
+
|
|
5
|
+
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
6
|
+
install(app: App) {
|
|
7
|
+
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
if (VxeUI.dynamicApp) {
|
|
12
|
+
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
VxeUI.component(VxeGridComponent)
|
|
16
|
+
|
|
17
|
+
export const Grid = VxeGrid
|
|
18
|
+
export default VxeGrid
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import { tableEmits } from '../../table/src/emits'
|
|
2
|
-
|
|
3
|
-
import type { VxeGridEmits } from '../../../types'
|
|
4
|
-
|
|
5
|
-
export const gridEmits: VxeGridEmits = [
|
|
6
|
-
...tableEmits,
|
|
7
|
-
'page-change',
|
|
8
|
-
'form-submit',
|
|
9
|
-
'form-submit-invalid',
|
|
10
|
-
'form-reset',
|
|
11
|
-
'form-collapse',
|
|
12
|
-
'form-toggle-collapse',
|
|
13
|
-
'proxy-query',
|
|
14
|
-
'proxy-delete',
|
|
15
|
-
'proxy-save',
|
|
16
|
-
'toolbar-button-click',
|
|
17
|
-
'toolbar-tool-click',
|
|
18
|
-
'zoom'
|
|
19
|
-
]
|
|
1
|
+
import { tableEmits } from '../../table/src/emits'
|
|
2
|
+
|
|
3
|
+
import type { VxeGridEmits } from '../../../types'
|
|
4
|
+
|
|
5
|
+
export const gridEmits: VxeGridEmits = [...tableEmits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom']
|