feat:use DoricPanel instead of DoricContext directly

This commit is contained in:
pengfei.zhou
2019-11-23 11:18:54 +08:00
parent e3813266ba
commit a3f1e67db3
7 changed files with 56 additions and 22 deletions

View File

@@ -56,6 +56,7 @@ export abstract class Panel {
this.__data__ = data
this.__root__.width = frame.width
this.__root__.height = frame.height
this.__root__.children.length = 0
this.build(this.__root__)
}