vxe-table 3.15.11 → 3.15.13

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 (130) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +511 -511
  4. package/es/locale/lang/de-DE.js +280 -280
  5. package/es/locale/lang/en-US.js +206 -206
  6. package/es/locale/lang/es-ES.js +494 -501
  7. package/es/locale/lang/fr-FR.js +517 -517
  8. package/es/locale/lang/hu-HU.js +372 -372
  9. package/es/locale/lang/id-ID.js +529 -529
  10. package/es/locale/lang/it-IT.js +297 -297
  11. package/es/locale/lang/ja-JP.js +454 -454
  12. package/es/locale/lang/ko-KR.js +415 -415
  13. package/es/locale/lang/nb-NO.js +515 -515
  14. package/es/locale/lang/pt-BR.js +505 -505
  15. package/es/locale/lang/ru-RU.js +326 -326
  16. package/es/locale/lang/th-TH.js +255 -255
  17. package/es/locale/lang/uk-UA.js +450 -450
  18. package/es/locale/lang/vi-VN.js +528 -528
  19. package/es/locale/lang/zh-CHT.js +155 -155
  20. package/es/style.css +1 -1
  21. package/es/style.min.css +1 -1
  22. package/es/table/module/menu/panel.js +12 -4
  23. package/es/table/src/cell.js +2 -2
  24. package/es/table/src/methods.js +77 -83
  25. package/es/table/src/table.js +5 -0
  26. package/es/table/src/util.js +12 -16
  27. package/es/table/style.css +24 -0
  28. package/es/table/style.min.css +1 -1
  29. package/es/ui/index.js +4 -4
  30. package/es/ui/src/log.js +1 -1
  31. package/es/vxe-table/style.css +24 -0
  32. package/es/vxe-table/style.min.css +1 -1
  33. package/lib/index.css +1 -1
  34. package/lib/index.min.css +1 -1
  35. package/lib/index.umd.js +114 -125
  36. package/lib/index.umd.min.js +1 -1
  37. package/lib/locale/lang/ar-EG.js +511 -511
  38. package/lib/locale/lang/ar-EG.min.js +1 -1
  39. package/lib/locale/lang/de-DE.js +280 -280
  40. package/lib/locale/lang/de-DE.min.js +1 -1
  41. package/lib/locale/lang/en-US.js +206 -206
  42. package/lib/locale/lang/en-US.min.js +1 -1
  43. package/lib/locale/lang/en-US.umd.js +206 -206
  44. package/lib/locale/lang/es-ES.js +494 -501
  45. package/lib/locale/lang/es-ES.min.js +1 -1
  46. package/lib/locale/lang/es-ES.umd.js +494 -501
  47. package/lib/locale/lang/fr-FR.js +517 -517
  48. package/lib/locale/lang/fr-FR.min.js +1 -1
  49. package/lib/locale/lang/hu-HU.js +372 -372
  50. package/lib/locale/lang/hu-HU.min.js +1 -1
  51. package/lib/locale/lang/hu-HU.umd.js +372 -372
  52. package/lib/locale/lang/id-ID.js +529 -529
  53. package/lib/locale/lang/id-ID.min.js +1 -1
  54. package/lib/locale/lang/it-IT.js +297 -297
  55. package/lib/locale/lang/it-IT.min.js +1 -1
  56. package/lib/locale/lang/ja-JP.js +454 -454
  57. package/lib/locale/lang/ja-JP.min.js +1 -1
  58. package/lib/locale/lang/ja-JP.umd.js +454 -454
  59. package/lib/locale/lang/ko-KR.js +415 -415
  60. package/lib/locale/lang/ko-KR.min.js +1 -1
  61. package/lib/locale/lang/ko-KR.umd.js +415 -415
  62. package/lib/locale/lang/nb-NO.js +515 -515
  63. package/lib/locale/lang/nb-NO.min.js +1 -1
  64. package/lib/locale/lang/pt-BR.js +505 -505
  65. package/lib/locale/lang/pt-BR.min.js +1 -1
  66. package/lib/locale/lang/pt-BR.umd.js +505 -505
  67. package/lib/locale/lang/ru-RU.js +326 -326
  68. package/lib/locale/lang/ru-RU.min.js +1 -1
  69. package/lib/locale/lang/ru-RU.umd.js +326 -326
  70. package/lib/locale/lang/th-TH.js +255 -255
  71. package/lib/locale/lang/th-TH.min.js +1 -1
  72. package/lib/locale/lang/uk-UA.js +450 -450
  73. package/lib/locale/lang/uk-UA.min.js +1 -1
  74. package/lib/locale/lang/uk-UA.umd.js +450 -450
  75. package/lib/locale/lang/vi-VN.js +528 -528
  76. package/lib/locale/lang/vi-VN.min.js +1 -1
  77. package/lib/locale/lang/zh-CHT.js +155 -155
  78. package/lib/locale/lang/zh-CHT.min.js +1 -1
  79. package/lib/locale/lang/zh-CHT.umd.js +155 -155
  80. package/lib/style.css +1 -1
  81. package/lib/style.min.css +1 -1
  82. package/lib/table/module/menu/panel.js +12 -4
  83. package/lib/table/module/menu/panel.min.js +1 -1
  84. package/lib/table/src/cell.js +2 -2
  85. package/lib/table/src/cell.min.js +1 -1
  86. package/lib/table/src/methods.js +78 -98
  87. package/lib/table/src/methods.min.js +1 -1
  88. package/lib/table/src/table.js +5 -0
  89. package/lib/table/src/table.min.js +1 -1
  90. package/lib/table/src/util.js +12 -16
  91. package/lib/table/src/util.min.js +1 -1
  92. package/lib/table/style/style.css +24 -0
  93. package/lib/table/style/style.min.css +1 -1
  94. package/lib/ui/index.js +4 -4
  95. package/lib/ui/index.min.js +1 -1
  96. package/lib/ui/src/log.js +1 -1
  97. package/lib/ui/src/log.min.js +1 -1
  98. package/lib/vxe-table/style/style.css +24 -0
  99. package/lib/vxe-table/style/style.min.css +1 -1
  100. package/package.json +2 -2
  101. package/packages/locale/lang/ar-EG.ts +511 -511
  102. package/packages/locale/lang/de-DE.ts +281 -282
  103. package/packages/locale/lang/en-US.ts +206 -206
  104. package/packages/locale/lang/es-ES.ts +494 -503
  105. package/packages/locale/lang/fr-FR.ts +517 -517
  106. package/packages/locale/lang/hu-HU.ts +372 -372
  107. package/packages/locale/lang/id-ID.ts +529 -529
  108. package/packages/locale/lang/it-IT.ts +297 -297
  109. package/packages/locale/lang/ja-JP.ts +454 -454
  110. package/packages/locale/lang/ko-KR.ts +415 -415
  111. package/packages/locale/lang/nb-NO.ts +515 -515
  112. package/packages/locale/lang/pt-BR.ts +505 -505
  113. package/packages/locale/lang/ru-RU.ts +326 -326
  114. package/packages/locale/lang/th-TH.ts +255 -255
  115. package/packages/locale/lang/uk-UA.ts +450 -450
  116. package/packages/locale/lang/vi-VN.ts +528 -528
  117. package/packages/locale/lang/zh-CHT.ts +155 -155
  118. package/packages/table/module/menu/panel.ts +12 -4
  119. package/packages/table/src/cell.ts +2 -2
  120. package/packages/table/src/methods.ts +82 -82
  121. package/packages/table/src/table.ts +6 -0
  122. package/packages/table/src/util.ts +12 -17
  123. package/packages/ui/index.ts +3 -3
  124. package/styles/components/table.scss +35 -0
  125. /package/es/{iconfont.1745574224988.ttf → iconfont.1745800652359.ttf} +0 -0
  126. /package/es/{iconfont.1745574224988.woff → iconfont.1745800652359.woff} +0 -0
  127. /package/es/{iconfont.1745574224988.woff2 → iconfont.1745800652359.woff2} +0 -0
  128. /package/lib/{iconfont.1745574224988.ttf → iconfont.1745800652359.ttf} +0 -0
  129. /package/lib/{iconfont.1745574224988.woff → iconfont.1745800652359.woff} +0 -0
  130. /package/lib/{iconfont.1745574224988.woff2 → iconfont.1745800652359.woff2} +0 -0
