feat:enhance layoutConfig
This commit is contained in:
@@ -733,16 +733,40 @@ var LayoutConfigImpl = /** @class */ (function () {
|
||||
this.heightSpec = exports.LayoutSpec.FIT;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.fitWidth = function () {
|
||||
this.widthSpec = exports.LayoutSpec.FIT;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.fitHeight = function () {
|
||||
this.heightSpec = exports.LayoutSpec.FIT;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.most = function () {
|
||||
this.widthSpec = exports.LayoutSpec.MOST;
|
||||
this.heightSpec = exports.LayoutSpec.MOST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.mostWidth = function () {
|
||||
this.widthSpec = exports.LayoutSpec.MOST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.mostHeight = function () {
|
||||
this.widthSpec = exports.LayoutSpec.MOST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.just = function () {
|
||||
this.widthSpec = exports.LayoutSpec.JUST;
|
||||
this.heightSpec = exports.LayoutSpec.JUST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.justWidth = function () {
|
||||
this.widthSpec = exports.LayoutSpec.JUST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.justHeight = function () {
|
||||
this.heightSpec = exports.LayoutSpec.JUST;
|
||||
return this;
|
||||
};
|
||||
LayoutConfigImpl.prototype.configWidth = function (w) {
|
||||
this.widthSpec = w;
|
||||
return this;
|
||||
|
@@ -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;
|
||||
|
@@ -2140,16 +2140,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