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.
Files changed (148) hide show
  1. package/dist/all.esm.js +5859 -4018
  2. package/es/colgroup/index.js +1 -1
  3. package/es/column/index.js +1 -1
  4. package/es/components.d.ts +3 -0
  5. package/es/components.js +4 -8
  6. package/es/grid/index.js +1 -1
  7. package/es/grid/src/emits.js +1 -15
  8. package/es/grid/src/grid.js +398 -121
  9. package/es/grid/src/props.js +1 -1
  10. package/es/index.esm.js +6 -0
  11. package/es/index.js +6 -0
  12. package/es/table/index.js +1 -1
  13. package/es/table/module/custom/hook.js +50 -43
  14. package/es/table/module/custom/panel.js +778 -528
  15. package/es/table/module/edit/hook.js +141 -63
  16. package/es/table/module/export/export-panel.js +400 -317
  17. package/es/table/module/export/hook.js +396 -338
  18. package/es/table/module/export/import-panel.js +153 -124
  19. package/es/table/module/filter/hook.js +17 -3
  20. package/es/table/module/filter/panel.js +147 -85
  21. package/es/table/module/keyboard/hook.js +9 -5
  22. package/es/table/module/menu/hook.js +1 -1
  23. package/es/table/module/menu/panel.js +198 -127
  24. package/es/table/module/validator/hook.js +1 -1
  25. package/es/table/render/index.js +152 -99
  26. package/es/table/src/body.js +356 -234
  27. package/es/table/src/cell.js +427 -270
  28. package/es/table/src/columnInfo.js +2 -1
  29. package/es/table/src/footer.js +145 -100
  30. package/es/table/src/group.js +7 -3
  31. package/es/table/src/header.js +230 -173
  32. package/es/table/src/props.js +1 -1
  33. package/es/table/src/table.js +1504 -1031
  34. package/es/table/src/util.js +15 -19
  35. package/es/toolbar/index.js +1 -1
  36. package/es/toolbar/src/toolbar.js +133 -76
  37. package/es/ui/index.d.ts +0 -1
  38. package/es/ui/index.js +1 -2
  39. package/es/ui/src/dom.js +9 -6
  40. package/es/ui/src/log.js +1 -1
  41. package/es/ui/src/utils.d.ts +1 -1
  42. package/es/v-x-e-table/index.d.ts +0 -1
  43. package/es/v-x-e-table/index.js +0 -1
  44. package/lib/colgroup/index.js +5 -5
  45. package/lib/column/index.js +5 -5
  46. package/lib/components.js +8 -12
  47. package/lib/grid/index.js +4 -4
  48. package/lib/grid/src/emits.js +1 -15
  49. package/lib/grid/src/grid.js +419 -142
  50. package/lib/grid/src/props.js +2 -2
  51. package/lib/index.common.js +6 -0
  52. package/lib/index.js +6 -0
  53. package/lib/index.umd.js +5825 -3945
  54. package/lib/index.umd.min.js +3 -3
  55. package/lib/table/index.js +5 -5
  56. package/lib/table/module/custom/hook.js +51 -44
  57. package/lib/table/module/custom/panel.js +790 -540
  58. package/lib/table/module/edit/hook.js +142 -64
  59. package/lib/table/module/export/export-panel.js +406 -323
  60. package/lib/table/module/export/hook.js +419 -361
  61. package/lib/table/module/export/import-panel.js +157 -128
  62. package/lib/table/module/filter/hook.js +18 -4
  63. package/lib/table/module/filter/panel.js +149 -87
  64. package/lib/table/module/keyboard/hook.js +10 -6
  65. package/lib/table/module/menu/hook.js +2 -2
  66. package/lib/table/module/menu/panel.js +199 -128
  67. package/lib/table/module/validator/hook.js +2 -2
  68. package/lib/table/render/index.js +153 -100
  69. package/lib/table/src/body.js +357 -235
  70. package/lib/table/src/cell.js +428 -271
  71. package/lib/table/src/columnInfo.js +3 -2
  72. package/lib/table/src/footer.js +146 -101
  73. package/lib/table/src/group.js +7 -3
  74. package/lib/table/src/header.js +231 -174
  75. package/lib/table/src/props.js +2 -2
  76. package/lib/table/src/table.js +1487 -1045
  77. package/lib/table/src/util.js +15 -19
  78. package/lib/toolbar/index.js +4 -4
  79. package/lib/toolbar/src/toolbar.js +135 -78
  80. package/lib/ui/index.js +1 -3
  81. package/lib/ui/src/dom.js +9 -6
  82. package/lib/ui/src/log.js +1 -1
  83. package/lib/v-x-e-table/index.js +0 -2
  84. package/package.json +8 -3
  85. package/packages/colgroup/index.ts +22 -22
  86. package/packages/column/index.ts +22 -22
  87. package/packages/components.ts +41 -43
  88. package/packages/grid/index.ts +18 -18
  89. package/packages/grid/src/emits.ts +5 -19
  90. package/packages/grid/src/grid.ts +2229 -1925
  91. package/packages/grid/src/props.ts +22 -23
  92. package/packages/index.ts +11 -4
  93. package/packages/locale/lang/fr-FR.ts +15 -15
  94. package/packages/locale/lang/it-IT.ts +4 -4
  95. package/packages/locale/lang/uk-UA.ts +1 -1
  96. package/packages/locale/lang/uz-UZ.ts +13 -13
  97. package/packages/locale/lang/zh-CN.ts +907 -907
  98. package/packages/table/index.ts +26 -26
  99. package/packages/table/module/custom/hook.ts +510 -503
  100. package/packages/table/module/custom/panel.ts +2002 -1743
  101. package/packages/table/module/edit/hook.ts +1224 -1131
  102. package/packages/table/module/export/export-panel.ts +697 -611
  103. package/packages/table/module/export/hook.ts +2160 -2059
  104. package/packages/table/module/export/import-panel.ts +319 -279
  105. package/packages/table/module/export/util.ts +25 -24
  106. package/packages/table/module/filter/hook.ts +519 -501
  107. package/packages/table/module/filter/panel.ts +368 -304
  108. package/packages/table/module/keyboard/hook.ts +498 -494
  109. package/packages/table/module/menu/hook.ts +330 -330
  110. package/packages/table/module/menu/panel.ts +272 -201
  111. package/packages/table/module/validator/hook.ts +653 -635
  112. package/packages/table/render/index.ts +1819 -1744
  113. package/packages/table/src/body.ts +1078 -955
  114. package/packages/table/src/cell.ts +1524 -1359
  115. package/packages/table/src/column.ts +192 -192
  116. package/packages/table/src/columnInfo.ts +232 -232
  117. package/packages/table/src/emits.ts +134 -134
  118. package/packages/table/src/footer.ts +425 -380
  119. package/packages/table/src/group.ts +67 -63
  120. package/packages/table/src/header.ts +642 -581
  121. package/packages/table/src/props.ts +336 -336
  122. package/packages/table/src/store.ts +14 -14
  123. package/packages/table/src/table.ts +16011 -15454
  124. package/packages/table/src/use/cell-view.ts +41 -44
  125. package/packages/table/src/use/index.ts +1 -1
  126. package/packages/table/src/util.ts +1206 -1216
  127. package/packages/toolbar/index.ts +18 -18
  128. package/packages/toolbar/src/toolbar.ts +768 -706
  129. package/packages/ui/index.ts +519 -521
  130. package/packages/ui/src/anime.ts +51 -52
  131. package/packages/ui/src/comp.ts +3 -3
  132. package/packages/ui/src/dom.ts +466 -463
  133. package/packages/ui/src/log.ts +19 -19
  134. package/packages/ui/src/utils.ts +66 -66
  135. package/packages/ui/src/vn.ts +55 -55
  136. package/packages/v-x-e-table/index.d.ts +3 -4
  137. package/packages/v-x-e-table/index.ts +3 -4
  138. package/types/all.d.ts +76 -76
  139. package/types/index.d.ts +4 -4
  140. /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  141. /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  142. /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  143. /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  144. /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  145. /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  146. /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  147. /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  148. /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
