vxe-table 4.19.0-beta.9 → 4.19.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 (154) hide show
  1. package/README.md +2 -2
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/locale/lang/ar-EG.js +5 -3
  5. package/es/locale/lang/de-DE.js +5 -3
  6. package/es/locale/lang/en-US.js +5 -3
  7. package/es/locale/lang/es-ES.js +5 -3
  8. package/es/locale/lang/fr-FR.js +5 -3
  9. package/es/locale/lang/hu-HU.js +5 -3
  10. package/es/locale/lang/hy-AM.js +5 -3
  11. package/es/locale/lang/id-ID.js +5 -3
  12. package/es/locale/lang/it-IT.js +5 -3
  13. package/es/locale/lang/ja-JP.js +5 -3
  14. package/es/locale/lang/ko-KR.js +5 -3
  15. package/es/locale/lang/ms-MY.js +5 -3
  16. package/es/locale/lang/nb-NO.js +5 -3
  17. package/es/locale/lang/pt-BR.js +5 -3
  18. package/es/locale/lang/ru-RU.js +5 -3
  19. package/es/locale/lang/th-TH.js +5 -3
  20. package/es/locale/lang/ug-CN.js +5 -3
  21. package/es/locale/lang/uk-UA.js +5 -3
  22. package/es/locale/lang/uz-UZ.js +5 -3
  23. package/es/locale/lang/vi-VN.js +5 -3
  24. package/es/locale/lang/zh-CHT.js +5 -3
  25. package/es/locale/lang/zh-CN.js +5 -3
  26. package/es/style.css +1 -1
  27. package/es/style.min.css +1 -1
  28. package/es/table/module/custom/panel.js +39 -27
  29. package/es/table/src/table.js +10 -9
  30. package/es/table/style.css +4 -1
  31. package/es/table/style.min.css +1 -1
  32. package/es/ui/index.js +2 -1
  33. package/es/ui/src/log.js +1 -1
  34. package/es/vxe-table/style.css +4 -1
  35. package/es/vxe-table/style.min.css +1 -1
  36. package/helper/vetur/attributes.json +1 -1
  37. package/helper/vetur/tags.json +1 -1
  38. package/lib/index.css +1 -1
  39. package/lib/index.min.css +1 -1
  40. package/lib/index.umd.js +39 -24
  41. package/lib/index.umd.min.js +1 -1
  42. package/lib/locale/lang/ar-EG.js +5 -3
  43. package/lib/locale/lang/ar-EG.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.umd.js +5 -3
  45. package/lib/locale/lang/de-DE.js +5 -3
  46. package/lib/locale/lang/de-DE.min.js +1 -1
  47. package/lib/locale/lang/de-DE.umd.js +5 -3
  48. package/lib/locale/lang/en-US.js +5 -3
  49. package/lib/locale/lang/en-US.min.js +1 -1
  50. package/lib/locale/lang/en-US.umd.js +5 -3
  51. package/lib/locale/lang/es-ES.js +5 -3
  52. package/lib/locale/lang/es-ES.min.js +1 -1
  53. package/lib/locale/lang/es-ES.umd.js +5 -3
  54. package/lib/locale/lang/fr-FR.js +5 -3
  55. package/lib/locale/lang/fr-FR.min.js +1 -1
  56. package/lib/locale/lang/fr-FR.umd.js +5 -3
  57. package/lib/locale/lang/hu-HU.js +5 -3
  58. package/lib/locale/lang/hu-HU.min.js +1 -1
  59. package/lib/locale/lang/hu-HU.umd.js +5 -3
  60. package/lib/locale/lang/hy-AM.js +5 -3
  61. package/lib/locale/lang/hy-AM.min.js +1 -1
  62. package/lib/locale/lang/hy-AM.umd.js +5 -3
  63. package/lib/locale/lang/id-ID.js +5 -3
  64. package/lib/locale/lang/id-ID.min.js +1 -1
  65. package/lib/locale/lang/id-ID.umd.js +5 -3
  66. package/lib/locale/lang/it-IT.js +5 -3
  67. package/lib/locale/lang/it-IT.min.js +1 -1
  68. package/lib/locale/lang/it-IT.umd.js +5 -3
  69. package/lib/locale/lang/ja-JP.js +5 -3
  70. package/lib/locale/lang/ja-JP.min.js +1 -1
  71. package/lib/locale/lang/ja-JP.umd.js +5 -3
  72. package/lib/locale/lang/ko-KR.js +5 -3
  73. package/lib/locale/lang/ko-KR.min.js +1 -1
  74. package/lib/locale/lang/ko-KR.umd.js +5 -3
  75. package/lib/locale/lang/ms-MY.js +5 -3
  76. package/lib/locale/lang/ms-MY.min.js +1 -1
  77. package/lib/locale/lang/ms-MY.umd.js +5 -3
  78. package/lib/locale/lang/nb-NO.js +5 -3
  79. package/lib/locale/lang/nb-NO.min.js +1 -1
  80. package/lib/locale/lang/nb-NO.umd.js +5 -3
  81. package/lib/locale/lang/pt-BR.js +5 -3
  82. package/lib/locale/lang/pt-BR.min.js +1 -1
  83. package/lib/locale/lang/pt-BR.umd.js +5 -3
  84. package/lib/locale/lang/ru-RU.js +5 -3
  85. package/lib/locale/lang/ru-RU.min.js +1 -1
  86. package/lib/locale/lang/ru-RU.umd.js +5 -3
  87. package/lib/locale/lang/th-TH.js +5 -3
  88. package/lib/locale/lang/th-TH.min.js +1 -1
  89. package/lib/locale/lang/th-TH.umd.js +5 -3
  90. package/lib/locale/lang/ug-CN.js +5 -3
  91. package/lib/locale/lang/ug-CN.min.js +1 -1
  92. package/lib/locale/lang/ug-CN.umd.js +5 -3
  93. package/lib/locale/lang/uk-UA.js +5 -3
  94. package/lib/locale/lang/uk-UA.min.js +1 -1
  95. package/lib/locale/lang/uk-UA.umd.js +5 -3
  96. package/lib/locale/lang/uz-UZ.js +5 -3
  97. package/lib/locale/lang/uz-UZ.min.js +1 -1
  98. package/lib/locale/lang/uz-UZ.umd.js +5 -3
  99. package/lib/locale/lang/vi-VN.js +5 -3
  100. package/lib/locale/lang/vi-VN.min.js +1 -1
  101. package/lib/locale/lang/vi-VN.umd.js +5 -3
  102. package/lib/locale/lang/zh-CHT.js +5 -3
  103. package/lib/locale/lang/zh-CHT.min.js +1 -1
  104. package/lib/locale/lang/zh-CHT.umd.js +5 -3
  105. package/lib/locale/lang/zh-CN.js +5 -3
  106. package/lib/locale/lang/zh-CN.min.js +1 -1
  107. package/lib/locale/lang/zh-CN.umd.js +5 -3
  108. package/lib/style.css +1 -1
  109. package/lib/style.min.css +1 -1
  110. package/lib/table/module/custom/panel.js +26 -14
  111. package/lib/table/module/custom/panel.min.js +1 -1
  112. package/lib/table/src/table.js +5 -5
  113. package/lib/table/src/table.min.js +1 -1
  114. package/lib/table/style/style.css +4 -1
  115. package/lib/table/style/style.min.css +1 -1
  116. package/lib/ui/index.js +2 -1
  117. package/lib/ui/index.min.js +1 -1
  118. package/lib/ui/src/log.js +1 -1
  119. package/lib/ui/src/log.min.js +1 -1
  120. package/lib/vxe-table/style/style.css +4 -1
  121. package/lib/vxe-table/style/style.min.css +1 -1
  122. package/package.json +2 -2
  123. package/packages/locale/lang/ar-EG.ts +5 -3
  124. package/packages/locale/lang/de-DE.ts +5 -3
  125. package/packages/locale/lang/en-US.ts +5 -3
  126. package/packages/locale/lang/es-ES.ts +5 -3
  127. package/packages/locale/lang/fr-FR.ts +5 -3
  128. package/packages/locale/lang/hu-HU.ts +5 -3
  129. package/packages/locale/lang/hy-AM.ts +5 -3
  130. package/packages/locale/lang/id-ID.ts +5 -3
  131. package/packages/locale/lang/it-IT.ts +5 -3
  132. package/packages/locale/lang/ja-JP.ts +5 -3
  133. package/packages/locale/lang/ko-KR.ts +5 -3
  134. package/packages/locale/lang/ms-MY.ts +5 -3
  135. package/packages/locale/lang/nb-NO.ts +5 -3
  136. package/packages/locale/lang/pt-BR.ts +5 -3
  137. package/packages/locale/lang/ru-RU.ts +5 -3
  138. package/packages/locale/lang/th-TH.ts +5 -3
  139. package/packages/locale/lang/ug-CN.ts +5 -3
  140. package/packages/locale/lang/uk-UA.ts +5 -3
  141. package/packages/locale/lang/uz-UZ.ts +5 -3
  142. package/packages/locale/lang/vi-VN.ts +5 -3
  143. package/packages/locale/lang/zh-CHT.ts +5 -3
  144. package/packages/locale/lang/zh-CN.ts +5 -3
  145. package/packages/table/module/custom/panel.ts +66 -50
  146. package/packages/table/src/table.ts +10 -9
  147. package/packages/ui/index.ts +1 -0
  148. package/styles/components/table-module/custom.scss +5 -1
  149. /package/es/{iconfont.1779070669656.ttf → iconfont.1779447258442.ttf} +0 -0
  150. /package/es/{iconfont.1779070669656.woff → iconfont.1779447258442.woff} +0 -0
  151. /package/es/{iconfont.1779070669656.woff2 → iconfont.1779447258442.woff2} +0 -0
  152. /package/lib/{iconfont.1779070669656.ttf → iconfont.1779447258442.ttf} +0 -0
  153. /package/lib/{iconfont.1779070669656.woff → iconfont.1779447258442.woff} +0 -0
  154. /package/lib/{iconfont.1779070669656.woff2 → iconfont.1779447258442.woff2} +0 -0
