add navbar custom left & right view api

This commit is contained in:
王劲鹏
2020-01-10 15:55:47 +08:00
committed by osborn
parent 54b79e7f1e
commit 848b7005b7
9 changed files with 150 additions and 5 deletions

View File

@@ -141,7 +141,12 @@ export abstract class Panel {
if (cur === this.__root__.viewId) {
return this.__root__
}
return this.headviews.get(cur)
for (let map of this.headviews.values()) {
if (map.has(cur)) {
return map.get(cur)
}
}
return undefined
} else {
if (Reflect.has(acc, "subviewById")) {
return Reflect.apply(Reflect.get(acc, "subviewById"), acc, [cur])