vxe-table 3.8.4-beta.0 → 3.8.5-beta.0

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 (85) hide show
  1. package/README.md +4 -3
  2. package/lib/custom/src/panel.js +18 -3
  3. package/lib/custom/src/panel.min.js +1 -1
  4. package/lib/custom/style/style.css +15 -9
  5. package/lib/custom/style/style.min.css +1 -1
  6. package/lib/edit/src/mixin.js +97 -88
  7. package/lib/edit/src/mixin.min.js +1 -1
  8. package/lib/icon/style/style.css +1 -1
  9. package/lib/icon/style/style.min.css +1 -1
  10. package/lib/index.css +1 -1
  11. package/lib/index.umd.js +156 -116
  12. package/lib/index.umd.min.js +1 -1
  13. package/lib/locale/lang/en-US.js +2 -1
  14. package/lib/locale/lang/en-US.min.js +1 -1
  15. package/lib/locale/lang/en-US.umd.js +2 -1
  16. package/lib/locale/lang/es-ES.js +2 -1
  17. package/lib/locale/lang/es-ES.min.js +1 -1
  18. package/lib/locale/lang/es-ES.umd.js +2 -1
  19. package/lib/locale/lang/ja-JP.js +2 -1
  20. package/lib/locale/lang/ja-JP.min.js +1 -1
  21. package/lib/locale/lang/ja-JP.umd.js +2 -1
  22. package/lib/locale/lang/pt-BR.js +2 -1
  23. package/lib/locale/lang/pt-BR.min.js +1 -1
  24. package/lib/locale/lang/pt-BR.umd.js +2 -1
  25. package/lib/locale/lang/zh-CN.js +2 -1
  26. package/lib/locale/lang/zh-CN.min.js +1 -1
  27. package/lib/locale/lang/zh-CN.umd.js +2 -1
  28. package/lib/locale/lang/zh-HK.min.js +1 -1
  29. package/lib/locale/lang/zh-HK.umd.js +2 -1
  30. package/lib/locale/lang/zh-MO.min.js +1 -1
  31. package/lib/locale/lang/zh-MO.umd.js +2 -1
  32. package/lib/locale/lang/zh-TC.js +2 -1
  33. package/lib/locale/lang/zh-TC.min.js +1 -1
  34. package/lib/locale/lang/zh-TC.umd.js +2 -1
  35. package/lib/locale/lang/zh-TW.min.js +1 -1
  36. package/lib/locale/lang/zh-TW.umd.js +2 -1
  37. package/lib/menu/src/mixin.js +5 -5
  38. package/lib/menu/src/mixin.min.js +1 -1
  39. package/lib/style.css +1 -1
  40. package/lib/style.min.css +1 -1
  41. package/lib/table/src/methods.js +32 -13
  42. package/lib/table/src/methods.min.js +1 -1
  43. package/lib/table/src/table.js +14 -9
  44. package/lib/table/src/table.min.js +1 -1
  45. package/lib/table/src/util.js +2 -2
  46. package/lib/table/src/util.min.js +1 -1
  47. package/lib/table/style/style.css +0 -6
  48. package/lib/table/style/style.min.css +1 -1
  49. package/lib/tools/log.js +1 -1
  50. package/lib/tools/log.min.js +1 -1
  51. package/lib/v-x-e-table/index.js +1 -1
  52. package/lib/v-x-e-table/index.min.js +1 -1
  53. package/lib/v-x-e-table/src/interceptor.js +1 -1
  54. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  55. package/lib/vxe-table/style/style.css +0 -6
  56. package/lib/vxe-table/style/style.min.css +1 -1
  57. package/lib/vxe-table-custom-module/style/style.css +15 -9
  58. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  59. package/package.json +2 -2
  60. package/packages/custom/src/panel.js +22 -5
  61. package/packages/edit/src/mixin.js +87 -80
  62. package/packages/locale/lang/en-US.js +2 -1
  63. package/packages/locale/lang/es-ES.js +2 -1
  64. package/packages/locale/lang/ja-JP.js +2 -1
  65. package/packages/locale/lang/pt-BR.js +2 -1
  66. package/packages/locale/lang/zh-CN.js +2 -1
  67. package/packages/locale/lang/zh-TC.js +2 -1
  68. package/packages/menu/src/mixin.js +5 -5
  69. package/packages/table/src/methods.js +32 -15
  70. package/packages/table/src/table.js +14 -9
  71. package/packages/table/src/util.js +2 -2
  72. package/packages/v-x-e-table/src/interceptor.js +1 -1
  73. package/styles/custom.scss +14 -2
  74. package/styles/table.scss +14 -14
  75. package/types/checkbox-group.d.ts +1 -1
  76. package/types/colgroup.d.ts +2 -4
  77. package/types/column.d.ts +7 -9
  78. package/types/table.d.ts +3 -4
  79. package/types/v-x-e-table/renderer.d.ts +1 -2
  80. /package/lib/icon/style/{iconfont.1714444985876.ttf → iconfont.1714960961818.ttf} +0 -0
  81. /package/lib/icon/style/{iconfont.1714444985876.woff → iconfont.1714960961818.woff} +0 -0
  82. /package/lib/icon/style/{iconfont.1714444985876.woff2 → iconfont.1714960961818.woff2} +0 -0
  83. /package/lib/{iconfont.1714444985876.ttf → iconfont.1714960961818.ttf} +0 -0
  84. /package/lib/{iconfont.1714444985876.woff → iconfont.1714960961818.woff} +0 -0
  85. /package/lib/{iconfont.1714444985876.woff2 → iconfont.1714960961818.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11346,7 +11346,7 @@ var es_array_concat = __webpack_require__(8706);
11346
11346
 
11347
11347
 
11348
11348
  function getLog(message, params) {
11349
- return "[vxe-table v".concat("3.8.4-beta.0", "] ").concat(conf.i18n(message, params));
11349
+ return "[vxe-table v".concat("3.8.5-beta.0", "] ").concat(conf.i18n(message, params));
11350
11350
  }
11351
11351
  function outLog(type) {
11352
11352
  return function (message, params) {
@@ -11368,7 +11368,7 @@ var errLog = outLog('error');
11368
11368
  function toType(type) {
11369
11369
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(type).replace('_', '').toLowerCase();
11370
11370
  }
11371
- var eventTypes = 'created,mounted,activated,beforeDestroy,destroyed,event.clearActived,event.clearFilter,event.clearAreas,event.showMenu,event.keydown,event.export,event.import'.split(',').map(toType);
11371
+ var eventTypes = 'created,mounted,activated,beforeDestroy,destroyed,event.clearEdit,event.clearActived,event.clearFilter,event.clearAreas,event.showMenu,event.keydown,event.export,event.import'.split(',').map(toType);
11372
11372
  var storeMap = {};
11373
11373
  var interceptor = {
11374
11374
  mixin: function mixin(map) {
@@ -13067,7 +13067,7 @@ var setup = config;
13067
13067
  var globalStore = {};
13068
13068
  var VXETable = {
13069
13069
  v: v,
13070
- version: "3.8.4-beta.0",
13070
+ version: "3.8.5-beta.0",
13071
13071
  reg: reg,
13072
13072
  use: use,
13073
13073
  setup: setup,
@@ -13099,6 +13099,8 @@ var es_map = __webpack_require__(6033);
13099
13099
  var es_object_assign = __webpack_require__(9085);
13100
13100
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
13101
13101
  var es_string_fixed = __webpack_require__(4298);
13102
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
13103
+ var es_promise = __webpack_require__(3362);
13102
13104
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.js
13103
13105
 
13104
13106
 
@@ -13458,6 +13460,7 @@ var DomTools = {
13458
13460
 
13459
13461
 
13460
13462
 
13463
+
13461
13464
  var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn) {
13462
13465
  var result = [];
13463
13466
  columns.forEach(function (column) {
@@ -13737,8 +13740,8 @@ function clearTableDefaultStatus(_vm) {
13737
13740
  _vm.clearRowExpand();
13738
13741
  _vm.clearTreeExpand();
13739
13742
  _vm.clearTreeExpandReserve();
13740
- if (_vm.clearActived && v_x_e_table._edit) {
13741
- _vm.clearActived();
13743
+ if (_vm.clearEdit && v_x_e_table._edit) {
13744
+ _vm.clearEdit();
13742
13745
  }
13743
13746
  if (_vm.clearSelected && (_vm.keyboardConfig || _vm.mouseConfig)) {
13744
13747
  _vm.clearSelected();
@@ -15650,8 +15653,6 @@ function _slicedToArray(arr, i) {
15650
15653
  }
15651
15654
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
15652
15655
  var es_array_sort = __webpack_require__(6910);
15653
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
15654
- var es_promise = __webpack_require__(3362);
15655
15656
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
15656
15657
  var es_promise_finally = __webpack_require__(9391);
15657
15658
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
@@ -16546,6 +16547,8 @@ var Cell = {
16546
16547
 
16547
16548
 
16548
16549
 
16550
+
16551
+
16549
16552
 
16550
16553
 
16551
16554
 
@@ -19243,6 +19246,14 @@ var Methods = {
19243
19246
  preventEvent: function preventEvent(evnt, type, args, next, end) {
19244
19247
  var _this26 = this;
19245
19248
  var evntList = v_x_e_table.interceptor.get(type);
19249
+
19250
+ // 兼容老版本
19251
+ if (!evntList.length && type === 'event.clearEdit') {
19252
+ evntList = v_x_e_table.interceptor.get('event.clearActived');
19253
+ if (false) {}
19254
+ }
19255
+ // 兼容老版本
19256
+
19246
19257
  var rest;
19247
19258
  if (!evntList.some(function (func) {
19248
19259
  return func(Object.assign({
@@ -19321,32 +19332,32 @@ var Methods = {
19321
19332
  } else if (!this.lastCallTime || this.lastCallTime + 50 < Date.now()) {
19322
19333
  if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-clear').flag) {
19323
19334
  // 如果手动调用了激活单元格,避免触发源被移除后导致重复关闭
19324
- this.preventEvent(evnt, 'event.clearActived', actived.args, function () {
19325
- var isClearActived;
19335
+ this.preventEvent(evnt, 'event.clearEdit', actived.args, function () {
19336
+ var isClear;
19326
19337
  if (editOpts.mode === 'row') {
19327
19338
  var rowNode = getEventTargetNode(evnt, $el, 'vxe-body--row');
19328
19339
  // row 方式,如果点击了不同行
19329
- isClearActived = rowNode.flag ? getRowNode(rowNode.targetElem).item !== actived.args.row : false;
19340
+ isClear = rowNode.flag ? getRowNode(rowNode.targetElem).item !== actived.args.row : false;
19330
19341
  } else {
19331
19342
  // cell 方式,如果是非编辑列
19332
- isClearActived = !getEventTargetNode(evnt, $el, 'col--edit').flag;
19343
+ isClear = !getEventTargetNode(evnt, $el, 'col--edit').flag;
19333
19344
  }
19334
19345
  // 如果点击表头行,则清除激活状态
19335
- if (!isClearActived) {
19336
- isClearActived = getEventTargetNode(evnt, $el, 'vxe-header--row').flag;
19346
+ if (!isClear) {
19347
+ isClear = getEventTargetNode(evnt, $el, 'vxe-header--row').flag;
19337
19348
  }
19338
19349
  // 如果点击表尾行,则清除激活状态
19339
- if (!isClearActived) {
19340
- isClearActived = getEventTargetNode(evnt, $el, 'vxe-footer--row').flag;
19350
+ if (!isClear) {
19351
+ isClear = getEventTargetNode(evnt, $el, 'vxe-footer--row').flag;
19341
19352
  }
19342
19353
  // 如果固定了高度且点击了行之外的空白处,则清除激活状态
19343
- if (!isClearActived && _this27.height && !_this27.overflowY) {
19354
+ if (!isClear && _this27.height && !_this27.overflowY) {
19344
19355
  var bodyWrapperElem = evnt.target;
19345
19356
  if (methods_hasClass(bodyWrapperElem, 'vxe-table--body-wrapper')) {
19346
- isClearActived = evnt.offsetY < bodyWrapperElem.clientHeight;
19357
+ isClear = evnt.offsetY < bodyWrapperElem.clientHeight;
19347
19358
  }
19348
19359
  }
19349
- if (isClearActived ||
19360
+ if (isClear ||
19350
19361
  // 如果点击了当前表格之外
19351
19362
  !getEventTargetNode(evnt, $el).flag) {
19352
19363
  setTimeout(function () {
@@ -21012,11 +21023,13 @@ var Methods = {
21012
21023
  radioOpts = this.radioOpts,
21013
21024
  expandOpts = this.expandOpts,
21014
21025
  treeOpts = this.treeOpts,
21026
+ keyboardOpts = this.keyboardOpts,
21015
21027
  editConfig = this.editConfig,
21016
21028
  editOpts = this.editOpts,
21017
21029
  checkboxOpts = this.checkboxOpts,
21018
21030
  rowOpts = this.rowOpts;
21019
- var actived = editStore.actived;
21031
+ var actived = editStore.actived,
21032
+ focused = editStore.focused;
21020
21033
  var _params = params,
21021
21034
  row = _params.row,
21022
21035
  column = _params.column;
@@ -21067,6 +21080,11 @@ var Methods = {
21067
21080
  }
21068
21081
  // 如果设置了单元格选中功能,则不会使用点击事件去处理(只能支持双击模式)
21069
21082
  if (isEnableConf(editConfig)) {
21083
+ // 记录点击输入框聚焦状态
21084
+ if (keyboardOpts.arrowCursorLock && evnt && editOpts.mode === 'cell' && evnt.target && /^input|textarea$/i.test(evnt.target.tagName)) {
21085
+ focused.column = column;
21086
+ focused.row = row;
21087
+ }
21070
21088
  if (editOpts.trigger === 'manual') {
21071
21089
  if (actived.args && actived.row === row && column !== actived.column) {
21072
21090
  this.handleChangeCell(evnt, params);
@@ -23341,6 +23359,11 @@ function handleUupdateResize(_vm) {
23341
23359
  row: null,
23342
23360
  column: null
23343
23361
  },
23362
+ // 当前被强制聚焦单元格,只会在鼠标点击后算聚焦
23363
+ focused: {
23364
+ row: null,
23365
+ column: null
23366
+ },
23344
23367
  insertList: [],
23345
23368
  insertMaps: {},
23346
23369
  removeList: [],
@@ -24754,6 +24777,7 @@ var Filter = VxeTableFilterModule;
24754
24777
 
24755
24778
 
24756
24779
 
24780
+
24757
24781
  /* harmony default export */ var src_mixin = ({
24758
24782
  methods: {
24759
24783
  /**
@@ -24837,7 +24861,7 @@ var Filter = VxeTableFilterModule;
24837
24861
  if (activeArea && activeArea.row && activeArea.column) {
24838
24862
  params.row = activeArea.row;
24839
24863
  params.column = activeArea.column;
24840
- this.openContextMenu(evnt, type, params);
24864
+ this.handleOpenMenuEvent(evnt, type, params);
24841
24865
  return;
24842
24866
  }
24843
24867
  } else if (mouseConfig && mouseOpts.selected) {
@@ -24845,7 +24869,7 @@ var Filter = VxeTableFilterModule;
24845
24869
  if (selected.row && selected.column) {
24846
24870
  params.row = selected.row;
24847
24871
  params.column = selected.column;
24848
- this.openContextMenu(evnt, type, params);
24872
+ this.handleOpenMenuEvent(evnt, type, params);
24849
24873
  return;
24850
24874
  }
24851
24875
  }
@@ -24879,7 +24903,7 @@ var Filter = VxeTableFilterModule;
24879
24903
  _params.row = row;
24880
24904
  _params.rowIndex = this.getRowIndex(row);
24881
24905
  }
24882
- this.openContextMenu(evnt, layout, _params);
24906
+ this.handleOpenMenuEvent(evnt, layout, _params);
24883
24907
  // 在 v4 中废弃事件 cell-context-menu、header-cell-context-menu、footer-cell-context-menu
24884
24908
  if (this.$listeners["".concat(typePrefix, "cell-context-menu")]) {
24885
24909
  if (false) {}
@@ -24894,7 +24918,7 @@ var Filter = VxeTableFilterModule;
24894
24918
  if (ctxMenuOpts.trigger === 'cell') {
24895
24919
  evnt.preventDefault();
24896
24920
  } else {
24897
- this.openContextMenu(evnt, layout, _params);
24921
+ this.handleOpenMenuEvent(evnt, layout, _params);
24898
24922
  }
24899
24923
  return;
24900
24924
  }
@@ -24908,7 +24932,7 @@ var Filter = VxeTableFilterModule;
24908
24932
  /**
24909
24933
  * 显示快捷菜单
24910
24934
  */
24911
- openContextMenu: function openContextMenu(evnt, type, params) {
24935
+ handleOpenMenuEvent: function handleOpenMenuEvent(evnt, type, params) {
24912
24936
  var _this = this;
24913
24937
  var isCtxMenu = this.isCtxMenu,
24914
24938
  ctxMenuStore = this.ctxMenuStore,
@@ -25103,6 +25127,7 @@ var Menu = VxeTableMenuModule;
25103
25127
 
25104
25128
 
25105
25129
 
25130
+
25106
25131
 
25107
25132
 
25108
25133
  function insertTreeRow(_vm, newRecords, isAppend) {
@@ -25478,7 +25503,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25478
25503
  }
25479
25504
  // 如果当前行被激活编辑,则清除激活状态
25480
25505
  if (actived.row && this.findRowIndexOf(rows, actived.row) > -1) {
25481
- this.clearActived();
25506
+ this.clearEdit();
25482
25507
  }
25483
25508
  // 从新增中移除已删除的数据
25484
25509
  rows.forEach(function (row) {
@@ -25615,94 +25640,100 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25615
25640
  editConfig = this.editConfig,
25616
25641
  mouseConfig = this.mouseConfig;
25617
25642
  var mode = editOpts.mode;
25618
- var actived = editStore.actived;
25643
+ var actived = editStore.actived,
25644
+ focused = editStore.focused;
25619
25645
  var row = params.row,
25620
25646
  column = params.column;
25621
25647
  var editRender = column.editRender;
25622
25648
  var cell = params.cell = params.cell || this.getCell(row, column);
25623
25649
  var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
25624
- if (isEnableConf(editConfig) && isEnableConf(editRender) && !this.hasPendingByRow(row) && cell) {
25625
- if (actived.row !== row || (mode === 'cell' ? actived.column !== column : false)) {
25626
- // 判断是否禁用编辑
25627
- var type = 'edit-disabled';
25628
- if (!beforeEditMethod || beforeEditMethod(_objectSpread2(_objectSpread2({}, params), {}, {
25629
- $table: this,
25630
- $grid: this.$xegrid
25631
- }))) {
25650
+ if (cell && isEnableConf(editConfig) && isEnableConf(editRender)) {
25651
+ // 激活编辑
25652
+ if (!this.hasPendingByRow(row)) {
25653
+ if (actived.row !== row || (mode === 'cell' ? actived.column !== column : false)) {
25654
+ // 判断是否禁用编辑
25655
+ var type = 'edit-disabled';
25656
+ if (!beforeEditMethod || beforeEditMethod(_objectSpread2(_objectSpread2({}, params), {}, {
25657
+ $table: this,
25658
+ $grid: this.$xegrid
25659
+ }))) {
25660
+ if (mouseConfig) {
25661
+ this.clearSelected(evnt);
25662
+ this.clearCellAreas(evnt);
25663
+ this.clearCopyCellArea(evnt);
25664
+ }
25665
+ this.closeTooltip();
25666
+ if (actived.column) {
25667
+ this.clearEdit(evnt);
25668
+ }
25669
+ type = 'edit-activated';
25670
+ column.renderHeight = cell.offsetHeight;
25671
+ actived.args = params;
25672
+ actived.row = row;
25673
+ actived.column = column;
25674
+ if (mode === 'row') {
25675
+ tableColumn.forEach(function (column) {
25676
+ return _this6._getColumnModel(row, column);
25677
+ });
25678
+ } else {
25679
+ this._getColumnModel(row, column);
25680
+ }
25681
+ var afterEditMethod = editOpts.afterEditMethod;
25682
+ this.$nextTick(function () {
25683
+ _this6.handleFocus(params, evnt);
25684
+ if (afterEditMethod) {
25685
+ afterEditMethod(_objectSpread2(_objectSpread2({}, params), {}, {
25686
+ $table: _this6,
25687
+ $grid: _this6.$xegrid
25688
+ }));
25689
+ }
25690
+ });
25691
+ }
25692
+ this.emitEvent(type, {
25693
+ row: row,
25694
+ rowIndex: this.getRowIndex(row),
25695
+ $rowIndex: this.getVMRowIndex(row),
25696
+ column: column,
25697
+ columnIndex: this.getColumnIndex(column),
25698
+ $columnIndex: this.getVMColumnIndex(column)
25699
+ }, evnt);
25700
+
25701
+ // v4已废弃
25702
+ if (type === 'edit-activated') {
25703
+ this.emitEvent('edit-actived', {
25704
+ row: row,
25705
+ rowIndex: this.getRowIndex(row),
25706
+ $rowIndex: this.getVMRowIndex(row),
25707
+ column: column,
25708
+ columnIndex: this.getColumnIndex(column),
25709
+ $columnIndex: this.getVMColumnIndex(column)
25710
+ }, evnt);
25711
+ }
25712
+ } else {
25713
+ var oldColumn = actived.column;
25632
25714
  if (mouseConfig) {
25633
25715
  this.clearSelected(evnt);
25634
25716
  this.clearCellAreas(evnt);
25635
25717
  this.clearCopyCellArea(evnt);
25636
25718
  }
25637
- this.closeTooltip();
25638
- if (actived.column) {
25639
- this.clearActived(evnt);
25719
+ if (oldColumn !== column) {
25720
+ var oldModel = oldColumn.model;
25721
+ if (oldModel.update) {
25722
+ utils.setCellValue(row, oldColumn, oldModel.value);
25723
+ }
25724
+ this.clearValidate();
25640
25725
  }
25641
- type = 'edit-activated';
25642
25726
  column.renderHeight = cell.offsetHeight;
25643
25727
  actived.args = params;
25644
- actived.row = row;
25645
25728
  actived.column = column;
25646
- if (mode === 'row') {
25647
- tableColumn.forEach(function (column) {
25648
- return _this6._getColumnModel(row, column);
25649
- });
25650
- } else {
25651
- this._getColumnModel(row, column);
25652
- }
25653
- var afterEditMethod = editOpts.afterEditMethod;
25654
- this.$nextTick(function () {
25729
+ setTimeout(function () {
25655
25730
  _this6.handleFocus(params, evnt);
25656
- if (afterEditMethod) {
25657
- afterEditMethod(_objectSpread2(_objectSpread2({}, params), {}, {
25658
- $table: _this6,
25659
- $grid: _this6.$xegrid
25660
- }));
25661
- }
25662
25731
  });
25663
25732
  }
25664
- this.emitEvent(type, {
25665
- row: row,
25666
- rowIndex: this.getRowIndex(row),
25667
- $rowIndex: this.getVMRowIndex(row),
25668
- column: column,
25669
- columnIndex: this.getColumnIndex(column),
25670
- $columnIndex: this.getVMColumnIndex(column)
25671
- }, evnt);
25672
-
25673
- // v4已废弃
25674
- if (type === 'edit-activated') {
25675
- this.emitEvent('edit-actived', {
25676
- row: row,
25677
- rowIndex: this.getRowIndex(row),
25678
- $rowIndex: this.getVMRowIndex(row),
25679
- column: column,
25680
- columnIndex: this.getColumnIndex(column),
25681
- $columnIndex: this.getVMColumnIndex(column)
25682
- }, evnt);
25683
- }
25684
- } else {
25685
- var oldColumn = actived.column;
25686
- if (mouseConfig) {
25687
- this.clearSelected(evnt);
25688
- this.clearCellAreas(evnt);
25689
- this.clearCopyCellArea(evnt);
25690
- }
25691
- if (oldColumn !== column) {
25692
- var oldModel = oldColumn.model;
25693
- if (oldModel.update) {
25694
- utils.setCellValue(row, oldColumn, oldModel.value);
25695
- }
25696
- this.clearValidate();
25697
- }
25698
- column.renderHeight = cell.offsetHeight;
25699
- actived.args = params;
25700
- actived.column = column;
25701
- setTimeout(function () {
25702
- _this6.handleFocus(params, evnt);
25703
- });
25733
+ focused.column = null;
25734
+ focused.row = null;
25735
+ this.focus();
25704
25736
  }
25705
- this.focus();
25706
25737
  }
25707
25738
  return this.$nextTick();
25708
25739
  },
@@ -25742,9 +25773,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25742
25773
  }
25743
25774
  },
25744
25775
  _clearActived: function _clearActived(evnt) {
25745
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
25746
- // warnLog('vxe.error.delFunc', ['clearActived', 'clearEdit'])
25747
- // }
25776
+ if (false) {}
25748
25777
  // 即将废弃
25749
25778
  return this.clearEdit(evnt);
25750
25779
  },
@@ -25753,7 +25782,8 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25753
25782
  */
25754
25783
  _clearEdit: function _clearEdit(evnt) {
25755
25784
  var editStore = this.editStore;
25756
- var actived = editStore.actived;
25785
+ var actived = editStore.actived,
25786
+ focused = editStore.focused;
25757
25787
  var row = actived.row,
25758
25788
  column = actived.column;
25759
25789
  if (row || column) {
@@ -25771,6 +25801,8 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25771
25801
  $columnIndex: this.getVMColumnIndex(column)
25772
25802
  }, evnt);
25773
25803
  }
25804
+ focused.row = null;
25805
+ focused.column = null;
25774
25806
  if (conf.cellVaildMode === 'obsolete') {
25775
25807
  if (this.clearValidate) {
25776
25808
  return this.clearValidate();
@@ -25779,9 +25811,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25779
25811
  return this.$nextTick();
25780
25812
  },
25781
25813
  _getActiveRecord: function _getActiveRecord() {
25782
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
25783
- // warnLog('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord'])
25784
- // }
25814
+ if (false) {}
25785
25815
  // 即将废弃
25786
25816
  return this.getEditRecord();
25787
25817
  },
@@ -25798,9 +25828,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25798
25828
  return null;
25799
25829
  },
25800
25830
  _isActiveByRow: function _isActiveByRow(row) {
25801
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
25802
- // warnLog('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow'])
25803
- // }
25831
+ if (false) {}
25804
25832
  // 即将废弃
25805
25833
  return this.isEditByRow(row);
25806
25834
  },
@@ -25857,9 +25885,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25857
25885
  }
25858
25886
  },
25859
25887
  _setActiveRow: function _setActiveRow(row) {
25860
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
25861
- // warnLog('vxe.error.delFunc', ['setActiveRow', 'setEditRow'])
25862
- // }
25888
+ if (false) {}
25863
25889
  // 即将废弃
25864
25890
  return this.setEditRow(row);
25865
25891
  },
@@ -25876,9 +25902,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25876
25902
  return this.setEditCell(row, column);
25877
25903
  },
25878
25904
  _setActiveCell: function _setActiveCell(row) {
25879
- // if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
25880
- // warnLog('vxe.error.delFunc', ['setActiveCell', 'setEditCell'])
25881
- // }
25905
+ if (false) {}
25882
25906
  // 即将废弃
25883
25907
  return this.setEditCell(row);
25884
25908
  },
@@ -25948,7 +25972,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
25948
25972
  var selectMethod = function selectMethod() {
25949
25973
  if (isMouseSelected && (selected.row !== row || selected.column !== column)) {
25950
25974
  if (actived.row !== row || (editOpts.mode === 'cell' ? actived.column !== column : false)) {
25951
- _this9.clearActived(evnt);
25975
+ _this9.clearEdit(evnt);
25952
25976
  _this9.clearSelected(evnt);
25953
25977
  _this9.clearCellAreas(evnt);
25954
25978
  _this9.clearCopyCellArea(evnt);
@@ -34627,6 +34651,7 @@ function renderPopupPanel(h, _vm) {
34627
34651
  customStore = _vm.customStore;
34628
34652
  var customOpts = $xetable.customOpts,
34629
34653
  customColumnList = $xetable.customColumnList,
34654
+ columnOpts = $xetable.columnOpts,
34630
34655
  isMaxFixedColumn = $xetable.isMaxFixedColumn;
34631
34656
  var checkMethod = customOpts.checkMethod,
34632
34657
  visibleMethod = customOpts.visibleMethod;
@@ -34728,7 +34753,7 @@ function renderPopupPanel(h, _vm) {
34728
34753
  title: conf.i18n('vxe.custom.cstmTitle'),
34729
34754
  className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
34730
34755
  width: '40vw',
34731
- minWidth: 500,
34756
+ minWidth: 520,
34732
34757
  height: '50vh',
34733
34758
  minHeight: 300,
34734
34759
  mask: true,
@@ -34752,7 +34777,7 @@ function renderPopupPanel(h, _vm) {
34752
34777
  class: 'vxe-table-custom-popup--table-wrapper'
34753
34778
  }, [h('table', {}, [h('colgroup', {}, [h('col', {
34754
34779
  style: {
34755
- width: '60px'
34780
+ width: '80px'
34756
34781
  }
34757
34782
  }), h('col'), h('col', {
34758
34783
  style: {
@@ -34762,7 +34787,21 @@ function renderPopupPanel(h, _vm) {
34762
34787
  style: {
34763
34788
  width: '200px'
34764
34789
  }
34765
- })]), h('thead', {}, [h('tr', {}, [h('th', {}, conf.i18n('vxe.custom.setting.colSort')), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), h('th', {}, conf.i18n('vxe.custom.setting.colVisible')), h('th', {}, conf.i18n('vxe.custom.setting.colFixed'))])]), h('transition-group', {
34790
+ })]), h('thead', {}, [h('tr', {}, [h('th', {}, [h('span', {
34791
+ class: 'vxe-table-custom-popup--table-sort-help-title'
34792
+ }, conf.i18n('vxe.custom.setting.colSort')), h('vxe-tooltip', {
34793
+ props: {
34794
+ enterable: true,
34795
+ content: '点击并拖动图标可以调整列的排序'
34796
+ },
34797
+ scopedSlots: {
34798
+ default: function _default() {
34799
+ return h('i', {
34800
+ class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
34801
+ });
34802
+ }
34803
+ }
34804
+ })]), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), h('th', {}, conf.i18n('vxe.custom.setting.colVisible')), h('th', {}, conf.i18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0]))])]), h('transition-group', {
34766
34805
  class: 'vxe-table-custom--body',
34767
34806
  props: {
34768
34807
  tag: 'tbody',
@@ -41718,9 +41757,10 @@ var Pulldown = VxePulldown;
41718
41757
  cstmDragTarget: '移动目标:{0}',
41719
41758
  setting: {
41720
41759
  colSort: '排序',
41760
+ sortHelpTip: '点击并拖动图标可以调整列的排序',
41721
41761
  colTitle: '标题',
41722
41762
  colVisible: '是否显示',
41723
- colFixed: '冻结列',
41763
+ colFixed: '冻结列(最多 {0} 列)',
41724
41764
  fixedLeft: '左侧',
41725
41765
  fixedUnset: '不设置',
41726
41766
  fixedRight: '右侧'