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
|
@@ -570,9 +570,7 @@ export default {
|
|
|
570
570
|
focused: {
|
|
571
571
|
row: null,
|
|
572
572
|
column: null
|
|
573
|
-
}
|
|
574
|
-
insertMaps: {},
|
|
575
|
-
removeMaps: {}
|
|
573
|
+
}
|
|
576
574
|
},
|
|
577
575
|
// 存放 tooltip 相关信息
|
|
578
576
|
tooltipStore: {
|
|
@@ -696,7 +694,7 @@ export default {
|
|
|
696
694
|
return Object.assign({ message: 'default' }, getConfig().table.validConfig, this.validConfig)
|
|
697
695
|
},
|
|
698
696
|
sXOpts () {
|
|
699
|
-
return this.
|
|
697
|
+
return this.computeVirtualXOpts
|
|
700
698
|
},
|
|
701
699
|
computeSXOpts () {
|
|
702
700
|
return this.computeVirtualXOpts
|
|
@@ -704,15 +702,15 @@ export default {
|
|
|
704
702
|
computeScrollXThreshold () {
|
|
705
703
|
const $xeTable = this
|
|
706
704
|
|
|
707
|
-
const
|
|
708
|
-
const { threshold } =
|
|
705
|
+
const virtualXOpts = $xeTable.computeVirtualXOpts
|
|
706
|
+
const { threshold } = virtualXOpts
|
|
709
707
|
if (threshold) {
|
|
710
708
|
return XEUtils.toNumber(threshold)
|
|
711
709
|
}
|
|
712
710
|
return 0
|
|
713
711
|
},
|
|
714
712
|
sYOpts () {
|
|
715
|
-
return this.
|
|
713
|
+
return this.computeVirtualYOpts
|
|
716
714
|
},
|
|
717
715
|
computeSYOpts () {
|
|
718
716
|
return this.computeVirtualYOpts
|
|
@@ -750,8 +748,8 @@ export default {
|
|
|
750
748
|
computeScrollYThreshold () {
|
|
751
749
|
const $xeTable = this
|
|
752
750
|
|
|
753
|
-
const
|
|
754
|
-
const { threshold } =
|
|
751
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts
|
|
752
|
+
const { threshold } = virtualYOpts
|
|
755
753
|
if (threshold) {
|
|
756
754
|
return XEUtils.toNumber(threshold)
|
|
757
755
|
}
|
|
@@ -1202,7 +1200,7 @@ export default {
|
|
|
1202
1200
|
}
|
|
1203
1201
|
},
|
|
1204
1202
|
tabsResizeFlag () {
|
|
1205
|
-
const $xeTable = this
|
|
1203
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
1206
1204
|
const $xeTabs = $xeTable.$xeTabs
|
|
1207
1205
|
|
|
1208
1206
|
return $xeTabs ? $xeTabs.reactData.resizeFlag : null
|
|
@@ -1210,8 +1208,8 @@ export default {
|
|
|
1210
1208
|
} as any,
|
|
1211
1209
|
watch: {
|
|
1212
1210
|
data (value: any) {
|
|
1213
|
-
const $xeTable = this
|
|
1214
|
-
const reactData = $xeTable
|
|
1211
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
1212
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
1215
1213
|
|
|
1216
1214
|
const { initStatus } = this
|
|
1217
1215
|
if (value && value.length >= 50000) {
|
|
@@ -1381,11 +1379,11 @@ export default {
|
|
|
1381
1379
|
tableFullColumn: [],
|
|
1382
1380
|
// 渲染所有列
|
|
1383
1381
|
visibleColumn: [],
|
|
1384
|
-
//
|
|
1382
|
+
// 总的缓存数据集
|
|
1385
1383
|
fullAllDataRowIdData: {},
|
|
1386
|
-
|
|
1384
|
+
// 渲染中缓存数据
|
|
1385
|
+
sourceDataRowIdData: {},
|
|
1387
1386
|
fullDataRowIdData: {},
|
|
1388
|
-
fullColumnMap: new Map(),
|
|
1389
1387
|
fullColumnIdData: {},
|
|
1390
1388
|
fullColumnFieldData: {},
|
|
1391
1389
|
|
|
@@ -1401,6 +1399,10 @@ export default {
|
|
|
1401
1399
|
selectCheckboxMaps: {},
|
|
1402
1400
|
// 已标记的对象集
|
|
1403
1401
|
pendingRowMaps: {},
|
|
1402
|
+
// 已新增的临时行
|
|
1403
|
+
insertRowMaps: {},
|
|
1404
|
+
// 已删除行
|
|
1405
|
+
removeRowMaps: {},
|
|
1404
1406
|
|
|
1405
1407
|
swYSize: 0,
|
|
1406
1408
|
swYInterval: 0,
|
|
@@ -1409,7 +1411,6 @@ export default {
|
|
|
1409
1411
|
|
|
1410
1412
|
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
1411
1413
|
const { scrollXStore, scrollYStore } = internalData
|
|
1412
|
-
const sYOpts = $xeTable.computeSYOpts
|
|
1413
1414
|
const editOpts = $xeTable.computeEditOpts
|
|
1414
1415
|
const treeOpts = $xeTable.computeTreeOpts
|
|
1415
1416
|
const radioOpts = $xeTable.computeRadioOpts
|
|
@@ -1574,8 +1575,7 @@ export default {
|
|
|
1574
1575
|
Object.assign(scrollYStore, {
|
|
1575
1576
|
startIndex: 0,
|
|
1576
1577
|
endIndex: 1,
|
|
1577
|
-
visibleSize: 0
|
|
1578
|
-
adaptive: sYOpts.adaptive !== false
|
|
1578
|
+
visibleSize: 0
|
|
1579
1579
|
})
|
|
1580
1580
|
Object.assign(scrollXStore, {
|
|
1581
1581
|
startIndex: 0,
|
|
@@ -69,8 +69,8 @@ export const convertHeaderColumnToRows = (originColumns: any) => {
|
|
|
69
69
|
return rows
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export function restoreScrollLocation ($xeTable:
|
|
73
|
-
const internalData = $xeTable
|
|
72
|
+
export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft: number, scrollTop: number) {
|
|
73
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
74
74
|
|
|
75
75
|
return $xeTable.clearScroll().then(() => {
|
|
76
76
|
if (scrollLeft || scrollTop) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|