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/es/table/src/util.js
CHANGED
|
@@ -833,17 +833,20 @@ function createColumn($xeTable, options, renderOptions) {
|
|
|
833
833
|
}
|
|
834
834
|
function watchColumn($xeTable, props, column) {
|
|
835
835
|
Object.keys(props).forEach((name) => {
|
|
836
|
-
watch(
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
836
|
+
watch(
|
|
837
|
+
() => props[name],
|
|
838
|
+
(value) => {
|
|
839
|
+
column.update(name, value);
|
|
840
|
+
if ($xeTable) {
|
|
841
|
+
if (name === "filters") {
|
|
842
|
+
$xeTable.setFilter(column, value);
|
|
843
|
+
$xeTable.handleUpdateDataQueue();
|
|
844
|
+
} else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
|
|
845
|
+
$xeTable.handleRefreshColumnQueue();
|
|
846
|
+
}
|
|
844
847
|
}
|
|
845
848
|
}
|
|
846
|
-
|
|
849
|
+
);
|
|
847
850
|
});
|
|
848
851
|
}
|
|
849
852
|
function assembleColumn($xeTable, elem, column, colgroup) {
|
|
@@ -918,20 +921,13 @@ function clearTableDefaultStatus($xeTable) {
|
|
|
918
921
|
$xeTable.clearPendingRow()
|
|
919
922
|
];
|
|
920
923
|
if ($xeTable.clearFilter) {
|
|
921
|
-
actionList.push(
|
|
922
|
-
$xeTable.clearFilter()
|
|
923
|
-
);
|
|
924
|
+
actionList.push($xeTable.clearFilter());
|
|
924
925
|
}
|
|
925
926
|
if ($xeTable.clearSelected && (hasEnableConf(keyboardConfig, keyboardOpts) || hasEnableConf(mouseConfig, mouseOpts))) {
|
|
926
|
-
actionList.push(
|
|
927
|
-
$xeTable.clearSelected()
|
|
928
|
-
);
|
|
927
|
+
actionList.push($xeTable.clearSelected());
|
|
929
928
|
}
|
|
930
929
|
if ($xeTable.clearCellAreas && hasEnableConf(mouseConfig, mouseOpts)) {
|
|
931
|
-
actionList.push(
|
|
932
|
-
$xeTable.clearCellAreas(),
|
|
933
|
-
$xeTable.clearCopyCellArea()
|
|
934
|
-
);
|
|
930
|
+
actionList.push($xeTable.clearCellAreas(), $xeTable.clearCopyCellArea());
|
|
935
931
|
}
|
|
936
932
|
return Promise.all(actionList).then(() => {
|
|
937
933
|
return $xeTable.clearScroll();
|
|
@@ -52,10 +52,7 @@ var toolbar_default = defineVxeComponent({
|
|
|
52
52
|
},
|
|
53
53
|
className: [String, Function]
|
|
54
54
|
},
|
|
55
|
-
emits: [
|
|
56
|
-
"button-click",
|
|
57
|
-
"tool-click"
|
|
58
|
-
],
|
|
55
|
+
emits: ["button-click", "tool-click"],
|
|
59
56
|
setup(props, context) {
|
|
60
57
|
const { slots, emit } = context;
|
|
61
58
|
const xID = XEUtils.uniqueId();
|
|
@@ -368,24 +365,32 @@ var toolbar_default = defineVxeComponent({
|
|
|
368
365
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
369
366
|
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, button: item };
|
|
370
367
|
btnVNs.push(
|
|
371
|
-
h(
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
368
|
+
h(
|
|
369
|
+
"span",
|
|
370
|
+
{
|
|
371
|
+
key: `br${item.code || index}`,
|
|
372
|
+
class: ["vxe-button--item", toolbarButtonClassName ? XEUtils.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
|
|
373
|
+
},
|
|
374
|
+
getSlotVNs(compConf.renderToolbarButton(buttonRender, params))
|
|
375
|
+
)
|
|
375
376
|
);
|
|
376
377
|
} else {
|
|
377
378
|
if (VxeUIButtonComponent) {
|
|
378
379
|
btnVNs.push(
|
|
379
|
-
h(
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
380
|
+
h(
|
|
381
|
+
VxeUIButtonComponent,
|
|
382
|
+
{
|
|
383
|
+
key: `bd${item.code || index}`,
|
|
384
|
+
...Object.assign({}, item, {
|
|
385
|
+
content: item.content || item.name,
|
|
386
|
+
options: void 0
|
|
387
|
+
}),
|
|
388
|
+
onClick: (eventParams) => btnEvent(eventParams, item)
|
|
389
|
+
},
|
|
390
|
+
dropdowns && dropdowns.length ? {
|
|
391
|
+
dropdowns: () => renderDropdowns(item, true)
|
|
392
|
+
} : {}
|
|
393
|
+
)
|
|
389
394
|
);
|
|
390
395
|
}
|
|
391
396
|
}
|
|
@@ -393,15 +398,27 @@ var toolbar_default = defineVxeComponent({
|
|
|
393
398
|
});
|
|
394
399
|
}
|
|
395
400
|
return [
|
|
396
|
-
h(
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
h(
|
|
402
|
+
"div",
|
|
403
|
+
{
|
|
404
|
+
class: "vxe-button--prefix-wrapper"
|
|
405
|
+
},
|
|
406
|
+
buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
407
|
+
),
|
|
408
|
+
h(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
class: "vxe-button--item-wrapper"
|
|
412
|
+
},
|
|
413
|
+
buttonsSlot ? getSlotVNs(buttonsSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
414
|
+
),
|
|
415
|
+
h(
|
|
416
|
+
"div",
|
|
417
|
+
{
|
|
418
|
+
class: "vxe-button--suffix-wrapper"
|
|
419
|
+
},
|
|
420
|
+
buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
421
|
+
)
|
|
405
422
|
];
|
|
406
423
|
};
|
|
407
424
|
const renderRightTools = () => {
|
|
@@ -423,24 +440,32 @@ var toolbar_default = defineVxeComponent({
|
|
|
423
440
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
424
441
|
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, tool: item };
|
|
425
442
|
btnVNs.push(
|
|
426
|
-
h(
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
443
|
+
h(
|
|
444
|
+
"span",
|
|
445
|
+
{
|
|
446
|
+
key: tIndex,
|
|
447
|
+
class: ["vxe-tool--item", toolbarToolClassName ? XEUtils.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
|
|
448
|
+
},
|
|
449
|
+
getSlotVNs(compConf.renderToolbarTool(toolRender, params))
|
|
450
|
+
)
|
|
430
451
|
);
|
|
431
452
|
} else {
|
|
432
453
|
if (VxeUIButtonComponent) {
|
|
433
454
|
btnVNs.push(
|
|
434
|
-
h(
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
455
|
+
h(
|
|
456
|
+
VxeUIButtonComponent,
|
|
457
|
+
{
|
|
458
|
+
key: tIndex,
|
|
459
|
+
...Object.assign({}, item, {
|
|
460
|
+
content: item.content || item.name,
|
|
461
|
+
options: void 0
|
|
462
|
+
}),
|
|
463
|
+
onClick: (eventParams) => tolEvent(eventParams, item)
|
|
464
|
+
},
|
|
465
|
+
dropdowns && dropdowns.length ? {
|
|
466
|
+
dropdowns: () => renderDropdowns(item, false)
|
|
467
|
+
} : {}
|
|
468
|
+
)
|
|
444
469
|
);
|
|
445
470
|
}
|
|
446
471
|
}
|
|
@@ -448,15 +473,27 @@ var toolbar_default = defineVxeComponent({
|
|
|
448
473
|
});
|
|
449
474
|
}
|
|
450
475
|
return [
|
|
451
|
-
h(
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
476
|
+
h(
|
|
477
|
+
"div",
|
|
478
|
+
{
|
|
479
|
+
class: "vxe-tool--prefix-wrapper"
|
|
480
|
+
},
|
|
481
|
+
toolPrefixSlot ? getSlotVNs(toolPrefixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
482
|
+
),
|
|
483
|
+
h(
|
|
484
|
+
"div",
|
|
485
|
+
{
|
|
486
|
+
class: "vxe-tool--item-wrapper"
|
|
487
|
+
},
|
|
488
|
+
toolsSlot ? getSlotVNs(toolsSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
489
|
+
),
|
|
490
|
+
h(
|
|
491
|
+
"div",
|
|
492
|
+
{
|
|
493
|
+
class: "vxe-tool--suffix-wrapper"
|
|
494
|
+
},
|
|
495
|
+
toolSuffixSlot ? getSlotVNs(toolSuffixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
496
|
+
)
|
|
460
497
|
];
|
|
461
498
|
};
|
|
462
499
|
const renderToolImport = () => {
|
|
@@ -532,31 +569,51 @@ var toolbar_default = defineVxeComponent({
|
|
|
532
569
|
const renderVN = () => {
|
|
533
570
|
const { perfect, loading, refresh, zoom, custom, className } = props;
|
|
534
571
|
const vSize = computeSize.value;
|
|
535
|
-
return h(
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
572
|
+
return h(
|
|
573
|
+
"div",
|
|
574
|
+
{
|
|
575
|
+
ref: refElem,
|
|
576
|
+
class: [
|
|
577
|
+
"vxe-toolbar",
|
|
578
|
+
className ? XEUtils.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "",
|
|
579
|
+
{
|
|
580
|
+
[`size--${vSize}`]: vSize,
|
|
581
|
+
"is--perfect": perfect,
|
|
582
|
+
"is--loading": loading
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
[
|
|
587
|
+
h(
|
|
588
|
+
"div",
|
|
589
|
+
{
|
|
590
|
+
class: "vxe-buttons--wrapper"
|
|
591
|
+
},
|
|
592
|
+
renderLeftBtns()
|
|
593
|
+
),
|
|
594
|
+
h(
|
|
595
|
+
"div",
|
|
596
|
+
{
|
|
597
|
+
class: "vxe-tools--wrapper"
|
|
598
|
+
},
|
|
599
|
+
renderRightTools()
|
|
600
|
+
),
|
|
601
|
+
h(
|
|
602
|
+
"div",
|
|
603
|
+
{
|
|
604
|
+
class: "vxe-tools--operate"
|
|
605
|
+
},
|
|
606
|
+
[
|
|
607
|
+
props.import ? renderToolImport() : createCommentVNode(),
|
|
608
|
+
props.export ? renderToolExport() : createCommentVNode(),
|
|
609
|
+
props.print ? renderToolPrint() : createCommentVNode(),
|
|
610
|
+
refresh ? renderToolRefresh() : createCommentVNode(),
|
|
611
|
+
zoom && $xeGGWrapper ? renderToolZoom() : createCommentVNode(),
|
|
612
|
+
custom ? renderToolCustom() : createCommentVNode()
|
|
613
|
+
]
|
|
614
|
+
)
|
|
615
|
+
]
|
|
616
|
+
);
|
|
560
617
|
};
|
|
561
618
|
$xeToolbar.renderVN = renderVN;
|
|
562
619
|
nextTick(() => {
|
package/es/ui/index.js
CHANGED
package/es/ui/src/dom.js
CHANGED
|
@@ -232,12 +232,15 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function updatePanelPlacement(targetElem, panelElem, options) {
|
|
235
|
-
const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
235
|
+
const { defaultTop, defaultLeft, placement, defaultPlacement, appendTo, teleportTo, marginSize, isMinWidth } = Object.assign(
|
|
236
|
+
{
|
|
237
|
+
appendTo: "",
|
|
238
|
+
teleportTo: false,
|
|
239
|
+
marginSize: 18,
|
|
240
|
+
isMinWidth: true
|
|
241
|
+
},
|
|
242
|
+
options
|
|
243
|
+
);
|
|
241
244
|
let panelPlacement = "bottom";
|
|
242
245
|
let top = "";
|
|
243
246
|
let bottom = "";
|
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const tableVersion = `table v${"4.23.
|
|
3
|
+
const tableVersion = `table v${"4.23.9"}`;
|
|
4
4
|
function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : "";
|
package/es/ui/src/utils.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export declare function formatText(value: any, placeholder?: any): string;
|
|
|
20
20
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
21
21
|
*/
|
|
22
22
|
export declare function eqEmptyValue(cellValue: any): boolean;
|
|
23
|
-
export declare function getDefaultConfig<T = any, D = any>(val1: T, def1: D):
|
|
23
|
+
export declare function getDefaultConfig<T = any, D = any>(val1: T, def1: D): T | D;
|
package/lib/components.js
CHANGED
|
@@ -41,18 +41,13 @@ var import_grid = require("./grid");
|
|
|
41
41
|
var import_table = require("./table");
|
|
42
42
|
var import_toolbar = require("./toolbar");
|
|
43
43
|
var import_zh_CN = __toESM(require("./locale/lang/zh-CN"));
|
|
44
|
+
__reExport(components_exports, require("./ui"), module.exports);
|
|
44
45
|
__reExport(components_exports, require("./table"), module.exports);
|
|
45
46
|
__reExport(components_exports, require("./column"), module.exports);
|
|
46
47
|
__reExport(components_exports, require("./colgroup"), module.exports);
|
|
47
48
|
__reExport(components_exports, require("./grid"), module.exports);
|
|
48
49
|
__reExport(components_exports, require("./toolbar"), module.exports);
|
|
49
|
-
const components = [
|
|
50
|
-
import_column.VxeColumn,
|
|
51
|
-
import_colgroup.VxeColgroup,
|
|
52
|
-
import_grid.VxeGrid,
|
|
53
|
-
import_table.VxeTable,
|
|
54
|
-
import_toolbar.VxeToolbar
|
|
55
|
-
];
|
|
50
|
+
const components = [import_column.VxeColumn, import_colgroup.VxeColgroup, import_grid.VxeGrid, import_table.VxeTable, import_toolbar.VxeToolbar];
|
|
56
51
|
function install(app, options) {
|
|
57
52
|
import_core.VxeUI.setConfig(options);
|
|
58
53
|
components.forEach((component) => component.install(app));
|
package/lib/grid/src/emits.js
CHANGED
|
@@ -22,18 +22,4 @@ __export(emits_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(emits_exports);
|
|
24
24
|
var import_emits = require("../../table/src/emits");
|
|
25
|
-
const gridEmits = [
|
|
26
|
-
...import_emits.tableEmits,
|
|
27
|
-
"page-change",
|
|
28
|
-
"form-submit",
|
|
29
|
-
"form-submit-invalid",
|
|
30
|
-
"form-reset",
|
|
31
|
-
"form-collapse",
|
|
32
|
-
"form-toggle-collapse",
|
|
33
|
-
"proxy-query",
|
|
34
|
-
"proxy-delete",
|
|
35
|
-
"proxy-save",
|
|
36
|
-
"toolbar-button-click",
|
|
37
|
-
"toolbar-tool-click",
|
|
38
|
-
"zoom"
|
|
39
|
-
];
|
|
25
|
+
const gridEmits = [...import_emits.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"];
|