vxe-table 3.15.11 → 3.15.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/methods.js +26 -31
- package/es/table/src/util.js +12 -16
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +41 -54
- 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/locale/lang/zh-CHT.umd.js +155 -155
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +27 -36
- package/lib/table/src/methods.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/methods.ts +28 -29
- package/packages/table/src/util.ts +12 -17
- /package/es/{iconfont.1745574224988.ttf → iconfont.1745723938260.ttf} +0 -0
- /package/es/{iconfont.1745574224988.woff → iconfont.1745723938260.woff} +0 -0
- /package/es/{iconfont.1745574224988.woff2 → iconfont.1745723938260.woff2} +0 -0
- /package/lib/{iconfont.1745574224988.ttf → iconfont.1745723938260.ttf} +0 -0
- /package/lib/{iconfont.1745574224988.woff → iconfont.1745723938260.woff} +0 -0
- /package/lib/{iconfont.1745574224988.woff2 → iconfont.1745723938260.woff2} +0 -0
|
@@ -9883,47 +9883,45 @@ const Methods = {
|
|
|
9883
9883
|
*/
|
|
9884
9884
|
scrollTo (scrollLeft: number | null, scrollTop?: number | null) {
|
|
9885
9885
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
9886
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
9886
9887
|
const internalData = $xeTable as unknown as TableInternalData
|
|
9887
9888
|
|
|
9888
|
-
const {
|
|
9889
|
-
const
|
|
9890
|
-
const
|
|
9891
|
-
const
|
|
9892
|
-
const
|
|
9893
|
-
const
|
|
9894
|
-
const
|
|
9889
|
+
const { elemStore } = internalData
|
|
9890
|
+
const headerScrollElem = getRefElem(elemStore['main-header-scroll'])
|
|
9891
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll'])
|
|
9892
|
+
const footerScrollElem = getRefElem(elemStore['main-footer-scroll'])
|
|
9893
|
+
const leftScrollElem = getRefElem(elemStore['left-body-scroll'])
|
|
9894
|
+
const rightScrollElem = getRefElem(elemStore['right-body-scroll'])
|
|
9895
|
+
const xHandleEl = $xeTable.$refs.refScrollXHandleElem as HTMLDivElement
|
|
9896
|
+
const yHandleEl = $xeTable.$refs.refScrollYHandleElem as HTMLDivElement
|
|
9897
|
+
|
|
9895
9898
|
internalData.intoRunScroll = true
|
|
9899
|
+
|
|
9896
9900
|
if (XEUtils.isNumber(scrollLeft)) {
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
setScrollLeft(tableHeaderElem, scrollLeft)
|
|
9903
|
-
setScrollLeft(tableFooterElem, scrollLeft)
|
|
9904
|
-
}
|
|
9901
|
+
setScrollLeft(xHandleEl, scrollLeft)
|
|
9902
|
+
setScrollLeft(bodyScrollElem, scrollLeft)
|
|
9903
|
+
setScrollLeft(headerScrollElem, scrollLeft)
|
|
9904
|
+
setScrollLeft(footerScrollElem, scrollLeft)
|
|
9905
|
+
loadScrollXData($xeTable)
|
|
9905
9906
|
}
|
|
9906
9907
|
if (XEUtils.isNumber(scrollTop)) {
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
setScrollTop(leftBodyElem, scrollTop)
|
|
9913
|
-
setScrollTop(rightBodyElem, scrollTop)
|
|
9914
|
-
}
|
|
9908
|
+
setScrollTop(yHandleEl, scrollTop)
|
|
9909
|
+
setScrollTop(bodyScrollElem, scrollTop)
|
|
9910
|
+
setScrollTop(leftScrollElem, scrollTop)
|
|
9911
|
+
setScrollTop(rightScrollElem, scrollTop)
|
|
9912
|
+
loadScrollYData($xeTable)
|
|
9915
9913
|
}
|
|
9916
|
-
if (
|
|
9914
|
+
if (reactData.scrollXLoad || reactData.scrollYLoad) {
|
|
9917
9915
|
return new Promise<void>(resolve => {
|
|
9918
9916
|
setTimeout(() => {
|
|
9919
9917
|
$xeTable.$nextTick(() => {
|
|
9920
9918
|
internalData.intoRunScroll = false
|
|
9921
9919
|
resolve()
|
|
9922
9920
|
})
|
|
9923
|
-
})
|
|
9921
|
+
}, 30)
|
|
9924
9922
|
})
|
|
9925
9923
|
}
|
|
9926
|
-
return
|
|
9924
|
+
return $xeTable.$nextTick()
|
|
9927
9925
|
},
|
|
9928
9926
|
/**
|
|
9929
9927
|
* 如果有滚动条,则滚动到对应的行
|
|
@@ -9932,15 +9930,16 @@ const Methods = {
|
|
|
9932
9930
|
*/
|
|
9933
9931
|
scrollToRow (row: any, fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo) {
|
|
9934
9932
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
9933
|
+
const props = $xeTable
|
|
9935
9934
|
const reactData = $xeTable as unknown as TableReactData
|
|
9936
9935
|
|
|
9937
9936
|
const { isAllOverflow, scrollYLoad, scrollXLoad } = reactData
|
|
9938
9937
|
const rest = []
|
|
9939
9938
|
if (row) {
|
|
9940
|
-
if (
|
|
9941
|
-
rest.push(
|
|
9939
|
+
if (props.treeConfig) {
|
|
9940
|
+
rest.push($xeTable.scrollToTreeRow(row))
|
|
9942
9941
|
} else {
|
|
9943
|
-
rest.push(rowToVisible(
|
|
9942
|
+
rest.push(rowToVisible($xeTable, row))
|
|
9944
9943
|
}
|
|
9945
9944
|
}
|
|
9946
9945
|
if (fieldOrColumn) {
|
|
@@ -72,23 +72,18 @@ export const convertHeaderColumnToRows = (originColumns: any) => {
|
|
|
72
72
|
export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft: number, scrollTop: number) {
|
|
73
73
|
const internalData = $xeTable as unknown as TableInternalData
|
|
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 $xeTable.$nextTick()
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
export function toTreePathSeq (path: any) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|