vxe-table 3.19.26 → 3.19.28

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 (140) hide show
  1. package/es/locale/lang/ar-EG.js +16 -11
  2. package/es/locale/lang/de-DE.js +16 -11
  3. package/es/locale/lang/en-US.js +19 -14
  4. package/es/locale/lang/es-ES.js +16 -11
  5. package/es/locale/lang/fr-FR.js +16 -11
  6. package/es/locale/lang/hu-HU.js +16 -11
  7. package/es/locale/lang/hy-AM.js +16 -11
  8. package/es/locale/lang/id-ID.js +16 -11
  9. package/es/locale/lang/it-IT.js +16 -11
  10. package/es/locale/lang/ja-JP.js +16 -11
  11. package/es/locale/lang/ko-KR.js +16 -11
  12. package/es/locale/lang/ms-MY.js +16 -11
  13. package/es/locale/lang/nb-NO.js +16 -11
  14. package/es/locale/lang/pt-BR.js +16 -11
  15. package/es/locale/lang/ru-RU.js +16 -11
  16. package/es/locale/lang/th-TH.js +16 -11
  17. package/es/locale/lang/ug-CN.js +16 -11
  18. package/es/locale/lang/uk-UA.js +16 -11
  19. package/es/locale/lang/uz-UZ.js +16 -11
  20. package/es/locale/lang/vi-VN.js +16 -11
  21. package/es/locale/lang/zh-CHT.js +16 -11
  22. package/es/locale/lang/zh-CN.js +15 -12
  23. package/es/style.css +1 -1
  24. package/es/table/src/methods.js +30 -24
  25. package/es/table/src/table.js +16 -6
  26. package/es/ui/index.js +1 -1
  27. package/es/ui/src/log.js +1 -1
  28. package/lib/index.umd.js +53 -38
  29. package/lib/index.umd.min.js +1 -1
  30. package/lib/locale/lang/ar-EG.js +16 -11
  31. package/lib/locale/lang/ar-EG.min.js +1 -1
  32. package/lib/locale/lang/ar-EG.umd.js +16 -11
  33. package/lib/locale/lang/de-DE.js +16 -11
  34. package/lib/locale/lang/de-DE.min.js +1 -1
  35. package/lib/locale/lang/de-DE.umd.js +16 -11
  36. package/lib/locale/lang/en-US.js +19 -14
  37. package/lib/locale/lang/en-US.min.js +1 -1
  38. package/lib/locale/lang/en-US.umd.js +19 -14
  39. package/lib/locale/lang/es-ES.js +16 -11
  40. package/lib/locale/lang/es-ES.min.js +1 -1
  41. package/lib/locale/lang/es-ES.umd.js +16 -11
  42. package/lib/locale/lang/fr-FR.js +16 -11
  43. package/lib/locale/lang/fr-FR.min.js +1 -1
  44. package/lib/locale/lang/fr-FR.umd.js +16 -11
  45. package/lib/locale/lang/hu-HU.js +16 -11
  46. package/lib/locale/lang/hu-HU.min.js +1 -1
  47. package/lib/locale/lang/hu-HU.umd.js +16 -11
  48. package/lib/locale/lang/hy-AM.js +16 -11
  49. package/lib/locale/lang/hy-AM.min.js +1 -1
  50. package/lib/locale/lang/hy-AM.umd.js +16 -11
  51. package/lib/locale/lang/id-ID.js +16 -11
  52. package/lib/locale/lang/id-ID.min.js +1 -1
  53. package/lib/locale/lang/id-ID.umd.js +16 -11
  54. package/lib/locale/lang/it-IT.js +16 -11
  55. package/lib/locale/lang/it-IT.min.js +1 -1
  56. package/lib/locale/lang/it-IT.umd.js +16 -11
  57. package/lib/locale/lang/ja-JP.js +16 -11
  58. package/lib/locale/lang/ja-JP.min.js +1 -1
  59. package/lib/locale/lang/ja-JP.umd.js +16 -11
  60. package/lib/locale/lang/ko-KR.js +16 -11
  61. package/lib/locale/lang/ko-KR.min.js +1 -1
  62. package/lib/locale/lang/ko-KR.umd.js +16 -11
  63. package/lib/locale/lang/ms-MY.js +16 -11
  64. package/lib/locale/lang/ms-MY.min.js +1 -1
  65. package/lib/locale/lang/ms-MY.umd.js +16 -11
  66. package/lib/locale/lang/nb-NO.js +16 -11
  67. package/lib/locale/lang/nb-NO.min.js +1 -1
  68. package/lib/locale/lang/nb-NO.umd.js +16 -11
  69. package/lib/locale/lang/pt-BR.js +16 -11
  70. package/lib/locale/lang/pt-BR.min.js +1 -1
  71. package/lib/locale/lang/pt-BR.umd.js +16 -11
  72. package/lib/locale/lang/ru-RU.js +16 -11
  73. package/lib/locale/lang/ru-RU.min.js +1 -1
  74. package/lib/locale/lang/ru-RU.umd.js +16 -11
  75. package/lib/locale/lang/th-TH.js +16 -11
  76. package/lib/locale/lang/th-TH.min.js +1 -1
  77. package/lib/locale/lang/th-TH.umd.js +16 -11
  78. package/lib/locale/lang/ug-CN.js +16 -11
  79. package/lib/locale/lang/ug-CN.min.js +1 -1
  80. package/lib/locale/lang/ug-CN.umd.js +16 -11
  81. package/lib/locale/lang/uk-UA.js +16 -11
  82. package/lib/locale/lang/uk-UA.min.js +1 -1
  83. package/lib/locale/lang/uk-UA.umd.js +16 -11
  84. package/lib/locale/lang/uz-UZ.js +16 -11
  85. package/lib/locale/lang/uz-UZ.min.js +1 -1
  86. package/lib/locale/lang/uz-UZ.umd.js +16 -11
  87. package/lib/locale/lang/vi-VN.js +16 -11
  88. package/lib/locale/lang/vi-VN.min.js +1 -1
  89. package/lib/locale/lang/vi-VN.umd.js +16 -11
  90. package/lib/locale/lang/zh-CHT.js +16 -11
  91. package/lib/locale/lang/zh-CHT.min.js +1 -1
  92. package/lib/locale/lang/zh-CHT.umd.js +16 -11
  93. package/lib/locale/lang/zh-CN.js +15 -12
  94. package/lib/locale/lang/zh-CN.min.js +1 -1
  95. package/lib/locale/lang/zh-CN.umd.js +15 -12
  96. package/lib/style.css +1 -1
  97. package/lib/table/src/methods.js +32 -24
  98. package/lib/table/src/methods.min.js +1 -1
  99. package/lib/table/src/table.js +21 -9
  100. package/lib/table/src/table.min.js +1 -1
  101. package/lib/ui/index.js +1 -1
  102. package/lib/ui/index.min.js +1 -1
  103. package/lib/ui/src/log.js +1 -1
  104. package/lib/ui/src/log.min.js +1 -1
  105. package/package.json +1 -1
  106. package/packages/locale/lang/ar-EG.ts +16 -11
  107. package/packages/locale/lang/de-DE.ts +16 -11
  108. package/packages/locale/lang/en-US.ts +19 -14
  109. package/packages/locale/lang/es-ES.ts +16 -11
  110. package/packages/locale/lang/fr-FR.ts +16 -11
  111. package/packages/locale/lang/hu-HU.ts +16 -11
  112. package/packages/locale/lang/hy-AM.ts +16 -11
  113. package/packages/locale/lang/id-ID.ts +16 -11
  114. package/packages/locale/lang/it-IT.ts +16 -11
  115. package/packages/locale/lang/ja-JP.ts +16 -11
  116. package/packages/locale/lang/ko-KR.ts +16 -11
  117. package/packages/locale/lang/ms-MY.ts +16 -11
  118. package/packages/locale/lang/nb-NO.ts +16 -11
  119. package/packages/locale/lang/pt-BR.ts +16 -11
  120. package/packages/locale/lang/ru-RU.ts +16 -11
  121. package/packages/locale/lang/th-TH.ts +16 -11
  122. package/packages/locale/lang/ug-CN.ts +16 -11
  123. package/packages/locale/lang/uk-UA.ts +16 -11
  124. package/packages/locale/lang/uz-UZ.ts +16 -11
  125. package/packages/locale/lang/vi-VN.ts +16 -11
  126. package/packages/locale/lang/zh-CHT.ts +16 -11
  127. package/packages/locale/lang/zh-CN.ts +15 -12
  128. package/packages/table/src/cell.ts +3 -3
  129. package/packages/table/src/methods.ts +30 -25
  130. package/packages/table/src/table.ts +17 -6
  131. /package/es/{iconfont.1764834392345.ttf → iconfont.1765353143587.ttf} +0 -0
  132. /package/es/{iconfont.1764834392345.woff → iconfont.1765353143587.woff} +0 -0
  133. /package/es/{iconfont.1764834392345.woff2 → iconfont.1765353143587.woff2} +0 -0
  134. /package/es/{table → ui}/src/anime.js +0 -0
  135. /package/lib/{iconfont.1764834392345.ttf → iconfont.1765353143587.ttf} +0 -0
  136. /package/lib/{iconfont.1764834392345.woff → iconfont.1765353143587.woff} +0 -0
  137. /package/lib/{iconfont.1764834392345.woff2 → iconfont.1765353143587.woff2} +0 -0
  138. /package/lib/{table → ui}/src/anime.js +0 -0
  139. /package/lib/{table → ui}/src/anime.min.js +0 -0
  140. /package/packages/{table → ui}/src/anime.ts +0 -0
