add ts define
This commit is contained in:
@@ -91,4 +91,21 @@ export function vlayout(views: View[], config?: IVLayout) {
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
|
||||
export class FlexLayout extends Group {
|
||||
}
|
||||
|
||||
export function flexlayout(views: View[], config: IView) {
|
||||
const ret = new FlexLayout
|
||||
for (let v of views) {
|
||||
ret.addChild(v)
|
||||
}
|
||||
if (config) {
|
||||
for (let key in config) {
|
||||
Reflect.set(ret, key, Reflect.get(config, key, config), ret)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user