vxe-table 3.8.3 → 3.8.4

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 (89) hide show
  1. package/README.md +1 -0
  2. package/lib/button/src/button.js +44 -5
  3. package/lib/button/src/button.min.js +1 -1
  4. package/lib/button/src/group.js +10 -1
  5. package/lib/button/src/group.min.js +1 -1
  6. package/lib/custom/src/panel.js +18 -3
  7. package/lib/custom/src/panel.min.js +1 -1
  8. package/lib/custom/style/style.css +15 -9
  9. package/lib/custom/style/style.min.css +1 -1
  10. package/lib/edit/src/mixin.js +10 -7
  11. package/lib/edit/src/mixin.min.js +1 -1
  12. package/lib/grid/src/grid.js +3 -2
  13. package/lib/grid/src/grid.min.js +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.umd.js +189 -94
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/locale/lang/en-US.js +75 -74
  20. package/lib/locale/lang/en-US.min.js +1 -1
  21. package/lib/locale/lang/en-US.umd.js +75 -74
  22. package/lib/locale/lang/es-ES.js +11 -2
  23. package/lib/locale/lang/es-ES.min.js +1 -1
  24. package/lib/locale/lang/es-ES.umd.js +11 -2
  25. package/lib/locale/lang/ja-JP.js +157 -156
  26. package/lib/locale/lang/ja-JP.min.js +1 -1
  27. package/lib/locale/lang/ja-JP.umd.js +157 -156
  28. package/lib/locale/lang/pt-BR.js +199 -190
  29. package/lib/locale/lang/pt-BR.min.js +1 -1
  30. package/lib/locale/lang/pt-BR.umd.js +199 -190
  31. package/lib/locale/lang/zh-CN.js +53 -52
  32. package/lib/locale/lang/zh-CN.min.js +1 -1
  33. package/lib/locale/lang/zh-CN.umd.js +53 -52
  34. package/lib/locale/lang/zh-HK.min.js +1 -1
  35. package/lib/locale/lang/zh-HK.umd.js +60 -59
  36. package/lib/locale/lang/zh-MO.min.js +1 -1
  37. package/lib/locale/lang/zh-MO.umd.js +60 -59
  38. package/lib/locale/lang/zh-TC.js +60 -59
  39. package/lib/locale/lang/zh-TC.min.js +1 -1
  40. package/lib/locale/lang/zh-TC.umd.js +60 -59
  41. package/lib/locale/lang/zh-TW.min.js +1 -1
  42. package/lib/locale/lang/zh-TW.umd.js +60 -59
  43. package/lib/menu/src/mixin.js +5 -5
  44. package/lib/menu/src/mixin.min.js +1 -1
  45. package/lib/style.css +1 -1
  46. package/lib/style.min.css +1 -1
  47. package/lib/table/src/methods.js +32 -13
  48. package/lib/table/src/methods.min.js +1 -1
  49. package/lib/table/src/table.js +5 -0
  50. package/lib/table/src/table.min.js +1 -1
  51. package/lib/table/src/util.js +2 -2
  52. package/lib/table/src/util.min.js +1 -1
  53. package/lib/tools/log.js +1 -1
  54. package/lib/tools/log.min.js +1 -1
  55. package/lib/v-x-e-table/index.js +1 -1
  56. package/lib/v-x-e-table/index.min.js +1 -1
  57. package/lib/v-x-e-table/src/interceptor.js +1 -1
  58. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  59. package/lib/vxe-table-custom-module/style/style.css +15 -9
  60. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  61. package/package.json +1 -1
  62. package/packages/button/src/button.js +42 -9
  63. package/packages/button/src/group.js +8 -2
  64. package/packages/custom/src/panel.js +22 -5
  65. package/packages/edit/src/mixin.js +9 -7
  66. package/packages/grid/src/grid.js +2 -2
  67. package/packages/locale/lang/en-US.js +75 -74
  68. package/packages/locale/lang/es-ES.js +11 -2
  69. package/packages/locale/lang/ja-JP.js +157 -156
  70. package/packages/locale/lang/pt-BR.js +200 -191
  71. package/packages/locale/lang/zh-CN.js +53 -52
  72. package/packages/locale/lang/zh-TC.js +60 -59
  73. package/packages/menu/src/mixin.js +5 -5
  74. package/packages/table/src/methods.js +33 -14
  75. package/packages/table/src/table.js +5 -0
  76. package/packages/table/src/util.js +2 -2
  77. package/packages/v-x-e-table/src/interceptor.js +1 -1
  78. package/styles/custom.scss +14 -2
  79. package/types/checkbox-group.d.ts +1 -1
  80. package/types/colgroup.d.ts +2 -4
  81. package/types/column.d.ts +7 -9
  82. package/types/table.d.ts +3 -4
  83. package/types/v-x-e-table/renderer.d.ts +1 -2
  84. /package/lib/icon/style/{iconfont.1714353062133.ttf → iconfont.1714486550546.ttf} +0 -0
  85. /package/lib/icon/style/{iconfont.1714353062133.woff → iconfont.1714486550546.woff} +0 -0
  86. /package/lib/icon/style/{iconfont.1714353062133.woff2 → iconfont.1714486550546.woff2} +0 -0
  87. /package/lib/{iconfont.1714353062133.ttf → iconfont.1714486550546.ttf} +0 -0
  88. /package/lib/{iconfont.1714353062133.woff → iconfont.1714486550546.woff} +0 -0
  89. /package/lib/{iconfont.1714353062133.woff2 → iconfont.1714486550546.woff2} +0 -0