@@ -113,7 +113,8 @@ export default {
113
113
  searchEmpty: '未匹配到数据!'
114
114
  },
115
115
  tree: {
116
- searchEmpty: '未匹配到数据!'
116
+ searchEmpty: '未匹配到数据!',
117
+ dragTip: '移动:{0}'
117
118
  },
118
119
  treeSelect: {
119
120
  clearChecked: '清除',
@@ -540,22 +541,26 @@ export default {
540
541
  },
541
542
  gantt: {
542
543
  tFullFormat: {
543
- year: '{yy}年',
544
- quarter: '{yy}年第{q}季度',
545
- month: '{yy}年{M}月',
546
- week: '{yy}年第{W}周',
547
- day: '{yy}年{M}月{d}',
548
- hour: '{yy}年 {M}月{d}日{H}时',
549
- minute: '{yy}年{M}月{d}日{H}时{m}分'
544
+ year: '{yyyy}年',
545
+ quarter: '{yyyy}年第{q}季度',
546
+ month: '{yyyy}年{MM}月',
547
+ week: '{yyyy}年第{W}周',
548
+ day: '{yyyy}年{MM}月 {E}',
549
+ date: '{yyyy}年{MM}月{dd}日',
550
+ hour: '{yyyy}年{MM}月{dd}日{HH}时',
551
+ minute: '{yyyy}年{MM}月{dd}日{HH}时{mm}分',
552
+ second: '{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒'
550
553
  },
551
554
  tSimpleFormat: {
552
- year: '{yy}年',
555
+ year: '{yyyy}年',
553
556
  quarter: '{q}季度',
554
557
  month: '{M}月',
555
558
  week: '{W}周',
556
559
  day: '{d}',
557
- hour: '{H}',
558
- minute: '{m}'
560
+ date: '{d}',
561
+ hour: '{HH}',
562
+ minute: '{mm}',
563
+ second: '{ss}'
559
564
  },
560
565
  dayss: {
561
566
  w0: '日',
@@ -113,7 +113,8 @@ export default {
113
113
  searchEmpty: 'Không có dữ liệu phù hợp!'
114
114
  },
115
115
  tree: {
116
- searchEmpty: 'Không có dữ liệu phù hợp!'
116
+ searchEmpty: 'Không có dữ liệu phù hợp!',
117
+ dragTip: '移动:{0}'
117
118
  },
118
119
  treeSelect: {
119
120
  clearChecked: 'Thông thoáng',
@@ -540,22 +541,26 @@ export default {
540
541
  },
541
542
  gantt: {
542
543
  tFullFormat: {
543
- year: '{yy}年',
544
- quarter: '{yy}年第{q}季度',
545
- month: '{yy}年{M}月',
546
- week: '{yy}年第{W}周',
547
- day: '{yy}年{M}月{d}',
548
- hour: '{yy}年 {M}月{d}日{H}时',
549
- minute: '{yy}年{M}月{d}日{H}时{m}分'
544
+ year: '{yyyy}年',
545
+ quarter: '{yyyy}年第{q}季度',
546
+ month: '{yyyy}年{MM}月',
547
+ week: '{yyyy}年第{W}周',
548
+ day: '{yyyy}年{MM}月 {E}',
549
+ date: '{yyyy}年{MM}月{dd}日',
550
+ hour: '{yyyy}年{MM}月{dd}日{HH}时',
551
+ minute: '{yyyy}年{MM}月{dd}日{HH}时{mm}分',
552
+ second: '{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒'
550
553
  },
551
554
  tSimpleFormat: {
552
- year: '{yy}年',
555
+ year: '{yyyy}年',
553
556
  quarter: '{q}季度',
554
557
  month: '{M}月',
555
558
  week: '{W}周',
556
559
  day: '{d}',
557
- hour: '{H}',
558
- minute: '{m}'
560
+ date: '{d}',
561
+ hour: '{HH}',
562
+ minute: '{mm}',
563
+ second: '{ss}'
559
564
  },
560
565
  dayss: {
561
566
  w0: '日',
@@ -113,7 +113,8 @@ export default {
113
113
  searchEmpty: '未匹配到數據!'
114
114
  },
115
115
  tree: {
116
- searchEmpty: '未匹配到數據!'
116
+ searchEmpty: '未匹配到數據!',
117
+ dragTip: '移動:{0}'
117
118
  },
118
119
  treeSelect: {
119
120
  clearChecked: '清除',
@@ -540,22 +541,26 @@ export default {
540
541
  },
541
542
  gantt: {
542
543
  tFullFormat: {
543
- year: '{yy}年',
544
- quarter: '{yy}年第{q}季度',
545
- month: '{yy}年{M}月',
546
- week: '{yy}年第{W}周',
547
- day: '{yy}年{M}月{d}',
548
- hour: '{yy}年 {M}月{d}日{H}时',
549
- minute: '{yy}年{M}月{d}日{H}时{m}分'
544
+ year: '{yyyy}年',
545
+ quarter: '{yyyy}年第{q}季度',
546
+ month: '{yyyy}年{MM}月',
547
+ week: '{yyyy}年第{W}周',
548
+ day: '{yyyy}年{MM}月 {E}',
549
+ date: '{yyyy}年{MM}月{dd}日',
550
+ hour: '{yyyy}年{MM}月{dd}日{HH}时',
551
+ minute: '{yyyy}年{MM}月{dd}日{HH}时{mm}分',
552
+ second: '{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒'
550
553
  },
551
554
  tSimpleFormat: {
552
- year: '{yy}年',
555
+ year: '{yyyy}年',
553
556
  quarter: '{q}季度',
554
557
  month: '{M}月',
555
558
  week: '{W}周',
556
559
  day: '{d}',
557
- hour: '{H}',
558
- minute: '{m}'
560
+ date: '{d}',
561
+ hour: '{HH}',
562
+ minute: '{mm}',
563
+ second: '{ss}'
559
564
  },
560
565
  dayss: {
561
566
  w0: '日',
@@ -113,7 +113,8 @@ export default {
113
113
  searchEmpty: '未匹配到数据!'
114
114
  },
115
115
  tree: {
116
- searchEmpty: '未匹配到数据!'
116
+ searchEmpty: '未匹配到数据!',
117
+ dragTip: '移动:{0}'
117
118
  },
118
119
  treeSelect: {
119
120
  clearChecked: '清除',
@@ -540,24 +541,26 @@ export default {
540
541
  },
541
542
  gantt: {
542
543
  tFullFormat: {
543
- year: '{yy}年',
544
- quarter: '{yy}年第{q}季度',
545
- month: '{yy}年{M}月',
546
- week: '{yy}年第{W}周',
547
- day: '{yy}年{M}月{E}',
548
- date: '{yy}年{M}月{d}日',
549
- hour: '{yy}年 {M}月{d}日{H}时',
550
- minute: '{yy}年{M}月{d}日{H}时{m}分'
544
+ year: '{yyyy}年',
545
+ quarter: '{yyyy}年第{q}季度',
546
+ month: '{yyyy}年{MM}月',
547
+ week: '{yyyy}年第{W}周',
548
+ day: '{yyyy}年{MM}月 {E}',
549
+ date: '{yyyy}年{MM}月{dd}日',
550
+ hour: '{yyyy}年{MM}月{dd}日{HH}时',
551
+ minute: '{yyyy}年{MM}月{dd}日{HH}时{mm}分',
552
+ second: '{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒'
551
553
  },
552
554
  tSimpleFormat: {
553
- year: '{yy}年',
555
+ year: '{yyyy}年',
554
556
  quarter: '{q}季度',
555
557
  month: '{M}月',
556
558
  week: '{W}周',
557
559
  day: '{d}',
558
560
  date: '{d}',
559
- hour: '{H}',
560
- minute: '{m}'
561
+ hour: '{HH}',
562
+ minute: '{mm}',
563
+ second: '{ss}'
561
564
  },
562
565
  dayss: {
563
566
  w0: '日',
@@ -723,7 +723,7 @@ export const Cell = {
723
723
  const colTitle = column.getTitle()
724
724
  const ons: Record<string, any> = {}
725
725
  if (!isHidden) {
726
- ons.click = (evnt: any) => {
726
+ ons.click = (evnt: MouseEvent) => {
727
727
  if (!isAllCheckboxDisabled) {
728
728
  $table.triggerCheckAllEvent(evnt, !isAllCheckboxSelected)
729
729
  }
@@ -801,7 +801,7 @@ export const Cell = {
801
801
  if (treeConfig || isRowGroupStatus) {
802
802
  indeterminate = !!treeIndeterminateRowMaps[rowid]
803
803
  }
804
- ons.click = (evnt: any) => {
804
+ ons.click = (evnt: MouseEvent) => {
805
805
  if (!isDisabled && isVisible) {
806
806
  $table.triggerCheckRowEvent(evnt, params, !isChecked)
807
807
  }
@@ -877,7 +877,7 @@ export const Cell = {
877
877
  if (treeConfig || isRowGroupStatus) {
878
878
  indeterminate = !!treeIndeterminateRowMaps[rowid]
879
879
  }
880
- ons.click = (evnt: any) => {
880
+ ons.click = (evnt: MouseEvent) => {
881
881
  if (!isDisabled && isVisible) {
882
882
  $table.triggerCheckRowEvent(evnt, params, !isChecked)
883
883
  }
@@ -5,7 +5,7 @@ import { VxeUI } from '../../ui'
5
5
  import Cell from './cell'
6
6
  import { getRowUniqueId, clearTableAllStatus, getColumnList, toFilters, getRowkey, getRowid, rowToVisible, colToVisible, getCellValue, setCellValue, handleRowidOrRow, handleFieldOrColumn, toTreePathSeq, restoreScrollLocation, getRootColumn, getColReMinWidth, createHandleUpdateRowId, createHandleGetRowId, getRefElem, getCellRestHeight, getLastChildColumn } from './util'
7
7
  import { getSlotVNs } from '../../ui/src/vn'
8
- import { moveRowAnimateToTb, clearRowAnimate, moveColAnimateToLr, clearColAnimate } from './anime'
8
+ import { moveRowAnimateToTb, clearRowAnimate, moveColAnimateToLr, clearColAnimate } from '../../ui/src/anime'
9
9
  import { warnLog, errLog } from '../../ui/src/log'
10
10
  import { getCrossTableDragRowInfo } from './store'
11
11
 
@@ -4141,7 +4141,9 @@ function handleUpdateColResize ($xeTable: VxeTableConstructor & VxeTablePrivateM
4141
4141
  $xeTable.analyColumnWidth()
4142
4142
  $xeTable.recalculate().then(() => {
4143
4143
  $xeTable.saveCustomStore('update:width')
4144
- $xeTable.updateCellAreas()
4144
+ $xeTable.refreshScroll().then(() => {
4145
+ $xeTable.updateCellAreas()
4146
+ })
4145
4147
  $xeTable.dispatchEvent('column-resizable-change', params, evnt)
4146
4148
  // 已废弃 resizable-change
4147
4149
  $xeTable.dispatchEvent('resizable-change', params, evnt)
@@ -4154,7 +4156,9 @@ function handleUpdateRowResize ($xeTable: VxeTableConstructor & VxeTablePrivateM
4154
4156
 
4155
4157
  reactData.resizeHeightFlag++
4156
4158
  $xeTable.recalculate().then(() => {
4157
- $xeTable.updateCellAreas()
4159
+ $xeTable.refreshScroll().then(() => {
4160
+ $xeTable.updateCellAreas()
4161
+ })
4158
4162
  $xeTable.dispatchEvent('row-resizable-change', params, evnt)
4159
4163
  setTimeout(() => $xeTable.recalculate(true), 300)
4160
4164
  })
@@ -5269,7 +5273,7 @@ const tableMethods: any = {
5269
5273
  cellLabel = formatter(formatParams)
5270
5274
  }
5271
5275
  } else if (renderOpts && tcFormatter) {
5272
- cellLabel = `${tcFormatter(renderOpts, formatParams)}`
5276
+ cellLabel = tcFormatter(renderOpts, formatParams)
5273
5277
  }
5274
5278
  if (formatData) {
5275
5279
  formatData[colid] = { value: cellValue, label: cellLabel }
@@ -9025,8 +9029,6 @@ const tableMethods: any = {
9025
9029
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
9026
9030
  return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
9027
9031
  if (!status) {
9028
- clearRowDragData($xeTable)
9029
- clearCrossTableDragStatus($xeTable)
9030
9032
  return errRest
9031
9033
  }
9032
9034
 
@@ -9162,8 +9164,6 @@ const tableMethods: any = {
9162
9164
  afterFullData.splice(nafIndex, 0, dragRow)
9163
9165
  tableFullData.splice(ntfIndex, 0, dragRow)
9164
9166
  }
9165
- clearRowDragData($xeTable)
9166
- clearCrossTableDragStatus($xeTable)
9167
9167
 
9168
9168
  $xeTable.handleTableData(treeConfig && transform)
9169
9169
  $xeTable.cacheRowMap(false)
@@ -9194,6 +9194,7 @@ const tableMethods: any = {
9194
9194
  return $xeTable.$nextTick().then(() => {
9195
9195
  if (animation) {
9196
9196
  const { tableData } = reactData
9197
+ const { fullAllDataRowIdData } = internalData
9197
9198
  const dragRowRest = fullAllDataRowIdData[dragRowid]
9198
9199
  const _newRowIndex = dragRowRest._index
9199
9200
  const firstRow = tableData[0]
@@ -9272,6 +9273,10 @@ const tableMethods: any = {
9272
9273
  })
9273
9274
  }).catch(() => {
9274
9275
  return errRest
9276
+ }).then((rest) => {
9277
+ clearRowDragData($xeTable)
9278
+ clearCrossTableDragStatus($xeTable)
9279
+ return rest
9275
9280
  })
9276
9281
  }
9277
9282
  clearRowDragData($xeTable)
@@ -9590,12 +9595,10 @@ const tableMethods: any = {
9590
9595
  const isControlKey = hasControlKey(evnt)
9591
9596
  const trEl = evnt.currentTarget as HTMLElement
9592
9597
  const rowid = trEl.getAttribute('rowid') || ''
9593
- const rest = fullAllDataRowIdData[rowid]
9594
- if (rest) {
9598
+ const rowRest = fullAllDataRowIdData[rowid]
9599
+ if (rowRest) {
9595
9600
  evnt.preventDefault()
9596
- const row = rest.row
9597
- const rowid = getRowid($xeTable, row)
9598
- const rowRest = fullAllDataRowIdData[rowid]
9601
+ const row = rowRest.row
9599
9602
  const offsetY = evnt.clientY - trEl.getBoundingClientRect().y
9600
9603
  const dragPos = offsetY < trEl.clientHeight / 2 ? 'top' : 'bottom'
9601
9604
  internalData.prevDragToChild = !!(treeConfig && transform && (isCrossDrag && isToChildDrag) && isControlKey)
@@ -9628,7 +9631,7 @@ const tableMethods: any = {
9628
9631
  }
9629
9632
  if ($xeTable.eqRow(dragRow, row) ||
9630
9633
  (isControlKey && treeConfig && lazy && row[hasChildField] && rowRest && !rowRest.treeLoaded) ||
9631
- (!isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] : rest.level))
9634
+ (!isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] : rowRest.level))
9632
9635
  ) {
9633
9636
  showDropTip($xeTable, evnt, trEl, null, false, dragPos)
9634
9637
  return
@@ -9736,8 +9739,6 @@ const tableMethods: any = {
9736
9739
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
9737
9740
  return Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
9738
9741
  if (!status) {
9739
- clearColDragData($xeTable)
9740
- clearCrossTableDragStatus($xeTable)
9741
9742
  return errRest
9742
9743
  }
9743
9744
 
@@ -9887,9 +9888,6 @@ const tableMethods: any = {
9887
9888
  }
9888
9889
  }
9889
9890
 
9890
- clearColDragData($xeTable)
9891
- clearCrossTableDragStatus($xeTable)
9892
-
9893
9891
  if (evnt) {
9894
9892
  $xeTable.dispatchEvent('column-dragend', {
9895
9893
  oldColumn: dragColumn,
@@ -9998,6 +9996,10 @@ const tableMethods: any = {
9998
9996
  })
9999
9997
  }).catch(() => {
10000
9998
  return errRest
9999
+ }).then((rest) => {
10000
+ clearColDragData($xeTable)
10001
+ clearCrossTableDragStatus($xeTable)
10002
+ return rest
10001
10003
  })
10002
10004
  }
10003
10005
  clearColDragData($xeTable)
@@ -11950,12 +11952,15 @@ const tableMethods: any = {
11950
11952
  const lastRow = afterFullData[afterFullData.length - 1]
11951
11953
  rowid = getRowid($xeTable, lastRow)
11952
11954
  rowRest = fullAllDataRowIdData[rowid] || {}
11953
- // 如果为空时还没计算完数据,保持原高度不变
11954
- if (rowRest.oTop) {
11955
- sYHeight = (rowRest.oTop || 0) + (rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight)
11956
- // 是否展开行
11957
- if (expandColumn && rowExpandedMaps[rowid]) {
11958
- sYHeight += rowRest.expandHeight || expandOpts.height || 0
11955
+ if (rowRest) {
11956
+ const rHeight = getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight)
11957
+ // 如果为空时还没计算完数据,保持原高度不变
11958
+ if (rHeight) {
11959
+ sYHeight = (rowRest.oTop || 0) + rHeight
11960
+ // 是否展开行
11961
+ if (expandColumn && rowExpandedMaps[rowid]) {
11962
+ sYHeight += rowRest.expandHeight || expandOpts.height || 0
11963
+ }
11959
11964
  }
11960
11965
  }
11961
11966
  if (sYHeight > maxYHeight) {
@@ -1003,9 +1003,9 @@ export default {
1003
1003
  const cellOpts = $xeTable.computeCellOpts
1004
1004
  let headCellHeight = XEUtils.toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height))
1005
1005
  if ($xeGantt) {
1006
- const taskScaleConfs = $xeGantt.computeTaskScaleConfs
1007
- if (taskScaleConfs && taskScaleConfs.length > 2) {
1008
- const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length
1006
+ const taskViewScales = $xeGantt.computeTaskViewScales
1007
+ if (taskViewScales && taskViewScales.length > 2) {
1008
+ const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskViewScales.length
1009
1009
  headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight)
1010
1010
  }
1011
1011
  }
@@ -1504,8 +1504,16 @@ export default {
1504
1504
  /**
1505
1505
  * 判断列全选的复选框是否禁用
1506
1506
  */
1507
- isAllCheckboxDisabled () {
1508
- const { tableFullData, tableData, treeConfig, checkboxOpts } = this
1507
+ computeIsAllCheckboxDisabled () {
1508
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
1509
+ const props = $xeTable
1510
+ const reactData = $xeTable as unknown as TableReactData
1511
+ const internalData = $xeTable as unknown as TableInternalData
1512
+
1513
+ const { treeConfig } = props
1514
+ const { tableData } = reactData
1515
+ const { tableFullData } = internalData
1516
+ const checkboxOpts = $xeTable.computeCheckboxOpts
1509
1517
  const { strict, checkMethod } = checkboxOpts
1510
1518
  if (strict) {
1511
1519
  if (tableData.length || tableFullData.length) {
@@ -1514,7 +1522,7 @@ export default {
1514
1522
  // 暂时不支持树形结构
1515
1523
  }
1516
1524
  // 如果所有行都被禁用
1517
- return tableFullData.every((row: any) => !checkMethod({ row }))
1525
+ return tableFullData.every((row) => !checkMethod({ $table: $xeTable, row }))
1518
1526
  }
1519
1527
  return false
1520
1528
  }
@@ -1522,6 +1530,9 @@ export default {
1522
1530
  }
1523
1531
  return false
1524
1532
  },
1533
+ isAllCheckboxDisabled () {
1534
+ return this.computeIsAllCheckboxDisabled
1535
+ },
1525
1536
  computeVirtualScrollBars () {
1526
1537
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
1527
1538
  const reactData = $xeTable as unknown as TableReactData
File without changes
File without changes
File without changes
File without changes