feat:enhance layoutConfig
This commit is contained in:
@@ -619,16 +619,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;
|
||||
|
||||
Reference in New Issue
Block a user