feat:refact DoricLayout and layout config
This commit is contained in:
@@ -16,14 +16,6 @@
|
||||
import { LayoutConfig, Group, Property, IView } from "./view";
|
||||
import { Gravity } from "../util/gravity";
|
||||
|
||||
export interface StackConfig extends LayoutConfig {
|
||||
|
||||
}
|
||||
|
||||
export interface LinearConfig extends LayoutConfig {
|
||||
weight?: number
|
||||
}
|
||||
|
||||
export interface IStack extends IView {
|
||||
gravity?: Gravity
|
||||
}
|
||||
|
@@ -35,6 +35,8 @@ export interface LayoutConfig {
|
||||
bottom?: number,
|
||||
}
|
||||
alignment?: Gravity
|
||||
//Only affective in VLayout or HLayout
|
||||
weight?: number
|
||||
}
|
||||
|
||||
export function Property(target: Object, propKey: string) {
|
||||
|
Reference in New Issue
Block a user