vxe-table 4.7.63 → 4.7.65

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 (74) hide show
  1. package/es/locale/lang/en-US.js +13 -7
  2. package/es/locale/lang/es-ES.js +13 -7
  3. package/es/locale/lang/hu-HU.js +621 -0
  4. package/es/locale/lang/ja-JP.js +13 -7
  5. package/es/locale/lang/ko-KR.js +631 -0
  6. package/es/locale/lang/pt-BR.js +13 -7
  7. package/es/locale/lang/ru-RU.js +631 -0
  8. package/es/locale/lang/vi-VN.js +631 -0
  9. package/es/locale/lang/zh-CN.js +13 -7
  10. package/es/locale/lang/zh-TC.js +71 -65
  11. package/es/style.css +1 -1
  12. package/es/table/src/table.js +20 -8
  13. package/es/ui/index.js +6 -4
  14. package/es/ui/src/log.js +1 -1
  15. package/lib/index.umd.js +41 -18
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/locale/lang/en-US.js +13 -7
  18. package/lib/locale/lang/en-US.min.js +1 -1
  19. package/lib/locale/lang/en-US.umd.js +13 -7
  20. package/lib/locale/lang/es-ES.js +13 -7
  21. package/lib/locale/lang/es-ES.min.js +1 -1
  22. package/lib/locale/lang/es-ES.umd.js +13 -7
  23. package/lib/locale/lang/hu-HU.js +627 -0
  24. package/lib/locale/lang/hu-HU.min.js +1 -0
  25. package/lib/locale/lang/ja-JP.js +13 -7
  26. package/lib/locale/lang/ja-JP.min.js +1 -1
  27. package/lib/locale/lang/ja-JP.umd.js +13 -7
  28. package/lib/locale/lang/ko-KR.js +637 -0
  29. package/lib/locale/lang/ko-KR.min.js +1 -0
  30. package/lib/locale/lang/pt-BR.js +13 -7
  31. package/lib/locale/lang/pt-BR.min.js +1 -1
  32. package/lib/locale/lang/pt-BR.umd.js +13 -7
  33. package/lib/locale/lang/ru-RU.js +637 -0
  34. package/lib/locale/lang/ru-RU.min.js +1 -0
  35. package/lib/locale/lang/vi-VN.js +637 -0
  36. package/lib/locale/lang/vi-VN.min.js +1 -0
  37. package/lib/locale/lang/zh-CN.js +13 -7
  38. package/lib/locale/lang/zh-CN.min.js +1 -1
  39. package/lib/locale/lang/zh-CN.umd.js +13 -7
  40. package/lib/locale/lang/zh-HK.min.js +1 -1
  41. package/lib/locale/lang/zh-HK.umd.js +71 -65
  42. package/lib/locale/lang/zh-MO.min.js +1 -1
  43. package/lib/locale/lang/zh-MO.umd.js +71 -65
  44. package/lib/locale/lang/zh-TC.js +71 -65
  45. package/lib/locale/lang/zh-TC.min.js +1 -1
  46. package/lib/locale/lang/zh-TC.umd.js +71 -65
  47. package/lib/locale/lang/zh-TW.min.js +1 -1
  48. package/lib/locale/lang/zh-TW.umd.js +71 -65
  49. package/lib/style.css +1 -1
  50. package/lib/table/src/table.js +21 -6
  51. package/lib/table/src/table.min.js +1 -1
  52. package/lib/ui/index.js +10 -8
  53. package/lib/ui/index.min.js +1 -1
  54. package/lib/ui/src/log.js +1 -1
  55. package/lib/ui/src/log.min.js +1 -1
  56. package/package.json +2 -2
  57. package/packages/locale/lang/en-US.ts +13 -7
  58. package/packages/locale/lang/es-ES.ts +13 -7
  59. package/packages/locale/lang/hu-HU.ts +623 -0
  60. package/packages/locale/lang/ja-JP.ts +13 -7
  61. package/packages/locale/lang/ko-KR.ts +633 -0
  62. package/packages/locale/lang/pt-BR.ts +13 -7
  63. package/packages/locale/lang/ru-RU.ts +633 -0
  64. package/packages/locale/lang/vi-VN.ts +633 -0
  65. package/packages/locale/lang/zh-CN.ts +13 -7
  66. package/packages/locale/lang/zh-TC.ts +71 -65
  67. package/packages/table/src/table.ts +19 -8
  68. package/packages/ui/index.ts +4 -3
  69. /package/es/{iconfont.1723112033726.ttf → iconfont.1723521776225.ttf} +0 -0
  70. /package/es/{iconfont.1723112033726.woff → iconfont.1723521776225.woff} +0 -0
  71. /package/es/{iconfont.1723112033726.woff2 → iconfont.1723521776225.woff2} +0 -0
  72. /package/lib/{iconfont.1723112033726.ttf → iconfont.1723521776225.ttf} +0 -0
  73. /package/lib/{iconfont.1723112033726.woff → iconfont.1723521776225.woff} +0 -0
  74. /package/lib/{iconfont.1723112033726.woff2 → iconfont.1723521776225.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -1951,9 +1951,9 @@ function eqEmptyValue(cellValue) {
1951
1951
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1952
1952
 
1953
1953
 
1954
- const version = "4.7.63";
1954
+ const version = "4.7.65";
1955
1955
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.63";
1956
+ core_.VxeUI.tableVersion = "4.7.65";
1957
1957
  core_.VxeUI.setConfig({
1958
1958
  emptyCell: ' ',
1959
1959
  table: {
@@ -2217,6 +2217,7 @@ const use = core_.VxeUI.use;
2217
2217
  const setup = options => {
2218
2218
  return core_.VxeUI.setConfig(options);
2219
2219
  };
2220
+ core_.VxeUI.setup = setup;
2220
2221
  /**
2221
2222
  * 已废弃
2222
2223
  * @deprecated
@@ -2224,6 +2225,7 @@ const setup = options => {
2224
2225
  const config = options => {
2225
2226
  return core_.VxeUI.setConfig(options);
2226
2227
  };
2228
+ core_.VxeUI.config = config;
2227
2229
  /**
2228
2230
  * 已废弃
2229
2231
  * @deprecated
@@ -2231,6 +2233,7 @@ const config = options => {
2231
2233
  const t = (key, args) => {
2232
2234
  return core_.VxeUI.getI18n(key, args);
2233
2235
  };
2236
+ core_.VxeUI.t = t;
2234
2237
  /**
2235
2238
  * 已废弃
2236
2239
  * @deprecated
@@ -2238,13 +2241,12 @@ const t = (key, args) => {
2238
2241
  const _t = (content, args) => {
2239
2242
  return getFuncText(content, args);
2240
2243
  };
2244
+ core_.VxeUI._t = _t;
2241
2245
  /**
2242
2246
  * 已废弃,兼容老版本
2243
2247
  * @deprecated
2244
2248
  */
2245
2249
  const VXETable = core_.VxeUI;
2246
- VXETable.setup = config;
2247
- VXETable.config = config;
2248
2250
  /**
2249
2251
  * 已废弃,兼容老版本
2250
2252
  * @deprecated
@@ -2332,7 +2334,7 @@ var es_array_push = __webpack_require__(4114);
2332
2334
  const {
2333
2335
  log: log_log
2334
2336
  } = core_.VxeUI;
2335
- const log_version = `table v${"4.7.63"}`;
2337
+ const log_version = `table v${"4.7.65"}`;
2336
2338
  const warnLog = log_log.create('warn', log_version);
2337
2339
  const errLog = log_log.create('error', log_version);
2338
2340
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -8345,6 +8347,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
8345
8347
  resizeList: [],
8346
8348
  pxList: [],
8347
8349
  pxMinList: [],
8350
+ autoMinList: [],
8348
8351
  scaleList: [],
8349
8352
  scaleMinList: [],
8350
8353
  autoList: [],
@@ -8712,7 +8715,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
8712
8715
  const {
8713
8716
  visibleColumn
8714
8717
  } = internalData;
8715
- return visibleColumn.filter(column => column.width === 'auto');
8718
+ const {
8719
+ tableColumn
8720
+ } = reactData;
8721
+ return tableColumn.length || visibleColumn.length ? visibleColumn.filter(column => column.width === 'auto' || column.minWidth === 'auto') : [];
8716
8722
  });
8717
8723
  const computeFixedColumnSize = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8718
8724
  const {
@@ -9350,11 +9356,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9350
9356
  const cellStyle = getComputedStyle(firstCellEl);
9351
9357
  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;
9352
9358
  }
9353
- let colWidth = column.renderAutoWidth - paddingSize + 2;
9359
+ let colWidth = column.renderAutoWidth - paddingSize;
9354
9360
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, cellEl => {
9355
9361
  const labelEl = cellEl.firstChild;
9356
9362
  if (labelEl) {
9357
- colWidth = Math.max(colWidth, labelEl.offsetWidth);
9363
+ colWidth = Math.max(colWidth, Math.ceil(labelEl.offsetWidth) + 4);
9358
9364
  }
9359
9365
  });
9360
9366
  column.renderAutoWidth = colWidth + paddingSize;
@@ -9394,6 +9400,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9394
9400
  const {
9395
9401
  resizeList,
9396
9402
  pxMinList,
9403
+ autoMinList,
9397
9404
  pxList,
9398
9405
  scaleList,
9399
9406
  scaleMinList,
@@ -9406,6 +9413,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9406
9413
  tableWidth += minWidth;
9407
9414
  column.renderWidth = minWidth;
9408
9415
  });
9416
+ // 最小自适应
9417
+ autoMinList.forEach(column => {
9418
+ const scaleWidth = Math.max(60, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(column.renderAutoWidth));
9419
+ tableWidth += scaleWidth;
9420
+ column.renderWidth = scaleWidth;
9421
+ });
9409
9422
  // 最小百分比
9410
9423
  scaleMinList.forEach(column => {
9411
9424
  const scaleWidth = Math.floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(column.minWidth) * meanWidth);
@@ -9437,10 +9450,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9437
9450
  column.renderWidth = width;
9438
9451
  });
9439
9452
  remainWidth -= tableWidth;
9440
- meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinList.length + pxMinList.length + remainList.length)) : 0;
9453
+ meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinList.length + pxMinList.length + autoMinList.length + remainList.length)) : 0;
9441
9454
  if (fit) {
9442
9455
  if (remainWidth > 0) {
9443
- scaleMinList.concat(pxMinList).forEach(column => {
9456
+ scaleMinList.concat(pxMinList).concat(autoMinList).forEach(column => {
9444
9457
  tableWidth += meanWidth;
9445
9458
  column.renderWidth += meanWidth;
9446
9459
  });
@@ -9459,7 +9472,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
9459
9472
  * 偏移量算法
9460
9473
  * 如果所有列足够放的情况下,从最后动态列开始分配
9461
9474
  */
9462
- const dynamicList = scaleList.concat(scaleMinList).concat(pxMinList).concat(remainList);
9475
+ const dynamicList = scaleList.concat(scaleMinList).concat(pxMinList).concat(autoMinList).concat(remainList);
9463
9476
  let dynamicSize = dynamicList.length - 1;
9464
9477
  if (dynamicSize > 0) {
9465
9478
  let odiffer = bodyWidth - tableWidth;
@@ -14510,6 +14523,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14510
14523
  const resizeList = [];
14511
14524
  const pxList = [];
14512
14525
  const pxMinList = [];
14526
+ const autoMinList = [];
14513
14527
  const scaleList = [];
14514
14528
  const scaleMinList = [];
14515
14529
  const autoList = [];
@@ -14532,6 +14546,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14532
14546
  scaleList.push(column);
14533
14547
  } else if (isPx(column.minWidth)) {
14534
14548
  pxMinList.push(column);
14549
+ } else if (column.minWidth === 'auto') {
14550
+ autoMinList.push(column);
14535
14551
  } else if (isScale(column.minWidth)) {
14536
14552
  scaleMinList.push(column);
14537
14553
  } else {
@@ -14543,6 +14559,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14543
14559
  resizeList,
14544
14560
  pxList,
14545
14561
  pxMinList,
14562
+ autoMinList,
14546
14563
  scaleList,
14547
14564
  scaleMinList,
14548
14565
  autoList,
@@ -24233,10 +24250,6 @@ core_.VxeUI.component(grid);
24233
24250
  const Grid = VxeGrid;
24234
24251
  /* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
24235
24252
  ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
24236
- /**
24237
- * 已废弃
24238
- * @deprecated
24239
- */
24240
24253
  /* harmony default export */ var zh_CN = ({
24241
24254
  vxe: {
24242
24255
  base: {
@@ -24258,7 +24271,7 @@ const Grid = VxeGrid;
24258
24271
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
24259
24272
  barUnableLink: '工具栏无法关联表格',
24260
24273
  expandContent: '展开行的插槽应该是 "content",请检查是否正确',
24261
- reqComp: '缺少 "{0}" 组件,请检查是否正确安装',
24274
+ reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
24262
24275
  reqModule: '缺少 "{0}" 模块',
24263
24276
  reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
24264
24277
  emptyProp: '参数 "{0}" 不允许为空',
@@ -24288,6 +24301,7 @@ const Grid = VxeGrid;
24288
24301
  emptyText: '暂无数据',
24289
24302
  allTitle: '全选/取消',
24290
24303
  seqTitle: '序号',
24304
+ actionTitle: '操作',
24291
24305
  confirmFilter: '筛选',
24292
24306
  resetFilter: '重置',
24293
24307
  allFilter: '全部',
@@ -24583,7 +24597,8 @@ const Grid = VxeGrid;
24583
24597
  textarea: '文本域',
24584
24598
  select: '下拉选择',
24585
24599
  row: '一行多列',
24586
- title: '文本',
24600
+ title: '标题',
24601
+ text: '文本',
24587
24602
  subtable: '子表',
24588
24603
  VxeSwitch: '是/否',
24589
24604
  VxeInput: '输入框',
@@ -24657,7 +24672,15 @@ const Grid = VxeGrid;
24657
24672
  },
24658
24673
  listDesign: {
24659
24674
  fieldSettingTab: '字段设置',
24660
- listSettingTab: '列表设置'
24675
+ listSettingTab: '列表设置',
24676
+ activeBtn: {
24677
+ ActionButtonUpdate: '编辑',
24678
+ ActionButtonDelete: '删除'
24679
+ }
24680
+ },
24681
+ text: {
24682
+ copySuccess: '已复制到剪贴板',
24683
+ copyError: '当前环境不支持该操作'
24661
24684
  },
24662
24685
  /**
24663
24686
  * 扩展插件