add GroupView

This commit is contained in:
pengfei.zhou 2019-07-16 16:51:52 +08:00
parent d255c05aef
commit ea2145da69

View File

@ -83,6 +83,7 @@ export abstract class View implements IWatcher, Modeling {
}
export class Group extends View {
@Property
children: View[] = []
add(v: View) {
@ -90,14 +91,37 @@ export class Group extends View {
}
}
export class Text extends View {
export class Stack extends Group {
}
export class Image extends View {
export class VLayout extends Group {
}
export class HLayout extends Group {
}
export class Text extends View {
@Property
text?: string
@Property
textColor?: Color
@Property
textSize?: number
@Property
maxLines?: number
}
export class Image extends View {
@Property
imageUrl?: string
}
export class List extends View {
}