From 77a952f704fb5e1a40625292333bc6277816471c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 28 Jun 2019 16:47:03 +0800 Subject: [PATCH] =?UTF-8?q?button=E5=8F=AF=E9=85=8Dicon=E5=AE=BD=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/buttons/button.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index a76540c21..b3f6cf075 100644 --- a/src/base/single/button/buttons/button.js +++ b/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,