@@ -40,6 +40,7 @@ export default {
40
40
  const hasChildMenus = item.children && item.children.some((child: any) => child.visible !== false)
41
41
  const prefixOpts = Object.assign({}, item.prefixConfig)
42
42
  const suffixOpts = Object.assign({}, item.suffixConfig)
43
+ const menuContent = getFuncText(item.name)
43
44
  return item.visible === false
44
45
  ? null
45
46
  : h('li', {
@@ -72,8 +73,11 @@ export default {
72
73
  prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : _e()
73
74
  ]),
74
75
  h('span', {
75
- class: 'vxe-context-menu--link-content'
76
- }, getFuncText(item.name)),
76
+ class: 'vxe-context-menu--link-content',
77
+ attrs: {
78
+ title: menuContent
79
+ }
80
+ }, menuContent),
77
81
  h('div', {
78
82
  class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
79
83
  }, [
@@ -91,6 +95,7 @@ export default {
91
95
  }, item.children.map((child: any, cIndex: any) => {
92
96
  const childPrefixOpts = Object.assign({}, child.prefixConfig)
93
97
  const childSuffixOpts = Object.assign({}, child.suffixConfig)
98
+ const childMenuContent = getFuncText(child.name)
94
99
  return child.visible === false
95
100
  ? null
96
101
  : h('li', {
@@ -123,8 +128,11 @@ export default {
123
128
  childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : _e()
124
129
  ]),
125
130
  h('span', {
126
- class: 'vxe-context-menu--link-content'
127
- }, getFuncText(child.name)),
131
+ class: 'vxe-context-menu--link-content',
132
+ attrs: {
133
+ title: childMenuContent
134
+ }
135
+ }, childMenuContent),
128
136
  h('div', {
129
137
  class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
130
138
  }, [
@@ -15,7 +15,7 @@ function renderTitlePrefixIcon (h: CreateElement, params: VxeTableDefines.CellRe
15
15
  const titlePrefix = column.titlePrefix || column.titleHelp
16
16
  if (titlePrefix) {
17
17
  return h('i', {
18
- class: ['vxe-cell-title-prefix-icon', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
18
+ class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : '', titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX],
19
19
  on: {
20
20
  mouseenter (evnt: any) {
21
21
  $table.triggerHeaderTitleEvent(evnt, titlePrefix, params)
@@ -34,7 +34,7 @@ function renderTitleSuffixIcon (h: CreateElement, params: VxeTableDefines.CellRe
34
34
  const titleSuffix = column.titleSuffix
35
35
  if (titleSuffix) {
36
36
  return h('i', {
37
- class: ['vxe-cell-title-suffix-icon', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
37
+ class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : '', titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX],
38
38
  on: {
39
39
  mouseenter (evnt: any) {
40
40
  $table.triggerHeaderTitleEvent(evnt, titleSuffix, params)
@@ -2513,13 +2513,13 @@ function calcScrollbar ($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
2513
2513
  if (bodyWrapperElem) {
2514
2514
  overflowY = scrollYHeight > bodyWrapperElem.clientHeight
2515
2515
  if (yHandleEl) {
2516
- reactData.scrollbarWidth = Math.max(scrollbarOpts.width || 0, yHandleEl.offsetWidth - yHandleEl.clientWidth)
2516
+ reactData.scrollbarWidth = scrollbarOpts.width || (yHandleEl.offsetWidth - yHandleEl.clientWidth) || 14
2517
2517
  }
2518
2518
  reactData.overflowY = overflowY
2519
2519
 
2520
2520
  overflowX = scrollXWidth > bodyWrapperElem.clientWidth
2521
2521
  if (xHandleEl) {
2522
- reactData.scrollbarHeight = Math.max(scrollbarOpts.height || 0, xHandleEl.offsetHeight - xHandleEl.clientHeight)
2522
+ reactData.scrollbarHeight = scrollbarOpts.height || (xHandleEl.offsetHeight - xHandleEl.clientHeight) || 14
2523
2523
  }
2524
2524
  reactData.overflowX = overflowX
2525
2525
 
@@ -2724,6 +2724,7 @@ function loadTableData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods,
2724
2724
  scrollYStore.endIndex = 1
2725
2725
  scrollXStore.startIndex = 0
2726
2726
  scrollXStore.endIndex = 1
2727
+ internalData.cvCacheMaps = {}
2727
2728
  reactData.isRowLoading = true
2728
2729
  reactData.scrollVMLoading = false
2729
2730
  internalData.treeExpandedMaps = {}
@@ -3171,45 +3172,45 @@ const createGetColumnCacheProp = (prop: 'index' | '_index' | '$index') => {
3171
3172
  }
3172
3173
  }
3173
3174
 
3174
- function lazyScrollXData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
3175
- const internalData = $xeTable as unknown as TableInternalData
3176
-
3177
- const { lxTimeout, lxRunTime, scrollXStore } = internalData
3178
- const { visibleSize } = scrollXStore
3179
- const fpsTime = Math.max(5, Math.min(10, Math.floor(visibleSize / 3)))
3180
- if (lxTimeout) {
3181
- clearTimeout(lxTimeout)
3182
- }
3183
- if (!lxRunTime || lxRunTime + fpsTime < Date.now()) {
3184
- internalData.lxRunTime = Date.now()
3185
- loadScrollXData($xeTable)
3186
- }
3187
- internalData.lxTimeout = setTimeout(() => {
3188
- internalData.lxTimeout = undefined
3189
- internalData.lxRunTime = undefined
3190
- loadScrollXData($xeTable)
3191
- }, fpsTime)
3192
- }
3193
-
3194
- function lazyScrollYData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
3195
- const internalData = $xeTable as unknown as TableInternalData
3196
-
3197
- const { lyTimeout, lyRunTime, scrollYStore } = internalData
3198
- const { visibleSize } = scrollYStore
3199
- const fpsTime = Math.floor(Math.max(4, Math.min(10, visibleSize / 3)))
3200
- if (lyTimeout) {
3201
- clearTimeout(lyTimeout)
3202
- }
3203
- if (!lyRunTime || lyRunTime + fpsTime < Date.now()) {
3204
- internalData.lyRunTime = Date.now()
3205
- loadScrollYData($xeTable)
3206
- }
3207
- internalData.lyTimeout = setTimeout(() => {
3208
- internalData.lyTimeout = undefined
3209
- internalData.lyRunTime = undefined
3210
- loadScrollYData($xeTable)
3211
- }, fpsTime)
3212
- }
3175
+ // function lazyScrollXData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
3176
+ // const internalData = $xeTable as unknown as TableInternalData
3177
+
3178
+ // const { lxTimeout, lxRunTime, scrollXStore } = internalData
3179
+ // const { visibleSize } = scrollXStore
3180
+ // const fpsTime = Math.max(5, Math.min(10, Math.floor(visibleSize / 3)))
3181
+ // if (lxTimeout) {
3182
+ // clearTimeout(lxTimeout)
3183
+ // }
3184
+ // if (!lxRunTime || lxRunTime + fpsTime < Date.now()) {
3185
+ // internalData.lxRunTime = Date.now()
3186
+ // loadScrollXData($xeTable)
3187
+ // }
3188
+ // internalData.lxTimeout = setTimeout(() => {
3189
+ // internalData.lxTimeout = undefined
3190
+ // internalData.lxRunTime = undefined
3191
+ // loadScrollXData($xeTable)
3192
+ // }, fpsTime)
3193
+ // }
3194
+
3195
+ // function lazyScrollYData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
3196
+ // const internalData = $xeTable as unknown as TableInternalData
3197
+
3198
+ // const { lyTimeout, lyRunTime, scrollYStore } = internalData
3199
+ // const { visibleSize } = scrollYStore
3200
+ // const fpsTime = Math.floor(Math.max(4, Math.min(10, visibleSize / 3)))
3201
+ // if (lyTimeout) {
3202
+ // clearTimeout(lyTimeout)
3203
+ // }
3204
+ // if (!lyRunTime || lyRunTime + fpsTime < Date.now()) {
3205
+ // internalData.lyRunTime = Date.now()
3206
+ // loadScrollYData($xeTable)
3207
+ // }
3208
+ // internalData.lyTimeout = setTimeout(() => {
3209
+ // internalData.lyTimeout = undefined
3210
+ // internalData.lyRunTime = undefined
3211
+ // loadScrollYData($xeTable)
3212
+ // }, fpsTime)
3213
+ // }
3213
3214
 
3214
3215
  function checkLastSyncScroll ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, isRollX: boolean, isRollY: boolean) {
3215
3216
  const reactData = $xeTable as unknown as TableReactData
@@ -9302,12 +9303,12 @@ const Methods = {
9302
9303
  triggerScrollXEvent () {
9303
9304
  const $xeTable = this
9304
9305
 
9305
- const virtualXOpts = $xeTable.computeVirtualXOpts
9306
- if (virtualXOpts.immediate) {
9307
- loadScrollXData($xeTable)
9308
- } else {
9309
- lazyScrollXData($xeTable)
9310
- }
9306
+ // const virtualXOpts = $xeTable.computeVirtualXOpts
9307
+ // if (virtualXOpts.immediate) {
9308
+ loadScrollXData($xeTable)
9309
+ // } else {
9310
+ // lazyScrollXData($xeTable)
9311
+ // }
9311
9312
  },
9312
9313
  /**
9313
9314
  * 纵向 Y 可视渲染事件处理
@@ -9315,12 +9316,12 @@ const Methods = {
9315
9316
  triggerScrollYEvent () {
9316
9317
  const $xeTable = this
9317
9318
 
9318
- const virtualYOpts = $xeTable.computeVirtualYOpts
9319
- if (virtualYOpts.immediate) {
9320
- loadScrollYData($xeTable)
9321
- } else {
9322
- lazyScrollYData($xeTable)
9323
- }
9319
+ // const virtualYOpts = $xeTable.computeVirtualYOpts
9320
+ // if (virtualYOpts.immediate) {
9321
+ loadScrollYData($xeTable)
9322
+ // } else {
9323
+ // lazyScrollYData($xeTable)
9324
+ // }
9324
9325
  },
9325
9326
  triggerBodyScrollEvent (evnt: Event, fixedType: '' | 'left' | 'right') {
9326
9327
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
@@ -9883,47 +9884,45 @@ const Methods = {
9883
9884
  */
9884
9885
  scrollTo (scrollLeft: number | null, scrollTop?: number | null) {
9885
9886
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
9887
+ const reactData = $xeTable as unknown as TableReactData
9886
9888
  const internalData = $xeTable as unknown as TableInternalData
9887
9889
 
9888
- const { $refs } = this
9889
- const { refTableBody, refTableHeader, leftBody, rightBody, refTableFooter } = $refs
9890
- const tableBodyElem = refTableBody ? refTableBody.$el : null
9891
- const leftBodyElem = leftBody ? leftBody.$el : null
9892
- const rightBodyElem = rightBody ? rightBody.$el : null
9893
- const tableHeaderElem = refTableHeader ? refTableHeader.$el : null
9894
- const tableFooterElem = refTableFooter ? refTableFooter.$el : null
9890
+ const { elemStore } = internalData
9891
+ const headerScrollElem = getRefElem(elemStore['main-header-scroll'])
9892
+ const bodyScrollElem = getRefElem(elemStore['main-body-scroll'])
9893
+ const footerScrollElem = getRefElem(elemStore['main-footer-scroll'])
9894
+ const leftScrollElem = getRefElem(elemStore['left-body-scroll'])
9895
+ const rightScrollElem = getRefElem(elemStore['right-body-scroll'])
9896
+ const xHandleEl = $xeTable.$refs.refScrollXHandleElem as HTMLDivElement
9897
+ const yHandleEl = $xeTable.$refs.refScrollYHandleElem as HTMLDivElement
9898
+
9895
9899
  internalData.intoRunScroll = true
9900
+
9896
9901
  if (XEUtils.isNumber(scrollLeft)) {
9897
- const xHandleEl = $xeTable.$refs.refScrollXHandleElem as HTMLDivElement
9898
- if (xHandleEl) {
9899
- setScrollLeft(xHandleEl, scrollLeft)
9900
- } else {
9901
- setScrollLeft(tableBodyElem, scrollLeft)
9902
- setScrollLeft(tableHeaderElem, scrollLeft)
9903
- setScrollLeft(tableFooterElem, scrollLeft)
9904
- }
9902
+ setScrollLeft(xHandleEl, scrollLeft)
9903
+ setScrollLeft(bodyScrollElem, scrollLeft)
9904
+ setScrollLeft(headerScrollElem, scrollLeft)
9905
+ setScrollLeft(footerScrollElem, scrollLeft)
9906
+ loadScrollXData($xeTable)
9905
9907
  }
9906
9908
  if (XEUtils.isNumber(scrollTop)) {
9907
- const yHandleEl = $xeTable.$refs.refScrollYHandleElem as HTMLDivElement
9908
- if (yHandleEl) {
9909
- setScrollTop(yHandleEl, scrollTop)
9910
- } else {
9911
- setScrollTop(tableBodyElem, scrollTop)
9912
- setScrollTop(leftBodyElem, scrollTop)
9913
- setScrollTop(rightBodyElem, scrollTop)
9914
- }
9909
+ setScrollTop(yHandleEl, scrollTop)
9910
+ setScrollTop(bodyScrollElem, scrollTop)
9911
+ setScrollTop(leftScrollElem, scrollTop)
9912
+ setScrollTop(rightScrollElem, scrollTop)
9913
+ loadScrollYData($xeTable)
9915
9914
  }
9916
- if (this.scrollXLoad || this.scrollYLoad) {
9915
+ if (reactData.scrollXLoad || reactData.scrollYLoad) {
9917
9916
  return new Promise<void>(resolve => {
9918
9917
  setTimeout(() => {
9919
9918
  $xeTable.$nextTick(() => {
9920
9919
  internalData.intoRunScroll = false
9921
9920
  resolve()
9922
9921
  })
9923
- })
9922
+ }, 30)
9924
9923
  })
9925
9924
  }
9926
- return this.$nextTick()
9925
+ return $xeTable.$nextTick()
9927
9926
  },
9928
9927
  /**
9929
9928
  * 如果有滚动条,则滚动到对应的行
@@ -9932,15 +9931,16 @@ const Methods = {
9932
9931
  */
9933
9932
  scrollToRow (row: any, fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo) {
9934
9933
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
9934
+ const props = $xeTable
9935
9935
  const reactData = $xeTable as unknown as TableReactData
9936
9936
 
9937
9937
  const { isAllOverflow, scrollYLoad, scrollXLoad } = reactData
9938
9938
  const rest = []
9939
9939
  if (row) {
9940
- if (this.treeConfig) {
9941
- rest.push(this.scrollToTreeRow(row))
9940
+ if (props.treeConfig) {
9941
+ rest.push($xeTable.scrollToTreeRow(row))
9942
9942
  } else {
9943
- rest.push(rowToVisible(this, row))
9943
+ rest.push(rowToVisible($xeTable, row))
9944
9944
  }
9945
9945
  }
9946
9946
  if (fieldOrColumn) {
@@ -1509,6 +1509,8 @@ export default {
1509
1509
  // 已删除行
1510
1510
  removeRowMaps: {},
1511
1511
 
1512
+ cvCacheMaps: {},
1513
+
1512
1514
  swYSize: 0,
1513
1515
  swYInterval: 0,
1514
1516
  swYTotal: 0
@@ -1821,11 +1823,15 @@ export default {
1821
1823
  },
1822
1824
  beforeDestroy () {
1823
1825
  const $xeTable = this
1826
+ const internalData = $xeTable as unknown as TableInternalData
1824
1827
 
1825
1828
  const tableViewportEl = $xeTable.$refs.refTableViewportElem as HTMLDivElement
1826
1829
  if (tableViewportEl) {
1827
1830
  tableViewportEl.removeEventListener('wheel', $xeTable.triggerBodyWheelEvent)
1828
1831
  }
1832
+ internalData.cvCacheMaps = {}
1833
+ internalData.prevDragRow = null
1834
+ internalData.prevDragCol = null
1829
1835
  if (this.$resize) {
1830
1836
  this.$resize.disconnect()
1831
1837
  }
@@ -72,23 +72,18 @@ export const convertHeaderColumnToRows = (originColumns: any) => {
72
72
  export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft: number, scrollTop: number) {
73
73
  const internalData = $xeTable as unknown as TableInternalData
74
74
 
75
- return $xeTable.clearScroll().then(() => {
76
- if (scrollLeft || scrollTop) {
77
- // 重置最后滚动状态
78
- internalData.lastScrollLeft = 0
79
- internalData.lastScrollTop = 0
80
-
81
- internalData.intoRunScroll = false
82
- internalData.inVirtualScroll = false
83
- internalData.inWheelScroll = false
84
- internalData.inHeaderScroll = false
85
- internalData.inBodyScroll = false
86
- internalData.inFooterScroll = false
87
- internalData.scrollRenderType = ''
88
- // 还原滚动状态
89
- return $xeTable.scrollTo(scrollLeft, scrollTop)
90
- }
91
- })
75
+ if (scrollLeft || scrollTop) {
76
+ internalData.intoRunScroll = false
77
+ internalData.inVirtualScroll = false
78
+ internalData.inWheelScroll = false
79
+ internalData.inHeaderScroll = false
80
+ internalData.inBodyScroll = false
81
+ internalData.inFooterScroll = false
82
+ internalData.scrollRenderType = ''
83
+ // 还原滚动状态
84
+ return $xeTable.scrollTo(scrollLeft, scrollTop)
85
+ }
86
+ return $xeTable.$nextTick()
92
87
  }
93
88
 
94
89
  export function toTreePathSeq (path: any) {
@@ -209,7 +209,7 @@ VxeUI.setConfig({
209
209
  },
210
210
  virtualXConfig: {
211
211
  enabled: true,
212
- gt: 28,
212
+ gt: 24,
213
213
  preSize: 0,
214
214
  oSize: 1
215
215
  },
@@ -220,8 +220,8 @@ VxeUI.setConfig({
220
220
  oSize: 2
221
221
  },
222
222
  scrollbarConfig: {
223
- width: 14,
224
- height: 14
223
+ // width: 14,
224
+ // height: 14
225
225
  }
226
226
  },
227
227
  // export: {
@@ -1,7 +1,36 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
1
3
  @use '../helpers/baseMixin.scss';
2
4
  @use './icon.scss';
3
5
  @use './table-module/all.scss';
4
6
 
7
+ $btnThemeList: (
8
+ (
9
+ name: "primary",
10
+ textColor: var(--vxe-ui-font-primary-color),
11
+ ),
12
+ (
13
+ name: "success",
14
+ textColor: var(--vxe-ui-status-success-color),
15
+ ),
16
+ (
17
+ name: "info",
18
+ textColor: var(--vxe-ui-status-info-color),
19
+ ),
20
+ (
21
+ name: "warning",
22
+ textColor: var(--vxe-ui-status-warning-color),
23
+ ),
24
+ (
25
+ name: "danger",
26
+ textColor: var(--vxe-ui-status-danger-color),
27
+ ),
28
+ (
29
+ name: "error",
30
+ textColor: var(--vxe-ui-status-error-color),
31
+ )
32
+ );
33
+
5
34
  .vxe-table-slots,
6
35
  .vxe-table--file-form {
7
36
  display: none;
@@ -792,6 +821,12 @@
792
821
  .vxe-cell-title-prefix-icon,
793
822
  .vxe-cell-title-suffix-icon {
794
823
  cursor: help;
824
+ @for $index from 0 to list.length($btnThemeList) {
825
+ $item: list.nth($btnThemeList, $index + 1);
826
+ &.theme--#{map.get($item, name)} {
827
+ color: map.get($item, textColor);
828
+ }
829
+ }
795
830
  }
796
831
  }
797
832