|
|
|
@ -7,6 +7,12 @@ BI.IconLabel = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-icon-label horizon-center", |
|
|
|
|
hgap: 0, |
|
|
|
|
vgap: 0, |
|
|
|
|
tgap: 0, |
|
|
|
|
bgap: 0, |
|
|
|
|
lgap: 0, |
|
|
|
|
rgap: 0, |
|
|
|
|
iconWidth: null, |
|
|
|
|
iconHeight: null, |
|
|
|
|
lineHeight: null, |
|
|
|
@ -27,6 +33,12 @@ BI.IconLabel = BI.inherit(BI.Single, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.default", |
|
|
|
|
element: this, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
items: [this.icon] |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -34,6 +46,12 @@ BI.IconLabel = BI.inherit(BI.Single, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
vgap: o.vgap, |
|
|
|
|
lgap: o.lgap, |
|
|
|
|
rgap: o.rgap, |
|
|
|
|
tgap: o.tgap, |
|
|
|
|
bgap: o.bgap, |
|
|
|
|
items: [this.icon] |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|