vxe-table 4.7.67 → 4.7.69

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 (109) hide show
  1. package/es/components.js +5 -7
  2. package/es/grid/style.css +1 -0
  3. package/es/grid/style.min.css +1 -1
  4. package/es/locale/lang/en-US.js +20 -3
  5. package/es/locale/lang/es-ES.js +20 -3
  6. package/es/locale/lang/hu-HU.js +22 -1
  7. package/es/locale/lang/ja-JP.js +19 -2
  8. package/es/locale/lang/ko-KR.js +18 -1
  9. package/es/locale/lang/pt-BR.js +18 -1
  10. package/es/locale/lang/ru-RU.js +18 -1
  11. package/es/locale/lang/vi-VN.js +18 -1
  12. package/es/locale/lang/zh-CN.js +18 -1
  13. package/es/locale/lang/zh-TC.js +45 -28
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/table/src/body.js +5 -4
  17. package/es/table/src/header.js +3 -2
  18. package/es/table/src/table.js +30 -36
  19. package/es/table/style.css +12 -0
  20. package/es/table/style.min.css +1 -1
  21. package/es/ui/index.js +2 -2
  22. package/es/ui/src/log.js +1 -1
  23. package/es/vxe-grid/style.css +1 -0
  24. package/es/vxe-grid/style.min.css +1 -1
  25. package/es/vxe-table/style.css +12 -0
  26. package/es/vxe-table/style.min.css +1 -1
  27. package/lib/components.js +5 -7
  28. package/lib/components.min.js +1 -1
  29. package/lib/grid/style/style.css +1 -0
  30. package/lib/grid/style/style.min.css +1 -1
  31. package/lib/index.umd.js +65 -54
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/locale/lang/en-US.js +20 -3
  34. package/lib/locale/lang/en-US.min.js +1 -1
  35. package/lib/locale/lang/en-US.umd.js +20 -3
  36. package/lib/locale/lang/es-ES.js +20 -3
  37. package/lib/locale/lang/es-ES.min.js +1 -1
  38. package/lib/locale/lang/es-ES.umd.js +20 -3
  39. package/lib/locale/lang/hu-HU.js +22 -1
  40. package/lib/locale/lang/hu-HU.min.js +1 -1
  41. package/lib/locale/lang/ja-JP.js +19 -2
  42. package/lib/locale/lang/ja-JP.min.js +1 -1
  43. package/lib/locale/lang/ja-JP.umd.js +19 -2
  44. package/lib/locale/lang/ko-KR.js +18 -1
  45. package/lib/locale/lang/ko-KR.min.js +1 -1
  46. package/lib/locale/lang/pt-BR.js +18 -1
  47. package/lib/locale/lang/pt-BR.min.js +1 -1
  48. package/lib/locale/lang/pt-BR.umd.js +18 -1
  49. package/lib/locale/lang/ru-RU.js +18 -1
  50. package/lib/locale/lang/ru-RU.min.js +1 -1
  51. package/lib/locale/lang/vi-VN.js +18 -1
  52. package/lib/locale/lang/vi-VN.min.js +1 -1
  53. package/lib/locale/lang/zh-CN.js +18 -1
  54. package/lib/locale/lang/zh-CN.min.js +1 -1
  55. package/lib/locale/lang/zh-CN.umd.js +18 -1
  56. package/lib/locale/lang/zh-HK.min.js +1 -1
  57. package/lib/locale/lang/zh-HK.umd.js +45 -28
  58. package/lib/locale/lang/zh-MO.min.js +1 -1
  59. package/lib/locale/lang/zh-MO.umd.js +45 -28
  60. package/lib/locale/lang/zh-TC.js +45 -28
  61. package/lib/locale/lang/zh-TC.min.js +1 -1
  62. package/lib/locale/lang/zh-TC.umd.js +45 -28
  63. package/lib/locale/lang/zh-TW.min.js +1 -1
  64. package/lib/locale/lang/zh-TW.umd.js +45 -28
  65. package/lib/style.css +1 -1
  66. package/lib/style.min.css +1 -1
  67. package/lib/table/src/body.js +5 -4
  68. package/lib/table/src/body.min.js +1 -1
  69. package/lib/table/src/header.js +4 -3
  70. package/lib/table/src/header.min.js +1 -1
  71. package/lib/table/src/table.js +30 -36
  72. package/lib/table/src/table.min.js +1 -1
  73. package/lib/table/style/style.css +12 -0
  74. package/lib/table/style/style.min.css +1 -1
  75. package/lib/ui/index.js +2 -2
  76. package/lib/ui/index.min.js +1 -1
  77. package/lib/ui/src/log.js +1 -1
  78. package/lib/ui/src/log.min.js +1 -1
  79. package/lib/vxe-grid/style/style.css +1 -0
  80. package/lib/vxe-grid/style/style.min.css +1 -1
  81. package/lib/vxe-table/style/style.css +12 -0
  82. package/lib/vxe-table/style/style.min.css +1 -1
  83. package/package.json +2 -2
  84. package/packages/components.ts +5 -7
  85. package/packages/locale/lang/en-US.ts +20 -3
  86. package/packages/locale/lang/es-ES.ts +20 -3
  87. package/packages/locale/lang/hu-HU.ts +22 -1
  88. package/packages/locale/lang/ja-JP.ts +19 -2
  89. package/packages/locale/lang/ko-KR.ts +18 -1
  90. package/packages/locale/lang/pt-BR.ts +18 -1
  91. package/packages/locale/lang/ru-RU.ts +18 -1
  92. package/packages/locale/lang/vi-VN.ts +18 -1
  93. package/packages/locale/lang/zh-CN.ts +18 -1
  94. package/packages/locale/lang/zh-TC.ts +45 -28
  95. package/packages/table/src/body.ts +5 -4
  96. package/packages/table/src/header.ts +4 -3
  97. package/packages/table/src/table.ts +30 -36
  98. package/styles/components/grid.scss +1 -0
  99. package/styles/components/table-module/custom.scss +1 -0
  100. package/styles/components/table-module/export.scss +1 -0
  101. package/styles/components/table-module/filter.scss +1 -0
  102. package/styles/components/table.scss +9 -0
  103. package/styles/theme/base.scss +1 -0
  104. /package/es/{iconfont.1724210671876.ttf → iconfont.1724470833265.ttf} +0 -0
  105. /package/es/{iconfont.1724210671876.woff → iconfont.1724470833265.woff} +0 -0
  106. /package/es/{iconfont.1724210671876.woff2 → iconfont.1724470833265.woff2} +0 -0
  107. /package/lib/{iconfont.1724210671876.ttf → iconfont.1724470833265.ttf} +0 -0
  108. /package/lib/{iconfont.1724210671876.woff → iconfont.1724470833265.woff} +0 -0
  109. /package/lib/{iconfont.1724210671876.woff2 → iconfont.1724470833265.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.67";
1954
+ const version = "4.7.69";
1955
1955
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.67";
1956
+ core_.VxeUI.tableVersion = "4.7.69";
1957
1957
  core_.VxeUI.setConfig({
1958
1958
  emptyCell: ' ',
1959
1959
  table: {
@@ -2334,7 +2334,7 @@ var es_array_push = __webpack_require__(4114);
2334
2334
  const {
2335
2335
  log: log_log
2336
2336
  } = core_.VxeUI;
2337
- const log_version = `table v${"4.7.67"}`;
2337
+ const log_version = `table v${"4.7.69"}`;
2338
2338
  const warnLog = log_log.create('warn', log_version);
2339
2339
  const errLog = log_log.create('error', log_version);
2340
2340
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -4729,6 +4729,7 @@ const lineOffsetSizes = {
4729
4729
  const {
4730
4730
  height: rowHeight
4731
4731
  } = rowOpts;
4732
+ const colid = column.id;
4732
4733
  const renderOpts = editRender || cellRender;
4733
4734
  const compConf = renderOpts ? body_renderer.get(renderOpts.name) : null;
4734
4735
  const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null;
@@ -4746,10 +4747,10 @@ const lineOffsetSizes = {
4746
4747
  let isDirty;
4747
4748
  const tdOns = {};
4748
4749
  const cellAlign = align || allAlign;
4749
- const errorValidItem = validErrorMaps[`${rowid}:${column.id}`];
4750
+ const errorValidItem = validErrorMaps[`${rowid}:${colid}`];
4750
4751
  const showValidTip = editRules && validOpts.showMessage && (validOpts.message === 'default' ? height || tableData.length > 1 : validOpts.message === 'inline');
4751
4752
  const attrs = {
4752
- colid: column.id
4753
+ colid
4753
4754
  };
4754
4755
  const params = {
4755
4756
  $table: $xeTable,
@@ -4908,7 +4909,7 @@ const lineOffsetSizes = {
4908
4909
  }
4909
4910
  }
4910
4911
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
4911
- class: ['vxe-body--column', column.id, {
4912
+ class: ['vxe-body--column', colid, {
4912
4913
  [`col--${cellAlign}`]: cellAlign,
4913
4914
  [`col--${type}`]: type,
4914
4915
  'col--last': $columnIndex === columns.length - 1,
@@ -4921,7 +4922,7 @@ const lineOffsetSizes = {
4921
4922
  'col--valid-error': !!errorValidItem,
4922
4923
  'col--current': currentColumn === column
4923
4924
  }, getPropClass(compCellClassName, params), getPropClass(className, params), getPropClass(allCellClassName, params)],
4924
- key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
4925
+ key: columnKey || columnOpts.useKey ? colid : $columnIndex,
4925
4926
  ...attrs,
4926
4927
  style: Object.assign({
4927
4928
  height: hasEllipsis && (scrollYRHeight || rowHeight) ? `${scrollYRHeight || rowHeight}px` : ''
@@ -5842,6 +5843,7 @@ const header_renderType = 'header';
5842
5843
  align,
5843
5844
  headerClassName
5844
5845
  } = column;
5846
+ const colid = column.id;
5845
5847
  const isColGroup = column.children && column.children.length;
5846
5848
  const fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : !!column.fixed && overflowX;
5847
5849
  const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
@@ -5879,7 +5881,7 @@ const header_renderType = 'header';
5879
5881
  thOns.onMousedown = evnt => $xeTable.triggerHeaderCellMousedownEvent(evnt, params);
5880
5882
  }
5881
5883
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {
5882
- class: ['vxe-header--column', column.id, {
5884
+ class: ['vxe-header--column', colid, {
5883
5885
  [`col--${headAlign}`]: headAlign,
5884
5886
  [`col--${type}`]: type,
5885
5887
  'col--last': $columnIndex === cols.length - 1,
@@ -5892,12 +5894,12 @@ const header_renderType = 'header';
5892
5894
  'is--filter-active': hasFilter,
5893
5895
  'col--current': currentColumn === column
5894
5896
  }, headerClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerClassName) ? headerClassName(params) : headerClassName : '', headerCellClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellClassName) ? headerCellClassName(params) : headerCellClassName : ''],
5895
- colid: column.id,
5897
+ colid,
5896
5898
  colspan: column.colSpan > 1 ? column.colSpan : null,
5897
5899
  rowspan: column.rowSpan > 1 ? column.rowSpan : null,
5898
5900
  style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle : null,
5899
5901
  ...thOns,
5900
- key: columnKey || columnOpts.useKey || isColGroup ? column.id : $columnIndex
5902
+ key: columnKey || columnOpts.useKey || isColGroup ? colid : $columnIndex
5901
5903
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
5902
5904
  class: ['vxe-cell', {
5903
5905
  'c--title': showTitle,
@@ -8529,6 +8531,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
8529
8531
  fullDataRowIdData: {},
8530
8532
  fullColumnIdData: {},
8531
8533
  fullColumnFieldData: {},
8534
+ // 列选取状态
8535
+ columnStatusMaps: {},
8536
+ // 行选取状态
8537
+ rowStatusMaps: {},
8532
8538
  inited: false,
8533
8539
  tooltipTimeout: null,
8534
8540
  initStatus: false,
@@ -13932,7 +13938,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13932
13938
  const operCtxMenu = isMenu && ctxMenuStore.visible && (isEnter || isSpacebar || operArrow);
13933
13939
  const isEditStatus = isEnableConf(editConfig) && actived.column && actived.row;
13934
13940
  const beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
13935
- let params;
13936
13941
  if (operCtxMenu) {
13937
13942
  // 如果配置了右键菜单; 支持方向键操作、回车
13938
13943
  evnt.preventDefault();
@@ -13988,7 +13993,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13988
13993
  if (hasCtrlKey) {
13989
13994
  // 如果是激活编辑状态,则取消编辑
13990
13995
  if (actived.row) {
13991
- params = actived.args;
13996
+ const params = actived.args;
13992
13997
  $xeTable.clearEdit(evnt);
13993
13998
  // 如果配置了选中功能,则为选中状态
13994
13999
  if (mouseOpts.selected) {
@@ -14018,7 +14023,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14018
14023
  if (childrens && childrens.length) {
14019
14024
  evnt.preventDefault();
14020
14025
  const targetRow = childrens[0];
14021
- params = {
14026
+ const params = {
14022
14027
  $table: $xeTable,
14023
14028
  row: targetRow,
14024
14029
  rowIndex: tableMethods.getRowIndex(targetRow),
@@ -14051,23 +14056,24 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14051
14056
  const {
14052
14057
  delMethod
14053
14058
  } = keyboardOpts;
14054
- const delPaqrams = {
14059
+ const params = {
14055
14060
  row: selected.row,
14056
14061
  rowIndex: tableMethods.getRowIndex(selected.row),
14057
14062
  column: selected.column,
14058
14063
  columnIndex: tableMethods.getColumnIndex(selected.column),
14059
- $table: $xeTable
14064
+ $table: $xeTable,
14065
+ $grid: $xeGrid
14060
14066
  };
14061
14067
  // 是否被禁用
14062
14068
  if (!beforeEditMethod || beforeEditMethod(params)) {
14063
14069
  if (delMethod) {
14064
- delMethod(delPaqrams);
14070
+ delMethod(params);
14065
14071
  } else {
14066
14072
  setCellValue(selected.row, selected.column, null);
14067
14073
  }
14068
14074
  // 如果按下 del 键,更新表尾数据
14069
14075
  tableMethods.updateFooter();
14070
- $xeTable.dispatchEvent('cell-delete-value', delPaqrams, evnt);
14076
+ $xeTable.dispatchEvent('cell-delete-value', params, evnt);
14071
14077
  }
14072
14078
  }
14073
14079
  } else if (hasBackspaceKey && keyboardConfig && keyboardOpts.isBack && isEnableConf(editConfig) && (selected.row || selected.column)) {
@@ -14077,28 +14083,23 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14077
14083
  } = keyboardOpts;
14078
14084
  // 如果是删除键
14079
14085
  if (keyboardOpts.isDel && isEnableConf(editConfig) && (selected.row || selected.column)) {
14080
- const delPaqrams = {
14086
+ const params = {
14081
14087
  row: selected.row,
14082
14088
  rowIndex: tableMethods.getRowIndex(selected.row),
14083
14089
  column: selected.column,
14084
14090
  columnIndex: tableMethods.getColumnIndex(selected.column),
14085
- $table: $xeTable
14091
+ $table: $xeTable,
14092
+ $grid: $xeGrid
14086
14093
  };
14087
14094
  // 是否被禁用
14088
14095
  if (!beforeEditMethod || beforeEditMethod(params)) {
14089
14096
  if (backMethod) {
14090
- backMethod({
14091
- row: selected.row,
14092
- rowIndex: tableMethods.getRowIndex(selected.row),
14093
- column: selected.column,
14094
- columnIndex: tableMethods.getColumnIndex(selected.column),
14095
- $table: $xeTable
14096
- });
14097
+ backMethod(params);
14097
14098
  } else {
14098
14099
  setCellValue(selected.row, selected.column, null);
14099
14100
  $xeTable.handleActived(selected.args, evnt);
14100
14101
  }
14101
- $xeTable.dispatchEvent('cell-backspace-value', delPaqrams, evnt);
14102
+ $xeTable.dispatchEvent('cell-backspace-value', params, evnt);
14102
14103
  }
14103
14104
  }
14104
14105
  }
@@ -14111,11 +14112,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14111
14112
  });
14112
14113
  if (parentRow) {
14113
14114
  evnt.preventDefault();
14114
- params = {
14115
- $table: $xeTable,
14115
+ const params = {
14116
14116
  row: parentRow,
14117
14117
  rowIndex: tableMethods.getRowIndex(parentRow),
14118
- $rowIndex: tableMethods.getVMRowIndex(parentRow)
14118
+ $rowIndex: tableMethods.getVMRowIndex(parentRow),
14119
+ $table: $xeTable,
14120
+ $grid: $xeGrid
14119
14121
  };
14120
14122
  tableMethods.setTreeExpand(parentRow, false).then(() => tableMethods.scrollToRow(parentRow)).then(() => tablePrivateMethods.triggerCurrentRowEvent(evnt, params));
14121
14123
  }
@@ -14130,20 +14132,21 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14130
14132
  // 如果是按下非功能键之外允许直接编辑
14131
14133
  if (selected.column && selected.row && isEnableConf(selected.column.editRender)) {
14132
14134
  const beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
14135
+ const params = {
14136
+ row: selected.row,
14137
+ rowIndex: tableMethods.getRowIndex(selected.row),
14138
+ column: selected.column,
14139
+ columnIndex: tableMethods.getColumnIndex(selected.column),
14140
+ $table: $xeTable,
14141
+ $grid: $xeGrid
14142
+ };
14133
14143
  if (!beforeEditMethod || beforeEditMethod({
14134
14144
  ...selected.args,
14135
14145
  $table: $xeTable,
14136
14146
  $grid: $xeGrid
14137
14147
  })) {
14138
14148
  if (editMethod) {
14139
- editMethod({
14140
- row: selected.row,
14141
- rowIndex: tableMethods.getRowIndex(selected.row),
14142
- column: selected.column,
14143
- columnIndex: tableMethods.getColumnIndex(selected.column),
14144
- $table: $xeTable,
14145
- $grid: $xeGrid
14146
- });
14149
+ editMethod(params);
14147
14150
  } else {
14148
14151
  setCellValue(selected.row, selected.column, null);
14149
14152
  $xeTable.handleActived(selected.args, evnt);
@@ -14151,14 +14154,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14151
14154
  const afterEditMethod = editOpts.afterEditMethod;
14152
14155
  if (afterEditMethod) {
14153
14156
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
14154
- afterEditMethod({
14155
- row: selected.row,
14156
- rowIndex: tableMethods.getRowIndex(selected.row),
14157
- column: selected.column,
14158
- columnIndex: tableMethods.getColumnIndex(selected.column),
14159
- $table: $xeTable,
14160
- $grid: $xeGrid
14161
- });
14157
+ afterEditMethod(params);
14162
14158
  });
14163
14159
  }
14164
14160
  }
@@ -24330,6 +24326,7 @@ const Grid = VxeGrid;
24330
24326
  text: '加载中...'
24331
24327
  },
24332
24328
  error: {
24329
+ downErr: '下载失败',
24333
24330
  groupFixed: '如果使用分组表头,冻结列必须按组设置',
24334
24331
  groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
24335
24332
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
@@ -24355,6 +24352,7 @@ const Grid = VxeGrid;
24355
24352
  notProp: '不支持的参数 "{0}"',
24356
24353
  checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
24357
24354
  coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
24355
+ uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
24358
24356
  delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
24359
24357
  delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
24360
24358
  delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
@@ -24404,6 +24402,7 @@ const Grid = VxeGrid;
24404
24402
  },
24405
24403
  pager: {
24406
24404
  goto: '前往',
24405
+ gotoTitle: '页数',
24407
24406
  pagesize: '{0}条/页',
24408
24407
  total: '共 {0} 条记录',
24409
24408
  pageClassifier: '页',
@@ -24635,6 +24634,10 @@ const Grid = VxeGrid;
24635
24634
  defFormTitle: '未命名的表单',
24636
24635
  widgetPropTab: '控件属性',
24637
24636
  widgetFormTab: '表单属性',
24637
+ error: {
24638
+ wdFormUni: '该类型的控件在表单中只允许添加一个',
24639
+ wdSubUni: '该类型的控件在子表中只允许添加一个'
24640
+ },
24638
24641
  styleSetting: {
24639
24642
  btn: '样式设置',
24640
24643
  title: '表单的样式设置',
@@ -24660,6 +24663,8 @@ const Grid = VxeGrid;
24660
24663
  base: '基础控件',
24661
24664
  layout: '布局控件',
24662
24665
  system: '系统控件',
24666
+ module: '模块控件',
24667
+ chart: '图表控件',
24663
24668
  advanced: '高级控件'
24664
24669
  },
24665
24670
  copyTitle: '副本_{0}',
@@ -24743,10 +24748,18 @@ const Grid = VxeGrid;
24743
24748
  },
24744
24749
  listDesign: {
24745
24750
  fieldSettingTab: '字段设置',
24746
- listSettingTab: '列表设置',
24751
+ listSettingTab: '参数设置',
24752
+ searchTitle: '查询条件',
24753
+ listTitle: '列表字段',
24754
+ searchField: '查询字段',
24755
+ listField: '列表字段',
24747
24756
  activeBtn: {
24748
24757
  ActionButtonUpdate: '编辑',
24749
24758
  ActionButtonDelete: '删除'
24759
+ },
24760
+ search: {
24761
+ addBtn: '编辑',
24762
+ emptyText: '未配置查询条件'
24750
24763
  }
24751
24764
  },
24752
24765
  text: {
@@ -24967,14 +24980,12 @@ function install(app, options) {
24967
24980
  components.forEach(component => component.install(app));
24968
24981
  }
24969
24982
  // 保留兼容老版本
24983
+ if (!core_.VxeUI.hasLanguage('zh-CN')) {
24984
+ const defaultLanguage = 'zh-CN';
24985
+ core_.VxeUI.setI18n(defaultLanguage, zh_CN);
24986
+ core_.VxeUI.setLanguage(defaultLanguage);
24987
+ }
24970
24988
  core_.VxeUI.setTheme('light');
24971
- setTimeout(() => {
24972
- if (!core_.VxeUI.hasLanguage('zh-CN')) {
24973
- const defaultLanguage = 'zh-CN';
24974
- core_.VxeUI.setI18n(defaultLanguage, zh_CN);
24975
- core_.VxeUI.setLanguage(defaultLanguage);
24976
- }
24977
- });
24978
24989
 
24979
24990
  // Components
24980
24991