@@ -25,7 +25,7 @@ export default {
25
25
  useErr: '安裝 "{0}" 模塊時發生錯誤,可能順序不正確,依賴的模塊需要在 Table 之前安裝',
26
26
  barUnableLink: '工具欄無法關聯表格',
27
27
  expandContent: '展開行的插槽應該是 "content",請檢查是否正確',
28
- reqComp: '缺少 "{0}" 組件,請檢查是否正確安裝。 https://vxeui.com/#/start/useGlobal',
28
+ reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',
29
29
  reqModule: '缺少 "{0}" 模塊',
30
30
  reqProp: '缺少必要的 "{0}" 參數,這可能會導致出現錯誤',
31
31
  emptyProp: '參數 "{0}" 不允許為空',
@@ -104,7 +104,8 @@ export default {
104
104
  select: {
105
105
  clear: '清除',
106
106
  allChecked: '全選',
107
- total: '{0} / {1}',
107
+ total: '已选 {0} ',
108
+ close: '关闭',
108
109
  search: '搜尋',
109
110
  loadingText: '載入中',
110
111
  emptyText: '暫無數據',
@@ -121,7 +122,8 @@ export default {
121
122
  allChecked: '全選',
122
123
  allExpand: '全部展開',
123
124
  clearExpand: '全部收起',
124
- total: '已選 {0}',
125
+ total: '已选 {0}',
126
+ close: '关闭',
125
127
  search: '搜尋',
126
128
  emptyText: '暫無數據'
127
129
  },
@@ -25,7 +25,7 @@ export default {
25
25
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
26
26
  barUnableLink: '工具栏无法关联表格',
27
27
  expandContent: '展开行的插槽应该是 "content",请检查是否正确',
28
- reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
28
+ reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',
29
29
  reqModule: '缺少 "{0}" 模块',
30
30
  reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
31
31
  emptyProp: '参数 "{0}" 不允许为空',
@@ -104,7 +104,8 @@ export default {
104
104
  select: {
105
105
  clear: '清除',
106
106
  allChecked: '全选',
107
- total: '{0} / {1}',
107
+ total: '已选 {0} ',
108
+ close: '关闭',
108
109
  search: '搜索',
109
110
  loadingText: '加载中...',
110
111
  emptyText: '暂无数据',
@@ -121,7 +122,8 @@ export default {
121
122
  allChecked: '全选',
122
123
  allExpand: '全部展开',
123
124
  clearExpand: '全部收起',
124
- total: '已选 {0}',
125
+ total: '已选 {0}',
126
+ close: '关闭',
125
127
  search: '搜索',
126
128
  emptyText: '暂无数据'
127
129
  },
@@ -43,7 +43,7 @@ export default defineVxeComponent({
43
43
  const $xeTable = inject('$xeTable', {} as VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods)
44
44
 
45
45
  const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable
46
- const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts } = $xeTable.getComputeMaps()
46
+ const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps()
47
47
 
48
48
  const refElem = ref() as Ref<HTMLDivElement>
49
49
  const refBodyWrapperElem = ref() as Ref<HTMLDivElement>
@@ -537,7 +537,7 @@ export default defineVxeComponent({
537
537
 
538
538
  const sortDragoverEvent = (evnt: DragEvent) => {
539
539
  const customOpts = computeCustomOpts.value
540
- const { immediate } = customOpts
540
+ const { showSortDragButton, allowSort, immediate } = customOpts
541
541
  const columnDragOpts = computeColumnDragOpts.value
542
542
  const { isCrossDrag, isToChildDrag } = columnDragOpts
543
543
  const optEl = evnt.currentTarget as HTMLElement
@@ -554,9 +554,12 @@ export default defineVxeComponent({
554
554
  const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom'
555
555
  if (
556
556
  !dragCol ||
557
+ !(showSortDragButton && allowSort) ||
557
558
  (dragCol && dragCol.id === column.id) ||
558
559
  (!isCrossDrag && column.level > 1) ||
559
- (!immediate && column.level > 1)
560
+ (!immediate && column.level > 1) ||
561
+ (!isCrossDrag && dragCol.level > 1) ||
562
+ (!immediate && dragCol.level > 1)
560
563
  ) {
561
564
  showDropTip(evnt, optEl, false, dragPos)
562
565
  return
@@ -697,7 +700,7 @@ export default defineVxeComponent({
697
700
  const { immediate } = customOpts
698
701
  const columnDragOpts = computeColumnDragOpts.value
699
702
  const { popupStyle } = customStore
700
- const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
703
+ const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
701
704
  const isMaxFixedColumn = computeIsMaxFixedColumn.value
702
705
  const vSize = computeSize.value
703
706
  const { isCrossDrag } = columnDragOpts
@@ -769,27 +772,31 @@ export default defineVxeComponent({
769
772
  h('div', {
770
773
  class: 'vxe-table-custom--name-option'
771
774
  }, [
772
- allowSort && showSortDragButton && showSortBtn
773
- ? h('div', {
774
- class: 'vxe-table-custom--sort-option'
775
- }, [
776
- h('span', {
777
- class: ['vxe-table-custom--sort-btn', {
778
- 'is--disabled': isHidden
779
- }],
780
- title: getI18n('vxe.custom.setting.sortHelpTip'),
781
- ...(isHidden
782
- ? {}
783
- : {
784
- onMousedown: sortMousedownEvent,
785
- onMouseup: sortMouseupEvent
786
- })
787
- }, [
788
- h('i', {
789
- class: getIcon().TABLE_CUSTOM_SORT
790
- })
791
- ])
792
- ])
775
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
776
+ ? (
777
+ showSortBtn || ((allowGroup || allowValues) && !isColGroup)
778
+ ? h('div', {
779
+ class: 'vxe-table-custom--sort-option'
780
+ }, [
781
+ h('span', {
782
+ class: ['vxe-table-custom--sort-btn', {
783
+ 'is--disabled': isHidden
784
+ }],
785
+ title: getI18n('vxe.custom.setting.sortHelpTip'),
786
+ ...(isHidden
787
+ ? {}
788
+ : {
789
+ onMousedown: sortMousedownEvent,
790
+ onMouseup: sortMouseupEvent
791
+ })
792
+ }, [
793
+ h('i', {
794
+ class: getIcon().TABLE_CUSTOM_SORT
795
+ })
796
+ ])
797
+ ])
798
+ : renderEmptyElement($xeTable)
799
+ )
793
800
  : renderEmptyElement($xeTable),
794
801
  column.type === 'html'
795
802
  ? h('div', {
@@ -1030,9 +1037,10 @@ export default defineVxeComponent({
1030
1037
  const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps
1031
1038
  const { isCustomStatus, customColumnList } = tableReactData
1032
1039
  const customOpts = computeCustomOpts.value
1033
- const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
1034
1040
  const columnDragOpts = computeColumnDragOpts.value
1035
- const { mode, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, checkMethod, visibleMethod } = customOpts
1041
+ const aggregateOpts = computeAggregateOpts.value
1042
+ const { placement: aggPlacement } = aggregateOpts
1043
+ const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts
1036
1044
  const columnOpts = computeColumnOpts.value
1037
1045
  const { maxFixedSize } = columnOpts
1038
1046
  const resizableOpts = computeResizableOpts.value
@@ -1050,6 +1058,7 @@ export default defineVxeComponent({
1050
1058
  const trVNs: VNode[] = []
1051
1059
  const isAllChecked = customStore.isAll
1052
1060
  const isAllIndeterminate = customStore.isIndeterminate
1061
+ const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom'
1053
1062
  const params = {
1054
1063
  $table: $xeTable,
1055
1064
  $grid: $xeGrid,
@@ -1128,27 +1137,29 @@ export default defineVxeComponent({
1128
1137
  h('div', {
1129
1138
  class: 'vxe-table-custom-popup--name'
1130
1139
  }, [
1131
- allowSort
1132
- ? showSortDragButton && (showSortBtn
1133
- ? h('div', {
1134
- class: ['vxe-table-custom-popup--column-sort-btn', {
1135
- 'is--disabled': isHidden
1136
- }],
1137
- title: getI18n('vxe.custom.setting.sortHelpTip'),
1138
- ...(isHidden
1139
- ? {}
1140
- : {
1141
- onMousedown: sortMousedownEvent,
1142
- onMouseup: sortMouseupEvent
1140
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
1141
+ ? (
1142
+ showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1143
+ ? h('div', {
1144
+ class: ['vxe-table-custom-popup--column-sort-btn', {
1145
+ 'is--disabled': isHidden
1146
+ }],
1147
+ title: getI18n('vxe.custom.setting.sortHelpTip'),
1148
+ ...(isHidden
1149
+ ? {}
1150
+ : {
1151
+ onMousedown: sortMousedownEvent,
1152
+ onMouseup: sortMouseupEvent
1153
+ })
1154
+ }, [
1155
+ h('i', {
1156
+ class: getIcon().TABLE_CUSTOM_SORT
1143
1157
  })
1144
- }, [
1145
- h('i', {
1146
- class: getIcon().TABLE_CUSTOM_SORT
1147
- })
1148
- ])
1149
- : h('div', {
1150
- class: 'vxe-table-custom-popup--column-sort-placeholder'
1151
- }))
1158
+ ])
1159
+ : h('div', {
1160
+ class: 'vxe-table-custom-popup--column-sort-placeholder'
1161
+ })
1162
+ )
1152
1163
  : renderEmptyElement($xeTable),
1153
1164
  column.type === 'html'
1154
1165
  ? h('div', {
@@ -1279,11 +1290,11 @@ export default defineVxeComponent({
1279
1290
  default: () => {
1280
1291
  return h('div', {
1281
1292
  ref: refBodyWrapperElem,
1282
- class: 'vxe-table-custom-popup--body-wrapper'
1293
+ class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
1283
1294
  }, defaultSlot
1284
1295
  ? $xeTable.callSlot(defaultSlot, params)
1285
1296
  : [
1286
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1297
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1287
1298
  ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1288
1299
  customStore
1289
1300
  })
@@ -1366,7 +1377,12 @@ export default defineVxeComponent({
1366
1377
  }, $xeTable.callSlot(bottomSlot, params))
1367
1378
  : renderEmptyElement($xeTable),
1368
1379
  renderDragTip()
1369
- ])
1380
+ ]),
1381
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1382
+ ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1383
+ customStore
1384
+ })
1385
+ : renderEmptyElement($xeTable)
1370
1386
  ])
1371
1387
  },
1372
1388
  footer: () => {
@@ -1884,6 +1884,7 @@ export default defineVxeComponent({
1884
1884
  * 计算自适应列宽
1885
1885
  */
1886
1886
  const calcColumnAutoWidth = (column: VxeTableDefines.ColumnInfo, wrapperEl: HTMLDivElement) => {
1887
+ const { scrollYLoad } = reactData
1887
1888
  const columnOpts = computeColumnOpts.value
1888
1889
  const { autoOptions } = columnOpts
1889
1890
  const { isCalcHeader, isCalcBody, isCalcFooter } = autoOptions || {}
@@ -1904,7 +1905,7 @@ export default defineVxeComponent({
1904
1905
  const cellStyle = getComputedStyle(firstCellEl.parentElement)
1905
1906
  leftRightPadding = Math.ceil(XEUtils.toNumber(cellStyle.paddingLeft) + XEUtils.toNumber(cellStyle.paddingRight))
1906
1907
  }
1907
- let colWidth = column.renderAutoWidth - leftRightPadding
1908
+ let colWidth = (scrollYLoad ? column.renderAutoWidth : 0) - leftRightPadding
1908
1909
  for (let i = 0; i < cellElemList.length; i++) {
1909
1910
  const celEl = cellElemList[i] as HTMLDivElement
1910
1911
  colWidth = Math.max(colWidth, celEl ? Math.ceil(celEl.scrollWidth) + 4 : 0)
@@ -4553,7 +4554,7 @@ export default defineVxeComponent({
4553
4554
  })
4554
4555
  }
4555
4556
  })
4556
- }, 200)
4557
+ }, 240)
4557
4558
  }
4558
4559
 
4559
4560
  const getWheelSpeed = (lastScrollTime: number) => {
@@ -12265,7 +12266,7 @@ export default defineVxeComponent({
12265
12266
  }
12266
12267
 
12267
12268
  const { highlightHoverRow } = tableProps
12268
- const { scrollXLoad, scrollYLoad, expandColumn } = reactData
12269
+ const { scrollXLoad, scrollYLoad, overflowX, overflowY, expandColumn } = reactData
12269
12270
  const leftFixedWidth = computeLeftFixedWidth.value
12270
12271
  const rightFixedWidth = computeRightFixedWidth.value
12271
12272
 
@@ -12292,10 +12293,10 @@ export default defineVxeComponent({
12292
12293
  const currScrollTop = bodyScrollElem.scrollTop
12293
12294
  const currScrollLeft = bodyScrollElem.scrollLeft
12294
12295
 
12295
- const scrollTop = currScrollTop + deltaTop
12296
- const scrollLeft = currScrollLeft + deltaLeft
12297
- const isRollX = scrollLeft !== lastScrollLeft
12298
- const isRollY = scrollTop !== lastScrollTop
12296
+ const scrollTop = Math.max(0, currScrollTop + deltaTop)
12297
+ const scrollLeft = Math.max(0, currScrollLeft + deltaLeft)
12298
+ const isRollX = overflowX && scrollLeft !== lastScrollLeft
12299
+ const isRollY = overflowY && scrollTop !== lastScrollTop
12299
12300
 
12300
12301
  if (isRollX) {
12301
12302
  // 如果禁用滚动
@@ -12333,7 +12334,7 @@ export default defineVxeComponent({
12333
12334
  }
12334
12335
  }
12335
12336
 
12336
- if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
12337
+ if (!(isRollX || leftFixedWidth || rightFixedWidth || expandColumn)) {
12337
12338
  return
12338
12339
  }
12339
12340
 
@@ -14110,7 +14111,7 @@ export default defineVxeComponent({
14110
14111
  warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
14111
14112
  }
14112
14113
  if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
14113
- errLog('vxe.error.noTree', ['mouse-config.area'])
14114
+ errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true'])
14114
14115
  }
14115
14116
  if (props.editConfig && editOpts.activeMethod) {
14116
14117
  warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod'])
@@ -170,6 +170,7 @@ VxeUI.setConfig({
170
170
  },
171
171
  aggregateConfig: {
172
172
  padding: true,
173
+ placement: 'left',
173
174
  rowField: 'id',
174
175
  parentField: '_X_ROW_PARENT_KEY',
175
176
  childrenField: '_X_ROW_CHILDREN',
@@ -225,10 +225,14 @@
225
225
  .vxe-table-custom-popup--body-wrapper {
226
226
  position: relative;
227
227
  display: flex;
228
- flex-direction: column;
228
+ flex-direction: row;
229
229
  overflow: hidden;
230
230
  height: 100%;
231
231
  outline: 0;
232
+ &.agg-layout--top,
233
+ &.agg-layout--bottom {
234
+ flex-direction: column;
235
+ }
232
236
  }
233
237
  .vxe-table-custom-popup--handle-wrapper {
234
238
  flex-grow: 1;