vxe-table 4.7.79 → 4.7.81

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 (117) hide show
  1. package/README.ja-JP.md +1 -1
  2. package/README.md +1 -1
  3. package/es/grid/src/grid.js +17 -10
  4. package/es/locale/lang/en-US.js +0 -7
  5. package/es/locale/lang/hu-HU.d.ts +2 -0
  6. package/es/locale/lang/hu-HU.js +496 -501
  7. package/es/locale/lang/ja-JP.js +0 -7
  8. package/es/locale/lang/ko-KR.d.ts +2 -0
  9. package/es/locale/lang/ko-KR.js +0 -7
  10. package/es/locale/lang/pt-BR.js +0 -7
  11. package/es/locale/lang/ru-RU.d.ts +2 -0
  12. package/es/locale/lang/ru-RU.js +496 -503
  13. package/es/locale/lang/uk-UA.d.ts +2 -0
  14. package/es/locale/lang/uk-UA.js +666 -0
  15. package/es/locale/lang/vi-VN.js +0 -7
  16. package/es/locale/lang/zh-CHT.js +666 -0
  17. package/es/locale/lang/zh-CN.js +0 -7
  18. package/es/locale/lang/zh-HK.js +2 -2
  19. package/es/locale/lang/zh-MO.js +2 -2
  20. package/es/locale/lang/zh-TC.js +2 -673
  21. package/es/locale/lang/zh-TW.js +2 -2
  22. package/es/style.css +1 -1
  23. package/es/style.min.css +1 -1
  24. package/es/table/render/index.js +2 -10
  25. package/es/table/src/table.js +18 -7
  26. package/es/table/style.css +2 -2
  27. package/es/table/style.min.css +1 -1
  28. package/es/toolbar/src/toolbar.js +5 -0
  29. package/es/ui/index.js +2 -2
  30. package/es/ui/src/log.js +1 -1
  31. package/es/vxe-table/style.css +2 -2
  32. package/es/vxe-table/style.min.css +1 -1
  33. package/lib/grid/src/grid.js +18 -11
  34. package/lib/grid/src/grid.min.js +1 -1
  35. package/lib/index.umd.js +45 -38
  36. package/lib/index.umd.min.js +1 -1
  37. package/lib/locale/lang/en-US.js +0 -7
  38. package/lib/locale/lang/en-US.umd.js +0 -7
  39. package/lib/locale/lang/hu-HU.d.ts +2 -0
  40. package/lib/locale/lang/hu-HU.js +496 -501
  41. package/lib/locale/lang/hu-HU.min.js +1 -1
  42. package/lib/locale/lang/hu-HU.umd.js +686 -0
  43. package/lib/locale/lang/ja-JP.js +0 -7
  44. package/lib/locale/lang/ja-JP.umd.js +0 -7
  45. package/lib/locale/lang/ko-KR.d.ts +2 -0
  46. package/lib/locale/lang/ko-KR.js +0 -7
  47. package/lib/locale/lang/ko-KR.min.js +1 -1
  48. package/lib/locale/lang/ko-KR.umd.js +686 -0
  49. package/lib/locale/lang/pt-BR.js +0 -7
  50. package/lib/locale/lang/pt-BR.umd.js +0 -7
  51. package/lib/locale/lang/ru-RU.d.ts +2 -0
  52. package/lib/locale/lang/ru-RU.js +496 -503
  53. package/lib/locale/lang/ru-RU.min.js +1 -1
  54. package/lib/locale/lang/ru-RU.umd.js +686 -0
  55. package/lib/locale/lang/uk-UA.d.ts +2 -0
  56. package/lib/locale/lang/uk-UA.js +672 -0
  57. package/lib/locale/lang/uk-UA.min.js +1 -0
  58. package/lib/locale/lang/uk-UA.umd.js +686 -0
  59. package/lib/locale/lang/vi-VN.js +0 -7
  60. package/lib/locale/lang/zh-CHT.js +672 -0
  61. package/lib/locale/lang/zh-CHT.min.js +1 -0
  62. package/lib/locale/lang/zh-CN.js +0 -7
  63. package/lib/locale/lang/zh-CN.umd.js +0 -7
  64. package/lib/locale/lang/zh-HK.js +2 -2
  65. package/lib/locale/lang/zh-HK.min.js +1 -1
  66. package/lib/locale/lang/zh-HK.umd.js +7 -677
  67. package/lib/locale/lang/zh-MO.js +2 -2
  68. package/lib/locale/lang/zh-MO.min.js +1 -1
  69. package/lib/locale/lang/zh-MO.umd.js +7 -677
  70. package/lib/locale/lang/zh-TC.js +3 -673
  71. package/lib/locale/lang/zh-TC.min.js +1 -1
  72. package/lib/locale/lang/zh-TC.umd.js +7 -677
  73. package/lib/locale/lang/zh-TW.js +2 -2
  74. package/lib/locale/lang/zh-TW.min.js +1 -1
  75. package/lib/locale/lang/zh-TW.umd.js +7 -677
  76. package/lib/style.css +1 -1
  77. package/lib/style.min.css +1 -1
  78. package/lib/table/render/index.js +2 -10
  79. package/lib/table/render/index.min.js +1 -1
  80. package/lib/table/src/table.js +17 -7
  81. package/lib/table/src/table.min.js +1 -1
  82. package/lib/table/style/style.css +2 -2
  83. package/lib/table/style/style.min.css +1 -1
  84. package/lib/toolbar/src/toolbar.js +5 -0
  85. package/lib/toolbar/src/toolbar.min.js +1 -1
  86. package/lib/ui/index.js +2 -2
  87. package/lib/ui/index.min.js +1 -1
  88. package/lib/ui/src/log.js +1 -1
  89. package/lib/ui/src/log.min.js +1 -1
  90. package/lib/vxe-table/style/style.css +2 -2
  91. package/lib/vxe-table/style/style.min.css +1 -1
  92. package/package.json +4 -4
  93. package/packages/grid/src/grid.ts +16 -9
  94. package/packages/locale/lang/en-US.ts +0 -9
  95. package/packages/locale/lang/hu-HU.ts +496 -503
  96. package/packages/locale/lang/ja-JP.ts +0 -9
  97. package/packages/locale/lang/ko-KR.ts +0 -9
  98. package/packages/locale/lang/pt-BR.ts +0 -9
  99. package/packages/locale/lang/ru-RU.ts +496 -505
  100. package/packages/locale/lang/uk-UA.ts +666 -0
  101. package/packages/locale/lang/vi-VN.ts +0 -9
  102. package/packages/locale/lang/zh-CHT.ts +666 -0
  103. package/packages/locale/lang/zh-CN.ts +0 -9
  104. package/packages/locale/lang/zh-HK.ts +2 -2
  105. package/packages/locale/lang/zh-MO.ts +2 -2
  106. package/packages/locale/lang/zh-TC.ts +2 -674
  107. package/packages/locale/lang/zh-TW.ts +2 -2
  108. package/packages/table/render/index.ts +2 -10
  109. package/packages/table/src/table.ts +17 -7
  110. package/packages/toolbar/src/toolbar.ts +5 -0
  111. package/styles/components/table.scss +2 -2
  112. /package/es/{iconfont.1726116305532.ttf → iconfont.1727054403308.ttf} +0 -0
  113. /package/es/{iconfont.1726116305532.woff → iconfont.1727054403308.woff} +0 -0
  114. /package/es/{iconfont.1726116305532.woff2 → iconfont.1727054403308.woff2} +0 -0
  115. /package/lib/{iconfont.1726116305532.ttf → iconfont.1727054403308.ttf} +0 -0
  116. /package/lib/{iconfont.1726116305532.woff → iconfont.1727054403308.woff} +0 -0
  117. /package/lib/{iconfont.1726116305532.woff2 → iconfont.1727054403308.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -1998,9 +1998,9 @@ function eqEmptyValue(cellValue) {
1998
1998
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1999
1999
 
2000
2000
 
2001
- const version = "4.7.79";
2001
+ const version = "4.7.81";
2002
2002
  core_.VxeUI.version = version;
2003
- core_.VxeUI.tableVersion = "4.7.79";
2003
+ core_.VxeUI.tableVersion = "4.7.81";
2004
2004
  core_.VxeUI.setConfig({
2005
2005
  emptyCell: ' ',
2006
2006
  table: {
@@ -2382,7 +2382,7 @@ var es_array_push = __webpack_require__(4114);
2382
2382
  const {
2383
2383
  log: log_log
2384
2384
  } = core_.VxeUI;
2385
- const log_version = `table v${"4.7.79"}`;
2385
+ const log_version = `table v${"4.7.81"}`;
2386
2386
  const warnLog = log_log.create('warn', log_version);
2387
2387
  const errLog = log_log.create('error', log_version);
2388
2388
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -8806,7 +8806,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
8806
8806
  const computeRowOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8807
8807
  return Object.assign({}, table_getConfig().table.rowConfig, props.rowConfig);
8808
8808
  });
8809
- const computeResizeleOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8809
+ const computeResizeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8810
8810
  return Object.assign({}, table_getConfig().table.resizeConfig, props.resizeConfig);
8811
8811
  });
8812
8812
  const computeResizableOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
@@ -9034,7 +9034,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9034
9034
  computeSYOpts,
9035
9035
  computeColumnOpts,
9036
9036
  computeRowOpts,
9037
- computeResizeleOpts,
9037
+ computeResizeOpts,
9038
9038
  computeResizableOpts,
9039
9039
  computeSeqOpts,
9040
9040
  computeRadioOpts,
@@ -9575,10 +9575,20 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9575
9575
  paddingSize = Math.floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingLeft) + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingRight)) + 2;
