fix: layout() cannot effect configMaxWidth or configMinWidth

This commit is contained in:
pengfei.zhou
2022-03-22 17:04:59 +08:00
committed by osborn
parent a19c327743
commit 809bc5ef0e
10 changed files with 1715 additions and 3105 deletions

View File

@@ -79,6 +79,10 @@ export declare class LayoutConfigImpl implements LayoutConfig, Modeling {
} | undefined;
alignment: number | undefined;
weight: number | undefined;
minWidth: number | undefined;
maxWidth: number | undefined;
minHeight: number | undefined;
maxHeight: number | undefined;
};
}
export declare function layoutConfig(): LayoutConfigImpl;

View File

@@ -96,6 +96,10 @@ export class LayoutConfigImpl {
margin: this.margin,
alignment: this.alignment ? this.alignment.toModel() : undefined,
weight: this.weight,
minWidth: this.minWidth,
maxWidth: this.maxWidth,
minHeight: this.minHeight,
maxHeight: this.maxHeight
};
}
}