vxe-table 3.10.9 → 3.10.11
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/en-US.js +1 -0
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/style.css +1 -1
- package/es/table/src/body.js +0 -4
- package/es/table/src/footer.js +0 -2
- package/es/table/src/methods.js +53 -22
- package/es/table/src/table.js +18 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +78 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/style.css +1 -1
- package/lib/table/src/body.js +0 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +0 -2
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/methods.js +54 -22
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +22 -0
- 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 +2 -2
- package/packages/locale/lang/en-US.ts +1 -0
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/src/body.ts +0 -4
- package/packages/table/src/footer.ts +0 -2
- package/packages/table/src/methods.ts +51 -21
- package/packages/table/src/table.ts +20 -0
- /package/es/{iconfont.1731143527990.ttf → iconfont.1731339180386.ttf} +0 -0
- /package/es/{iconfont.1731143527990.woff → iconfont.1731339180386.woff} +0 -0
- /package/es/{iconfont.1731143527990.woff2 → iconfont.1731339180386.woff2} +0 -0
- /package/lib/{iconfont.1731143527990.ttf → iconfont.1731339180386.ttf} +0 -0
- /package/lib/{iconfont.1731143527990.woff → iconfont.1731339180386.woff} +0 -0
- /package/lib/{iconfont.1731143527990.woff2 → iconfont.1731339180386.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -5687,24 +5687,15 @@ const Methods = {
|
|
|
5687
5687
|
handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, params) {
|
|
5688
5688
|
const $xeTable = this;
|
|
5689
5689
|
const props = $xeTable;
|
|
5690
|
+
const reactData = $xeTable;
|
|
5691
|
+
const internalData = $xeTable;
|
|
5690
5692
|
const { highlightHoverRow } = props;
|
|
5693
|
+
const { lastScrollLeft, lastScrollTop } = internalData;
|
|
5691
5694
|
const tableBody = $xeTable.$refs.tableBody;
|
|
5692
5695
|
const bodyElem = tableBody ? tableBody.$el : null;
|
|
5693
5696
|
const rowOpts = $xeTable.computeRowOpts;
|
|
5694
5697
|
const validTip = $xeTable.$refs.validTip;
|
|
5695
5698
|
const tooltip = $xeTable.$refs.tooltip;
|
|
5696
|
-
if (rowOpts.isHover || highlightHoverRow) {
|
|
5697
|
-
$xeTable.clearHoverRow();
|
|
5698
|
-
}
|
|
5699
|
-
if (validTip && validTip.visible) {
|
|
5700
|
-
validTip.close();
|
|
5701
|
-
}
|
|
5702
|
-
if (tooltip && tooltip.visible) {
|
|
5703
|
-
tooltip.close();
|
|
5704
|
-
}
|
|
5705
|
-
if (isRollX) {
|
|
5706
|
-
$xeTable.checkScrolling();
|
|
5707
|
-
}
|
|
5708
5699
|
const bodyHeight = bodyElem ? bodyElem.clientHeight : 0;
|
|
5709
5700
|
const bodyWidth = bodyElem ? bodyElem.clientWidth : 0;
|
|
5710
5701
|
const scrollHeight = bodyElem ? bodyElem.scrollHeight : 0;
|
|
@@ -5713,18 +5704,53 @@ const Methods = {
|
|
|
5713
5704
|
let isBottom = false;
|
|
5714
5705
|
let isLeft = false;
|
|
5715
5706
|
let isRight = false;
|
|
5707
|
+
let direction = '';
|
|
5708
|
+
let isTopBoundary = false;
|
|
5709
|
+
let isBottomBoundary = false;
|
|
5710
|
+
let isLeftBoundary = false;
|
|
5711
|
+
let isRightBoundary = false;
|
|
5716
5712
|
if (isRollX) {
|
|
5713
|
+
const xThreshold = $xeTable.computeScrollXThreshold;
|
|
5717
5714
|
isLeft = scrollLeft <= 0;
|
|
5718
|
-
if (!
|
|
5715
|
+
if (!isLeft) {
|
|
5719
5716
|
isRight = scrollLeft + bodyWidth >= scrollWidth;
|
|
5720
5717
|
}
|
|
5718
|
+
if (scrollLeft > lastScrollLeft) {
|
|
5719
|
+
direction = 'right';
|
|
5720
|
+
if (scrollLeft + bodyWidth >= scrollWidth - xThreshold) {
|
|
5721
|
+
isRightBoundary = true;
|
|
5722
|
+
}
|
|
5723
|
+
}
|
|
5724
|
+
else {
|
|
5725
|
+
direction = 'left';
|
|
5726
|
+
if (scrollLeft <= xThreshold) {
|
|
5727
|
+
isLeftBoundary = true;
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5721
5730
|
$xeTable.checkScrolling();
|
|
5731
|
+
internalData.lastScrollLeft = scrollLeft;
|
|
5732
|
+
reactData.lastScrollTime = Date.now();
|
|
5722
5733
|
}
|
|
5723
5734
|
else {
|
|
5735
|
+
const yThreshold = $xeTable.computeScrollYThreshold;
|
|
5724
5736
|
isTop = scrollTop <= 0;
|
|
5725
5737
|
if (!isTop) {
|
|
5726
5738
|
isBottom = scrollTop + bodyHeight >= scrollHeight;
|
|
5727
5739
|
}
|
|
5740
|
+
if (scrollTop > lastScrollTop) {
|
|
5741
|
+
direction = 'bottom';
|
|
5742
|
+
if (scrollTop + bodyHeight >= scrollHeight - yThreshold) {
|
|
5743
|
+
isBottomBoundary = true;
|
|
5744
|
+
}
|
|
5745
|
+
}
|
|
5746
|
+
else {
|
|
5747
|
+
direction = 'top';
|
|
5748
|
+
if (scrollTop <= yThreshold) {
|
|
5749
|
+
isTopBoundary = true;
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
internalData.lastScrollTop = scrollTop;
|
|
5753
|
+
reactData.lastScrollTime = Date.now();
|
|
5728
5754
|
}
|
|
5729
5755
|
const evntParams = Object.assign({ scrollTop,
|
|
5730
5756
|
scrollLeft,
|
|
@@ -5734,7 +5760,20 @@ const Methods = {
|
|
|
5734
5760
|
scrollWidth, isX: isRollX, isY: isRollY, isTop,
|
|
5735
5761
|
isBottom,
|
|
5736
5762
|
isLeft,
|
|
5737
|
-
isRight
|
|
5763
|
+
isRight,
|
|
5764
|
+
direction }, params);
|
|
5765
|
+
if (rowOpts.isHover || highlightHoverRow) {
|
|
5766
|
+
$xeTable.clearHoverRow();
|
|
5767
|
+
}
|
|
5768
|
+
if (validTip && validTip.visible) {
|
|
5769
|
+
validTip.close();
|
|
5770
|
+
}
|
|
5771
|
+
if (tooltip && tooltip.visible) {
|
|
5772
|
+
tooltip.close();
|
|
5773
|
+
}
|
|
5774
|
+
if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
|
|
5775
|
+
$xeTable.dispatchEvent('scroll-boundary', evntParams, evnt);
|
|
5776
|
+
}
|
|
5738
5777
|
$xeTable.dispatchEvent('scroll', evntParams, evnt);
|
|
5739
5778
|
},
|
|
5740
5779
|
/**
|
|
@@ -5763,8 +5802,6 @@ const Methods = {
|
|
|
5763
5802
|
const bodyElem = tableBody.$el;
|
|
5764
5803
|
const headerElem = tableHeader ? tableHeader.$el : null;
|
|
5765
5804
|
const footerElem = tableFooter ? tableFooter.$el : null;
|
|
5766
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
5767
|
-
$xeTable.lastScrollTime = Date.now();
|
|
5768
5805
|
setScrollLeft(bodyElem, scrollLeft);
|
|
5769
5806
|
setScrollLeft(headerElem, scrollLeft);
|
|
5770
5807
|
setScrollLeft(footerElem, scrollLeft);
|
|
@@ -5775,8 +5812,6 @@ const Methods = {
|
|
|
5775
5812
|
const { scrollTop, scrollLeft } = wrapperEl;
|
|
5776
5813
|
const isRollX = true;
|
|
5777
5814
|
const isRollY = false;
|
|
5778
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
5779
|
-
$xeTable.lastScrollTime = Date.now();
|
|
5780
5815
|
$xeTable.handleSyncScrollX(scrollLeft);
|
|
5781
5816
|
$xeTable.triggerScrollXEvent(evnt);
|
|
5782
5817
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
@@ -5795,8 +5830,6 @@ const Methods = {
|
|
|
5795
5830
|
const bodyElem = tableBody.$el;
|
|
5796
5831
|
const leftElem = leftBody ? leftBody.$el : null;
|
|
5797
5832
|
const rightElem = rightBody ? rightBody.$el : null;
|
|
5798
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
5799
|
-
$xeTable.lastScrollTime = Date.now();
|
|
5800
5833
|
setScrollTop(bodyElem, scrollTop);
|
|
5801
5834
|
setScrollTop(leftElem, scrollTop);
|
|
5802
5835
|
setScrollTop(rightElem, scrollTop);
|
|
@@ -5807,8 +5840,6 @@ const Methods = {
|
|
|
5807
5840
|
const { scrollTop, scrollLeft } = wrapperEl;
|
|
5808
5841
|
const isRollX = false;
|
|
5809
5842
|
const isRollY = true;
|
|
5810
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
5811
|
-
$xeTable.lastScrollTime = Date.now();
|
|
5812
5843
|
$xeTable.handleSyncScrollY(scrollTop);
|
|
5813
5844
|
$xeTable.triggerScrollYEvent(evnt);
|
|
5814
5845
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
package/es/table/src/table.js
CHANGED
|
@@ -373,12 +373,30 @@ export default {
|
|
|
373
373
|
computeSXOpts() {
|
|
374
374
|
return Object.assign({}, getConfig().table.scrollX, this.scrollX);
|
|
375
375
|
},
|
|
376
|
+
computeScrollXThreshold() {
|
|
377
|
+
const $xeTable = this;
|
|
378
|
+
const sXOpts = $xeTable.computeSXOpts;
|
|
379
|
+
const { threshold } = sXOpts;
|
|
380
|
+
if (threshold) {
|
|
381
|
+
return XEUtils.toNumber(threshold);
|
|
382
|
+
}
|
|
383
|
+
return 0;
|
|
384
|
+
},
|
|
376
385
|
sYOpts() {
|
|
377
386
|
return this.computeSYOpts;
|
|
378
387
|
},
|
|
379
388
|
computeSYOpts() {
|
|
380
389
|
return Object.assign({}, getConfig().table.scrollY, this.scrollY);
|
|
381
390
|
},
|
|
391
|
+
computeScrollYThreshold() {
|
|
392
|
+
const $xeTable = this;
|
|
393
|
+
const sYOpts = $xeTable.computeSYOpts;
|
|
394
|
+
const { threshold } = sYOpts;
|
|
395
|
+
if (threshold) {
|
|
396
|
+
return XEUtils.toNumber(threshold);
|
|
397
|
+
}
|
|
398
|
+
return 0;
|
|
399
|
+
},
|
|
382
400
|
rowHeightMaps() {
|
|
383
401
|
return {
|
|
384
402
|
default: 48,
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.10.
|
|
2223
|
+
const version = "3.10.11";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2769,7 +2769,7 @@ function isNodeElement(elem) {
|
|
|
2769
2769
|
const {
|
|
2770
2770
|
log: log_log
|
|
2771
2771
|
} = core_.VxeUI;
|
|
2772
|
-
const log_version = `table v${"3.10.
|
|
2772
|
+
const log_version = `table v${"3.10.11"}`;
|
|
2773
2773
|
const warnLog = log_log.create('warn', log_version);
|
|
2774
2774
|
const errLog = log_log.create('error', log_version);
|
|
2775
2775
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -11557,26 +11557,20 @@ const Methods = {
|
|
|
11557
11557
|
handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, params) {
|
|
11558
11558
|
const $xeTable = this;
|
|
11559
11559
|
const props = $xeTable;
|
|
11560
|
+
const reactData = $xeTable;
|
|
11561
|
+
const internalData = $xeTable;
|
|
11560
11562
|
const {
|
|
11561
11563
|
highlightHoverRow
|
|
11562
11564
|
} = props;
|
|
11565
|
+
const {
|
|
11566
|
+
lastScrollLeft,
|
|
11567
|
+
lastScrollTop
|
|
11568
|
+
} = internalData;
|
|
11563
11569
|
const tableBody = $xeTable.$refs.tableBody;
|
|
11564
11570
|
const bodyElem = tableBody ? tableBody.$el : null;
|
|
11565
11571
|
const rowOpts = $xeTable.computeRowOpts;
|
|
11566
11572
|
const validTip = $xeTable.$refs.validTip;
|
|
11567
11573
|
const tooltip = $xeTable.$refs.tooltip;
|
|
11568
|
-
if (rowOpts.isHover || highlightHoverRow) {
|
|
11569
|
-
$xeTable.clearHoverRow();
|
|
11570
|
-
}
|
|
11571
|
-
if (validTip && validTip.visible) {
|
|
11572
|
-
validTip.close();
|
|
11573
|
-
}
|
|
11574
|
-
if (tooltip && tooltip.visible) {
|
|
11575
|
-
tooltip.close();
|
|
11576
|
-
}
|
|
11577
|
-
if (isRollX) {
|
|
11578
|
-
$xeTable.checkScrolling();
|
|
11579
|
-
}
|
|
11580
11574
|
const bodyHeight = bodyElem ? bodyElem.clientHeight : 0;
|
|
11581
11575
|
const bodyWidth = bodyElem ? bodyElem.clientWidth : 0;
|
|
11582
11576
|
const scrollHeight = bodyElem ? bodyElem.scrollHeight : 0;
|
|
@@ -11585,17 +11579,50 @@ const Methods = {
|
|
|
11585
11579
|
let isBottom = false;
|
|
11586
11580
|
let isLeft = false;
|
|
11587
11581
|
let isRight = false;
|
|
11582
|
+
let direction = '';
|
|
11583
|
+
let isTopBoundary = false;
|
|
11584
|
+
let isBottomBoundary = false;
|
|
11585
|
+
let isLeftBoundary = false;
|
|
11586
|
+
let isRightBoundary = false;
|
|
11588
11587
|
if (isRollX) {
|
|
11588
|
+
const xThreshold = $xeTable.computeScrollXThreshold;
|
|
11589
11589
|
isLeft = scrollLeft <= 0;
|
|
11590
|
-
if (!
|
|
11590
|
+
if (!isLeft) {
|
|
11591
11591
|
isRight = scrollLeft + bodyWidth >= scrollWidth;
|
|
11592
11592
|
}
|
|
11593
|
+
if (scrollLeft > lastScrollLeft) {
|
|
11594
|
+
direction = 'right';
|
|
11595
|
+
if (scrollLeft + bodyWidth >= scrollWidth - xThreshold) {
|
|
11596
|
+
isRightBoundary = true;
|
|
11597
|
+
}
|
|
11598
|
+
} else {
|
|
11599
|
+
direction = 'left';
|
|
11600
|
+
if (scrollLeft <= xThreshold) {
|
|
11601
|
+
isLeftBoundary = true;
|
|
11602
|
+
}
|
|
11603
|
+
}
|
|
11593
11604
|
$xeTable.checkScrolling();
|
|
11605
|
+
internalData.lastScrollLeft = scrollLeft;
|
|
11606
|
+
reactData.lastScrollTime = Date.now();
|
|
11594
11607
|
} else {
|
|
11608
|
+
const yThreshold = $xeTable.computeScrollYThreshold;
|
|
11595
11609
|
isTop = scrollTop <= 0;
|
|
11596
11610
|
if (!isTop) {
|
|
11597
11611
|
isBottom = scrollTop + bodyHeight >= scrollHeight;
|
|
11598
11612
|
}
|
|
11613
|
+
if (scrollTop > lastScrollTop) {
|
|
11614
|
+
direction = 'bottom';
|
|
11615
|
+
if (scrollTop + bodyHeight >= scrollHeight - yThreshold) {
|
|
11616
|
+
isBottomBoundary = true;
|
|
11617
|
+
}
|
|
11618
|
+
} else {
|
|
11619
|
+
direction = 'top';
|
|
11620
|
+
if (scrollTop <= yThreshold) {
|
|
11621
|
+
isTopBoundary = true;
|
|
11622
|
+
}
|
|
11623
|
+
}
|
|
11624
|
+
internalData.lastScrollTop = scrollTop;
|
|
11625
|
+
reactData.lastScrollTime = Date.now();
|
|
11599
11626
|
}
|
|
11600
11627
|
const evntParams = {
|
|
11601
11628
|
scrollTop,
|
|
@@ -11610,8 +11637,21 @@ const Methods = {
|
|
|
11610
11637
|
isBottom,
|
|
11611
11638
|
isLeft,
|
|
11612
11639
|
isRight,
|
|
11640
|
+
direction,
|
|
11613
11641
|
...params
|
|
11614
11642
|
};
|
|
11643
|
+
if (rowOpts.isHover || highlightHoverRow) {
|
|
11644
|
+
$xeTable.clearHoverRow();
|
|
11645
|
+
}
|
|
11646
|
+
if (validTip && validTip.visible) {
|
|
11647
|
+
validTip.close();
|
|
11648
|
+
}
|
|
11649
|
+
if (tooltip && tooltip.visible) {
|
|
11650
|
+
tooltip.close();
|
|
11651
|
+
}
|
|
11652
|
+
if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
|
|
11653
|
+
$xeTable.dispatchEvent('scroll-boundary', evntParams, evnt);
|
|
11654
|
+
}
|
|
11615
11655
|
$xeTable.dispatchEvent('scroll', evntParams, evnt);
|
|
11616
11656
|
},
|
|
11617
11657
|
/**
|
|
@@ -11648,8 +11688,6 @@ const Methods = {
|
|
|
11648
11688
|
const bodyElem = tableBody.$el;
|
|
11649
11689
|
const headerElem = tableHeader ? tableHeader.$el : null;
|
|
11650
11690
|
const footerElem = tableFooter ? tableFooter.$el : null;
|
|
11651
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
11652
|
-
$xeTable.lastScrollTime = Date.now();
|
|
11653
11691
|
setScrollLeft(bodyElem, scrollLeft);
|
|
11654
11692
|
setScrollLeft(headerElem, scrollLeft);
|
|
11655
11693
|
setScrollLeft(footerElem, scrollLeft);
|
|
@@ -11663,8 +11701,6 @@ const Methods = {
|
|
|
11663
11701
|
} = wrapperEl;
|
|
11664
11702
|
const isRollX = true;
|
|
11665
11703
|
const isRollY = false;
|
|
11666
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
11667
|
-
$xeTable.lastScrollTime = Date.now();
|
|
11668
11704
|
$xeTable.handleSyncScrollX(scrollLeft);
|
|
11669
11705
|
$xeTable.triggerScrollXEvent(evnt);
|
|
11670
11706
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
@@ -11686,8 +11722,6 @@ const Methods = {
|
|
|
11686
11722
|
const bodyElem = tableBody.$el;
|
|
11687
11723
|
const leftElem = leftBody ? leftBody.$el : null;
|
|
11688
11724
|
const rightElem = rightBody ? rightBody.$el : null;
|
|
11689
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
11690
|
-
$xeTable.lastScrollTime = Date.now();
|
|
11691
11725
|
setScrollTop(bodyElem, scrollTop);
|
|
11692
11726
|
setScrollTop(leftElem, scrollTop);
|
|
11693
11727
|
setScrollTop(rightElem, scrollTop);
|
|
@@ -11701,8 +11735,6 @@ const Methods = {
|
|
|
11701
11735
|
} = wrapperEl;
|
|
11702
11736
|
const isRollX = false;
|
|
11703
11737
|
const isRollY = true;
|
|
11704
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
11705
|
-
$xeTable.lastScrollTime = Date.now();
|
|
11706
11738
|
$xeTable.handleSyncScrollY(scrollTop);
|
|
11707
11739
|
$xeTable.triggerScrollYEvent(evnt);
|
|
11708
11740
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
@@ -13118,8 +13150,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
13118
13150
|
if (yHandleEl) {
|
|
13119
13151
|
yHandleEl.scrollTop = scrollTop;
|
|
13120
13152
|
} else if (isRollY) {
|
|
13121
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
13122
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
13123
13153
|
if (leftElem && fixedType === 'left') {
|
|
13124
13154
|
setScrollTop(bodyElem, scrollTop);
|
|
13125
13155
|
setScrollTop(rightElem, scrollTop);
|
|
@@ -13138,8 +13168,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
13138
13168
|
if (xHandleEl) {
|
|
13139
13169
|
xHandleEl.scrollLeft = scrollLeft;
|
|
13140
13170
|
} else if (isRollX) {
|
|
13141
|
-
$xeTable.lastScrollTop = scrollTop;
|
|
13142
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
13143
13171
|
setScrollLeft(headerElem, scrollLeft);
|
|
13144
13172
|
setScrollLeft(footerElem, scrollLeft);
|
|
13145
13173
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
@@ -13994,8 +14022,6 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
13994
14022
|
const isRollX = true;
|
|
13995
14023
|
const isRollY = false;
|
|
13996
14024
|
const scrollTop = bodyElem.scrollTop;
|
|
13997
|
-
$xeTable.lastScrollLeft = scrollLeft;
|
|
13998
|
-
$xeTable.lastScrollTime = Date.now();
|
|
13999
14025
|
setScrollLeft(headerElem, scrollLeft);
|
|
14000
14026
|
setScrollLeft(bodyElem, scrollLeft);
|
|
14001
14027
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
@@ -21452,12 +21478,34 @@ function handleUupdateResize(_vm) {
|
|
|
21452
21478
|
computeSXOpts() {
|
|
21453
21479
|
return Object.assign({}, table_getConfig().table.scrollX, this.scrollX);
|
|
21454
21480
|
},
|
|
21481
|
+
computeScrollXThreshold() {
|
|
21482
|
+
const $xeTable = this;
|
|
21483
|
+
const sXOpts = $xeTable.computeSXOpts;
|
|
21484
|
+
const {
|
|
21485
|
+
threshold
|
|
21486
|
+
} = sXOpts;
|
|
21487
|
+
if (threshold) {
|
|
21488
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold);
|
|
21489
|
+
}
|
|
21490
|
+
return 0;
|
|
21491
|
+
},
|
|
21455
21492
|
sYOpts() {
|
|
21456
21493
|
return this.computeSYOpts;
|
|
21457
21494
|
},
|
|
21458
21495
|
computeSYOpts() {
|
|
21459
21496
|
return Object.assign({}, table_getConfig().table.scrollY, this.scrollY);
|
|
21460
21497
|
},
|
|
21498
|
+
computeScrollYThreshold() {
|
|
21499
|
+
const $xeTable = this;
|
|
21500
|
+
const sYOpts = $xeTable.computeSYOpts;
|
|
21501
|
+
const {
|
|
21502
|
+
threshold
|
|
21503
|
+
} = sYOpts;
|
|
21504
|
+
if (threshold) {
|
|
21505
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold);
|
|
21506
|
+
}
|
|
21507
|
+
return 0;
|
|
21508
|
+
},
|
|
21461
21509
|
rowHeightMaps() {
|
|
21462
21510
|
return {
|
|
21463
21511
|
default: 48,
|
|
@@ -26270,6 +26318,7 @@ const Toolbar = VxeToolbar;
|
|
|
26270
26318
|
area: {
|
|
26271
26319
|
mergeErr: '无法对合并单元格进行该操作',
|
|
26272
26320
|
multiErr: '无法对多重选择区域进行该操作',
|
|
26321
|
+
selectErr: '无法操作指定区域的单元格',
|
|
26273
26322
|
extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
|
|
26274
26323
|
pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
|
|
26275
26324
|
cpInvalidErr: '该操作无法进行,您选择的区域中存在被禁止的列({0})'
|