vxe-table 3.14.0 → 3.14.2
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 +95 -65
- package/es/table/module/keyboard/mixin.js +3 -2
- package/es/table/module/validator/mixin.js +2 -5
- package/es/table/src/body.js +6 -7
- package/es/table/src/methods.js +301 -286
- package/es/table/src/table.js +21 -15
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +0 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +501 -498
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +108 -99
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +2 -1
- package/lib/table/module/keyboard/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 +352 -355
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +21 -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/dom.js +0 -2
- package/lib/ui/src/dom.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 +129 -89
- package/packages/table/module/keyboard/mixin.ts +4 -2
- package/packages/table/module/validator/mixin.ts +3 -6
- package/packages/table/src/body.ts +6 -7
- package/packages/table/src/methods.ts +345 -301
- package/packages/table/src/table.ts +24 -18
- package/packages/table/src/util.ts +2 -2
- package/packages/ui/src/dom.ts +0 -2
- /package/es/{iconfont.1742955973002.ttf → iconfont.1743125678150.ttf} +0 -0
- /package/es/{iconfont.1742955973002.woff → iconfont.1743125678150.woff} +0 -0
- /package/es/{iconfont.1742955973002.woff2 → iconfont.1743125678150.woff2} +0 -0
- /package/lib/{iconfont.1742955973002.ttf → iconfont.1743125678150.ttf} +0 -0
- /package/lib/{iconfont.1742955973002.woff → iconfont.1743125678150.woff} +0 -0
- /package/lib/{iconfont.1742955973002.woff2 → iconfont.1743125678150.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
|
}
|
|
@@ -1132,6 +1130,9 @@ export default {
|
|
|
1132
1130
|
const $xeTable = this;
|
|
1133
1131
|
const $xeTabs = $xeTable.$xeTabs;
|
|
1134
1132
|
return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
|
|
1133
|
+
},
|
|
1134
|
+
computeVxeLanguage() {
|
|
1135
|
+
return VxeUI.getLanguage();
|
|
1135
1136
|
} }),
|
|
1136
1137
|
watch: {
|
|
1137
1138
|
data(value) {
|
|
@@ -1204,6 +1205,9 @@ export default {
|
|
|
1204
1205
|
computeScrollbarYToLeft() {
|
|
1205
1206
|
this.reLayoutFlag++;
|
|
1206
1207
|
},
|
|
1208
|
+
computeVxeLanguage() {
|
|
1209
|
+
this.reLayoutFlag++;
|
|
1210
|
+
},
|
|
1207
1211
|
reLayoutFlag() {
|
|
1208
1212
|
const $xeTable = this;
|
|
1209
1213
|
$xeTable.$nextTick(() => $xeTable.recalculate(true));
|
|
@@ -1297,11 +1301,11 @@ export default {
|
|
|
1297
1301
|
tableFullColumn: [],
|
|
1298
1302
|
// 渲染所有列
|
|
1299
1303
|
visibleColumn: [],
|
|
1300
|
-
//
|
|
1304
|
+
// 总的缓存数据集
|
|
1301
1305
|
fullAllDataRowIdData: {},
|
|
1302
|
-
|
|
1306
|
+
// 渲染中缓存数据
|
|
1307
|
+
sourceDataRowIdData: {},
|
|
1303
1308
|
fullDataRowIdData: {},
|
|
1304
|
-
fullColumnMap: new Map(),
|
|
1305
1309
|
fullColumnIdData: {},
|
|
1306
1310
|
fullColumnFieldData: {},
|
|
1307
1311
|
// 已展开的行集合
|
|
@@ -1316,13 +1320,16 @@ export default {
|
|
|
1316
1320
|
selectCheckboxMaps: {},
|
|
1317
1321
|
// 已标记的对象集
|
|
1318
1322
|
pendingRowMaps: {},
|
|
1323
|
+
// 已新增的临时行
|
|
1324
|
+
insertRowMaps: {},
|
|
1325
|
+
// 已删除行
|
|
1326
|
+
removeRowMaps: {},
|
|
1319
1327
|
swYSize: 0,
|
|
1320
1328
|
swYInterval: 0,
|
|
1321
1329
|
swYTotal: 0
|
|
1322
1330
|
});
|
|
1323
1331
|
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props;
|
|
1324
1332
|
const { scrollXStore, scrollYStore } = internalData;
|
|
1325
|
-
const sYOpts = $xeTable.computeSYOpts;
|
|
1326
1333
|
const editOpts = $xeTable.computeEditOpts;
|
|
1327
1334
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
1328
1335
|
const radioOpts = $xeTable.computeRadioOpts;
|
|
@@ -1482,8 +1489,7 @@ export default {
|
|
|
1482
1489
|
Object.assign(scrollYStore, {
|
|
1483
1490
|
startIndex: 0,
|
|
1484
1491
|
endIndex: 1,
|
|
1485
|
-
visibleSize: 0
|
|
1486
|
-
adaptive: sYOpts.adaptive !== false
|
|
1492
|
+
visibleSize: 0
|
|
1487
1493
|
});
|
|
1488
1494
|
Object.assign(scrollXStore, {
|
|
1489
1495
|
startIndex: 0,
|
package/es/ui/index.js
CHANGED
package/es/ui/src/dom.js
CHANGED
package/es/ui/src/log.js
CHANGED