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
package/lib/table/src/methods.js
CHANGED
|
@@ -11212,54 +11212,44 @@ const Methods = {
|
|
|
11212
11212
|
*/
|
|
11213
11213
|
scrollTo(scrollLeft, scrollTop) {
|
|
11214
11214
|
const $xeTable = this;
|
|
11215
|
+
const reactData = $xeTable;
|
|
11215
11216
|
const internalData = $xeTable;
|
|
11216
11217
|
const {
|
|
11217
|
-
|
|
11218
|
-
} =
|
|
11219
|
-
const
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
const tableBodyElem = refTableBody ? refTableBody.$el : null;
|
|
11227
|
-
const leftBodyElem = leftBody ? leftBody.$el : null;
|
|
11228
|
-
const rightBodyElem = rightBody ? rightBody.$el : null;
|
|
11229
|
-
const tableHeaderElem = refTableHeader ? refTableHeader.$el : null;
|
|
11230
|
-
const tableFooterElem = refTableFooter ? refTableFooter.$el : null;
|
|
11218
|
+
elemStore
|
|
11219
|
+
} = internalData;
|
|
11220
|
+
const headerScrollElem = (0, _util.getRefElem)(elemStore['main-header-scroll']);
|
|
11221
|
+
const bodyScrollElem = (0, _util.getRefElem)(elemStore['main-body-scroll']);
|
|
11222
|
+
const footerScrollElem = (0, _util.getRefElem)(elemStore['main-footer-scroll']);
|
|
11223
|
+
const leftScrollElem = (0, _util.getRefElem)(elemStore['left-body-scroll']);
|
|
11224
|
+
const rightScrollElem = (0, _util.getRefElem)(elemStore['right-body-scroll']);
|
|
11225
|
+
const xHandleEl = $xeTable.$refs.refScrollXHandleElem;
|
|
11226
|
+
const yHandleEl = $xeTable.$refs.refScrollYHandleElem;
|
|
11231
11227
|
internalData.intoRunScroll = true;
|
|
11232
11228
|
if (_xeUtils.default.isNumber(scrollLeft)) {
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
(0, _dom.setScrollLeft)(tableHeaderElem, scrollLeft);
|
|
11239
|
-
(0, _dom.setScrollLeft)(tableFooterElem, scrollLeft);
|
|
11240
|
-
}
|
|
11229
|
+
(0, _dom.setScrollLeft)(xHandleEl, scrollLeft);
|
|
11230
|
+
(0, _dom.setScrollLeft)(bodyScrollElem, scrollLeft);
|
|
11231
|
+
(0, _dom.setScrollLeft)(headerScrollElem, scrollLeft);
|
|
11232
|
+
(0, _dom.setScrollLeft)(footerScrollElem, scrollLeft);
|
|
11233
|
+
loadScrollXData($xeTable);
|
|
11241
11234
|
}
|
|
11242
11235
|
if (_xeUtils.default.isNumber(scrollTop)) {
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
(0, _dom.setScrollTop)(leftBodyElem, scrollTop);
|
|
11249
|
-
(0, _dom.setScrollTop)(rightBodyElem, scrollTop);
|
|
11250
|
-
}
|
|
11236
|
+
(0, _dom.setScrollTop)(yHandleEl, scrollTop);
|
|
11237
|
+
(0, _dom.setScrollTop)(bodyScrollElem, scrollTop);
|
|
11238
|
+
(0, _dom.setScrollTop)(leftScrollElem, scrollTop);
|
|
11239
|
+
(0, _dom.setScrollTop)(rightScrollElem, scrollTop);
|
|
11240
|
+
loadScrollYData($xeTable);
|
|
11251
11241
|
}
|
|
11252
|
-
if (
|
|
11242
|
+
if (reactData.scrollXLoad || reactData.scrollYLoad) {
|
|
11253
11243
|
return new Promise(resolve => {
|
|
11254
11244
|
setTimeout(() => {
|
|
11255
11245
|
$xeTable.$nextTick(() => {
|
|
11256
11246
|
internalData.intoRunScroll = false;
|
|
11257
11247
|
resolve();
|
|
11258
11248
|
});
|
|
11259
|
-
});
|
|
11249
|
+
}, 30);
|
|
11260
11250
|
});
|
|
11261
11251
|
}
|
|
11262
|
-
return
|
|
11252
|
+
return $xeTable.$nextTick();
|
|
11263
11253
|
},
|
|
11264
11254
|
/**
|
|
11265
11255
|
* 如果有滚动条,则滚动到对应的行
|
|
@@ -11268,6 +11258,7 @@ const Methods = {
|
|
|
11268
11258
|
*/
|
|
11269
11259
|
scrollToRow(row, fieldOrColumn) {
|
|
11270
11260
|
const $xeTable = this;
|
|
11261
|
+
const props = $xeTable;
|
|
11271
11262
|
const reactData = $xeTable;
|
|
11272
11263
|
const {
|
|
11273
11264
|
isAllOverflow,
|
|
@@ -11276,10 +11267,10 @@ const Methods = {
|
|
|
11276
11267
|
} = reactData;
|
|
11277
11268
|
const rest = [];
|
|
11278
11269
|
if (row) {
|
|
11279
|
-
if (
|
|
11280
|
-
rest.push(
|
|
11270
|
+
if (props.treeConfig) {
|
|
11271
|
+
rest.push($xeTable.scrollToTreeRow(row));
|
|
11281
11272
|
} else {
|
|
11282
|
-
rest.push((0, _util.rowToVisible)(
|
|
11273
|
+
rest.push((0, _util.rowToVisible)($xeTable, row));
|
|
11283
11274
|
}
|
|
11284
11275
|
}
|
|
11285
11276
|
if (fieldOrColumn) {
|