From d7172e89225067c9e9123ee4ef571b1f07f7460f Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 14 Mar 2022 22:36:45 +0800 Subject: [PATCH] chore: bugfix --- src/case/trigger/trigger.icon.text.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/case/trigger/trigger.icon.text.js b/src/case/trigger/trigger.icon.text.js index 65652b8e4..86d70d789 100644 --- a/src/case/trigger/trigger.icon.text.js +++ b/src/case/trigger/trigger.icon.text.js @@ -48,6 +48,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, { BI.createWidget({ element: this, type: "bi.horizontal_fill", + columnSize: [BI.isEmptyString(o.iconCls) ? 0 : (o.iconWrapperWidth || o.height), "fill", o.triggerWidth || o.height], ref: function (_ref) { self.wrapper = _ref; }, @@ -62,18 +63,13 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, { iconHeight: o.iconHeight, iconWidth: o.iconWidth, disableSelected: true - }, - width: BI.isEmptyString(o.iconCls) ? 0 : (o.iconWrapperWidth || o.height) - }, - { - el: this.text, - lgap: BI.isEmptyString(o.iconCls) ? 5 : 0, - width: "fill" - }, { - el: this.trigerButton, - width: o.triggerWidth || o.height } - ] + }, { + el: this.text, + lgap: BI.isEmptyString(o.iconCls) ? 5 : 0 + }, { + el: this.trigerButton + }] }); },