9576
9576
  }
9577
9577
  let colWidth = column.renderAutoWidth - paddingSize;
9578
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, cellEl => {
9579
- const labelEl = cellEl.firstChild;
9580
- if (labelEl) {
9581
- colWidth = Math.max(colWidth, Math.ceil(labelEl.offsetWidth) + 4);
9578
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, itemEl => {
9579
+ const cellEl = itemEl;
9580
+ const thElem = cellEl.parentNode;
9581
+ let titleWidth = 0;
9582
+ if (`${thElem.tagName}`.toLowerCase() === 'th') {
9583
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellEl.children, btnEl => {
9584
+ titleWidth += btnEl.offsetWidth + 1;
9585
+ });
9586
+ } else {
9587
+ const labelEl = cellEl.firstChild;
9588
+ titleWidth = labelEl.offsetWidth;
9589
+ }
9590
+ if (titleWidth) {
9591
+ colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4);
9582
9592
  }
9583
9593
  });
9584
9594
  column.renderAutoWidth = colWidth + paddingSize;
@@ -16420,7 +16430,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16420
16430
  updateStyle();
16421
16431
  });
16422
16432
  if (props.autoResize) {
16423
- const resizeOpts = computeResizeleOpts.value;
16433
+ const resizeOpts = computeResizeOpts.value;
16424
16434
  const {
16425
16435
  refreshDelay
16426
16436
  } = resizeOpts;
@@ -21568,7 +21578,7 @@ function getFormatDate(value, props, defaultFormat) {
21568
21578
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
21569
21579
  }
21570
21580
  function getLabelFormatDate(value, props) {
21571
- return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type}`));
21581
+ return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type || 'date'}`));
21572
21582
  }