@@ -307,7 +307,7 @@ export default {
307
307
  }
308
308
  // 如果当前行被激活编辑,则清除激活状态
309
309
  if (actived.row && this.findRowIndexOf(rows, actived.row) > -1) {
310
- this.clearActived()
310
+ this.clearEdit()
311
311
  }
312
312
  // 从新增中移除已删除的数据
313
313
  rows.forEach(row => {
@@ -439,7 +439,7 @@ export default {
439
439
  }
440
440
  this.closeTooltip()
441
441
  if (actived.column) {
442
- this.clearActived(evnt)
442
+ this.clearEdit(evnt)
443
443
  }
444
444
  type = 'edit-activated'
445
445
  column.renderHeight = cell.offsetHeight
@@ -532,9 +532,9 @@ export default {
532
532
  }
533
533
  },
534
534
  _clearActived (evnt) {
535
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
536
- // warnLog('vxe.error.delFunc', ['clearActived', 'clearEdit'])
537
- // }
535
+ if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
536
+ warnLog('vxe.error.delFunc', ['clearActived', 'clearEdit'])
537
+ }
538
538
  // 即将废弃
539
539
  return this.clearEdit(evnt)
540
540
  },
@@ -543,7 +543,7 @@ export default {
543
543
  */
544
544
  _clearEdit (evnt) {
545
545
  const { editStore } = this
546
- const { actived } = editStore
546
+ const { actived, focused } = editStore
547
547
  const { row, column } = actived
548
548
  if (row || column) {
549
549
  this._syncActivedCell()
@@ -560,6 +560,8 @@ export default {
560
560
  $columnIndex: this.getVMColumnIndex(column)
561
561
  }, evnt)
562
562
  }
563
+ focused.row = null
564
+ focused.column = null
563
565
  if (GlobalConfig.cellVaildMode === 'obsolete') {
564
566
  if (this.clearValidate) {
565
567
  return this.clearValidate()
@@ -707,7 +709,7 @@ export default {
707
709
  const selectMethod = () => {
708
710
  if (isMouseSelected && (selected.row !== row || selected.column !== column)) {
709
711
  if (actived.row !== row || (editOpts.mode === 'cell' ? actived.column !== column : false)) {
710
- this.clearActived(evnt)
712
+ this.clearEdit(evnt)
711
713
  this.clearSelected(evnt)
712
714
  this.clearCellAreas(evnt)
713
715
  this.clearCopyCellArea(evnt)
@@ -524,7 +524,7 @@ export default {
524
524
  * @param {String/Object} code 字符串或对象
525
525
  */
526
526
  commitProxy (proxyTarget, ...args) {
527
- const { $refs, toolbar, toolbarConfig, toolbarOpts, proxyOpts, tablePage, pagerConfig, editRules, formData, isMsg } = this
527
+ const { $refs, toolbar, toolbarConfig, toolbarOpts, proxyOpts, tablePage, pagerConfig, editRules, formData, isMsg, validConfig } = this
528
528
  const { beforeQuery, afterQuery, beforeDelete, afterDelete, beforeSave, afterSave, ajax = {}, props: proxyProps = {} } = proxyOpts
529
529
  const $xetable = $refs.xTable
530
530
  let button
@@ -745,7 +745,7 @@ export default {
745
745
  let restPromise = Promise.resolve()
746
746
  if (editRules) {
747
747
  // 只校验新增和修改的数据
748
- restPromise = this.validate(body.insertRecords.concat(updateRecords))
748
+ restPromise = this[validConfig && validConfig.msgMode === 'full' ? 'fullValidate' : 'validate'](body.insertRecords.concat(updateRecords))
749
749
  }
750
750
  return restPromise.then((errMap) => {
751
751
  if (errMap) {
@@ -114,9 +114,10 @@ export default {
114
114
  cstmDragTarget: 'Moving target: {0}',
115
115
  setting: {
116
116
  colSort: 'Sort',
117
+ sortHelpTip: 'Click and drag the icon to adjust the order of the columns.',
117
118
  colTitle: 'Title',
118
119
  colVisible: 'Visible',
119
- colFixed: 'Freeze column',
120
+ colFixed: 'Freeze columns (Max {0})',
120
121
  fixedLeft: 'Left',
121
122
  fixedUnset: 'Unset',
122
123
  fixedRight: 'Right'
@@ -268,105 +269,105 @@ export default {
268
269
  plugins: {
269
270
  extendCellArea: {
270
271
  area: {
271
- mergeErr: '无法对合并单元格进行该操作',
272
- multiErr: '无法对多重选择区域进行该操作',
273
- extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
274
- pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
275
- cpInvalidErr: '该操作无法进行,您选择的区域中存在被禁止的列({0})'
272
+ mergeErr: 'The operation cannot be performed on merged cells',
273
+ multiErr: 'The operation cannot be performed on multiple selection areas',
274
+ extendErr: 'If the extended area contains merged cells, all merged cells need to be the same size',
275
+ pasteMultiErr: 'Cannot paste, copied area and pasted area of the same size are required to perform this operation',
276
+ cpInvalidErr: 'This operation cannot be performed because there are prohibited columns in the area you selected ({0})'
276
277
  },
277
278
  fnr: {
278
- title: '查找和替换',
279
- findLabel: '查找',
280
- replaceLabel: '替换',
281
- findTitle: '查找内容:',
282
- replaceTitle: '替换为:',
279
+ title: 'Find and replace',
280
+ findLabel: 'Find',
281
+ replaceLabel: 'Replace',
282
+ findTitle: 'What to find:',
283
+ replaceTitle: 'Replace with:',
283
284
  tabs: {
284
- find: '查找',
285
- replace: '替换'
285
+ find: 'Find',
286
+ replace: 'Replace'
286
287
  },
287
288
  filter: {
288
- re: '正则表达式',
289
- whole: '全词匹配',
290
- sensitive: '区分大小写'
289
+ re: 'Regular Expression',
290
+ whole: 'Whole word',
291
+ sensitive: 'Case sensitive'
291
292
  },
292
293
  btns: {
293
- findNext: '查找下一个',
294
- findAll: '查找全部',
295
- replace: '替换',
296
- replaceAll: '替换全部',
297
- cancel: '取消'
294
+ findNext: 'Find next',
295
+ findAll: 'Find all',
296
+ replace: 'Replace',
297
+ replaceAll: 'Replace all',
298
+ cancel: 'Cancel'
298
299
  },
299
300
  header: {
300
301
  seq: '#',
301
- cell: '单元格',
302
- value: '值'
302
+ cell: 'Cell',
303
+ value: 'Value'
303
304
  },
304
- empty: '(空值)',
305
- reError: '无效的正则表达式',
306
- recordCount: '已找到 {0} 个单元格',
307
- notCell: '找不到匹配的单元格',
308
- replaceSuccess: '成功替换 {0} 个单元格'
305
+ empty: '(Empty)',
306
+ reError: 'Invalid regular expression',
307
+ recordCount: 'Found {0} cells',
308
+ notCell: 'No matching cells were found',
309
+ replaceSuccess: 'Successfully replaced {0} cells'
309
310
  }
310
311
  },
311
312
  filterComplexInput: {
312
313
  menus: {
313
- fixedColumn: '锁定列',
314
- fixedGroup: '锁定组',
315
- cancelFixed: '取消锁定',
316
- fixedLeft: '锁定左侧',
317
- fixedRight: '锁定右侧'
314
+ fixedColumn: 'Freeze column',
315
+ fixedGroup: 'Freeze group',
316
+ cancelFixed: 'Clear freeze',
317
+ fixedLeft: 'Freeze the left',
318
+ fixedRight: 'Freeze the right'
318
319
  },
319
320
  cases: {
320
- equal: '等于',
321
- gt: '大于',
322
- lt: '小于',
323
- begin: '开头是',
324
- endin: '结尾是',
325
- include: '包含',
326
- isSensitive: '区分大小写'
321
+ equal: 'Equal',
322
+ gt: 'Greater than',
323
+ lt: 'Less than',
324
+ begin: 'Beginning is',
325
+ endin: 'End is',
326
+ include: 'Include',
327
+ isSensitive: 'Case sensitive'
327
328
  }
328
329
  },
329
330
  filterCombination: {
330
331
  menus: {
331
- clearSort: '清除排序',
332
- sortAsc: '升序',
333
- sortDesc: '降序',
334
- fixedColumn: '锁定列',
335
- fixedGroup: '锁定组',
336
- cancelFixed: '取消锁定',
337
- fixedLeft: '锁定左侧',
338
- fixedRight: '锁定右侧',
339
- clearFilter: '清除筛选',
340
- textOption: '文本筛选',
341
- numberOption: '数值筛选'
332
+ clearSort: 'Clear sort',
333
+ sortAsc: 'Ascending order',
334
+ sortDesc: 'Descending order',
335
+ fixedColumn: 'Freeze column',
336
+ fixedGroup: 'Freeze group',
337
+ cancelFixed: 'Clear freeze',
338
+ fixedLeft: 'Freeze the left',
339
+ fixedRight: 'Freeze the right',
340
+ clearFilter: 'Clear filter',
341
+ textOption: 'Text filter',
342
+ numberOption: 'Number filter'
342
343
  },
343
344
  popup: {
344
- title: '自定义筛选的方式',
345
- currColumnTitle: '当前列:',
346
- and: '与',
347
- or: '或',
348
- describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
345
+ title: 'Custom filtering',
346
+ currColumnTitle: 'Current column:',
347
+ and: 'And',
348
+ or: 'Or',
349
+ describeHtml: 'Use ? To represent a single character <br/> use * to represent any number of characters'
349
350
  },
350
351
  cases: {
351
- equal: '等于',
352
- unequal: '不等于',
353
- gt: '大于',
354
- ge: '大于或等于',
355
- lt: '小于',
356
- le: '小于或等于',
357
- begin: '开头是',
358
- notbegin: '开头不是',
359
- endin: '结尾是',
360
- notendin: '结尾不是',
361
- include: '包含',
362
- exclude: '不包含',
363
- between: '介于',
364
- custom: '自定义筛选',
365
- insensitive: '不区分大小写',
366
- isSensitive: '区分大小写'
352
+ equal: 'Equal',
353
+ unequal: 'Not equal',
354
+ gt: 'Greater than',
355
+ ge: 'Greater than or equal',
356
+ lt: 'Less than',
357
+ le: 'Less than or equal',
358
+ begin: 'Beginning is',
359
+ notbegin: 'Beginning is not',
360
+ endin: 'End is',
361
+ notendin: 'End is not',
362
+ include: 'Include',
363
+ exclude: 'Exclusive',
364
+ between: 'Betweenness',
365
+ custom: 'Custom filter',
366
+ insensitive: 'Case insensitive',
367
+ isSensitive: 'Case sensitive'
367
368
  },
368
- empty: '(空白)',
369
- notData: '无匹配项'
369
+ empty: '(Empty)',
370
+ notData: 'No data'
370
371
  }
371
372
  },
372
373
 
@@ -82,10 +82,18 @@ export default {
82
82
  pagesize: '{0}/página',
83
83
  total: 'Total {0} registro',
84
84
  pageClassifier: '',
85
+ homePage: 'Home',
86
+ homePageTitle: 'Home page',
85
87
  prevPage: 'Página anterior',
88
+ prevPageTitle: 'Previous page',
86
89
  nextPage: 'Siguiente página',
90
+ nextPageTitle: 'next page',
87
91
  prevJump: 'Saltar página anterior',
88
- nextJump: 'Saltar siguiente página'
92
+ prevJumpTitle: 'Jump previous page',
93
+ nextJump: 'Saltar siguiente página',
94
+ nextJumpTitle: 'Jump next page',
95
+ endPage: 'End page',
96
+ endPageTitle: 'End'
89
97
  },
90
98
  alert: {
91
99
  title: 'System messages'
@@ -106,9 +114,10 @@ export default {
106
114
  cstmDragTarget: 'Moving target: {0}',
107
115
  setting: {
108
116
  colSort: 'Sort',
117
+ sortHelpTip: 'Click and drag the icon to adjust the order of the columns.',
109
118
  colTitle: 'Title',
110
119
  colVisible: 'Visible',
111
- colFixed: 'Freeze column',
120
+ colFixed: 'Freeze columns (Max {0})',
112
121
  fixedLeft: 'Left',
113
122
  fixedUnset: 'Unset',
114
123
  fixedRight: 'Right'