vxe-table 3.19.27 → 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 +24 -22
- package/es/table/src/table.js +13 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +48 -33
- 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 +26 -22
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +18 -6
- 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 +24 -23
- package/packages/table/src/table.ts +14 -3
- /package/es/{iconfont.1765156950513.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/es/{iconfont.1765156950513.woff → iconfont.1765353143587.woff} +0 -0
- /package/es/{iconfont.1765156950513.woff2 → iconfont.1765353143587.woff2} +0 -0
- /package/es/{table → ui}/src/anime.js +0 -0
- /package/lib/{iconfont.1765156950513.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/lib/{iconfont.1765156950513.woff → iconfont.1765353143587.woff} +0 -0
- /package/lib/{iconfont.1765156950513.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
|
|
|
@@ -5273,7 +5273,7 @@ const tableMethods: any = {
|
|
|
5273
5273
|
cellLabel = formatter(formatParams)
|
|
5274
5274
|
}
|
|
5275
5275
|
} else if (renderOpts && tcFormatter) {
|
|
5276
|
-
cellLabel =
|
|
5276
|
+
cellLabel = tcFormatter(renderOpts, formatParams)
|
|
5277
5277
|
}
|
|
5278
5278
|
if (formatData) {
|
|
5279
5279
|
formatData[colid] = { value: cellValue, label: cellLabel }
|
|
@@ -9029,8 +9029,6 @@ const tableMethods: any = {
|
|
|
9029
9029
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
|
|
9030
9030
|
return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
|
|
9031
9031
|
if (!status) {
|
|
9032
|
-
clearRowDragData($xeTable)
|
|
9033
|
-
clearCrossTableDragStatus($xeTable)
|
|
9034
9032
|
return errRest
|
|
9035
9033
|
}
|
|
9036
9034
|
|
|
@@ -9166,8 +9164,6 @@ const tableMethods: any = {
|
|
|
9166
9164
|
afterFullData.splice(nafIndex, 0, dragRow)
|
|
9167
9165
|
tableFullData.splice(ntfIndex, 0, dragRow)
|
|
9168
9166
|
}
|
|
9169
|
-
clearRowDragData($xeTable)
|
|
9170
|
-
clearCrossTableDragStatus($xeTable)
|
|
9171
9167
|
|
|
9172
9168
|
$xeTable.handleTableData(treeConfig && transform)
|
|
9173
9169
|
$xeTable.cacheRowMap(false)
|
|
@@ -9198,6 +9194,7 @@ const tableMethods: any = {
|
|
|
9198
9194
|
return $xeTable.$nextTick().then(() => {
|
|
9199
9195
|
if (animation) {
|
|
9200
9196
|
const { tableData } = reactData
|
|
9197
|
+
const { fullAllDataRowIdData } = internalData
|
|
9201
9198
|
const dragRowRest = fullAllDataRowIdData[dragRowid]
|
|
9202
9199
|
const _newRowIndex = dragRowRest._index
|
|
9203
9200
|
const firstRow = tableData[0]
|
|
@@ -9276,6 +9273,10 @@ const tableMethods: any = {
|
|
|
9276
9273
|
})
|
|
9277
9274
|
}).catch(() => {
|
|
9278
9275
|
return errRest
|
|
9276
|
+
}).then((rest) => {
|
|
9277
|
+
clearRowDragData($xeTable)
|
|
9278
|
+
clearCrossTableDragStatus($xeTable)
|
|
9279
|
+
return rest
|
|
9279
9280
|
})
|
|
9280
9281
|
}
|
|
9281
9282
|
clearRowDragData($xeTable)
|
|
@@ -9594,12 +9595,10 @@ const tableMethods: any = {
|
|
|
9594
9595
|
const isControlKey = hasControlKey(evnt)
|
|
9595
9596
|
const trEl = evnt.currentTarget as HTMLElement
|
|
9596
9597
|
const rowid = trEl.getAttribute('rowid') || ''
|
|
9597
|
-
const
|
|
9598
|
-
if (
|
|
9598
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
9599
|
+
if (rowRest) {
|
|
9599
9600
|
evnt.preventDefault()
|
|
9600
|
-
const row =
|
|
9601
|
-
const rowid = getRowid($xeTable, row)
|
|
9602
|
-
const rowRest = fullAllDataRowIdData[rowid]
|
|
9601
|
+
const row = rowRest.row
|
|
9603
9602
|
const offsetY = evnt.clientY - trEl.getBoundingClientRect().y
|
|
9604
9603
|
const dragPos = offsetY < trEl.clientHeight / 2 ? 'top' : 'bottom'
|
|
9605
9604
|
internalData.prevDragToChild = !!(treeConfig && transform && (isCrossDrag && isToChildDrag) && isControlKey)
|
|
@@ -9632,7 +9631,7 @@ const tableMethods: any = {
|
|
|
9632
9631
|
}
|
|
9633
9632
|
if ($xeTable.eqRow(dragRow, row) ||
|
|
9634
9633
|
(isControlKey && treeConfig && lazy && row[hasChildField] && rowRest && !rowRest.treeLoaded) ||
|
|
9635
|
-
(!isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] :
|
|
9634
|
+
(!isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] : rowRest.level))
|
|
9636
9635
|
) {
|
|
9637
9636
|
showDropTip($xeTable, evnt, trEl, null, false, dragPos)
|
|
9638
9637
|
return
|
|
@@ -9740,8 +9739,6 @@ const tableMethods: any = {
|
|
|
9740
9739
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
|
|
9741
9740
|
return Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
|
|
9742
9741
|
if (!status) {
|
|
9743
|
-
clearColDragData($xeTable)
|
|
9744
|
-
clearCrossTableDragStatus($xeTable)
|
|
9745
9742
|
return errRest
|
|
9746
9743
|
}
|
|
9747
9744
|
|
|
@@ -9891,9 +9888,6 @@ const tableMethods: any = {
|
|
|
9891
9888
|
}
|
|
9892
9889
|
}
|
|
9893
9890
|
|
|
9894
|
-
clearColDragData($xeTable)
|
|
9895
|
-
clearCrossTableDragStatus($xeTable)
|
|
9896
|
-
|
|
9897
9891
|
if (evnt) {
|
|
9898
9892
|
$xeTable.dispatchEvent('column-dragend', {
|
|
9899
9893
|
oldColumn: dragColumn,
|
|
@@ -10002,6 +9996,10 @@ const tableMethods: any = {
|
|
|
10002
9996
|
})
|
|
10003
9997
|
}).catch(() => {
|
|
10004
9998
|
return errRest
|
|
9999
|
+
}).then((rest) => {
|
|
10000
|
+
clearColDragData($xeTable)
|
|
10001
|
+
clearCrossTableDragStatus($xeTable)
|
|
10002
|
+
return rest
|
|
10005
10003
|
})
|
|
10006
10004
|
}
|
|
10007
10005
|
clearColDragData($xeTable)
|
|
@@ -11954,12 +11952,15 @@ const tableMethods: any = {
|
|
|
11954
11952
|
const lastRow = afterFullData[afterFullData.length - 1]
|
|
11955
11953
|
rowid = getRowid($xeTable, lastRow)
|
|
11956
11954
|
rowRest = fullAllDataRowIdData[rowid] || {}
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
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
|
+
}
|
|
11963
11964
|
}
|
|
11964
11965
|
}
|
|
11965
11966
|
if (sYHeight > maxYHeight) {
|
|
@@ -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
|