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.
@@ -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.expandLoaded = true
5029
+ if (rowRest) {
5030
+ rowRest.expandLoaded = true
5031
+ }
5030
5032
  rowExpandedMaps[rowid] = row
5031
5033
  }).catch(() => {
5032
- rowRest.expandLoaded = false
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
- const isLoad = lazy && row[hasChildField] && !rowRest.treeLoaded && !treeExpandLazyLoadedMaps[rowid]
5393
- // 是否使用懒加载
5394
- if (isLoad) {
5395
- result.push(this.handleAsyncTreeExpandChilds(row))
5396
- } else {
5397
- if (row[childrenField] && row[childrenField].length) {
5398
- treeTempExpandedMaps[rowid] = row
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
  }