vxe-table 4.12.0-beta.9 → 4.12.0

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 (185) hide show
  1. package/es/grid/src/grid.js +45 -36
  2. package/es/locale/lang/ar-EG.js +7 -1
  3. package/es/locale/lang/de-DE.js +7 -1
  4. package/es/locale/lang/en-US.js +7 -1
  5. package/es/locale/lang/es-ES.js +7 -1
  6. package/es/locale/lang/fr-FR.js +7 -1
  7. package/es/locale/lang/hu-HU.js +7 -1
  8. package/es/locale/lang/hy-AM.js +7 -1
  9. package/es/locale/lang/id-ID.js +7 -1
  10. package/es/locale/lang/it-IT.js +7 -1
  11. package/es/locale/lang/ja-JP.js +7 -1
  12. package/es/locale/lang/ko-KR.js +7 -1
  13. package/es/locale/lang/nb-NO.js +7 -1
  14. package/es/locale/lang/pt-BR.js +7 -1
  15. package/es/locale/lang/ru-RU.js +7 -1
  16. package/es/locale/lang/th-TH.js +7 -1
  17. package/es/locale/lang/ug-CN.js +7 -1
  18. package/es/locale/lang/uk-UA.js +7 -1
  19. package/es/locale/lang/vi-VN.js +7 -1
  20. package/es/locale/lang/zh-CHT.js +7 -1
  21. package/es/locale/lang/zh-CN.js +7 -1
  22. package/es/style.css +1 -1
  23. package/es/table/module/custom/hook.js +1 -1
  24. package/es/table/module/custom/panel.js +4 -2
  25. package/es/table/module/edit/hook.js +11 -12
  26. package/es/table/module/export/export-panel.js +3 -2
  27. package/es/table/module/export/import-panel.js +3 -2
  28. package/es/table/module/filter/panel.js +12 -2
  29. package/es/table/module/keyboard/hook.js +105 -30
  30. package/es/table/module/menu/hook.js +2 -1
  31. package/es/table/module/validator/hook.js +4 -3
  32. package/es/table/render/index.js +3 -3
  33. package/es/table/src/body.js +40 -21
  34. package/es/table/src/cell.js +43 -24
  35. package/es/table/src/columnInfo.js +2 -2
  36. package/es/table/src/footer.js +12 -7
  37. package/es/table/src/header.js +12 -7
  38. package/es/table/src/props.js +4 -0
  39. package/es/table/src/table.js +435 -420
  40. package/es/table/src/util.js +34 -6
  41. package/es/ui/index.js +2 -1
  42. package/es/ui/src/log.js +1 -1
  43. package/helper/vetur/attributes.json +1 -1
  44. package/helper/vetur/tags.json +1 -1
  45. package/lib/grid/src/grid.js +42 -40
  46. package/lib/grid/src/grid.min.js +1 -1
  47. package/lib/index.umd.js +500 -292
  48. package/lib/index.umd.min.js +1 -1
  49. package/lib/locale/lang/ar-EG.js +7 -1
  50. package/lib/locale/lang/ar-EG.min.js +1 -1
  51. package/lib/locale/lang/de-DE.js +7 -1
  52. package/lib/locale/lang/de-DE.min.js +1 -1
  53. package/lib/locale/lang/en-US.js +7 -1
  54. package/lib/locale/lang/en-US.min.js +1 -1
  55. package/lib/locale/lang/en-US.umd.js +7 -1
  56. package/lib/locale/lang/es-ES.js +7 -1
  57. package/lib/locale/lang/es-ES.min.js +1 -1
  58. package/lib/locale/lang/es-ES.umd.js +7 -1
  59. package/lib/locale/lang/fr-FR.js +7 -1
  60. package/lib/locale/lang/fr-FR.min.js +1 -1
  61. package/lib/locale/lang/hu-HU.js +7 -1
  62. package/lib/locale/lang/hu-HU.min.js +1 -1
  63. package/lib/locale/lang/hu-HU.umd.js +7 -1
  64. package/lib/locale/lang/hy-AM.js +7 -1
  65. package/lib/locale/lang/hy-AM.min.js +1 -1
  66. package/lib/locale/lang/id-ID.js +7 -1
  67. package/lib/locale/lang/id-ID.min.js +1 -1
  68. package/lib/locale/lang/it-IT.js +7 -1
  69. package/lib/locale/lang/it-IT.min.js +1 -1
  70. package/lib/locale/lang/ja-JP.js +7 -1
  71. package/lib/locale/lang/ja-JP.min.js +1 -1
  72. package/lib/locale/lang/ja-JP.umd.js +7 -1
  73. package/lib/locale/lang/ko-KR.js +7 -1
  74. package/lib/locale/lang/ko-KR.min.js +1 -1
  75. package/lib/locale/lang/ko-KR.umd.js +7 -1
  76. package/lib/locale/lang/nb-NO.js +7 -1
  77. package/lib/locale/lang/nb-NO.min.js +1 -1
  78. package/lib/locale/lang/pt-BR.js +7 -1
  79. package/lib/locale/lang/pt-BR.min.js +1 -1
  80. package/lib/locale/lang/pt-BR.umd.js +7 -1
  81. package/lib/locale/lang/ru-RU.js +7 -1
  82. package/lib/locale/lang/ru-RU.min.js +1 -1
  83. package/lib/locale/lang/ru-RU.umd.js +7 -1
  84. package/lib/locale/lang/th-TH.js +7 -1
  85. package/lib/locale/lang/th-TH.min.js +1 -1
  86. package/lib/locale/lang/ug-CN.js +7 -1
  87. package/lib/locale/lang/ug-CN.min.js +1 -1
  88. package/lib/locale/lang/uk-UA.js +7 -1
  89. package/lib/locale/lang/uk-UA.min.js +1 -1
  90. package/lib/locale/lang/uk-UA.umd.js +7 -1
  91. package/lib/locale/lang/vi-VN.js +7 -1
  92. package/lib/locale/lang/vi-VN.min.js +1 -1
  93. package/lib/locale/lang/zh-CHT.js +7 -1
  94. package/lib/locale/lang/zh-CHT.min.js +1 -1
  95. package/lib/locale/lang/zh-CN.js +7 -1
  96. package/lib/locale/lang/zh-CN.min.js +1 -1
  97. package/lib/locale/lang/zh-CN.umd.js +7 -1
  98. package/lib/style.css +1 -1
  99. package/lib/table/module/custom/hook.js +1 -1
  100. package/lib/table/module/custom/hook.min.js +1 -1
  101. package/lib/table/module/custom/panel.js +4 -2
  102. package/lib/table/module/custom/panel.min.js +1 -1
  103. package/lib/table/module/edit/hook.js +13 -13
  104. package/lib/table/module/edit/hook.min.js +1 -1
  105. package/lib/table/module/export/export-panel.js +3 -2
  106. package/lib/table/module/export/export-panel.min.js +1 -1
  107. package/lib/table/module/export/import-panel.js +3 -2
  108. package/lib/table/module/export/import-panel.min.js +1 -1
  109. package/lib/table/module/filter/panel.js +8 -2
  110. package/lib/table/module/filter/panel.min.js +1 -1
  111. package/lib/table/module/keyboard/hook.js +113 -31
  112. package/lib/table/module/keyboard/hook.min.js +1 -1
  113. package/lib/table/module/menu/hook.js +2 -1
  114. package/lib/table/module/menu/hook.min.js +1 -1
  115. package/lib/table/module/validator/hook.js +5 -4
  116. package/lib/table/module/validator/hook.min.js +1 -1
  117. package/lib/table/render/index.js +4 -3
  118. package/lib/table/render/index.min.js +1 -1
  119. package/lib/table/src/body.js +48 -20
  120. package/lib/table/src/body.min.js +1 -1
  121. package/lib/table/src/cell.js +49 -25
  122. package/lib/table/src/cell.min.js +1 -1
  123. package/lib/table/src/columnInfo.js +2 -4
  124. package/lib/table/src/columnInfo.min.js +1 -1
  125. package/lib/table/src/footer.js +12 -5
  126. package/lib/table/src/footer.min.js +1 -1
  127. package/lib/table/src/header.js +12 -5
  128. package/lib/table/src/header.min.js +1 -1
  129. package/lib/table/src/props.js +4 -0
  130. package/lib/table/src/props.min.js +1 -1
  131. package/lib/table/src/table.js +523 -456
  132. package/lib/table/src/table.min.js +1 -1
  133. package/lib/table/src/util.js +36 -6
  134. package/lib/table/src/util.min.js +1 -1
  135. package/lib/ui/index.js +2 -1
  136. package/lib/ui/index.min.js +1 -1
  137. package/lib/ui/src/log.js +1 -1
  138. package/lib/ui/src/log.min.js +1 -1
  139. package/package.json +2 -2
  140. package/packages/grid/src/grid.ts +49 -42
  141. package/packages/locale/lang/ar-EG.ts +7 -1
  142. package/packages/locale/lang/de-DE.ts +7 -1
  143. package/packages/locale/lang/en-US.ts +7 -1
  144. package/packages/locale/lang/es-ES.ts +7 -1
  145. package/packages/locale/lang/fr-FR.ts +7 -1
  146. package/packages/locale/lang/hu-HU.ts +7 -1
  147. package/packages/locale/lang/hy-AM.ts +7 -1
  148. package/packages/locale/lang/id-ID.ts +7 -1
  149. package/packages/locale/lang/it-IT.ts +7 -1
  150. package/packages/locale/lang/ja-JP.ts +7 -1
  151. package/packages/locale/lang/ko-KR.ts +7 -1
  152. package/packages/locale/lang/nb-NO.ts +7 -1
  153. package/packages/locale/lang/pt-BR.ts +7 -1
  154. package/packages/locale/lang/ru-RU.ts +7 -1
  155. package/packages/locale/lang/th-TH.ts +7 -1
  156. package/packages/locale/lang/ug-CN.ts +7 -1
  157. package/packages/locale/lang/uk-UA.ts +7 -1
  158. package/packages/locale/lang/vi-VN.ts +7 -1
  159. package/packages/locale/lang/zh-CHT.ts +7 -1
  160. package/packages/locale/lang/zh-CN.ts +7 -1
  161. package/packages/table/module/custom/hook.ts +1 -1
  162. package/packages/table/module/custom/panel.ts +6 -2
  163. package/packages/table/module/edit/hook.ts +12 -12
  164. package/packages/table/module/export/export-panel.ts +4 -2
  165. package/packages/table/module/export/import-panel.ts +4 -2
  166. package/packages/table/module/filter/panel.ts +12 -2
  167. package/packages/table/module/keyboard/hook.ts +106 -32
  168. package/packages/table/module/menu/hook.ts +3 -1
  169. package/packages/table/module/validator/hook.ts +5 -3
  170. package/packages/table/render/index.ts +3 -4
  171. package/packages/table/src/body.ts +41 -21
  172. package/packages/table/src/cell.ts +43 -24
  173. package/packages/table/src/columnInfo.ts +3 -2
  174. package/packages/table/src/footer.ts +13 -7
  175. package/packages/table/src/header.ts +13 -7
  176. package/packages/table/src/props.ts +4 -0
  177. package/packages/table/src/table.ts +441 -418
  178. package/packages/table/src/util.ts +39 -6
  179. package/packages/ui/index.ts +1 -0
  180. /package/es/{iconfont.1741337003908.ttf → iconfont.1742955995631.ttf} +0 -0
  181. /package/es/{iconfont.1741337003908.woff → iconfont.1742955995631.woff} +0 -0
  182. /package/es/{iconfont.1741337003908.woff2 → iconfont.1742955995631.woff2} +0 -0
  183. /package/lib/{iconfont.1741337003908.ttf → iconfont.1742955995631.ttf} +0 -0
  184. /package/lib/{iconfont.1741337003908.woff → iconfont.1742955995631.woff} +0 -0
  185. /package/lib/{iconfont.1741337003908.woff2 → iconfont.1742955995631.woff2} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent, h, ref, computed, provide, reactive, onUnmounted, watch, nextTick, onMounted, createCommentVNode } from 'vue';
