feat:enhance layoutConfig

This commit is contained in:
pengfei.zhou
2021-05-14 19:32:19 +08:00
committed by osborn
parent 7ee30d1cd3
commit 57643c5990
11 changed files with 178 additions and 40 deletions

6
doric-js/index.d.ts vendored
View File

@@ -1167,8 +1167,14 @@ declare module 'doric/lib/src/util/layoutconfig' {
minWidth?: number;
minHeight?: number;
fit(): this;
fitWidth(): this;
fitHeight(): this;
most(): this;
mostWidth(): this;
mostHeight(): this;
just(): this;
justWidth(): this;
justHeight(): this;
configWidth(w: LayoutSpec): this;
configHeight(h: LayoutSpec): this;
configMargin(m: {