@@ -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(() => props[name], (value) => {
837
- column.update(name, value);
838
- if ($xeTable) {
839
- if (name === "filters") {
840
- $xeTable.setFilter(column, value);
841
- $xeTable.handleUpdateDataQueue();
842
- } else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
843
- $xeTable.handleRefreshColumnQueue();
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();
@@ -1,4 +1,4 @@
1
- import { VxeUI } from "../ui";
1
+ import { VxeUI } from "@vxe-ui/core";
2
2
  import VxeToolbarComponent from "./src/toolbar";
3
3
  const VxeToolbar = Object.assign({}, VxeToolbarComponent, {
4
4
  install(app) {
@@ -1,7 +1,7 @@
1
1
  import { h, ref, computed, inject, createCommentVNode, reactive, nextTick, onBeforeUnmount } from "vue";
2
2
  import { defineVxeComponent } from "../../ui/src/comp";
3
3
  import XEUtils from "xe-utils";
4
- import { VxeUI } from "../../ui";
4
+ import { VxeUI } from "@vxe-ui/core";
5
5
  import { getSlotVNs } from "../../ui/src/vn";
6
6
  import { createComponentLog } from "../../ui/src/log";
7
7
  const { warnLog, errLog } = createComponentLog("toolbar");
@@ -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("span", {
372
- key: `br${item.code || index}`,
373
- class: ["vxe-button--item", toolbarButtonClassName ? XEUtils.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
374
- }, getSlotVNs(compConf.renderToolbarButton(buttonRender, params)))
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(VxeUIButtonComponent, {
380
- key: `bd${item.code || index}`,
381
- ...Object.assign({}, item, {
382
- content: item.content || item.name,
383
- options: void 0
384
- }),
385
- onClick: (eventParams) => btnEvent(eventParams, item)
386
- }, dropdowns && dropdowns.length ? {
387
- dropdowns: () => renderDropdowns(item, true)
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("div", {
397
- class: "vxe-button--prefix-wrapper"
398
- }, buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []),
399
- h("div", {
400
- class: "vxe-button--item-wrapper"
401
- }, buttonsSlot ? getSlotVNs(buttonsSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs),
402
- h("div", {
403
- class: "vxe-button--suffix-wrapper"
404
- }, buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot({ buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : [])
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("span", {
427
- key: tIndex,
428
- class: ["vxe-tool--item", toolbarToolClassName ? XEUtils.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
429
- }, getSlotVNs(compConf.renderToolbarTool(toolRender, params)))
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(VxeUIButtonComponent, {
435
- key: tIndex,
436
- ...Object.assign({}, item, {
437
- content: item.content || item.name,
438
- options: void 0
439
- }),
440
- onClick: (eventParams) => tolEvent(eventParams, item)
441
- }, dropdowns && dropdowns.length ? {
442
- dropdowns: () => renderDropdowns(item, false)
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("div", {
452
- class: "vxe-tool--prefix-wrapper"
453
- }, toolPrefixSlot ? getSlotVNs(toolPrefixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []),
454
- h("div", {
455
- class: "vxe-tool--item-wrapper"
456
- }, toolsSlot ? getSlotVNs(toolsSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs),
457
- h("div", {
458
- class: "vxe-tool--suffix-wrapper"
459
- }, toolSuffixSlot ? getSlotVNs(toolSuffixSlot({ tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : [])
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("div", {
536
- ref: refElem,
537
- class: ["vxe-toolbar", className ? XEUtils.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "", {
538
- [`size--${vSize}`]: vSize,
539
- "is--perfect": perfect,
540
- "is--loading": loading
541
- }]
542
- }, [
543
- h("div", {
544
- class: "vxe-buttons--wrapper"
545
- }, renderLeftBtns()),
546
- h("div", {
547
- class: "vxe-tools--wrapper"
548
- }, renderRightTools()),
549
- h("div", {
550
- class: "vxe-tools--operate"
551
- }, [
552
- props.import ? renderToolImport() : createCommentVNode(),
553
- props.export ? renderToolExport() : createCommentVNode(),
554
- props.print ? renderToolPrint() : createCommentVNode(),
555
- refresh ? renderToolRefresh() : createCommentVNode(),
556
- zoom && $xeGGWrapper ? renderToolZoom() : createCommentVNode(),
557
- custom ? renderToolCustom() : createCommentVNode()
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.d.ts CHANGED
@@ -82,5 +82,4 @@ export declare const modal: {
82
82
  */
83
83
  notification(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
84
84
  };
85
- export * from '@vxe-ui/core';
86
85
  export default VxeUI;
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from "@vxe-ui/core";
2
2
  import { getFuncText } from "./src/utils";
3
- const version = "4.23.7";
3
+ const version = "4.23.9";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
@@ -466,7 +466,6 @@ const modal = {
466
466
  return VxeUI.modal.notification(content, title, options);
467
467
  }
468
468
  };
469
- export * from "@vxe-ui/core";
470
469
  var ui_default = VxeUI;
471
470
  export {
472
471
  VXETable,
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
- appendTo: "",
237
- teleportTo: false,
238
- marginSize: 18,
239
- isMinWidth: true
240
- }, options);
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.7"}`;
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}` : "";
@@ -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): (T | D);
23
+ export declare function getDefaultConfig<T = any, D = any>(val1: T, def1: D): T | D;
@@ -1,3 +1,2 @@
1
1
  import VxeUI from '../ui';
2
- export * from '../ui';
3
2
  export default VxeUI;
@@ -1,5 +1,4 @@
1
1
  import VxeUI from "../ui";
2
- export * from "../ui";
3
2
  var v_x_e_table_default = VxeUI;
4
3
  export {
5
4
  v_x_e_table_default as default
@@ -33,7 +33,7 @@ __export(colgroup_exports, {
33
33
  default: () => colgroup_default
34
34
  });
35
35
  module.exports = __toCommonJS(colgroup_exports);
36
- var import_ui = require("../ui");
36
+ var import_core = require("@vxe-ui/core");
37
37
  var import_group = __toESM(require("../table/src/group"));
38
38
  const VxeColgroup = Object.assign({}, import_group.default, {
39
39
  install(app) {
@@ -41,10 +41,10 @@ const VxeColgroup = Object.assign({}, import_group.default, {
41
41
  app.component("VxeTableColgroup", import_group.default);
42
42
  }
43
43
  });
44
- if (import_ui.VxeUI.dynamicApp) {
45
- import_ui.VxeUI.dynamicApp.component(import_group.default.name, import_group.default);
46
- import_ui.VxeUI.dynamicApp.component("VxeTableColgroup", import_group.default);
44
+ if (import_core.VxeUI.dynamicApp) {
45
+ import_core.VxeUI.dynamicApp.component(import_group.default.name, import_group.default);
46
+ import_core.VxeUI.dynamicApp.component("VxeTableColgroup", import_group.default);
47
47
  }
48
- import_ui.VxeUI.component(import_group.default);
48
+ import_core.VxeUI.component(import_group.default);
49
49
  const Colgroup = VxeColgroup;
50
50
  var colgroup_default = VxeColgroup;
@@ -33,7 +33,7 @@ __export(column_exports, {
33
33
  default: () => column_default
34
34
  });
35
35
  module.exports = __toCommonJS(column_exports);
36
- var import_ui = require("../ui");
36
+ var import_core = require("@vxe-ui/core");
37
37
  var import_column = __toESM(require("../table/src/column"));
38
38
  const VxeColumn = Object.assign({}, import_column.default, {
39
39
  install(app) {
@@ -41,10 +41,10 @@ const VxeColumn = Object.assign({}, import_column.default, {
41
41
  app.component("VxeTableColumn", import_column.default);
42
42
  }
43
43
  });
44
- if (import_ui.VxeUI.dynamicApp) {
45
- import_ui.VxeUI.dynamicApp.component(import_column.default.name, import_column.default);
46
- import_ui.VxeUI.dynamicApp.component("VxeTableColumn", import_column.default);
44
+ if (import_core.VxeUI.dynamicApp) {
45
+ import_core.VxeUI.dynamicApp.component(import_column.default.name, import_column.default);
46
+ import_core.VxeUI.dynamicApp.component("VxeTableColumn", import_column.default);
47
47
  }
48
- import_ui.VxeUI.component(import_column.default);
48
+ import_core.VxeUI.component(import_column.default);
49
49
  const Column = VxeColumn;
50
50
  var column_default = VxeColumn;
package/lib/components.js CHANGED
@@ -29,9 +29,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var components_exports = {};
31
31
  __export(components_exports, {
32
+ VxeUI: () => import_core.VxeUI,
32
33
  install: () => install
33
34
  });
34
35
  module.exports = __toCommonJS(components_exports);
36
+ var import_core = require("@vxe-ui/core");
35
37
  var import_ui = require("./ui");
36
38
  var import_column = require("./column");
37
39
  var import_colgroup = require("./colgroup");
@@ -45,20 +47,14 @@ __reExport(components_exports, require("./column"), module.exports);
45
47
  __reExport(components_exports, require("./colgroup"), module.exports);
46
48
  __reExport(components_exports, require("./grid"), module.exports);
47
49
  __reExport(components_exports, require("./toolbar"), module.exports);
48
- const components = [
49
- import_column.VxeColumn,
50
- import_colgroup.VxeColgroup,
51
- import_grid.VxeGrid,
52
- import_table.VxeTable,
53
- import_toolbar.VxeToolbar
54
- ];
50
+ const components = [import_column.VxeColumn, import_colgroup.VxeColgroup, import_grid.VxeGrid, import_table.VxeTable, import_toolbar.VxeToolbar];
55
51
  function install(app, options) {
56
- import_ui.VxeUI.setConfig(options);
52
+ import_core.VxeUI.setConfig(options);
57
53
  components.forEach((component) => component.install(app));
58
54
  }
59
- if (!import_ui.VxeUI.hasLanguage("zh-CN")) {
55
+ if (!import_core.VxeUI.hasLanguage("zh-CN")) {
60
56
  const defaultLanguage = "zh-CN";
61
- import_ui.VxeUI.setI18n(defaultLanguage, import_zh_CN.default);
62
- import_ui.VxeUI.setLanguage(defaultLanguage);
57
+ import_core.VxeUI.setI18n(defaultLanguage, import_zh_CN.default);
58
+ import_core.VxeUI.setLanguage(defaultLanguage);
63
59
  }
64
- import_ui.VxeUI.setTheme("light");
60
+ import_core.VxeUI.setTheme("light");
package/lib/grid/index.js CHANGED
@@ -33,16 +33,16 @@ __export(grid_exports, {
33
33
  default: () => grid_default
34
34
  });
35
35
  module.exports = __toCommonJS(grid_exports);
36
- var import_ui = require("../ui");
36
+ var import_core = require("@vxe-ui/core");
37
37
  var import_grid = __toESM(require("./src/grid"));
38
38
  const VxeGrid = Object.assign({}, import_grid.default, {
39
39
  install(app) {
40
40
  app.component(import_grid.default.name, import_grid.default);
41
41
  }
42
42
  });
43
- if (import_ui.VxeUI.dynamicApp) {
44
- import_ui.VxeUI.dynamicApp.component(import_grid.default.name, import_grid.default);
43
+ if (import_core.VxeUI.dynamicApp) {
44
+ import_core.VxeUI.dynamicApp.component(import_grid.default.name, import_grid.default);
45
45
  }
46
- import_ui.VxeUI.component(import_grid.default);
46
+ import_core.VxeUI.component(import_grid.default);
47
47
  const Grid = VxeGrid;
48
48
  var grid_default = VxeGrid;
@@ -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"];