Browse Source

Pull request #2568: 无JIRA任务 icon_label支持gap

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'd0850a5c128a54acad3a690073e66239f24e1e05':
  icon_label支持gap
es6
guy 3 years ago
parent
commit
7e814a6adc
  1. 18
      src/base/single/label/icon.label.js

18
src/base/single/label/icon.label.js

@ -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]
});
}

Loading…
Cancel
Save