vxe-table 4.9.0 → 4.9.1

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 +1 -0
  2. package/es/locale/lang/es-ES.js +1 -0
  3. package/es/locale/lang/hu-HU.js +1 -0
  4. package/es/locale/lang/ja-JP.js +1 -0
  5. package/es/locale/lang/ko-KR.js +1 -0
  6. package/es/locale/lang/pt-BR.js +1 -0
  7. package/es/locale/lang/ru-RU.js +1 -0
  8. package/es/locale/lang/uk-UA.js +1 -0
  9. package/es/locale/lang/vi-VN.js +1 -0
  10. package/es/locale/lang/zh-CHT.js +1 -0
  11. package/es/locale/lang/zh-CN.js +1 -0
  12. package/es/style.css +1 -1
  13. package/es/table/module/edit/hook.js +7 -0
  14. package/es/ui/index.js +1 -1
  15. package/es/ui/src/log.js +1 -1
  16. package/lib/index.umd.js +12 -2
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/locale/lang/en-US.js +1 -0
  19. package/lib/locale/lang/en-US.min.js +1 -1
  20. package/lib/locale/lang/en-US.umd.js +1 -0
  21. package/lib/locale/lang/es-ES.js +1 -0
  22. package/lib/locale/lang/es-ES.min.js +1 -1
  23. package/lib/locale/lang/es-ES.umd.js +1 -0
  24. package/lib/locale/lang/hu-HU.js +1 -0
  25. package/lib/locale/lang/hu-HU.min.js +1 -1
  26. package/lib/locale/lang/hu-HU.umd.js +1 -0
  27. package/lib/locale/lang/ja-JP.js +1 -0
  28. package/lib/locale/lang/ja-JP.min.js +1 -1
  29. package/lib/locale/lang/ja-JP.umd.js +1 -0
  30. package/lib/locale/lang/ko-KR.js +1 -0
  31. package/lib/locale/lang/ko-KR.min.js +1 -1
  32. package/lib/locale/lang/ko-KR.umd.js +1 -0
  33. package/lib/locale/lang/pt-BR.js +1 -0
  34. package/lib/locale/lang/pt-BR.min.js +1 -1
  35. package/lib/locale/lang/pt-BR.umd.js +1 -0
  36. package/lib/locale/lang/ru-RU.js +1 -0
  37. package/lib/locale/lang/ru-RU.min.js +1 -1
  38. package/lib/locale/lang/ru-RU.umd.js +1 -0
  39. package/lib/locale/lang/uk-UA.js +1 -0
  40. package/lib/locale/lang/uk-UA.min.js +1 -1
  41. package/lib/locale/lang/uk-UA.umd.js +1 -0
  42. package/lib/locale/lang/vi-VN.js +1 -0
  43. package/lib/locale/lang/vi-VN.min.js +1 -1
  44. package/lib/locale/lang/zh-CHT.js +1 -0
  45. package/lib/locale/lang/zh-CHT.min.js +1 -1
  46. package/lib/locale/lang/zh-CN.js +1 -0
  47. package/lib/locale/lang/zh-CN.min.js +1 -1
  48. package/lib/locale/lang/zh-CN.umd.js +1 -0
  49. package/lib/style.css +1 -1
  50. package/lib/table/module/edit/hook.js +9 -0
  51. package/lib/table/module/edit/hook.min.js +1 -1
  52. package/lib/ui/index.js +1 -1
  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 +1 -0
  58. package/packages/locale/lang/es-ES.ts +1 -0
  59. package/packages/locale/lang/hu-HU.ts +1 -0
  60. package/packages/locale/lang/ja-JP.ts +1 -0
  61. package/packages/locale/lang/ko-KR.ts +1 -0
  62. package/packages/locale/lang/pt-BR.ts +1 -0
  63. package/packages/locale/lang/ru-RU.ts +1 -0
  64. package/packages/locale/lang/uk-UA.ts +1 -0
  65. package/packages/locale/lang/vi-VN.ts +1 -0
  66. package/packages/locale/lang/zh-CHT.ts +1 -0
  67. package/packages/locale/lang/zh-CN.ts +1 -0
  68. package/packages/table/module/edit/hook.ts +7 -0
  69. /package/es/{iconfont.1731895336421.ttf → iconfont.1731937248477.ttf} +0 -0
  70. /package/es/{iconfont.1731895336421.woff → iconfont.1731937248477.woff} +0 -0
  71. /package/es/{iconfont.1731895336421.woff2 → iconfont.1731937248477.woff2} +0 -0
  72. /package/lib/{iconfont.1731895336421.ttf → iconfont.1731937248477.ttf} +0 -0
  73. /package/lib/{iconfont.1731895336421.woff → iconfont.1731937248477.woff} +0 -0
  74. /package/lib/{iconfont.1731895336421.woff2 → iconfont.1731937248477.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -28,7 +28,7 @@
28
28
  "style": "lib/style.css",
29
29
  "typings": "types/index.d.ts",
30
30
  "dependencies": {
31
- "vxe-pc-ui": "^4.3.0"
31
+ "vxe-pc-ui": "^4.3.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/resize-observer-browser": "^0.1.11",
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Support {0} file types',
309
309
  fileSizeHint: 'Single file size does not exceed {0}',
310
310
  fileCountHint: 'Up to {0} file can be uploaded',
311
+ uploadTypeErr: 'File type does not match!',
311
312
  overCountErr: 'You can only choose {0} file!',
312
313
  overCountExtraErr: 'It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!',
313
314
  overSizeErr: 'The size of the file is not more than {0}}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Support {0} file types',
309
309
  fileSizeHint: 'Single file size does not exceed {0}',
310
310
  fileCountHint: 'Up to {0} file can be uploaded',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: 'You can only choose {0} file!',
312
313
  overCountExtraErr: 'It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!',
313
314
  overSizeErr: 'The size of the file is not more than {0}}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Támogatott {0} fájltípus',
309
309
  fileSizeHint: 'Egyetlen fájl mérete nem haladja meg a következőt: {0}',
310
310
  fileCountHint: 'Legfeljebb {0} fájl tölthető fel',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: 'Csak {0} fájl választható ki!',
312
313
  overCountExtraErr: 'Túllépte a maximálisan megengedett {0} fájlt. A többlet {1} fájlt figyelmen kívül hagyja.',
313
314
  overSizeErr: 'A maximális fájlméret nem haladhatja meg a következőt: {0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Support {0} file types',
309
309
  fileSizeHint: 'Single file size does not exceed {0}',
310
310
  fileCountHint: 'Up to {0} file can be uploaded',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: 'You can only choose {0} file!',
312
313
  overCountExtraErr: 'It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!',
313
314
  overSizeErr: 'The size of the file is not more than {0}}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: '支持 {0} 文件类型',
309
309
  fileSizeHint: '单个文件大小不超过{0}',
310
310
  fileCountHint: '最多可上传{0}个文件',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: '最多只能选择{0}个文件!',
312
313
  overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
313
314
  overSizeErr: '文件大小最大不能超过{0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Support {0} file types',
309
309
  fileSizeHint: 'Single file size does not exceed {0}',
310
310
  fileCountHint: 'Up to {0} file can be uploaded',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: 'You can only choose {0} file!',
312
313
  overCountExtraErr: 'It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!',
313
314
  overSizeErr: 'The size of the file is not more than {0}}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: 'Поддерживаемые типы файлов: {0}',
309
309
  fileSizeHint: 'Размер одного файла не превышает {0}',
310
310
  fileCountHint: 'Можно загрузить до {0} файлов.',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: 'Можно выбрать только {0} файлов!',
312
313
  overCountExtraErr: 'Превышено максимальное количество файлов ({0}). Лишние файлы ({1}) будут проигнорированы!',
313
314
  overSizeErr: 'Максимальный размер файла не может превышать {0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: '支持 {0} 文件类型',
309
309
  fileSizeHint: '单个文件大小不超过{0}',
310
310
  fileCountHint: '最多可上传{0}个文件',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: '最多只能选择{0}个文件!',
312
313
  overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
313
314
  overSizeErr: '文件大小最大不能超过{0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: '支持 {0} 文件类型',
309
309
  fileSizeHint: '单个文件大小不超过{0}',
310
310
  fileCountHint: '最多可上传{0}个文件',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: '最多只能选择{0}个文件!',
312
313
  overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
313
314
  overSizeErr: '文件大小最大不能超过{0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: '支援 {0} 文件類型',
309
309
  fileSizeHint: '單一檔案大小不超過{0}',
310
310
  fileCountHint: '最多可上傳{0}個文件',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: '最多只能選擇{0}個檔案!',
312
313
  overCountExtraErr: '已超出最大數量{0}個,超出的{1}個檔案將被忽略!',
313
314
  overSizeErr: '檔案大小最大不能超過{0}!',
@@ -308,6 +308,7 @@ export default {
308
308
  fileTypeHint: '支持 {0} 文件类型',
309
309
  fileSizeHint: '单个文件大小不超过{0}',
310
310
  fileCountHint: '最多可上传{0}个文件',
311
+ uploadTypeErr: '文件类型不匹配!',
311
312
  overCountErr: '最多只能选择{0}个文件!',
312
313
  overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
313
314
  overSizeErr: '文件大小最大不能超过{0}!',
@@ -257,10 +257,12 @@ hooks.add('tableEditModule', {
257
257
  }
258
258
 
259
259
  const handleClearEdit = (evnt: Event | null, targetRow?: any) => {
260
+ const { mouseConfig } = props
260
261
  const { editStore } = reactData
261
262
  const { actived, focused } = editStore
262
263
  const { row, column } = actived
263
264
  const validOpts = computeValidOpts.value
265
+ const mouseOpts = computeMouseOpts.value
264
266
  if (row || column) {
265
267
  if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
266
268
  return nextTick()
@@ -279,6 +281,11 @@ hooks.add('tableEditModule', {
279
281
  $columnIndex: $xeTable.getVMColumnIndex(column)
280
282
  }, evnt || null)
281
283
  }
284
+ nextTick(() => {
285
+ if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
286
+ return $xeTable.handleRecalculateCellAreas()
287
+ }
288
+ })
282
289
  if (validOpts.autoClear) {
283
290
  if (validOpts.msgMode !== 'full' || getConfig().cellVaildMode === 'obsolete') {
284
291
  if ($xeTable.clearValidate) {