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.
- package/es/locale/lang/ar-EG.js +16 -11
- package/es/locale/lang/de-DE.js +16 -11
- package/es/locale/lang/en-US.js +19 -14
- package/es/locale/lang/es-ES.js +16 -11
- package/es/locale/lang/fr-FR.js +16 -11
- package/es/locale/lang/hu-HU.js +16 -11
- package/es/locale/lang/hy-AM.js +16 -11
- package/es/locale/lang/id-ID.js +16 -11
- package/es/locale/lang/it-IT.js +16 -11
- package/es/locale/lang/ja-JP.js +16 -11
- package/es/locale/lang/ko-KR.js +16 -11
- package/es/locale/lang/ms-MY.js +16 -11
- package/es/locale/lang/nb-NO.js +16 -11
- package/es/locale/lang/pt-BR.js +16 -11
- package/es/locale/lang/ru-RU.js +16 -11
- package/es/locale/lang/th-TH.js +16 -11
- package/es/locale/lang/ug-CN.js +16 -11
- package/es/locale/lang/uk-UA.js +16 -11
- package/es/locale/lang/uz-UZ.js +16 -11
- package/es/locale/lang/vi-VN.js +16 -11
- package/es/locale/lang/zh-CHT.js +16 -11
- package/es/locale/lang/zh-CN.js +15 -12
- package/es/style.css +1 -1
- package/es/table/src/methods.js +30 -24
- package/es/table/src/table.js +16 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +53 -38
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +16 -11
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +16 -11
- package/lib/locale/lang/de-DE.js +16 -11
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +16 -11
- package/lib/locale/lang/en-US.js +19 -14
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +19 -14
- package/lib/locale/lang/es-ES.js +16 -11
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +16 -11
- package/lib/locale/lang/fr-FR.js +16 -11
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +16 -11
- package/lib/locale/lang/hu-HU.js +16 -11
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +16 -11
- package/lib/locale/lang/hy-AM.js +16 -11
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +16 -11
- package/lib/locale/lang/id-ID.js +16 -11
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +16 -11
- package/lib/locale/lang/it-IT.js +16 -11
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +16 -11
- package/lib/locale/lang/ja-JP.js +16 -11
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +16 -11
- package/lib/locale/lang/ko-KR.js +16 -11
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +16 -11
- package/lib/locale/lang/ms-MY.js +16 -11
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +16 -11
- package/lib/locale/lang/nb-NO.js +16 -11
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +16 -11
- package/lib/locale/lang/pt-BR.js +16 -11
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +16 -11
- package/lib/locale/lang/ru-RU.js +16 -11
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +16 -11
- package/lib/locale/lang/th-TH.js +16 -11
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +16 -11
- package/lib/locale/lang/ug-CN.js +16 -11
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +16 -11
- package/lib/locale/lang/uk-UA.js +16 -11
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +16 -11
- package/lib/locale/lang/uz-UZ.js +16 -11
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +16 -11
- package/lib/locale/lang/vi-VN.js +16 -11
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +16 -11
- package/lib/locale/lang/zh-CHT.js +16 -11
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +16 -11
- package/lib/locale/lang/zh-CN.js +15 -12
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +15 -12
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +32 -24
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +21 -9
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +16 -11
- package/packages/locale/lang/de-DE.ts +16 -11
- package/packages/locale/lang/en-US.ts +19 -14
- package/packages/locale/lang/es-ES.ts +16 -11
- package/packages/locale/lang/fr-FR.ts +16 -11
- package/packages/locale/lang/hu-HU.ts +16 -11
- package/packages/locale/lang/hy-AM.ts +16 -11
- package/packages/locale/lang/id-ID.ts +16 -11
- package/packages/locale/lang/it-IT.ts +16 -11
- package/packages/locale/lang/ja-JP.ts +16 -11
- package/packages/locale/lang/ko-KR.ts +16 -11
- package/packages/locale/lang/ms-MY.ts +16 -11
- package/packages/locale/lang/nb-NO.ts +16 -11
- package/packages/locale/lang/pt-BR.ts +16 -11
- package/packages/locale/lang/ru-RU.ts +16 -11
- package/packages/locale/lang/th-TH.ts +16 -11
- package/packages/locale/lang/ug-CN.ts +16 -11
- package/packages/locale/lang/uk-UA.ts +16 -11
- package/packages/locale/lang/uz-UZ.ts +16 -11
- package/packages/locale/lang/vi-VN.ts +16 -11
- package/packages/locale/lang/zh-CHT.ts +16 -11
- package/packages/locale/lang/zh-CN.ts +15 -12
- package/packages/table/src/cell.ts +3 -3
- package/packages/table/src/methods.ts +30 -25
- package/packages/table/src/table.ts +17 -6
- /package/es/{iconfont.1764834392345.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/es/{iconfont.1764834392345.woff → iconfont.1765353143587.woff} +0 -0
- /package/es/{iconfont.1764834392345.woff2 → iconfont.1765353143587.woff2} +0 -0
- /package/es/{table → ui}/src/anime.js +0 -0
- /package/lib/{iconfont.1764834392345.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/lib/{iconfont.1764834392345.woff → iconfont.1765353143587.woff} +0 -0
- /package/lib/{iconfont.1764834392345.woff2 → iconfont.1765353143587.woff2} +0 -0
- /package/lib/{table → ui}/src/anime.js +0 -0
- /package/lib/{table → ui}/src/anime.min.js +0 -0
- /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: '{
|
|
544
|
-
quarter: '{
|
|
545
|
-
month: '{
|
|
546
|
-
week: '{
|
|
547
|
-
day: '{
|
|
548
|
-
|
|
549
|
-
|
|
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: '{
|
|
555
|
+
year: '{yyyy}年',
|
|
553
556
|
quarter: '{q}季度',
|
|
554
557
|
month: '{M}月',
|
|
555
558
|
week: '{W}周',
|
|
556
559
|
day: '{d}',
|
|
557
|
-
|
|
558
|
-
|
|
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: '{
|
|
544
|
-
quarter: '{
|
|
545
|
-
month: '{
|
|
546
|
-
week: '{
|
|
547
|
-
day: '{
|
|
548
|
-
|
|
549
|
-
|
|
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: '{
|
|
555
|
+
year: '{yyyy}年',
|
|
553
556
|
quarter: '{q}季度',
|
|
554
557
|
month: '{M}月',
|
|
555
558
|
week: '{W}周',
|
|
556
559
|
day: '{d}',
|
|
557
|
-
|
|
558
|
-
|
|
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: '{
|
|
544
|
-
quarter: '{
|
|
545
|
-
month: '{
|
|
546
|
-
week: '{
|
|
547
|
-
day: '{
|
|
548
|
-
|
|
549
|
-
|
|
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: '{
|
|
555
|
+
year: '{yyyy}年',
|
|
553
556
|
quarter: '{q}季度',
|
|
554
557
|
month: '{M}月',
|
|
555
558
|
week: '{W}周',
|
|
556
559
|
day: '{d}',
|
|
557
|
-
|
|
558
|
-
|
|
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: '{
|
|
544
|
-
quarter: '{
|
|
545
|
-
month: '{
|
|
546
|
-
week: '{
|
|
547
|
-
day: '{
|
|
548
|
-
date: '{
|
|
549
|
-
hour: '{
|
|
550
|
-
minute: '{
|
|
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: '{
|
|
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: '{
|
|
560
|
-
minute: '{
|
|
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:
|
|
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:
|
|
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:
|
|
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 '
|
|
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.
|
|
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.
|
|
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 =
|
|
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
|
|
9594
|
-
if (
|
|
9598
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
9599
|
+
if (rowRest) {
|
|
9595
9600
|
evnt.preventDefault()
|
|
9596
|
-
const 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] :
|
|
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
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
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
|
|
1007
|
-
if (
|
|
1008
|
-
const ganttMinHeadCellHeight = defaultRowHeight / 2 *
|
|
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
|
-
|
|
1508
|
-
const
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|