From 144bf3c1da2de60d20d23f04fd53cc4968659bf1 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 13 Mar 2022 16:04:54 +0800 Subject: [PATCH] =?UTF-8?q?icon=5Flabel=E6=94=AF=E6=8C=81gap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/label/icon.label.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/base/single/label/icon.label.js b/src/base/single/label/icon.label.js index 6575564b1..b5779c3e5 100644 --- a/src/base/single/label/icon.label.js +++ b/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] }); }