fix: 特殊场景this.flatTreeData为空引起报错

This commit is contained in:
izbz wh 2020-11-12 10:07:48 +08:00
parent b93e8a78ca
commit 6c260cd227
3 changed files with 78 additions and 14 deletions

88
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -295,7 +295,7 @@ export default function bigData(Table) {
if (this.cachedRowHeight[i] == undefined) {
if (this.treeType) {
// currentKey = this.keys[i];
currentKey = this.flatTreeData[i].key;
currentKey = this.flatTreeData[i] && this.flatTreeData[i].key;
currentRowHeight = 0;
if (
this.flatTreeKeysMap.hasOwnProperty(currentKey)