21573
21583
  /**
21574
21584
  * 已废弃
@@ -22263,15 +22273,7 @@ render_renderer.mixin({
22263
22273
  } = params;
22264
22274
  let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
22265
22275
  if (cellValue) {
22266
- switch (props.type) {
22267
- case 'date':
22268
- case 'week':
22269
- case 'month':
22270
- case 'quarter':
22271
- case 'year':
22272
- cellValue = getLabelFormatDate(cellValue, props);
22273
- break;
22274
- }
22276
+ cellValue = getLabelFormatDate(cellValue, props);
22275
22277
  }
22276
22278
  return getCellLabelVNs(renderOpts, params, cellValue);
22277
22279
  },
@@ -22864,6 +22866,8 @@ const {
22864
22866
  round: child.round,
22865
22867
  status: child.status,
22866
22868
  content: child.name,
22869
+ routerLink: item.routerLink,
22870
+ permissionCode: item.permissionCode,
22867
22871
  onClick: ({
22868
22872
  $event
22869
22873
  }) => isBtn ? btnEvent($event, child) : tolEvent($event, child)
@@ -22914,6 +22918,7 @@ const {
22914
22918
  round: item.round,
22915
22919
  status: item.status,
22916
22920
  content: item.name,
22921
+ routerLink: item.routerLink,
22917
22922
  permissionCode: item.permissionCode,
22918
22923
  destroyOnClose: item.destroyOnClose,
22919
22924
  placement: item.placement,
@@ -22976,6 +22981,8 @@ const {
22976
22981
  round: item.round,
22977
22982
  status: item.status,
22978
22983
  content: item.name,
22984
+ routerLink: item.routerLink,
22985
+ permissionCode: item.permissionCode,
22979
22986
  destroyOnClose: item.destroyOnClose,
22980
22987
  placement: item.placement,
22981
22988
  transfer: item.transfer,
@@ -24065,11 +24072,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
24065
24072
  }
24066
24073
  }
24067
24074
  if (isInited) {
24068
- const {
24069
- computeSortOpts
24070
- } = $xeTable.getComputeMaps();
24071
- const sortOpts = computeSortOpts.value;
24072
- let defaultSort = sortOpts.defaultSort;
24075
+ let defaultSort = null;
24076
+ if ($xeTable) {
24077
+ const {
24078
+ computeSortOpts
24079
+ } = $xeTable.getComputeMaps();
24080
+ const sortOpts = computeSortOpts.value;
24081
+ defaultSort = sortOpts.defaultSort;
24082
+ }
24073
24083
  // 如果使用默认排序
24074
24084
  if (defaultSort) {
24075
24085
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(defaultSort)) {
@@ -24083,14 +24093,18 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
24083
24093
  };
24084
24094
  });
24085
24095
  }
24086
- filterList = $xeTable.getCheckedFilters();
24087
- } else {
24088
- if (isReload) {
24089
- $xeTable.clearAll();
24090
- } else {
24091
- sortList = $xeTable.getSortColumns();
24096
+ if ($xeTable) {
24092
24097
  filterList = $xeTable.getCheckedFilters();
24093
24098
  }
24099
+ } else {
24100
+ if ($xeTable) {
24101
+ if (isReload) {
24102
+ $xeTable.clearAll();
24103
+ } else {
24104
+ sortList = $xeTable.getSortColumns();
24105
+ filterList = $xeTable.getCheckedFilters();
24106
+ }
24107
+ }
24094
24108
  }
24095
24109
  const commitParams = {
24096
24110
  code,
@@ -25139,9 +25153,6 @@ const Grid = VxeGrid;
25139
25153
  ss: '秒'
25140
25154
  }
25141
25155
  },
25142
- /**
25143
- * 扩展插件
25144
- */
25145
25156
  plugins: {
25146
25157
  extendCellArea: {
25147
25158
  area: {
@@ -25246,10 +25257,6 @@ const Grid = VxeGrid;
25246
25257
  notData: '无匹配项'
25247
25258
  }
25248
25259
  },
25249
- /**
25250
- * 以下废弃
25251
- * @deprecated
25252
- */
25253
25260
  pro: {
25254
25261
  area: {
25255
25262
  mergeErr: '无法对合并单元格进行该操作',