vxe-table 3.11.22 → 3.11.24

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 (98) hide show
  1. package/es/locale/lang/ar-EG.js +1 -1
  2. package/es/locale/lang/de-DE.js +1 -1
  3. package/es/locale/lang/es-ES.js +2 -2
  4. package/es/locale/lang/fr-FR.js +1 -1
  5. package/es/locale/lang/hu-HU.js +1 -1
  6. package/es/locale/lang/hy-AM.js +1 -1
  7. package/es/locale/lang/ja-JP.js +1 -1
  8. package/es/locale/lang/ko-KR.js +1 -1
  9. package/es/locale/lang/nb-NO.js +1 -1
  10. package/es/locale/lang/pt-BR.js +1 -1
  11. package/es/locale/lang/ru-RU.js +1 -1
  12. package/es/locale/lang/ug-CN.js +1 -1
  13. package/es/locale/lang/uk-UA.js +1 -1
  14. package/es/locale/lang/vi-VN.js +1 -1
  15. package/es/locale/lang/zh-CHT.js +1 -1
  16. package/es/locale/lang/zh-CN.js +1 -1
  17. package/es/style.css +1 -1
  18. package/es/table/render/index.js +26 -6
  19. package/es/table/src/methods.js +23 -5
  20. package/es/ui/index.js +1 -1
  21. package/es/ui/src/log.js +1 -1
  22. package/lib/index.umd.js +78 -17
  23. package/lib/index.umd.min.js +1 -1
  24. package/lib/locale/lang/ar-EG.js +1 -1
  25. package/lib/locale/lang/ar-EG.min.js +1 -1
  26. package/lib/locale/lang/de-DE.js +1 -1
  27. package/lib/locale/lang/de-DE.min.js +1 -1
  28. package/lib/locale/lang/es-ES.js +2 -2
  29. package/lib/locale/lang/es-ES.min.js +1 -1
  30. package/lib/locale/lang/es-ES.umd.js +2 -2
  31. package/lib/locale/lang/fr-FR.js +1 -1
  32. package/lib/locale/lang/fr-FR.min.js +1 -1
  33. package/lib/locale/lang/hu-HU.js +1 -1
  34. package/lib/locale/lang/hu-HU.min.js +1 -1
  35. package/lib/locale/lang/hu-HU.umd.js +1 -1
  36. package/lib/locale/lang/hy-AM.js +1 -1
  37. package/lib/locale/lang/hy-AM.min.js +1 -1
  38. package/lib/locale/lang/ja-JP.js +1 -1
  39. package/lib/locale/lang/ja-JP.min.js +1 -1
  40. package/lib/locale/lang/ja-JP.umd.js +1 -1
  41. package/lib/locale/lang/ko-KR.js +1 -1
  42. package/lib/locale/lang/ko-KR.min.js +1 -1
  43. package/lib/locale/lang/ko-KR.umd.js +1 -1
  44. package/lib/locale/lang/nb-NO.js +1 -1
  45. package/lib/locale/lang/nb-NO.min.js +1 -1
  46. package/lib/locale/lang/pt-BR.js +1 -1
  47. package/lib/locale/lang/pt-BR.min.js +1 -1
  48. package/lib/locale/lang/pt-BR.umd.js +1 -1
  49. package/lib/locale/lang/ru-RU.js +1 -1
  50. package/lib/locale/lang/ru-RU.min.js +1 -1
  51. package/lib/locale/lang/ru-RU.umd.js +1 -1
  52. package/lib/locale/lang/ug-CN.js +1 -1
  53. package/lib/locale/lang/ug-CN.min.js +1 -1
  54. package/lib/locale/lang/uk-UA.js +1 -1
  55. package/lib/locale/lang/uk-UA.min.js +1 -1
  56. package/lib/locale/lang/uk-UA.umd.js +1 -1
  57. package/lib/locale/lang/vi-VN.js +1 -1
  58. package/lib/locale/lang/vi-VN.min.js +1 -1
  59. package/lib/locale/lang/zh-CHT.js +1 -1
  60. package/lib/locale/lang/zh-CHT.min.js +1 -1
  61. package/lib/locale/lang/zh-CHT.umd.js +1 -1
  62. package/lib/locale/lang/zh-CN.js +1 -1
  63. package/lib/locale/lang/zh-CN.min.js +1 -1
  64. package/lib/locale/lang/zh-CN.umd.js +1 -1
  65. package/lib/style.css +1 -1
  66. package/lib/table/render/index.js +38 -6
  67. package/lib/table/render/index.min.js +1 -1
  68. package/lib/table/src/methods.js +36 -8
  69. package/lib/table/src/methods.min.js +1 -1
  70. package/lib/ui/index.js +1 -1
  71. package/lib/ui/index.min.js +1 -1
  72. package/lib/ui/src/log.js +1 -1
  73. package/lib/ui/src/log.min.js +1 -1
  74. package/package.json +2 -2
  75. package/packages/locale/lang/ar-EG.ts +1 -1
  76. package/packages/locale/lang/de-DE.ts +1 -1
  77. package/packages/locale/lang/es-ES.ts +2 -2
  78. package/packages/locale/lang/fr-FR.ts +1 -1
  79. package/packages/locale/lang/hu-HU.ts +1 -1
  80. package/packages/locale/lang/hy-AM.ts +1 -1
  81. package/packages/locale/lang/ja-JP.ts +1 -1
  82. package/packages/locale/lang/ko-KR.ts +1 -1
  83. package/packages/locale/lang/nb-NO.ts +1 -1
  84. package/packages/locale/lang/pt-BR.ts +1 -1
  85. package/packages/locale/lang/ru-RU.ts +1 -1
  86. package/packages/locale/lang/ug-CN.ts +1 -1
  87. package/packages/locale/lang/uk-UA.ts +1 -1
  88. package/packages/locale/lang/vi-VN.ts +1 -1
  89. package/packages/locale/lang/zh-CHT.ts +1 -1
  90. package/packages/locale/lang/zh-CN.ts +1 -1
  91. package/packages/table/render/index.ts +24 -5
  92. package/packages/table/src/methods.ts +25 -5
  93. /package/es/{iconfont.1733702408214.ttf → iconfont.1733816028970.ttf} +0 -0
  94. /package/es/{iconfont.1733702408214.woff → iconfont.1733816028970.woff} +0 -0
  95. /package/es/{iconfont.1733702408214.woff2 → iconfont.1733816028970.woff2} +0 -0
  96. /package/lib/{iconfont.1733702408214.ttf → iconfont.1733816028970.ttf} +0 -0
  97. /package/lib/{iconfont.1733702408214.woff → iconfont.1733816028970.woff} +0 -0
  98. /package/lib/{iconfont.1733702408214.woff2 → iconfont.1733816028970.woff2} +0 -0
