feat:add LayoutDemo

This commit is contained in:
pengfei.zhou
2019-11-19 21:22:26 +08:00
parent f205a4769a
commit 1b23dbd653
7 changed files with 538 additions and 24 deletions

View File

@@ -252,8 +252,16 @@ export abstract class View implements Modeling, IView {
return this
}
apply(config: IView) {
for (let key in config) {
Reflect.set(this, key, Reflect.get(config, key, config), this)
}
return this
}
in(group: Group) {
group.addChild(this)
return this
}
nativeChannel(context: any, name: string) {