fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* Created by GUY on 2015/6/26.
|
|
|
|
*/
|
|
|
|
|
|
|
|
BI.HtmlLabel = BI.inherit(BI.AbstractLabel, {
|
|
|
|
|
|
|
|
props: {
|
|
|
|
baseCls: "bi-html-label",
|
|
|
|
textAlign: "center",
|
|
|
|
whiteSpace: "nowrap", // normal or nowrap
|
|
|
|
textWidth: null,
|
|
|
|
textHeight: null,
|
|
|
|
hgap: 0,
|
|
|
|
vgap: 0,
|
|
|
|
lgap: 0,
|
|
|
|
rgap: 0,
|
|
|
|
tgap: 0,
|
|
|
|
bgap: 0,
|
|
|
|
text: ""
|
|
|
|
},
|
|
|
|
|
|
|
|
_createJson: function () {
|
|
|
|
var o = this.options;
|
|
|
|
return {
|
|
|
|
type: "bi.html",
|
|
|
|
textAlign: o.textAlign,
|
|
|
|
whiteSpace: o.whiteSpace,
|
|
|
|
lineHeight: o.textHeight,
|
|
|
|
text: o.text,
|
|
|
|
value: o.value
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
BI.shortcut("bi.html_label", BI.HtmlLabel);
|