@@ -1096,6 +1096,9 @@ const Methods = {
1096
1096
  };
1097
1097
  }
1098
1098
  if (isSource) {
1099
+ cacheItem.row = row;
1100
+ cacheItem.items = items;
1101
+ cacheItem.parent = parent;
1099
1102
  cacheItem.level = level;
1100
1103
  cacheItem.index = treeConfig && parent ? -1 : index;
1101
1104
  fullDataRowIdMaps[rowid] = cacheItem;
@@ -5562,20 +5565,45 @@ const Methods = {
5562
5565
  }, params), evnt);
5563
5566
  }
5564
5567
  },
5568
+ triggerCurrentColumnEvent(evnt, params) {
5569
+ const $xeTable = this;
5570
+ const columnOpts = $xeTable.computeColumnOpts;
5571
+ const {
5572
+ currentMethod
5573
+ } = columnOpts;
5574
+ const {
5575
+ column
5576
+ } = params;
5577
+ if (!currentMethod || currentMethod({
5578
+ column
5579
+ })) {
5580
+ $xeTable.setCurrentColumn(column);
5581
+ }
5582
+ },
5565
5583
  triggerCurrentRowEvent(evnt, params) {
5584
+ const $xeTable = this;
5585
+ const reactData = $xeTable;
5566
5586
  const {
5567
5587
  currentRow: oldValue
5568
- } = this;
5588
+ } = reactData;
5589
+ const rowOpts = $xeTable.computeRowOpts;
5590
+ const {
5591
+ currentMethod
5592
+ } = rowOpts;
5569
5593
  const {
5570
5594
  row: newValue
5571
5595
  } = params;
5572
5596
  const isChange = oldValue !== newValue;
5573
- this.setCurrentRow(newValue);
5574
- if (isChange) {
5575
- this.emitEvent('current-change', Object.assign({
5576
- oldValue,
5577
- newValue
5578
- }, params), evnt);
5597
+ if (!currentMethod || currentMethod({
5598
+ row: newValue
5599
+ })) {
5600
+ $xeTable.setCurrentRow(newValue);
5601
+ if (isChange) {
5602
+ $xeTable.dispatchEvent('current-change', Object.assign({
5603
+ oldValue,
5604
+ newValue
5605
+ }, params), evnt);
5606
+ }
5579
5607
  }
5580
5608
  },
5581
5609
  /**
@@ -5722,7 +5750,7 @@ const Methods = {
5722
5750
  cell
5723
5751
  }, params), evnt);
5724
5752
  if (this.columnOpts.isCurrent || this.highlightCurrentColumn) {
5725
- return this.setCurrentColumn(column);
5753
+ this.triggerCurrentColumnEvent(evnt, params);
5726
5754
  }
5727
5755
  return this.$nextTick();
5728
5756
  },