|
|
|
@ -12233,7 +12233,6 @@ if (!_global.BI) {
|
|
|
|
|
} |
|
|
|
|
kv[xtype] = cls; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 根据配置属性生成widget
|
|
|
|
|
var createWidget = function (config) { |
|
|
|
|
if (config["classType"]) { |
|
|
|
@ -46454,13 +46453,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
_createNotCenterEl: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt"; |
|
|
|
|
var json = this._createJson(); |
|
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
|
json.width = o.textWidth; |
|
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
height: o.height, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
element: this, |
|
|
|
@ -46473,7 +46473,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46509,7 +46509,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46527,7 +46527,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
|
|
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
|
json.width = o.textWidth; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46574,7 +46574,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
|
|
|
|
|
maxWidth: "100%" |
|
|
|
|
})); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
element: this, |
|
|
|
|
items: [this.text] |
|
|
|
|
}); |
|
|
|
@ -46868,13 +46868,14 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
_createNotCenterEl: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt"; |
|
|
|
|
var json = this._createJson(); |
|
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
|
json.width = o.textWidth; |
|
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { // 2.1
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
height: o.height, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
element: this, |
|
|
|
@ -46887,7 +46888,7 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
BI.createWidget({ // 2.2
|
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46923,7 +46924,7 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46941,7 +46942,7 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
|
json.width = o.textWidth; |
|
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
@ -46988,7 +46989,7 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
maxWidth: "100%" |
|
|
|
|
})); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
type: adaptLayout, |
|
|
|
|
element: this, |
|
|
|
|
items: [this.text] |
|
|
|
|
}); |
|
|
|
|