vxe-table 3.14.0 → 3.14.1
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 +92 -63
- package/es/table/module/validator/mixin.js +2 -5
- package/es/table/src/body.js +6 -7
- package/es/table/src/methods.js +291 -278
- package/es/table/src/table.js +15 -15
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +478 -484
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +106 -98
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +3 -9
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/src/body.js +6 -7
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +343 -348
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +15 -15
- 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/table/module/edit/mixin.ts +125 -87
- package/packages/table/module/validator/mixin.ts +3 -6
- package/packages/table/src/body.ts +6 -7
- package/packages/table/src/methods.ts +334 -293
- package/packages/table/src/table.ts +18 -18
- package/packages/table/src/util.ts +2 -2
- /package/es/{iconfont.1742955973002.ttf → iconfont.1743045564244.ttf} +0 -0
- /package/es/{iconfont.1742955973002.woff → iconfont.1743045564244.woff} +0 -0
- /package/es/{iconfont.1742955973002.woff2 → iconfont.1743045564244.woff2} +0 -0
- /package/lib/{iconfont.1742955973002.ttf → iconfont.1743045564244.ttf} +0 -0
- /package/lib/{iconfont.1742955973002.woff → iconfont.1743045564244.woff} +0 -0
- /package/lib/{iconfont.1742955973002.woff2 → iconfont.1743045564244.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -544,9 +544,7 @@ export default {
|
|
|
544
544
|
focused: {
|
|
545
545
|
row: null,
|
|
546
546
|
column: null
|
|
547
|
-
}
|
|
548
|
-
insertMaps: {},
|
|
549
|
-
removeMaps: {}
|
|
547
|
+
}
|
|
550
548
|
},
|
|
551
549
|
// 存放 tooltip 相关信息
|
|
552
550
|
tooltipStore: {
|
|
@@ -658,22 +656,22 @@ export default {
|
|
|
658
656
|
return Object.assign({ message: 'default' }, getConfig().table.validConfig, this.validConfig);
|
|
659
657
|
},
|
|
660
658
|
sXOpts() {
|
|
661
|
-
return this.
|
|
659
|
+
return this.computeVirtualXOpts;
|
|
662
660
|
},
|
|
663
661
|
computeSXOpts() {
|
|
664
662
|
return this.computeVirtualXOpts;
|
|
665
663
|
},
|
|
666
664
|
computeScrollXThreshold() {
|
|
667
665
|
const $xeTable = this;
|
|
668
|
-
const
|
|
669
|
-
const { threshold } =
|
|
666
|
+
const virtualXOpts = $xeTable.computeVirtualXOpts;
|
|
667
|
+
const { threshold } = virtualXOpts;
|
|
670
668
|
if (threshold) {
|
|
671
669
|
return XEUtils.toNumber(threshold);
|
|
672
670
|
}
|
|
673
671
|
return 0;
|
|
674
672
|
},
|
|
675
673
|
sYOpts() {
|
|
676
|
-
return this.
|
|
674
|
+
return this.computeVirtualYOpts;
|
|
677
675
|
},
|
|
678
676
|
computeSYOpts() {
|
|
679
677
|
return this.computeVirtualYOpts;
|
|
@@ -705,8 +703,8 @@ export default {
|
|
|
705
703
|
},
|
|
706
704
|
computeScrollYThreshold() {
|
|
707
705
|
const $xeTable = this;
|
|
708
|
-
const
|
|
709
|
-
const { threshold } =
|
|
706
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts;
|
|
707
|
+
const { threshold } = virtualYOpts;
|
|
710
708
|
if (threshold) {
|
|
711
709
|
return XEUtils.toNumber(threshold);
|
|
712
710
|
}
|
|
@@ -1297,11 +1295,11 @@ export default {
|
|
|
1297
1295
|
tableFullColumn: [],
|
|
1298
1296
|
// 渲染所有列
|
|
1299
1297
|
visibleColumn: [],
|
|
1300
|
-
//
|
|
1298
|
+
// 总的缓存数据集
|
|
1301
1299
|
fullAllDataRowIdData: {},
|
|
1302
|
-
|
|
1300
|
+
// 渲染中缓存数据
|
|
1301
|
+
sourceDataRowIdData: {},
|
|
1303
1302
|
fullDataRowIdData: {},
|
|
1304
|
-
fullColumnMap: new Map(),
|
|
1305
1303
|
fullColumnIdData: {},
|
|
1306
1304
|
fullColumnFieldData: {},
|
|
1307
1305
|
// 已展开的行集合
|
|
@@ -1316,13 +1314,16 @@ export default {
|
|
|
1316
1314
|
selectCheckboxMaps: {},
|
|
1317
1315
|
// 已标记的对象集
|
|
1318
1316
|
pendingRowMaps: {},
|
|
1317
|
+
// 已新增的临时行
|
|
1318
|
+
insertRowMaps: {},
|
|
1319
|
+
// 已删除行
|
|
1320
|
+
removeRowMaps: {},
|
|
1319
1321
|
swYSize: 0,
|
|
1320
1322
|
swYInterval: 0,
|
|
1321
1323
|
swYTotal: 0
|
|
1322
1324
|
});
|
|
1323
1325
|
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props;
|
|
1324
1326
|
const { scrollXStore, scrollYStore } = internalData;
|
|
1325
|
-
const sYOpts = $xeTable.computeSYOpts;
|
|
1326
1327
|
const editOpts = $xeTable.computeEditOpts;
|
|
1327
1328
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
1328
1329
|
const radioOpts = $xeTable.computeRadioOpts;
|
|
@@ -1482,8 +1483,7 @@ export default {
|
|
|
1482
1483
|
Object.assign(scrollYStore, {
|
|
1483
1484
|
startIndex: 0,
|
|
1484
1485
|
endIndex: 1,
|
|
1485
|
-
visibleSize: 0
|
|
1486
|
-
adaptive: sYOpts.adaptive !== false
|
|
1486
|
+
visibleSize: 0
|
|
1487
1487
|
});
|
|
1488
1488
|
Object.assign(scrollXStore, {
|
|
1489
1489
|
startIndex: 0,
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED