|
|
@ -59,7 +59,7 @@ |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -72,7 +72,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
BI.createWidget({ // 1.2
|
|
|
|
BI.createWidget({ // 1.2
|
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -95,7 +95,7 @@ |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
@ -130,7 +130,7 @@ |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
@ -141,7 +141,7 @@ |
|
|
|
json.maxWidth = o.textWidth; |
|
|
|
json.maxWidth = o.textWidth; |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -164,7 +164,7 @@ |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
this.text = BI.createWidget(json); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: true, |
|
|
|
scrollable: true, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
@ -201,7 +201,7 @@ |
|
|
|
})); |
|
|
|
})); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -218,7 +218,7 @@ |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
@ -233,7 +233,7 @@ |
|
|
|
BI.createWidget({ // 2.2
|
|
|
|
BI.createWidget({ // 2.2
|
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -271,7 +271,7 @@ |
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -291,7 +291,7 @@ |
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -340,7 +340,7 @@ |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important让文字shrink为1
|
|
|
|
columnSize: [o.whiteSpace === "normal" ? "auto" : ""], // important! 让文字在normal下shrink为1
|
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
scrollable: o.whiteSpace === "normal", |
|
|
|
items: [this.text] |
|
|
|
items: [this.text] |
|
|
|