vxe-table 4.7.36 → 4.7.38

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 (94) hide show
  1. package/README.en.md +35 -12
  2. package/README.md +34 -11
  3. package/README.zh-TW.md +35 -12
  4. package/es/components.js +6 -0
  5. package/es/iconfont.1719496140745.ttf +0 -0
  6. package/es/iconfont.1719496140745.woff +0 -0
  7. package/es/iconfont.1719496140745.woff2 +0 -0
  8. package/es/locale/lang/en-US.js +5 -2
  9. package/es/locale/lang/es-ES.js +5 -2
  10. package/es/locale/lang/ja-JP.js +5 -2
  11. package/es/locale/lang/pt-BR.js +5 -2
  12. package/es/locale/lang/zh-CN.js +5 -2
  13. package/es/locale/lang/zh-TC.js +5 -2
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/table/module/export/export-panel.js +1 -6
  17. package/es/table/module/export/hook.js +36 -18
  18. package/es/table/module/export/import-panel.js +7 -14
  19. package/es/table/render/index.js +3 -0
  20. package/es/table/style.css +168 -1
  21. package/es/table/style.min.css +1 -1
  22. package/es/ui/index.js +3 -3
  23. package/es/ui/src/log.js +1 -1
  24. package/es/vxe-table/style.css +168 -1
  25. package/es/vxe-table/style.min.css +1 -1
  26. package/lib/components.js +7 -0
  27. package/lib/components.min.js +1 -1
  28. package/lib/iconfont.1719496140745.ttf +0 -0
  29. package/lib/iconfont.1719496140745.woff +0 -0
  30. package/lib/iconfont.1719496140745.woff2 +0 -0
  31. package/lib/index.umd.js +675 -40
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/locale/lang/en-US.js +5 -2
  34. package/lib/locale/lang/en-US.min.js +1 -1
  35. package/lib/locale/lang/en-US.umd.js +5 -2
  36. package/lib/locale/lang/es-ES.js +5 -2
  37. package/lib/locale/lang/es-ES.min.js +1 -1
  38. package/lib/locale/lang/es-ES.umd.js +5 -2
  39. package/lib/locale/lang/ja-JP.js +5 -2
  40. package/lib/locale/lang/ja-JP.min.js +1 -1
  41. package/lib/locale/lang/ja-JP.umd.js +5 -2
  42. package/lib/locale/lang/pt-BR.js +5 -2
  43. package/lib/locale/lang/pt-BR.min.js +1 -1
  44. package/lib/locale/lang/pt-BR.umd.js +5 -2
  45. package/lib/locale/lang/zh-CN.js +5 -2
  46. package/lib/locale/lang/zh-CN.min.js +1 -1
  47. package/lib/locale/lang/zh-CN.umd.js +5 -2
  48. package/lib/locale/lang/zh-HK.min.js +1 -1
  49. package/lib/locale/lang/zh-HK.umd.js +5 -2
  50. package/lib/locale/lang/zh-MO.min.js +1 -1
  51. package/lib/locale/lang/zh-MO.umd.js +5 -2
  52. package/lib/locale/lang/zh-TC.js +5 -2
  53. package/lib/locale/lang/zh-TC.min.js +1 -1
  54. package/lib/locale/lang/zh-TC.umd.js +5 -2
  55. package/lib/locale/lang/zh-TW.min.js +1 -1
  56. package/lib/locale/lang/zh-TW.umd.js +5 -2
  57. package/lib/style.css +1 -1
  58. package/lib/style.min.css +1 -1
  59. package/lib/table/module/export/export-panel.js +1 -6
  60. package/lib/table/module/export/export-panel.min.js +1 -1
  61. package/lib/table/module/export/hook.js +35 -18
  62. package/lib/table/module/export/hook.min.js +1 -1
  63. package/lib/table/module/export/import-panel.js +5 -12
  64. package/lib/table/module/export/import-panel.min.js +1 -1
  65. package/lib/table/render/index.js +3 -0
  66. package/lib/table/render/index.min.js +1 -1
  67. package/lib/table/style/style.css +168 -1
  68. package/lib/table/style/style.min.css +1 -1
  69. package/lib/ui/index.js +3 -3
  70. package/lib/ui/index.min.js +1 -1
  71. package/lib/ui/src/log.js +1 -1
  72. package/lib/ui/src/log.min.js +1 -1
  73. package/lib/vxe-table/style/style.css +168 -1
  74. package/lib/vxe-table/style/style.min.css +1 -1
  75. package/package.json +2 -2
  76. package/packages/components.ts +8 -0
  77. package/packages/locale/lang/en-US.ts +5 -2
  78. package/packages/locale/lang/es-ES.ts +5 -2
  79. package/packages/locale/lang/ja-JP.ts +5 -2
  80. package/packages/locale/lang/pt-BR.ts +5 -2
  81. package/packages/locale/lang/zh-CN.ts +5 -2
  82. package/packages/locale/lang/zh-TC.ts +5 -2
  83. package/packages/table/module/export/export-panel.ts +1 -6
  84. package/packages/table/module/export/hook.ts +35 -19
  85. package/packages/table/module/export/import-panel.ts +8 -15
  86. package/packages/table/render/index.ts +3 -0
  87. package/packages/ui/index.ts +1 -1
  88. package/styles/components/icon.scss +185 -0
  89. package/styles/components/old-icon.scss +717 -0
  90. package/styles/components/table-module/export.scss +2 -1
  91. package/styles/components/table.scss +1 -0
  92. package/styles/icon/iconfont.ttf +0 -0
  93. package/styles/icon/iconfont.woff +0 -0
  94. package/styles/icon/iconfont.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.36";
