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

View File

@@ -2194,16 +2194,40 @@ class LayoutConfigImpl {
this.heightSpec = exports.LayoutSpec.FIT;
return this;
}
fitWidth() {
this.widthSpec = exports.LayoutSpec.FIT;
return this;
}
fitHeight() {
this.heightSpec = exports.LayoutSpec.FIT;
return this;
}
most() {
this.widthSpec = exports.LayoutSpec.MOST;
this.heightSpec = exports.LayoutSpec.MOST;
return this;
}
mostWidth() {
this.widthSpec = exports.LayoutSpec.MOST;
return this;
}
mostHeight() {
this.widthSpec = exports.LayoutSpec.MOST;
return this;
}
just() {
this.widthSpec = exports.LayoutSpec.JUST;
this.heightSpec = exports.LayoutSpec.JUST;
return this;
}
justWidth() {
this.widthSpec = exports.LayoutSpec.JUST;
return this;
}
justHeight() {
this.heightSpec = exports.LayoutSpec.JUST;
return this;
}
configWidth(w) {
this.widthSpec = w;
return this;

File diff suppressed because one or more lines are too long