fix(Layout): outside of the screen after setting gutter (#6143)

This commit is contained in:
neverland
2020-04-27 10:49:24 +08:00
committed by GitHub
parent 0786779842
commit a460425b26
5 changed files with 54 additions and 31 deletions
+6 -1
View File
@@ -33,7 +33,12 @@ export function ChildrenMixin(
[indexKey]() {
this.bindRelation();
return this.parent.children.indexOf(this);
if (this.parent) {
return this.parent.children.indexOf(this);
}
return null;
},
},