Browse Source

button可配icon宽高

es6
windy 6 years ago
parent
commit
77a952f704
  1. 8
      src/base/single/button/buttons/button.js

8
src/base/single/button/buttons/button.js

@ -48,9 +48,12 @@ BI.Button = BI.inherit(BI.BasicButton, {
}
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
type: "bi.icon",
type: "bi.icon_label",
cls: o.iconCls,
width: 18,
height: o.height - 2
height: o.height - 2,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.text = BI.createWidget({
type: "bi.label",
@ -60,7 +63,6 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
BI.createWidget({
type: "bi.center_adapt",
cls: o.iconCls,
element: this,
hgap: o.hgap,
vgap: o.vgap,

Loading…
Cancel
Save