vxe-table 3.12.15 → 3.12.16
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/style.css +1 -1
- package/es/table/module/edit/mixin.js +219 -153
- package/es/table/src/methods.js +43 -12
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +330 -228
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +268 -210
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/methods.js +58 -14
- package/lib/table/src/methods.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/table/module/edit/mixin.ts +237 -154
- package/packages/table/src/methods.ts +45 -12
- /package/es/{iconfont.1739257460253.ttf → iconfont.1739333092714.ttf} +0 -0
- /package/es/{iconfont.1739257460253.woff → iconfont.1739333092714.woff} +0 -0
- /package/es/{iconfont.1739257460253.woff2 → iconfont.1739333092714.woff2} +0 -0
- /package/lib/{iconfont.1739257460253.ttf → iconfont.1739333092714.ttf} +0 -0
- /package/lib/{iconfont.1739257460253.woff → iconfont.1739333092714.woff} +0 -0
- /package/lib/{iconfont.1739257460253.woff2 → iconfont.1739333092714.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -7989,6 +7989,19 @@ const Methods = {
|
|
|
7989
7989
|
reactData.pendingRowMaps = pendingMaps;
|
|
7990
7990
|
return $xeTable.$nextTick();
|
|
7991
7991
|
},
|
|
7992
|
+
hasPendingByRow(row) {
|
|
7993
|
+
const $xeTable = this;
|
|
7994
|
+
return $xeTable.isPendingByRow(row);
|
|
7995
|
+
},
|
|
7996
|
+
isPendingByRow(row) {
|
|
7997
|
+
const $xeTable = this;
|
|
7998
|
+
const reactData = $xeTable;
|
|
7999
|
+
const {
|
|
8000
|
+
pendingRowMaps
|
|
8001
|
+
} = reactData;
|
|
8002
|
+
const rowid = (0, _util.getRowid)($xeTable, row);
|
|
8003
|
+
return !!pendingRowMaps[rowid];
|
|
8004
|
+
},
|
|
7992
8005
|
getPendingRecords() {
|
|
7993
8006
|
const $xeTable = this;
|
|
7994
8007
|
const reactData = $xeTable;
|
|
@@ -8007,13 +8020,6 @@ const Methods = {
|
|
|
8007
8020
|
});
|
|
8008
8021
|
return insertRecords;
|
|
8009
8022
|
},
|
|
8010
|
-
hasPendingByRow(row) {
|
|
8011
|
-
const {
|
|
8012
|
-
pendingRowMaps
|
|
8013
|
-
} = this;
|
|
8014
|
-
const rowid = (0, _util.getRowid)(this, row);
|
|
8015
|
-
return !!pendingRowMaps[rowid];
|
|
8016
|
-
},
|
|
8017
8023
|
clearPendingRow() {
|
|
8018
8024
|
this.pendingRowMaps = {};
|
|
8019
8025
|
return this.$nextTick();
|
|
@@ -9192,7 +9198,12 @@ const Methods = {
|
|
|
9192
9198
|
},
|
|
9193
9199
|
triggerBodyScrollEvent(evnt, fixedType) {
|
|
9194
9200
|
const $xeTable = this;
|
|
9201
|
+
const reactData = $xeTable;
|
|
9195
9202
|
const internalData = $xeTable;
|
|
9203
|
+
const {
|
|
9204
|
+
scrollYLoad,
|
|
9205
|
+
scrollXLoad
|
|
9206
|
+
} = reactData;
|
|
9196
9207
|
const {
|
|
9197
9208
|
elemStore,
|
|
9198
9209
|
intoRunScroll,
|
|
@@ -9258,13 +9269,17 @@ const Methods = {
|
|
|
9258
9269
|
(0, _dom.setScrollTop)(rightScrollElem, scrollTop);
|
|
9259
9270
|
}
|
|
9260
9271
|
(0, _dom.setScrollTop)(yHandleEl, scrollTop);
|
|
9261
|
-
|
|
9272
|
+
if (scrollYLoad) {
|
|
9273
|
+
$xeTable.triggerScrollYEvent(evnt);
|
|
9274
|
+
}
|
|
9262
9275
|
}
|
|
9263
9276
|
if (isRollX) {
|
|
9264
9277
|
(0, _dom.setScrollLeft)(xHandleEl, scrollLeft);
|
|
9265
9278
|
(0, _dom.setScrollLeft)(headerScrollElem, scrollLeft);
|
|
9266
9279
|
(0, _dom.setScrollLeft)(footerScrollElem, scrollLeft);
|
|
9267
|
-
|
|
9280
|
+
if (scrollXLoad) {
|
|
9281
|
+
$xeTable.triggerScrollXEvent(evnt);
|
|
9282
|
+
}
|
|
9268
9283
|
}
|
|
9269
9284
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
9270
9285
|
type: 'body',
|
|
@@ -9273,7 +9288,11 @@ const Methods = {
|
|
|
9273
9288
|
},
|
|
9274
9289
|
triggerHeaderScrollEvent(evnt, fixedType) {
|
|
9275
9290
|
const $xeTable = this;
|
|
9291
|
+
const reactData = $xeTable;
|
|
9276
9292
|
const internalData = $xeTable;
|
|
9293
|
+
const {
|
|
9294
|
+
scrollXLoad
|
|
9295
|
+
} = reactData;
|
|
9277
9296
|
const {
|
|
9278
9297
|
elemStore,
|
|
9279
9298
|
intoRunScroll,
|
|
@@ -9310,7 +9329,9 @@ const Methods = {
|
|
|
9310
9329
|
(0, _dom.setScrollLeft)(xHandleEl, scrollLeft);
|
|
9311
9330
|
(0, _dom.setScrollLeft)(footerScrollElem, scrollLeft);
|
|
9312
9331
|
(0, _dom.setScrollLeft)(bodyScrollElem, scrollLeft);
|
|
9313
|
-
|
|
9332
|
+
if (scrollXLoad) {
|
|
9333
|
+
$xeTable.triggerScrollXEvent(evnt);
|
|
9334
|
+
}
|
|
9314
9335
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
9315
9336
|
type: 'header',
|
|
9316
9337
|
fixed: fixedType
|
|
@@ -9318,7 +9339,11 @@ const Methods = {
|
|
|
9318
9339
|
},
|
|
9319
9340
|
triggerFooterScrollEvent(evnt, fixedType) {
|
|
9320
9341
|
const $xeTable = this;
|
|
9342
|
+
const reactData = $xeTable;
|
|
9321
9343
|
const internalData = $xeTable;
|
|
9344
|
+
const {
|
|
9345
|
+
scrollXLoad
|
|
9346
|
+
} = reactData;
|
|
9322
9347
|
const {
|
|
9323
9348
|
elemStore,
|
|
9324
9349
|
intoRunScroll,
|
|
@@ -9355,7 +9380,9 @@ const Methods = {
|
|
|
9355
9380
|
(0, _dom.setScrollLeft)(xHandleEl, scrollLeft);
|
|
9356
9381
|
(0, _dom.setScrollLeft)(headerScrollElem, scrollLeft);
|
|
9357
9382
|
(0, _dom.setScrollLeft)(bodyScrollElem, scrollLeft);
|
|
9358
|
-
|
|
9383
|
+
if (scrollXLoad) {
|
|
9384
|
+
$xeTable.triggerScrollXEvent(evnt);
|
|
9385
|
+
}
|
|
9359
9386
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
9360
9387
|
type: 'footer',
|
|
9361
9388
|
fixed: fixedType
|
|
@@ -9377,6 +9404,9 @@ const Methods = {
|
|
|
9377
9404
|
const {
|
|
9378
9405
|
highlightHoverRow
|
|
9379
9406
|
} = tableProps;
|
|
9407
|
+
const {
|
|
9408
|
+
scrollYLoad
|
|
9409
|
+
} = reactData;
|
|
9380
9410
|
const {
|
|
9381
9411
|
elemStore,
|
|
9382
9412
|
lastScrollTop,
|
|
@@ -9423,7 +9453,9 @@ const Methods = {
|
|
|
9423
9453
|
(0, _dom.setScrollTop)(bodyScrollElem, currTopNum);
|
|
9424
9454
|
(0, _dom.setScrollTop)(leftScrollElem, currTopNum);
|
|
9425
9455
|
(0, _dom.setScrollTop)(rightScrollElem, currTopNum);
|
|
9426
|
-
|
|
9456
|
+
if (scrollYLoad) {
|
|
9457
|
+
$xeTable.triggerScrollYEvent(evnt);
|
|
9458
|
+
}
|
|
9427
9459
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, currTopNum, scrollLeft, {
|
|
9428
9460
|
type: 'table',
|
|
9429
9461
|
fixed: ''
|
|
@@ -9443,7 +9475,11 @@ const Methods = {
|
|
|
9443
9475
|
},
|
|
9444
9476
|
triggerVirtualScrollXEvent(evnt) {
|
|
9445
9477
|
const $xeTable = this;
|
|
9478
|
+
const reactData = $xeTable;
|
|
9446
9479
|
const internalData = $xeTable;
|
|
9480
|
+
const {
|
|
9481
|
+
scrollXLoad
|
|
9482
|
+
} = reactData;
|
|
9447
9483
|
const {
|
|
9448
9484
|
elemStore,
|
|
9449
9485
|
inWheelScroll,
|
|
@@ -9477,7 +9513,9 @@ const Methods = {
|
|
|
9477
9513
|
(0, _dom.setScrollLeft)(bodyScrollElem, scrollLeft);
|
|
9478
9514
|
(0, _dom.setScrollLeft)(headerScrollElem, scrollLeft);
|
|
9479
9515
|
(0, _dom.setScrollLeft)(footerScrollElem, scrollLeft);
|
|
9480
|
-
|
|
9516
|
+
if (scrollXLoad) {
|
|
9517
|
+
$xeTable.triggerScrollXEvent(evnt);
|
|
9518
|
+
}
|
|
9481
9519
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
9482
9520
|
type: 'table',
|
|
9483
9521
|
fixed: ''
|
|
@@ -9485,7 +9523,11 @@ const Methods = {
|
|
|
9485
9523
|
},
|
|
9486
9524
|
triggerVirtualScrollYEvent(evnt) {
|
|
9487
9525
|
const $xeTable = this;
|
|
9526
|
+
const reactData = $xeTable;
|
|
9488
9527
|
const internalData = $xeTable;
|
|
9528
|
+
const {
|
|
9529
|
+
scrollYLoad
|
|
9530
|
+
} = reactData;
|
|
9489
9531
|
const {
|
|
9490
9532
|
elemStore,
|
|
9491
9533
|
inWheelScroll,
|
|
@@ -9519,7 +9561,9 @@ const Methods = {
|
|
|
9519
9561
|
(0, _dom.setScrollTop)(bodyScrollElem, scrollTop);
|
|
9520
9562
|
(0, _dom.setScrollTop)(leftScrollElem, scrollTop);
|
|
9521
9563
|
(0, _dom.setScrollTop)(rightScrollElem, scrollTop);
|
|
9522
|
-
|
|
9564
|
+
if (scrollYLoad) {
|
|
9565
|
+
$xeTable.triggerScrollYEvent(evnt);
|
|
9566
|
+
}
|
|
9523
9567
|
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, scrollTop, scrollLeft, {
|
|
9524
9568
|
type: 'table',
|
|
9525
9569
|
fixed: ''
|