1954
+ const version = "4.7.38";
1955
1955
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.36";
1956
+ core_.VxeUI.tableVersion = "4.7.38";
1957
1957
  core_.VxeUI.setConfig({
1958
1958
  emptyCell: ' ',
1959
1959
  table: {
@@ -2145,7 +2145,7 @@ core_.VxeUI.setConfig({
2145
2145
  // buttons: []
2146
2146
  }
2147
2147
  });
2148
- const iconPrefix = 'vxe-icon-';
2148
+ const iconPrefix = 'vxe-table-icon-';
2149
2149
  core_.VxeUI.setIcon({
2150
2150
  // table
2151
2151
  TABLE_SORT_ASC: iconPrefix + 'caret-up',
@@ -2324,7 +2324,7 @@ var es_array_push = __webpack_require__(4114);
2324
2324
  const {
2325
2325
  log: log_log
2326
2326
  } = core_.VxeUI;
2327
- const log_version = `table v${"4.7.36"}`;
2327
+ const log_version = `table v${"4.7.38"}`;
2328
2328
  const warnLog = log_log.create('warn', log_version);
2329
2329
  const errLog = log_log.create('error', log_version);
2330
2330
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -7440,8 +7440,7 @@ const {
7440
7440
  setup(props) {
7441
7441
  const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
7442
7442
  const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
7443
- const VxeUIRadioGroupComponent = core_.VxeUI.getComponent('VxeRadioGroup');
7444
- const VxeUIRadioComponent = core_.VxeUI.getComponent('VxeRadio');
7443
+ const VxeUISelectComponent = core_.VxeUI.getComponent('VxeSelect');
7445
7444
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', {});
7446
7445
  const {
7447
7446
  computeImportOpts
@@ -7472,7 +7471,7 @@ const {
7472
7471
  } = storeData;
7473
7472
  if (type) {
7474
7473
  const selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, item => type === item.value);
7475
- return selectItem ? import_panel_getI18n(selectItem.label) : '*.*';
7474
+ return selectItem ? selectItem.label : '*.*';
7476
7475
  }
7477
7476
  return `*.${typeList.map(item => item.value).join(', *.')}`;
7478
7477
  });
@@ -7540,7 +7539,7 @@ const {
7540
7539
  modelValue: storeData.visible,
7541
7540
  title: import_panel_getI18n('vxe.import.impTitle'),
7542
7541
  className: 'vxe-table-import-popup-wrapper',
7543
- width: 440,
7542
+ width: 520,
7544
7543
  mask: true,
7545
7544
  lockView: true,
7546
7545
  showFooter: false,
@@ -7569,18 +7568,12 @@ const {
7569
7568
  ref: refFileBtn,
7570
7569
  class: 'vxe-import-select--file',
7571
7570
  onClick: selectFileEvent
7572
- }, import_panel_getI18n('vxe.import.impSelect'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', parseTypeLabel)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impOpts')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUIRadioGroupComponent && VxeUIRadioComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIRadioGroupComponent, {
7571
+ }, import_panel_getI18n('vxe.import.impSelect'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', parseTypeLabel)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impMode')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
7573
7572
  modelValue: defaultOptions.mode,
7573
+ options: storeData.modeList,
7574
7574
  'onUpdate:modelValue'(value) {
7575
7575
  defaultOptions.mode = value;
7576
7576
  }
7577
- }, {
7578
- default: () => storeData.modeList.map(item => {
7579
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIRadioComponent, {
7580
- label: item.value,
7581
- content: import_panel_getI18n(item.label)
7582
- });
7583
- })
7584
7577
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
7585
7578
  class: 'vxe-export--panel-btns'
7586
7579
  }, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
@@ -7856,12 +7849,7 @@ const {
7856
7849
  }
7857
7850
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
7858
7851
  modelValue: defaultOptions.type,
7859
- options: storeData.typeList.map(item => {
7860
- return {
7861
- value: item.value,
7862
- label: export_panel_getI18n(item.label)
7863
- };
7864
- }),
7852
+ options: storeData.typeList,
7865
7853
  'onUpdate:modelValue'(value) {
7866
7854
  defaultOptions.type = value;
7867
7855
  }
@@ -18966,7 +18954,7 @@ export_hook_hooks.add('tableExportModule', {
18966
18954
  if (status) {
18967
18955
  $xeTable.createData(rows).then(data => {
18968
18956
  let loadRest;
18969
- if (opts.mode === 'insert') {
18957
+ if (opts.mode === 'insert' || opts.mode === 'insertBottom') {
18970
18958
  loadRest = $xeTable.insert(data);
18971
18959
  } else {
18972
18960
  loadRest = $xeTable.reloadData(data);
@@ -19041,7 +19029,7 @@ export_hook_hooks.add('tableExportModule', {
19041
19029
  internalData._importReject = _importReject;
19042
19030
  if (window.FileReader) {
19043
19031
  const options = Object.assign({
19044
- mode: 'insert'
19032
+ mode: 'insertBottom'
19045
19033
  }, opts, {
19046
19034
  type,
19047
19035
  filename
@@ -19145,6 +19133,7 @@ export_hook_hooks.add('tableExportModule', {
19145
19133
  message: true,
19146
19134
  isHeader: showHeader,
19147
19135
  isFooter: showFooter,
19136
+ current: 'current',
19148
19137
  modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
19149
19138
  }, options);
19150
19139
  const types = defOpts.types || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps);
@@ -19158,13 +19147,19 @@ export_hook_hooks.add('tableExportModule', {
19158
19147
  const typeList = types.map(value => {
19159
19148
  return {
19160
19149
  value,
19161
- label: `vxe.export.types.${value}`
19150
+ label: export_hook_getI18n(`vxe.export.types.${value}`)
19162
19151
  };
19163
19152
  });
19164
- const modeList = modes.map(value => {
19153
+ const modeList = modes.map(item => {
19154
+ if (item && item.value) {
19155
+ return {
19156
+ value: item.value,
19157
+ label: item.label || item.value
19158
+ };
19159
+ }
19165
19160
  return {
19166
- value,
19167
- label: `vxe.export.modes.${value}`
19161
+ value: item,
19162
+ label: export_hook_getI18n(`vxe.export.modes.${item}`)
19168
19163
  };
19169
19164
  });
19170
19165
  // 默认选中
@@ -19214,11 +19209,11 @@ export_hook_hooks.add('tableExportModule', {
19214
19209
  Object.assign(exportParams, {
19215
19210
  mode: selectRecords.length ? 'selected' : 'current'
19216
19211
  }, defOpts);
19217
- if (modes.indexOf(exportParams.mode) === -1) {
19218
- exportParams.mode = modes[0];
19212
+ if (!modeList.some(item => item.value === exportParams.mode)) {
19213
+ exportParams.mode = modeList[0].value;
19219
19214
  }
19220
- if (types.indexOf(exportParams.type) === -1) {
19221
- exportParams.type = types[0];
19215
+ if (!typeList.some(item => item.value === exportParams.type)) {
19216
+ exportParams.type = typeList[0].value;
19222
19217
  }
19223
19218
  initStore.export = true;
19224
19219
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
@@ -19371,7 +19366,7 @@ export_hook_hooks.add('tableExportModule', {
19371
19366
  }
19372
19367
  }
19373
19368
  if (!opts.data) {
19374
- opts.data = afterFullData;
19369
+ opts.data = [];
19375
19370
  if (mode === 'selected') {
19376
19371
  const selectRecords = $xeTable.getCheckboxRecords();
19377
19372
  if (['html', 'pdf'].indexOf(type) > -1 && treeConfig) {
@@ -19426,6 +19421,8 @@ export_hook_hooks.add('tableExportModule', {
19426
19421
  });
19427
19422
  }
19428
19423
  }
19424
+ } else if (mode === 'current') {
19425
+ opts.data = afterFullData;
19429
19426
  }
19430
19427
  }
19431
19428
  return handleExport(opts);
@@ -19576,10 +19573,10 @@ export_hook_hooks.add('tableExportModule', {
19576
19573
  } = reactData;
19577
19574
  const importOpts = computeImportOpts.value;
19578
19575
  const defOpts = Object.assign({
19579
- mode: 'insert',
19576
+ mode: 'insertBottom',
19580
19577
  message: true,
19581
19578
  types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps),
19582
- modes: ['insert', 'covering']
19579
+ modes: ['insertBottom', 'covering']
19583
19580
  }, importOpts, options);
19584
19581
  const types = defOpts.types || [];
19585
19582
  const modes = defOpts.modes || [];
@@ -19602,13 +19599,19 @@ export_hook_hooks.add('tableExportModule', {
19602
19599
  const typeList = types.map(value => {
19603
19600
  return {
19604
19601
  value,
19605
- label: `vxe.export.types.${value}`
19602
+ label: export_hook_getI18n(`vxe.export.types.${value}`)
19606
19603
  };
19607
19604
  });
19608
- const modeList = modes.map(value => {
19605
+ const modeList = modes.map(item => {
19606
+ if (item && item.value) {
19607
+ return {
19608
+ value: item.value,
19609
+ label: item.label || item.value
19610
+ };
19611
+ }
19609
19612
  return {
19610
- value,
19611
- label: `vxe.import.modes.${value}`
19613
+ value: item,
19614
+ label: export_hook_getI18n(`vxe.import.modes.${item}`)
19612
19615
  };
19613
19616
  });
19614
19617
  Object.assign(importStore, {
@@ -19620,12 +19623,14 @@ export_hook_hooks.add('tableExportModule', {
19620
19623
  visible: true
19621
19624
  });
19622
19625
  Object.assign(importParams, defOpts);
19626
+ if (!modeList.some(item => item.value === importParams.mode)) {
19627
+ importParams.mode = modeList[0].value;
19628
+ }
19623
19629
  initStore.import = true;
19624
19630
  },
19625
19631
  openExport(options) {
19626
19632
  const exportOpts = computeExportOpts.value;
19627
19633
  const defOpts = Object.assign({
19628
- mode: 'insert',
19629
19634
  message: true,
19630
19635
  types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps)
19631
19636
  }, exportOpts, options);
@@ -21578,6 +21583,9 @@ render_renderer.mixin({
21578
21583
  renderEdit: defaultEditRender,
21579
21584
  renderDefault: defaultEditRender
21580
21585
  },
21586
+ VxeUpload: {
21587
+ renderDefault: defaultEditRender
21588
+ },
21581
21589
  // 以下已废弃
21582
21590
  $input: {
21583
21591
  autofocus: '.vxe-input--inner',
@@ -23703,6 +23711,627 @@ if (core_.VxeUI.dynamicApp) {
23703
23711
  core_.VxeUI.component(grid);
23704
23712
  const Grid = VxeGrid;
23705
23713
  /* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
23714
+ ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
23715
+ /**
23716
+ * v4保留兼容,已废弃,即将删除文件
23717
+ * @deprecated
23718
+ */
23719
+ /* harmony default export */ var zh_CN = ({
23720
+ vxe: {
23721
+ base: {
23722
+ pleaseInput: '请输入',
23723
+ pleaseSelect: '请选择',
23724
+ comma: ',',
23725
+ fullStop: '。'
23726
+ },
23727
+ loading: {
23728
+ text: '加载中...'
23729
+ },
23730
+ error: {
23731
+ groupFixed: '如果使用分组表头,冻结列必须按组设置',
23732
+ groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
23733
+ groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
23734
+ scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
23735
+ errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
23736
+ unableInsert: '无法插入到指定位置,请检查参数是否正确',
23737
+ useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
23738
+ barUnableLink: '工具栏无法关联表格',
23739
+ expandContent: '展开行的插槽应该是 "content",请检查是否正确',
23740
+ reqModule: '缺少 "{0}" 模块',
23741
+ reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
23742
+ emptyProp: '参数 "{0}" 不允许为空',
23743
+ errProp: '不支持的参数 "{0}",可能为 "{1}"',
23744
+ colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
23745
+ notFunc: '方法 "{0}" 不存在',
23746
+ errFunc: '参数 "{0}" 不是一个方法',
23747
+ notValidators: '全局校验 "{0}" 不存在',
23748
+ notFormats: '全局格式化 "{0}" 不存在',
23749
+ notCommands: '全局指令 "{0}" 不存在',
23750
+ notSlot: '插槽 "{0}" 不存在',
23751
+ noTree: '树结构不支持 "{0}"',
23752
+ notProp: '不支持的参数 "{0}"',
23753
+ checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
23754
+ coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
23755
+ delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
23756
+ delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
23757
+ delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
23758
+ removeProp: '参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',
23759
+ errFormat: '全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',
23760
+ notType: '不支持的文件类型 "{0}"',
23761
+ notExp: '该浏览器不支持导入/导出功能',
23762
+ impFields: '导入失败,请检查字段名和数据格式是否正确',
23763
+ treeNotImp: '树表格不支持导入'
23764
+ },
23765
+ table: {
23766
+ emptyText: '暂无数据',
23767
+ allTitle: '全选/取消',
23768
+ seqTitle: '序号',
23769
+ confirmFilter: '筛选',
23770
+ resetFilter: '重置',
23771
+ allFilter: '全部',
23772
+ sortAsc: '升序:最低到最高',
23773
+ sortDesc: '降序:最高到最低',
23774
+ filter: '对所选的列启用筛选',
23775
+ impSuccess: '成功导入 {0} 条记录',
23776
+ expLoading: '正在导出中',
23777
+ expSuccess: '导出成功',
23778
+ expFilename: '导出_{0}',
23779
+ expOriginFilename: '导出_源_{0}',
23780
+ customTitle: '列设置',
23781
+ customAll: '全部',
23782
+ customConfirm: '确认',
23783
+ customCancel: '取消',
23784
+ customRestore: '恢复默认',
23785
+ maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
23786
+ },
23787
+ grid: {
23788
+ selectOneRecord: '请至少选择一条记录!',
23789
+ deleteSelectRecord: '您确定要删除所选记录吗?',
23790
+ removeSelectRecord: '您确定要移除所选记录吗?',
23791
+ dataUnchanged: '数据未改动!',
23792
+ delSuccess: '成功删除所选记录!',
23793
+ saveSuccess: '保存成功!',
23794
+ operError: '发生错误,操作失败!'
23795
+ },
23796
+ select: {
23797
+ search: '搜索',
23798
+ loadingText: '加载中',
23799
+ emptyText: '暂无数据'
23800
+ },
23801
+ pager: {
23802
+ goto: '前往',
23803
+ pagesize: '{0}条/页',
23804
+ total: '共 {0} 条记录',
23805
+ pageClassifier: '页',
23806
+ homePage: '首页',
23807
+ homePageTitle: '首页',
23808
+ prevPage: '上一页',
23809
+ prevPageTitle: '上一页',
23810
+ nextPage: '下一页',
23811
+ nextPageTitle: '下一页',
23812
+ prevJump: '向上跳页',
23813
+ prevJumpTitle: '向上跳页',
23814
+ nextJump: '向下跳页',
23815
+ nextJumpTitle: '向下跳页',
23816
+ endPage: '末页',
23817
+ endPageTitle: '末页'
23818
+ },
23819
+ alert: {
23820
+ title: '系统提示'
23821
+ },
23822
+ button: {
23823
+ confirm: '确认',
23824
+ cancel: '取消'
23825
+ },
23826
+ filter: {
23827
+ search: '搜索'
23828
+ },
23829
+ custom: {
23830
+ cstmTitle: '列设置',
23831
+ cstmRestore: '恢复默认',
23832
+ cstmCancel: '取消',
23833
+ cstmConfirm: '确定',
23834
+ cstmConfirmRestore: '请确认是否恢复成默认列配置?',
23835
+ cstmDragTarget: '移动目标:{0}',
23836
+ setting: {
23837
+ colSort: '排序',
23838
+ sortHelpTip: '点击并拖动图标可以调整列的排序',
23839
+ colTitle: '标题',
23840
+ colResizable: '列宽(像素)',
23841
+ colVisible: '是否显示',
23842
+ colFixed: '冻结列(最多 {0} 列)',
23843
+ fixedLeft: '左侧',
23844
+ fixedUnset: '不设置',
23845
+ fixedRight: '右侧'
23846
+ }
23847
+ },
23848
+ import: {
23849
+ modes: {
23850
+ covering: 'Overwrite mode (directly overwrite table data)',
23851
+ insert: 'Bottom append (appends new data to the bottom of the table)',
23852
+ insertTop: 'Top append (appends new data to the top of the table)',
23853
+ insertBottom: 'Bottom append (appends new data to the bottom of the table)'
23854
+ },
23855
+ impTitle: '导入数据',
23856
+ impFile: '文件名',
23857
+ impSelect: '选择文件',
23858
+ impType: '文件类型',
23859
+ impOpts: '参数设置',
23860
+ impMode: '导入模式',
23861
+ impConfirm: '导入',
23862
+ impCancel: '取消'
23863
+ },
23864
+ export: {
23865
+ types: {
23866
+ csv: 'CSV (逗号分隔)(*.csv)',
23867
+ html: '网页(*.html)',
23868
+ xml: 'XML 数据(*.xml)',
23869
+ txt: '文本文件(制表符分隔)(*.txt)',
23870
+ xls: 'Excel 97-2003 工作簿(*.xls)',
23871
+ xlsx: 'Excel 工作簿(*.xlsx)',
23872
+ pdf: 'PDF (*.pdf)'
23873
+ },
23874
+ modes: {
23875
+ current: '当前数据(当前页的数据)',
23876
+ selected: '选中数据(当前页选中的数据)',
23877
+ all: '全量数据(包括所有分页的数据)'
23878
+ },
23879
+ printTitle: '打印数据',
23880
+ expTitle: '导出数据',
23881
+ expName: '文件名',
23882
+ expNamePlaceholder: '请输入文件名',
23883
+ expSheetName: '标题',
23884
+ expSheetNamePlaceholder: '请输入标题',
23885
+ expType: '保存类型',
23886
+ expMode: '选择数据',
23887
+ expCurrentColumn: '全部字段',
23888
+ expColumn: '选择字段',
23889
+ expOpts: '参数设置',
23890
+ expOptHeader: '表头',
23891
+ expHeaderTitle: '是否需要表头',
23892
+ expOptFooter: '表尾',
23893
+ expFooterTitle: '是否需要表尾',
23894
+ expOptColgroup: '分组表头',
23895
+ expColgroupTitle: '如果存在,则支持带有分组结构的表头',
23896
+ expOptMerge: '合并',
23897
+ expMergeTitle: '如果存在,则支持带有合并结构的单元格',
23898
+ expOptAllExpand: '展开层级',
23899
+ expAllExpandTitle: '如果存在,则支持将带有层级结构的数据全部展开',
23900
+ expOptUseStyle: '样式',
23901
+ expUseStyleTitle: '如果存在,则支持带样式的单元格',
23902
+ expOptOriginal: '源数据',
23903
+ expOriginalTitle: '如果为源数据,则支持导入到表格中',
23904
+ expPrint: '打印',
23905
+ expConfirm: '导出',
23906
+ expCancel: '取消'
23907
+ },
23908
+ modal: {
23909
+ errTitle: '错误提示',
23910
+ zoomMin: '最小化',
23911
+ zoomIn: '最大化',
23912
+ zoomOut: '还原',
23913
+ close: '关闭'
23914
+ },
23915
+ drawer: {
23916
+ close: '关闭'
23917
+ },
23918
+ form: {
23919
+ folding: '收起',
23920
+ unfolding: '展开'
23921
+ },
23922
+ toolbar: {
23923
+ import: '导入',
23924
+ export: '导出',
23925
+ print: '打印',
23926
+ refresh: '刷新',
23927
+ zoomIn: '全屏',
23928
+ zoomOut: '还原',
23929
+ custom: '列设置',
23930
+ customAll: '全部',
23931
+ customConfirm: '确认',
23932
+ customRestore: '重置',
23933
+ fixedLeft: '冻结在左侧',
23934
+ fixedRight: '冻结在右侧',
23935
+ cancelFixed: '取消冻结列'
23936
+ },
23937
+ input: {
23938
+ date: {
23939
+ m1: '01 月',
23940
+ m2: '02 月',
23941
+ m3: '03 月',
23942
+ m4: '04 月',
23943
+ m5: '05 月',
23944
+ m6: '06 月',
23945
+ m7: '07 月',
23946
+ m8: '08 月',
23947
+ m9: '09 月',
23948
+ m10: '10 月',
23949
+ m11: '11 月',
23950
+ m12: '12 月',
23951
+ quarterLabel: '{0} 年',
23952
+ monthLabel: '{0} 年',
23953
+ dayLabel: '{0} 年 {1}',
23954
+ labelFormat: {
23955
+ date: 'yyyy-MM-dd',
23956
+ time: 'HH:mm:ss',
23957
+ datetime: 'yyyy-MM-dd HH:mm:ss',
23958
+ week: 'yyyy 年第 WW 周',
23959
+ month: 'yyyy-MM',
23960
+ quarter: 'yyyy 年第 q 季度',
23961
+ year: 'yyyy'
23962
+ },
23963
+ weeks: {
23964
+ w: '周',
23965
+ w0: '周日',
23966
+ w1: '周一',
23967
+ w2: '周二',
23968
+ w3: '周三',
23969
+ w4: '周四',
23970
+ w5: '周五',
23971
+ w6: '周六'
23972
+ },
23973
+ months: {
23974
+ m0: '一月',
23975
+ m1: '二月',
23976
+ m2: '三月',
23977
+ m3: '四月',
23978
+ m4: '五月',
23979
+ m5: '六月',
23980
+ m6: '七月',
23981
+ m7: '八月',
23982
+ m8: '九月',
23983
+ m9: '十月',
23984
+ m10: '十一月',
23985
+ m11: '十二月'
23986
+ },
23987
+ quarters: {
23988
+ q1: '第一季度',
23989
+ q2: '第二季度',
23990
+ q3: '第三季度',
23991
+ q4: '第四季度'
23992
+ }
23993
+ }
23994
+ },
23995
+ imagePreview: {
23996
+ popupTitle: '预览',
23997
+ operBtn: {
23998
+ zoomOut: '缩小',
23999
+ zoomIn: '放大',
24000
+ pctFull: '等比例缩放',
24001
+ pct11: '显示原始尺寸',
24002
+ rotateLeft: '向左旋转',
24003
+ rotateRight: '向右旋转',
24004
+ print: '点击打印图片',
24005
+ download: '点击下载图片'
24006
+ }
24007
+ },
24008
+ upload: {
24009
+ fileBtnText: '点击或拖拽上传',
24010
+ imgBtnText: '点击或拖拽上传',
24011
+ dragPlaceholder: '请把文件拖放到这个区域即可上传',
24012
+ imgSizeHint: '单张{0}',
24013
+ imgCountHint: '最多{0}张',
24014
+ fileTypeHint: '支持 {0} 文件类型',
24015
+ fileSizeHint: '单个文件大小不超过{0}',
24016
+ fileCountHint: '最多可上传{0}个文件',
24017
+ overCountErr: '最多只能选择{0}个文件!',
24018
+ overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
24019
+ overSizeErr: '文件大小最大不能超过{0}!',
24020
+ reUpload: '重新上传',
24021
+ uploadProgress: '上传中 {0}%',
24022
+ uploadErr: '上传失败',
24023
+ uploadSuccess: '上传成功'
24024
+ },
24025
+ formDesign: {
24026
+ formName: '表单名称',
24027
+ defFormTitle: '未命名的表单',
24028
+ widgetPropTab: '控件属性',
24029
+ widgetFormTab: '表单属性',
24030
+ styleSetting: {
24031
+ btn: '样式设置',
24032
+ title: '表单的样式设置',
24033
+ layoutTitle: '控件布局',
24034
+ verticalLayout: '上下布局',
24035
+ horizontalLayout: '横向布局',
24036
+ styleTitle: '标题样式',
24037
+ boldTitle: '标题加粗',
24038
+ fontBold: '加粗',
24039
+ fontNormal: '常规',
24040
+ colonTitle: '显示冒号',
24041
+ colonVisible: '显示',
24042
+ colonHidden: '隐藏',
24043
+ alignTitle: '对齐方式',
24044
+ widthTitle: '标题宽度',
24045
+ alignLeft: '居左',
24046
+ alignRight: '居右',
24047
+ unitPx: '像素',
24048
+ unitPct: '百分比'
24049
+ },
24050
+ widget: {
24051
+ group: {
24052
+ base: '基础控件',
24053
+ layout: '布局控件',
24054
+ advanced: '高级控件'
24055
+ },
24056
+ copyTitle: '副本_{0}',
24057
+ component: {
24058
+ input: '输入框',
24059
+ textarea: '文本域',
24060
+ select: '下拉框',
24061
+ row: '一行多列',
24062
+ title: '文本',
24063
+ subtable: '子表',
24064
+ VxeSwitch: '是/否',
24065
+ VxeInput: '输入框',
24066
+ VxeNumberInput: '数字',
24067
+ VxeDatePicker: '日期',
24068
+ VxeTextarea: '文本域',
24069
+ VxeSelect: '下拉框',
24070
+ VxeRadioGroup: '单选框',
24071
+ VxeCheckboxGroup: '复选框',
24072
+ VxeUploadFile: '文件',
24073
+ VxeUploadImage: '图片'
24074
+ }
24075
+ },
24076
+ widgetProp: {
24077
+ name: '控件名称',
24078
+ placeholder: '提示语',
24079
+ required: '必填校验',
24080
+ displaySetting: {
24081
+ name: '显示设置',
24082
+ pc: '电脑端',
24083
+ mobile: '手机端',
24084
+ visible: '显示',
24085
+ hidden: '隐藏'
24086
+ },
24087
+ dataSource: {
24088
+ name: '数据源',
24089
+ defValue: '选项{0}',
24090
+ addOption: '添加选项',
24091
+ batchEditOption: '批量编辑',
24092
+ batchEditTip: '每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。',
24093
+ batchEditSubTip: '每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。',
24094
+ buildOption: '生成选项'
24095
+ },
24096
+ rowProp: {
24097
+ colSize: '列数',
24098
+ col2: '两列',
24099
+ col3: '三列',
24100
+ col4: '四列',
24101
+ col6: '六列',
24102
+ layout: '布局'
24103
+ },
24104
+ textProp: {
24105
+ name: '内容',
24106
+ alignTitle: '对齐方式',
24107
+ alignLeft: '居左',
24108
+ alignCenter: '居中',
24109
+ alignRight: '居右',
24110
+ colorTitle: '字体颜色',
24111
+ sizeTitle: '字体大小',
24112
+ boldTitle: '字体加粗',
24113
+ fontNormal: '常规',
24114
+ fontBold: '加粗'
24115
+ },
24116
+ subtableProp: {
24117
+ seqTitle: '序号',
24118
+ showSeq: '显示序号',
24119
+ showCheckbox: '允许多选',
24120
+ errSubDrag: '子表不支持该控件,请使用其他控件'
24121
+ },
24122
+ uploadProp: {
24123
+ limitFileCount: '文件数量限制',
24124
+ limitFileSize: '文件大小限制',
24125
+ multiFile: '允许上传多个文件',
24126
+ limitImgCount: '图片数量限制',
24127
+ limitImgSize: '图片大小限制',
24128
+ multiImg: '允许上传多张图片'
24129
+ }
24130
+ }
24131
+ },
24132
+ listDesign: {
24133
+ fieldSettingTab: '字段设置',
24134
+ listSettingTab: '列表设置'
24135
+ },
24136
+ /**
24137
+ * 扩展插件
24138
+ */
24139
+ plugins: {
24140
+ extendCellArea: {
24141
+ area: {
24142
+ mergeErr: '无法对合并单元格进行该操作',
24143
+ multiErr: '无法对多重选择区域进行该操作',
24144
+ extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
24145
+ pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
24146
+ cpInvalidErr: '该操作无法进行,您选择的区域中存在被禁止的列({0})'
24147
+ },
24148
+ fnr: {
24149
+ title: '查找和替换',
24150
+ findLabel: '查找',
24151
+ replaceLabel: '替换',
24152
+ findTitle: '查找内容:',
24153
+ replaceTitle: '替换为:',
24154
+ tabs: {
24155
+ find: '查找',
24156
+ replace: '替换'
24157
+ },
24158
+ filter: {
24159
+ re: '正则表达式',
24160
+ whole: '全词匹配',
24161
+ sensitive: '区分大小写'
24162
+ },
24163
+ btns: {
24164
+ findNext: '查找下一个',
24165
+ findAll: '查找全部',
24166
+ replace: '替换',
24167
+ replaceAll: '替换全部',
24168
+ cancel: '取消'
24169
+ },
24170
+ header: {
24171
+ seq: '#',
24172
+ cell: '单元格',
24173
+ value: '值'
24174
+ },
24175
+ empty: '(空值)',
24176
+ reError: '无效的正则表达式',
24177
+ recordCount: '已找到 {0} 个单元格',
24178
+ notCell: '找不到匹配的单元格',
24179
+ replaceSuccess: '成功替换 {0} 个单元格'
24180
+ }
24181
+ },
24182
+ filterComplexInput: {
24183
+ menus: {
24184
+ fixedColumn: '冻结列',
24185
+ fixedGroup: '冻结分组',
24186
+ cancelFixed: '取消冻结',
24187
+ fixedLeft: '冻结左侧',
24188
+ fixedRight: '冻结右侧'
24189
+ },
24190
+ cases: {
24191
+ equal: '等于',
24192
+ gt: '大于',
24193
+ lt: '小于',
24194
+ begin: '开头是',
24195
+ endin: '结尾是',
24196
+ include: '包含',
24197
+ isSensitive: '区分大小写'
24198
+ }
24199
+ },
24200
+ filterCombination: {
24201
+ menus: {
24202
+ clearSort: '清除排序',
24203
+ sortAsc: '升序',
24204
+ sortDesc: '降序',
24205
+ fixedColumn: '冻结列',
24206
+ fixedGroup: '冻结分组',
24207
+ cancelFixed: '取消冻结',
24208
+ fixedLeft: '冻结左侧',
24209
+ fixedRight: '冻结右侧',
24210
+ clearFilter: '清除筛选',
24211
+ textOption: '文本筛选',
24212
+ numberOption: '数值筛选'
24213
+ },
24214
+ popup: {
24215
+ title: '自定义筛选的方式',
24216
+ currColumnTitle: '当前列:',
24217
+ and: '与',
24218
+ or: '或',
24219
+ describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
24220
+ },
24221
+ cases: {
24222
+ equal: '等于',
24223
+ unequal: '不等于',
24224
+ gt: '大于',
24225
+ ge: '大于或等于',
24226
+ lt: '小于',
24227
+ le: '小于或等于',
24228
+ begin: '开头是',
24229
+ notbegin: '开头不是',
24230
+ endin: '结尾是',
24231
+ notendin: '结尾不是',
24232
+ include: '包含',
24233
+ exclude: '不包含',
24234
+ between: '介于',
24235
+ custom: '自定义筛选',
24236
+ insensitive: '不区分大小写',
24237
+ isSensitive: '区分大小写'
24238
+ },
24239
+ empty: '(空白)',
24240
+ notData: '无匹配项'
24241
+ }
24242
+ },
24243
+ /**
24244
+ * 以下废弃
24245
+ * @deprecated
24246
+ */
24247
+ pro: {
24248
+ area: {
24249
+ mergeErr: '无法对合并单元格进行该操作',
24250
+ multiErr: '无法对多重选择区域进行该操作',
24251
+ extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
24252
+ pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
24253
+ },
24254
+ fnr: {
24255
+ title: '查找和替换',
24256
+ findLabel: '查找',
24257
+ replaceLabel: '替换',
24258
+ findTitle: '查找内容:',
24259
+ replaceTitle: '替换为:',
24260
+ tabs: {
24261
+ find: '查找',
24262
+ replace: '替换'
24263
+ },
24264
+ filter: {
24265
+ re: '正则表达式',
24266
+ whole: '全词匹配',
24267
+ sensitive: '区分大小写'
24268
+ },
24269
+ btns: {
24270
+ findNext: '查找下一个',
24271
+ findAll: '查找全部',
24272
+ replace: '替换',
24273
+ replaceAll: '替换全部',
24274
+ cancel: '取消'
24275
+ },
24276
+ header: {
24277
+ seq: '#',
24278
+ cell: '单元格',
24279
+ value: '值'
24280
+ },
24281
+ empty: '(空值)',
24282
+ reError: '无效的正则表达式',
24283
+ recordCount: '已找到 {0} 个单元格',
24284
+ notCell: '找不到匹配的单元格',
24285
+ replaceSuccess: '成功替换 {0} 个单元格'
24286
+ }
24287
+ },
24288
+ renderer: {
24289
+ search: '搜索',
24290
+ cases: {
24291
+ equal: '等于',
24292
+ unequal: '不等于',
24293
+ gt: '大于',
24294
+ ge: '大于或等于',
24295
+ lt: '小于',
24296
+ le: '小于或等于',
24297
+ begin: '开头是',
24298
+ notbegin: '开头不是',
24299
+ endin: '结尾是',
24300
+ notendin: '结尾不是',
24301
+ include: '包含',
24302
+ exclude: '不包含',
24303
+ between: '介于',
24304
+ custom: '自定义筛选',
24305
+ insensitive: '不区分大小写',
24306
+ isSensitive: '区分大小写'
24307
+ },
24308
+ combination: {
24309
+ menus: {
24310
+ clearSort: '清除排序',
24311
+ sortAsc: '升序',
24312
+ sortDesc: '降序',
24313
+ fixedColumn: '锁定列',
24314
+ fixedGroup: '锁定组',
24315
+ cancelFixed: '取消锁定',
24316
+ fixedLeft: '锁定左侧',
24317
+ fixedRight: '锁定右侧',
24318
+ clearFilter: '清除筛选',
24319
+ textOption: '文本筛选',
24320
+ numberOption: '数值筛选'
24321
+ },
24322
+ popup: {
24323
+ title: '自定义筛选的方式',
24324
+ currColumnTitle: '当前列:',
24325
+ and: '与',
24326
+ or: '或',
24327
+ describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
24328
+ },
24329
+ empty: '(空白)',
24330
+ notData: '无匹配项'
24331
+ }
24332
+ }
24333
+ }
24334
+ });
23706
24335
  ;// CONCATENATED MODULE: ./packages/components.ts
23707
24336
 
23708
24337
 
@@ -23710,12 +24339,18 @@ const Grid = VxeGrid;
23710
24339
 
23711
24340
 
23712
24341
 
24342
+
23713
24343
  const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
23714
24344
  // 默认安装
23715
24345
  function install(app, options) {
23716
24346
  core_.VxeUI.setConfig(options);
23717
24347
  components.forEach(component => component.install(app));
23718
24348
  }
24349
+ // 保留兼容老版本
24350
+ const defaultLanguage = 'zh-CN';
24351
+ core_.VxeUI.setI18n(defaultLanguage, zh_CN);
24352
+ core_.VxeUI.setLanguage(defaultLanguage);
24353
+ core_.VxeUI.setTheme('light');
23719
24354
 
23720
24355
  // Components
23721
24356