vxe-table 4.13.10 → 4.13.12
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 +511 -511
- package/es/locale/lang/de-DE.js +280 -280
- package/es/locale/lang/en-US.js +206 -206
- package/es/locale/lang/es-ES.js +494 -501
- package/es/locale/lang/fr-FR.js +517 -517
- package/es/locale/lang/hu-HU.js +372 -372
- package/es/locale/lang/id-ID.js +529 -529
- package/es/locale/lang/it-IT.js +297 -297
- package/es/locale/lang/ja-JP.js +454 -454
- package/es/locale/lang/ko-KR.js +415 -415
- package/es/locale/lang/nb-NO.js +515 -515
- package/es/locale/lang/pt-BR.js +505 -505
- package/es/locale/lang/ru-RU.js +326 -326
- package/es/locale/lang/th-TH.js +255 -255
- package/es/locale/lang/uk-UA.js +450 -450
- package/es/locale/lang/vi-VN.js +528 -528
- package/es/locale/lang/zh-CHT.js +155 -155
- package/es/style.css +1 -1
- package/es/table/src/table.js +11 -4
- package/es/table/src/util.js +13 -17
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +19 -23
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +511 -511
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +280 -280
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +206 -206
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +206 -206
- package/lib/locale/lang/es-ES.js +494 -501
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +494 -501
- package/lib/locale/lang/fr-FR.js +517 -517
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +372 -372
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +372 -372
- package/lib/locale/lang/id-ID.js +529 -529
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +297 -297
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +454 -454
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +454 -454
- package/lib/locale/lang/ko-KR.js +415 -415
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +415 -415
- package/lib/locale/lang/nb-NO.js +515 -515
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +505 -505
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +505 -505
- package/lib/locale/lang/ru-RU.js +326 -326
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +326 -326
- package/lib/locale/lang/th-TH.js +255 -255
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +450 -450
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +450 -450
- package/lib/locale/lang/vi-VN.js +528 -528
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +155 -155
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +5 -5
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +12 -16
- package/lib/table/src/util.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 +2 -2
- package/packages/locale/lang/ar-EG.ts +511 -511
- package/packages/locale/lang/de-DE.ts +281 -282
- package/packages/locale/lang/en-US.ts +206 -206
- package/packages/locale/lang/es-ES.ts +494 -503
- package/packages/locale/lang/fr-FR.ts +517 -517
- package/packages/locale/lang/hu-HU.ts +372 -372
- package/packages/locale/lang/id-ID.ts +529 -529
- package/packages/locale/lang/it-IT.ts +297 -297
- package/packages/locale/lang/ja-JP.ts +454 -454
- package/packages/locale/lang/ko-KR.ts +415 -415
- package/packages/locale/lang/nb-NO.ts +515 -515
- package/packages/locale/lang/pt-BR.ts +505 -505
- package/packages/locale/lang/ru-RU.ts +326 -326
- package/packages/locale/lang/th-TH.ts +255 -255
- package/packages/locale/lang/uk-UA.ts +450 -450
- package/packages/locale/lang/vi-VN.ts +528 -528
- package/packages/locale/lang/zh-CHT.ts +155 -155
- package/packages/table/src/table.ts +11 -4
- package/packages/table/src/util.ts +13 -18
- /package/es/{iconfont.1745546371612.ttf → iconfont.1745723959074.ttf} +0 -0
- /package/es/{iconfont.1745546371612.woff → iconfont.1745723959074.woff} +0 -0
- /package/es/{iconfont.1745546371612.woff2 → iconfont.1745723959074.woff2} +0 -0
- /package/lib/{iconfont.1745546371612.ttf → iconfont.1745723959074.ttf} +0 -0
- /package/lib/{iconfont.1745546371612.woff → iconfont.1745723959074.woff} +0 -0
- /package/lib/{iconfont.1745546371612.woff2 → iconfont.1745723959074.woff2} +0 -0
|
@@ -5620,7 +5620,7 @@ export default defineComponent({
|
|
|
5620
5620
|
column = tableMethods.getColumnByField(field)
|
|
5621
5621
|
}
|
|
5622
5622
|
if (column && column.sortable) {
|
|
5623
|
-
if (orders.indexOf(order) === -1) {
|
|
5623
|
+
if (orders && orders.indexOf(order) === -1) {
|
|
5624
5624
|
order = getNextSortOrder(column)
|
|
5625
5625
|
}
|
|
5626
5626
|
if (column.order !== order) {
|
|
@@ -5634,6 +5634,7 @@ export default defineComponent({
|
|
|
5634
5634
|
tablePrivateMethods.handleTableData(true)
|
|
5635
5635
|
}
|
|
5636
5636
|
return nextTick().then(() => {
|
|
5637
|
+
updateRowOffsetTop()
|
|
5637
5638
|
tableMethods.updateCellAreas()
|
|
5638
5639
|
return updateStyle()
|
|
5639
5640
|
})
|
|
@@ -5662,7 +5663,7 @@ export default defineComponent({
|
|
|
5662
5663
|
firstColumn = column
|
|
5663
5664
|
}
|
|
5664
5665
|
if (column && column.sortable) {
|
|
5665
|
-
if (orders.indexOf(order) === -1) {
|
|
5666
|
+
if (orders && orders.indexOf(order) === -1) {
|
|
5666
5667
|
order = getNextSortOrder(column)
|
|
5667
5668
|
}
|
|
5668
5669
|
if (column.order !== order) {
|
|
@@ -5678,6 +5679,7 @@ export default defineComponent({
|
|
|
5678
5679
|
$xeTable.handleColumnSortEvent(new Event('click'), firstColumn)
|
|
5679
5680
|
}
|
|
5680
5681
|
return nextTick().then(() => {
|
|
5682
|
+
updateRowOffsetTop()
|
|
5681
5683
|
tableMethods.updateCellAreas()
|
|
5682
5684
|
return updateStyle()
|
|
5683
5685
|
})
|
|
@@ -5702,7 +5704,10 @@ export default defineComponent({
|
|
|
5702
5704
|
if (!sortOpts.remote) {
|
|
5703
5705
|
$xeTable.handleTableData(true)
|
|
5704
5706
|
}
|
|
5705
|
-
return nextTick().then(
|
|
5707
|
+
return nextTick().then(() => {
|
|
5708
|
+
updateRowOffsetTop()
|
|
5709
|
+
return updateStyle()
|
|
5710
|
+
})
|
|
5706
5711
|
},
|
|
5707
5712
|
isSort (fieldOrColumn) {
|
|
5708
5713
|
if (fieldOrColumn) {
|
|
@@ -6222,12 +6227,14 @@ export default defineComponent({
|
|
|
6222
6227
|
setScrollLeft(bodyScrollElem, scrollLeft)
|
|
6223
6228
|
setScrollLeft(headerScrollElem, scrollLeft)
|
|
6224
6229
|
setScrollLeft(footerScrollElem, scrollLeft)
|
|
6230
|
+
loadScrollXData()
|
|
6225
6231
|
}
|
|
6226
6232
|
if (XEUtils.isNumber(scrollTop)) {
|
|
6227
6233
|
setScrollTop(yHandleEl, scrollTop)
|
|
6228
6234
|
setScrollTop(bodyScrollElem, scrollTop)
|
|
6229
6235
|
setScrollTop(leftScrollElem, scrollTop)
|
|
6230
6236
|
setScrollTop(rightScrollElem, scrollTop)
|
|
6237
|
+
loadScrollYData()
|
|
6231
6238
|
}
|
|
6232
6239
|
if (reactData.scrollXLoad || reactData.scrollYLoad) {
|
|
6233
6240
|
return new Promise<void>(resolve => {
|
|
@@ -6251,7 +6258,7 @@ export default defineComponent({
|
|
|
6251
6258
|
const rest = []
|
|
6252
6259
|
if (row) {
|
|
6253
6260
|
if (props.treeConfig) {
|
|
6254
|
-
rest.push(
|
|
6261
|
+
rest.push($xeTable.scrollToTreeRow(row))
|
|
6255
6262
|
} else {
|
|
6256
6263
|
rest.push(rowToVisible($xeTable, row))
|
|
6257
6264
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { watch, reactive } from 'vue'
|
|
1
|
+
import { watch, reactive, nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import { ColumnInfo } from './columnInfo'
|
|
4
4
|
import { isPx, isScale } from '../../ui/src/dom'
|
|
@@ -72,23 +72,18 @@ export const convertHeaderColumnToRows = (originColumns: any): any[][] => {
|
|
|
72
72
|
export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft: number, scrollTop: number) {
|
|
73
73
|
const internalData = $xeTable.internalData
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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 nextTick()
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|