1
+ import { defineComponent, h, ref, computed, provide, reactive, onUnmounted, watch, nextTick, onMounted } from 'vue';
2
2
  import XEUtils from 'xe-utils';
3
3
  import { getLastZIndex, nextZIndex, isEnableConf } from '../../ui/src/utils';
4
4
  import { getOffsetHeight, getPaddingTopBottomSize, getDomNode, toCssUnit } from '../../ui/src/dom';
@@ -11,7 +11,7 @@ import { getSlotVNs } from '../../ui/src/vn';
11
11
  import { errLog } from '../../ui/src/log';
12
12
  const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
13
13
  const tableComponentPropKeys = Object.keys(tableComponentProps);
14
- const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'setSort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
14
+ const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'setSort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
15
15
  const gridComponentEmits = [
16
16
  ...tableComponentEmits,
17
17
  'page-change',
@@ -309,10 +309,10 @@ export default defineComponent({
309
309
  const proxyOpts = computeProxyOpts.value;
310
310
  tablePage.currentPage = currentPage;
311
311
  tablePage.pageSize = pageSize;
312
- gridMethods.dispatchEvent('page-change', params, $event);
312
+ $xeGrid.dispatchEvent('page-change', params, $event);
313
313
  if (proxyConfig && isEnableConf(proxyOpts)) {
314
- gridMethods.commitProxy('query').then((rest) => {
315
- gridMethods.dispatchEvent('proxy-query', rest, $event);
314
+ $xeGrid.commitProxy('query').then((rest) => {
315
+ $xeGrid.dispatchEvent('proxy-query', rest, $event);
316
316
  });
317
317
  }
318
318
  };
@@ -355,6 +355,9 @@ export default defineComponent({
355
355
  const submitFormEvent = (params) => {
356
356
  const { proxyConfig } = props;
357
357
  const proxyOpts = computeProxyOpts.value;
358
+ if (reactData.tableLoading) {
359
+ return;
360
+ }
358
361
  if (proxyConfig && isEnableConf(proxyOpts)) {
359
362
  gridMethods.commitProxy('reload').then((rest) => {
360
363
  gridMethods.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), params.$event);
@@ -416,6 +419,25 @@ export default defineComponent({
416
419
  }
417
420
  return null;
418
421
  };
422
+ const getConfigSlot = (slotConfigs) => {
423
+ const slotConf = {};
424
+ XEUtils.objectMap(slotConfigs, (slotFunc, slotKey) => {
425
+ if (slotFunc) {
426
+ if (XEUtils.isString(slotFunc)) {
427
+ if (slots[slotFunc]) {
428
+ slotConf[slotKey] = slots[slotFunc];
429
+ }
430
+ else {
431
+ errLog('vxe.error.notSlot', [slotFunc]);
432
+ }
433
+ }
434
+ else {
435
+ slotConf[slotKey] = slotFunc;
436
+ }
437
+ }
438
+ });
439
+ return slotConf;
440
+ };
419
441
  /**
420
442
  * 渲染表单
421
443
  */
@@ -464,7 +486,7 @@ export default defineComponent({
464
486
  class: 'vxe-grid--form-wrapper'
465
487
  }, slotVNs);
466
488
  }
467
- return createCommentVNode();
489
+ return renderEmptyElement($xeGrid);
468
490
  };
469
491
  /**
470
492
  * 渲染工具栏
@@ -500,7 +522,7 @@ export default defineComponent({
500
522
  class: 'vxe-grid--toolbar-wrapper'
501
523
  }, slotVNs);
502
524
  }
503
- return createCommentVNode();
525
+ return renderEmptyElement($xeGrid);
504
526
  };
505
527
  /**
506
528
  * 渲染表格顶部区域
@@ -513,7 +535,7 @@ export default defineComponent({
513
535
  class: 'vxe-grid--top-wrapper'
514
536
  }, slots.top({ $grid: $xeGrid }));
515
537
  }
516
- return createCommentVNode();
538
+ return renderEmptyElement($xeGrid);
517
539
  };
518
540
  const renderTableLeft = () => {
519
541
  const leftSlot = slots.left;
@@ -522,7 +544,7 @@ export default defineComponent({
522
544
  class: 'vxe-grid--left-wrapper'
523
545
  }, leftSlot({ $grid: $xeGrid }));
524
546
  }
525
- return createCommentVNode();
547
+ return renderEmptyElement($xeGrid);
526
548
  };
527
549
  const renderTableRight = () => {
528
550
  const rightSlot = slots.right;
@@ -531,7 +553,7 @@ export default defineComponent({
531
553
  class: 'vxe-grid--right-wrapper'
532
554
  }, rightSlot({ $grid: $xeGrid }));
533
555
  }
534
- return createCommentVNode();
556
+ return renderEmptyElement($xeGrid);
535
557
  };
536
558
  /**
537
559
  * 渲染表格
@@ -583,7 +605,7 @@ export default defineComponent({
583
605
  class: 'vxe-grid--bottom-wrapper'
584
606
  }, slots.bottom({ $grid: $xeGrid }));
585
607
  }
586
- return createCommentVNode();
608
+ return renderEmptyElement($xeGrid);
587
609
  };
588
610
  /**
589
611
  * 渲染分页
@@ -592,37 +614,21 @@ export default defineComponent({
592
614
  const { proxyConfig, pagerConfig } = props;
593
615
  const proxyOpts = computeProxyOpts.value;
594
616
  const pagerOpts = computePagerOpts.value;
617
+ const pagerSlot = slots.pager;
595
618
  if ((pagerConfig && isEnableConf(pagerOpts)) || slots.pager) {
596
- let slotVNs = [];
597
- if (slots.pager) {
598
- slotVNs = slots.pager({ $grid: $xeGrid });
599
- }
600
- else {
601
- const pagerOptSlots = pagerOpts.slots;
602
- const pagerSlots = {};
603
- let leftSlot;
604
- let rightSlot;
605
- if (pagerOptSlots) {
606
- leftSlot = getFuncSlot(pagerOptSlots, 'left');
607
- rightSlot = getFuncSlot(pagerOptSlots, 'right');
608
- if (leftSlot) {
609
- pagerSlots.left = leftSlot;
610
- }
611
- if (rightSlot) {
612
- pagerSlots.right = rightSlot;
613
- }
614
- }
615
- if (VxeUIPagerComponent) {
616
- slotVNs.push(h(VxeUIPagerComponent, Object.assign(Object.assign(Object.assign({ ref: refPager }, pagerOpts), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})), { onPageChange: pageChangeEvent }), pagerSlots));
617
- }
618
- }
619
619
  return h('div', {
620
620
  ref: refPagerWrapper,
621
621
  key: 'pager',
622
622
  class: 'vxe-grid--pager-wrapper'
623
- }, slotVNs);
623
+ }, pagerSlot
624
+ ? pagerSlot({ $grid: $xeGrid })
625
+ : [
626
+ VxeUIPagerComponent
627
+ ? h(VxeUIPagerComponent, Object.assign(Object.assign(Object.assign({ ref: refPager }, pagerOpts), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})), { onPageChange: pageChangeEvent }), getConfigSlot(pagerOpts.slots))
628
+ : renderEmptyElement($xeGrid)
629
+ ]);
624
630
  }
625
- return createCommentVNode();
631
+ return renderEmptyElement($xeGrid);
626
632
  };
627
633
  const renderChildLayout = (layoutKeys) => {
628
634
  const childVNs = [];
@@ -813,6 +819,9 @@ export default defineComponent({
813
819
  if (ajaxMethods) {
814
820
  const isInited = code === '_init';
815
821
  const isReload = code === 'reload';
822
+ if (!isInited && reactData.tableLoading) {
823
+ return nextTick();
824
+ }
816
825
  let sortList = [];
817
826
  let filterList = [];
818
827
  let pageParams = {};
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '树表格不支持导入',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'لا توجد بيانات حتى الآن',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '冻结在右侧',
238
239
  cancelFixed: '取消冻结列'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '清除排序',
675
681
  sortAsc: '升序',
676
682
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'Baumtabellen unterstützen den Import nicht',
52
52
  treeCrossDrag: 'Nur die erste Ebene kann gezogen werden',
53
53
  treeDragChild: 'Ein übergeordnetes Element kann nicht in seine eigenen untergeordneten Elemente gezogen werden',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'Noch keine Daten',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'rechts eingefroren',
238
239
  cancelFixed: 'Spalte freigeben'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} Jahre'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'Januar',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: 'Klare Sortierung',
571
576
  sortAsc: 'Aufsteigende Reihenfolge',
572
577
  sortDesc: 'absteigende Reihenfolge',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: 'Klare Sortierung',
675
681
  sortAsc: 'Aufsteigende Reihenfolge',
676
682
  sortDesc: 'absteigende Reihenfolge',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'Tree tables do not support importing',
52
52
  treeCrossDrag: 'Only the first level can be dragged',
53
53
  treeDragChild: 'A parent cannot be dragged into its own children',
54
- reqPlugin: 'Extension plugin not installed "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: 'Extension plugin not installed "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: 'The maximum supported data volume {0} line is exceeded, which may cause an error.'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'No data yet',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'frozen on right',
238
239
  cancelFixed: 'Unfreeze column'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} years'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'January',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: 'Sort',
570
575
  clearSort: 'Clear sort',
571
576
  sortAsc: 'Ascending order',
572
577
  sortDesc: 'descending order',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: 'Sort',
674
680
  clearSort: 'Clear sort',
675
681
  sortAsc: 'Ascending order',
676
682
  sortDesc: 'descending order',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'La tabla de árbol no soporta importación.',
52
52
  treeCrossDrag: 'Only drag and drop the first level',
53
53
  treeDragChild: 'The parent cannot be dragged into its own child',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'No hay datos',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'Freeze on the right',
238
239
  cancelFixed: 'Unfreeze column'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0}'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'Enero',
@@ -570,6 +574,7 @@ export default {
570
574
  },
571
575
  filterCombination: {
572
576
  menus: {
577
+ sort: '排序',
573
578
  clearSort: '清除排序',
574
579
  sortAsc: '升序',
575
580
  sortDesc: '降序',
@@ -637,6 +642,7 @@ export default {
637
642
  },
638
643
  combination: {
639
644
  menus: {
645
+ sort: '排序',
640
646
  clearSort: 'Limpiar ordenamiento',
641
647
  sortAsc: 'Orden ascendente',
642
648
  sortDesc: 'Orden descendente',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '树表格不支持导入',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: "Aucune donnée pour l'instant",
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '冻结在右侧',
238
239
  cancelFixed: '取消冻结列'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '清除排序',
675
681
  sortAsc: '升序',
676
682
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'A fatáblák nem támogatják az importálást',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'Még nincsenek adatok',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'lefagyott a jobb oldalon',
238
239
  cancelFixed: 'Oldja fel az oszlopot'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} év'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'január',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: 'Tiszta rendezés',
571
576
  sortAsc: 'Növekvő sorrend',
572
577
  sortDesc: 'csökkenő sorrendben',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: 'Tiszta rendezés',
675
681
  sortAsc: 'Növekvő sorrend',
676
682
  sortDesc: 'csökkenő sorrendben',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '树表格不支持导入',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: '暂无数据',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '冻结在右侧',
238
239
  cancelFixed: '取消冻结列'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '清除排序',
675
681
  sortAsc: '升序',
676
682
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '树表格不支持导入',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: '暂无数据',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '冻结在右侧',
238
239
  cancelFixed: '取消冻结列'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '清除排序',
675
681
  sortAsc: '升序',
676
682
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: "Le tabelle dell'albero non supportano l'importazione",
52
52
  treeCrossDrag: 'È possibile trascinare solo il primo livello',
53
53
  treeDragChild: 'Un genitore non può essere trascinato nei propri figli',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'Nessun dato ancora',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'congelato a destra',
238
239
  cancelFixed: 'Sblocca colonna'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} anni'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'Gennaio',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: 'Ordinamento chiaro',
571
576
  sortAsc: 'Ordine crescente',
572
577
  sortDesc: 'ordine decrescente',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: 'Ordinamento chiaro',
675
681
  sortAsc: 'Ordine crescente',
676
682
  sortDesc: 'ordine decrescente',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'ツリーテーブルはインポートをサポートしていません',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'データがありません',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '右側に固定',
238
239
  cancelFixed: '列固定を取消'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '1月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: 'ソートクリア',
571
576
  sortAsc: '昇順',
572
577
  sortDesc: '降順',
@@ -630,6 +635,7 @@ export default {
630
635
  },
631
636
  combination: {
632
637
  menus: {
638
+ sort: '排序',
633
639
  clearSort: '清除排序',
634
640
  sortAsc: '升序',
635
641
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '트리 테이블은 가져오기를 지원하지 않습니다.',
52
52
  treeCrossDrag: '첫 번째 계층만 드래그할 수 있습니다.',
53
53
  treeDragChild: '부모 항목은 자신의 하위 항목으로 드래그할 수 없습니다.',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: '데이터가 없습니다.',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '오른쪽에 고정',
238
239
  cancelFixed: '고정 해제'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 년'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 월',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '정렬 지우기',
571
576
  sortAsc: '오름차순',
572
577
  sortDesc: '내림차순',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '정렬 지우기',
675
681
  sortAsc: '오름차순',
676
682
  sortDesc: '내림차순',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: '树表格不支持导入',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'Ingen data ennå',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: '冻结在右侧',
238
239
  cancelFixed: '取消冻结列'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} 年'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: '01 月',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -671,6 +676,7 @@ export default {
671
676
  },
672
677
  combination: {
673
678
  menus: {
679
+ sort: '排序',
674
680
  clearSort: '清除排序',
675
681
  sortAsc: '升序',
676
682
  sortDesc: '降序',
@@ -51,7 +51,8 @@ export default {
51
51
  treeNotImp: 'A tabela de árvore não suporta importação.',
52
52
  treeCrossDrag: '只能拖拽第一层级',
53
53
  treeDragChild: '父级不能拖拽到自己的子级中',
54
- reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install'
54
+ reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
55
+ errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
55
56
  },
56
57
  table: {
57
58
  emptyText: 'Sem dados',
@@ -237,6 +238,9 @@ export default {
237
238
  fixedRight: 'Freeze on the right',
238
239
  cancelFixed: 'Unfreeze column'
239
240
  },
241
+ datePicker: {
242
+ yearTitle: '{0} лет'
243
+ },
240
244
  input: {
241
245
  date: {
242
246
  m1: 'Janeiro',
@@ -567,6 +571,7 @@ export default {
567
571
  },
568
572
  filterCombination: {
569
573
  menus: {
574
+ sort: '排序',
570
575
  clearSort: '清除排序',
571
576
  sortAsc: '升序',
572
577
  sortDesc: '降序',
@@ -630,6 +635,7 @@ export default {
630
635
  },
631
636
  combination: {
632
637
  menus: {
638
+ sort: '排序',
633
639
  clearSort: 'Limpar ordenação',
634
640
  sortAsc: 'Ordem ascendente',
635
641
  sortDesc: 'Ordem descendente',