|
|
@ -28471,7 +28471,7 @@ BI.extend(BI.DOM, { |
|
|
|
return this._scrollWidth; |
|
|
|
return this._scrollWidth; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getImage: function (param) { |
|
|
|
getImage: function (param, fillStyle, backgroundColor) { |
|
|
|
var image = new Image(); |
|
|
|
var image = new Image(); |
|
|
|
var canvas = document.createElement("canvas"); |
|
|
|
var canvas = document.createElement("canvas"); |
|
|
|
$("body").append(canvas); |
|
|
|
$("body").append(canvas); |
|
|
@ -28481,15 +28481,16 @@ BI.extend(BI.DOM, { |
|
|
|
var ctx = canvas.getContext("2d"); |
|
|
|
var ctx = canvas.getContext("2d"); |
|
|
|
// ctx.fillStyle = "#EAF2FD";
|
|
|
|
// ctx.fillStyle = "#EAF2FD";
|
|
|
|
ctx.font = "12px Georgia"; |
|
|
|
ctx.font = "12px Georgia"; |
|
|
|
ctx.fillStyle = "#3D4D66"; |
|
|
|
ctx.fillStyle = fillStyle || "#3D4D66"; |
|
|
|
ctx.textBaseline = "middle"; |
|
|
|
ctx.textBaseline = "middle"; |
|
|
|
ctx.fillText(param, 6, 12); |
|
|
|
ctx.fillText(param, 6, 12); |
|
|
|
$(canvas).destroy(); |
|
|
|
$(canvas).destroy(); |
|
|
|
|
|
|
|
var backColor = backgroundColor || "#EAF2FD"; |
|
|
|
return { |
|
|
|
return { |
|
|
|
width: w, |
|
|
|
width: w, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
src: canvas.toDataURL("image/png"), |
|
|
|
src: canvas.toDataURL("image/png"), |
|
|
|
style: "background-color: #EAF2FD; vertical-align: sub; margin: 0 3px;", |
|
|
|
style: "background-color: " + backColor + ";vertical-align: sub; margin: 0 3px;", |
|
|
|
alt: param |
|
|
|
alt: param |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -77237,7 +77238,8 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
adjustXOffset: 0, |
|
|
|
adjustXOffset: 0, |
|
|
|
adjustYOffset: 0, |
|
|
|
adjustYOffset: 0, |
|
|
|
offsetStyle: "left", |
|
|
|
offsetStyle: "left", |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
|
|
|
isShowDown: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -77253,7 +77255,8 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
value: o.value |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
isShowDown: o.isShowDown |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget(o.popup, { |
|
|
|
this.popup = BI.createWidget(o.popup, { |
|
|
|
type: "bi.icon_combo_popup", |
|
|
|
type: "bi.icon_combo_popup", |
|
|
@ -77408,7 +77411,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
cls: "icon-combo-trigger-icon", |
|
|
|
cls: "icon-combo-trigger-icon", |
|
|
|
iconCls: iconCls, |
|
|
|
iconCls: iconCls, |
|
|
|
disableSelected: true, |
|
|
|
disableSelected: true, |
|
|
|
width: o.width - 12, |
|
|
|
width: o.isShowDown ? o.width - 12 : o.width, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
@ -100350,6 +100353,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-small-combo bi-border", |
|
|
|
cls: "number-interval-small-combo bi-border", |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
|
|
|
|
isShowDown: false, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconCls: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
@ -100368,6 +100372,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
type: "bi.icon_combo", |
|
|
|
type: "bi.icon_combo", |
|
|
|
cls: "number-interval-big-combo bi-border", |
|
|
|
cls: "number-interval-big-combo bi-border", |
|
|
|
|
|
|
|
isShowDown: false, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|