From 0572011a85cd80f9d745693ea84c169f5c93f660 Mon Sep 17 00:00:00 2001 From: Treecat Date: Thu, 10 Nov 2022 16:42:31 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-13489=20fix:=20button=20=E7=9A=84?= =?UTF-8?q?=E7=BC=A9=E5=86=99=E6=94=B9=E6=88=90=E7=AE=AD=E5=A4=B4=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/buttons/button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index 2e7a75936..a06f23191 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -76,7 +76,7 @@ type: "bi.center_adapt", horizontalAlign: o.textAlign, element: this, - ref(ref) { + ref: (ref) => { self.containerRef = ref; }, hgap: o.hgap, @@ -167,7 +167,7 @@ tgap: o.iconPosition === "top" ? o.iconGap : 0, bgap: o.iconPosition === "bottom" ? o.iconGap : 0, }; - + var items = [this.icon, BI.extend({ el: this.text }, gapContainer)]; if (o.iconPosition === "right" || o.iconPosition === "bottom") { items.reverse();