begin render

This commit is contained in:
pengfei.zhou
2019-07-22 15:38:30 +08:00
parent ed8b221288
commit 3bb2bae50c
15 changed files with 91 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
import './../runtime/global'
import { View, Stack, Group } from "./view";
import { View, Group, Root } from "./view";
import { loge, log } from '../util/log';
import { Model } from '../util/types';
@@ -25,7 +25,7 @@ export abstract class Panel {
abstract build(rootView: Group): void
private __data__: any
private __rootView__: Group = new Stack
private __rootView__ = new Root
getRootView() {
return this.__rootView__

View File

@@ -235,7 +235,9 @@ export class Stack extends Group {
@Property
gravity?: number
}
export class Root extends Stack {
}
class LinearLayout extends Group {
@Property
space?: number