From 0e196899d4c83122fd9f53874b821c5425b80aac Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 13 Mar 2022 16:17:40 +0800 Subject: [PATCH] =?UTF-8?q?icon=5Fbutton=E6=94=AF=E6=8C=81gap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/buttons/button.icon.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/base/single/button/buttons/button.icon.js b/src/base/single/button/buttons/button.icon.js index 5eb104e6d..3def60551 100644 --- a/src/base/single/button/buttons/button.icon.js +++ b/src/base/single/button/buttons/button.icon.js @@ -8,6 +8,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { var conf = BI.IconButton.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { _baseCls: (conf._baseCls || "") + " bi-icon-button horizon-center", + hgap: 0, + vgap: 0, + tgap: 0, + bgap: 0, + lgap: 0, + rgap: 0, iconWidth: null, iconHeight: null }); @@ -28,6 +34,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { 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 { @@ -35,6 +47,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { 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] }); }