vxe-table 3.10.5 → 3.10.6
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/src/methods.js +16 -10
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +17 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +15 -9
- 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/src/methods.ts +15 -9
- /package/es/{iconfont.1730971767552.ttf → iconfont.1730978752470.ttf} +0 -0
- /package/es/{iconfont.1730971767552.woff → iconfont.1730978752470.woff} +0 -0
- /package/es/{iconfont.1730971767552.woff2 → iconfont.1730978752470.woff2} +0 -0
- /package/lib/{iconfont.1730971767552.ttf → iconfont.1730978752470.ttf} +0 -0
- /package/lib/{iconfont.1730971767552.woff → iconfont.1730978752470.woff} +0 -0
- /package/lib/{iconfont.1730971767552.woff2 → iconfont.1730978752470.woff2} +0 -0
|
@@ -5026,10 +5026,14 @@ const Methods = {
|
|
|
5026
5026
|
rowExpandLazyLoadedMaps[rowid] = row
|
|
5027
5027
|
loadMethod({ $table: $xeTable, row, rowIndex: this.getRowIndex(row), $rowIndex: this.getVMRowIndex(row) }).then(() => {
|
|
5028
5028
|
const { rowExpandedMaps } = this
|
|
5029
|
-
rowRest
|
|
5029
|
+
if (rowRest) {
|
|
5030
|
+
rowRest.expandLoaded = true
|
|
5031
|
+
}
|
|
5030
5032
|
rowExpandedMaps[rowid] = row
|
|
5031
5033
|
}).catch(() => {
|
|
5032
|
-
rowRest
|
|
5034
|
+
if (rowRest) {
|
|
5035
|
+
rowRest.expandLoaded = false
|
|
5036
|
+
}
|
|
5033
5037
|
}).finally(() => {
|
|
5034
5038
|
const { rowExpandLazyLoadedMaps } = this
|
|
5035
5039
|
if (rowExpandLazyLoadedMaps[rowid]) {
|
|
@@ -5389,13 +5393,15 @@ const Methods = {
|
|
|
5389
5393
|
const rowid = getRowid(this, row)
|
|
5390
5394
|
if (!treeTempExpandedMaps[rowid]) {
|
|
5391
5395
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5396
|
+
if (rowRest) {
|
|
5397
|
+
const isLoad = lazy && row[hasChildField] && !rowRest.treeLoaded && !treeExpandLazyLoadedMaps[rowid]
|
|
5398
|
+
// 是否使用懒加载
|
|
5399
|
+
if (isLoad) {
|
|
5400
|
+
result.push(this.handleAsyncTreeExpandChilds(row))
|
|
5401
|
+
} else {
|
|
5402
|
+
if (row[childrenField] && row[childrenField].length) {
|
|
5403
|
+
treeTempExpandedMaps[rowid] = row
|
|
5404
|
+
}
|
|
5399
5405
|
}
|
|
5400
5406
|
}
|
|
5401
5407
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|