|
|
@ -112,12 +112,12 @@ |
|
|
|
tgap: o.iconPosition === "top" ? o.iconGap : 0, |
|
|
|
tgap: o.iconPosition === "top" ? o.iconGap : 0, |
|
|
|
bgap: o.iconPosition === "bottom" ? o.iconGap : 0 |
|
|
|
bgap: o.iconPosition === "bottom" ? o.iconGap : 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
var items = [this.icon, BI.extend({el: this.text}, gapContainer)]; |
|
|
|
var items = [this.icon, BI.extend({ el: this.text }, gapContainer)]; |
|
|
|
if (isVertical(o.iconPosition)) { |
|
|
|
if (isVertical(o.iconPosition)) { |
|
|
|
layoutType = "bi.vertical"; |
|
|
|
layoutType = "bi.vertical"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.iconPosition === "right" || o.iconPosition === "bottom") { |
|
|
|
if (o.iconPosition === "right" || o.iconPosition === "bottom") { |
|
|
|
items = [BI.extend({el: this.text}, gapContainer), this.icon]; |
|
|
|
items = [BI.extend({ el: this.text }, gapContainer), this.icon]; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
@ -147,7 +147,8 @@ |
|
|
|
rgap: o.rgap, |
|
|
|
rgap: o.rgap, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
title: null, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
var classArr = ["block", "clear", "ghost", "plain", "loading", "light"]; |
|
|
|
var classArr = ["block", "clear", "ghost", "plain", "loading", "light"]; |
|
|
@ -159,7 +160,7 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (o.minWidth > 0) { |
|
|
|
if (o.minWidth > 0) { |
|
|
|
this.element.css({"min-width": o.minWidth / BI.pixRatio + BI.pixUnit}); |
|
|
|
this.element.css({ "min-width": o.minWidth / BI.pixRatio + BI.pixUnit }); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|