From f69a2820165667e2ee04ba58cda5bbf3f2d54c03 Mon Sep 17 00:00:00 2001 From: dailer Date: Tue, 27 Jul 2021 14:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20icon=5Ftext=5Fitem=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AAiconCls=20props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/button/listitem/blankicontextitem.js | 4 +++- src/base/single/button/listitem/icontextitem.js | 4 +++- src/base/single/button/listitem/texticonitem.js | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/base/single/button/listitem/blankicontextitem.js b/src/base/single/button/listitem/blankicontextitem.js index d57764e29..e9f492566 100644 --- a/src/base/single/button/listitem/blankicontextitem.js +++ b/src/base/single/button/listitem/blankicontextitem.js @@ -18,6 +18,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, { blankWidth: 0, iconHeight: null, iconWidth: null, + iconCls: "", textHgap: 0, textVgap: 0, textLgap: 0, @@ -46,6 +47,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, { }); this.icon = BI.createWidget({ type: "bi.icon_label", + cls: o.iconCls, width: o.height, height: o.height, iconWidth: o.iconWidth, @@ -101,4 +103,4 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, { } }); BI.BlankIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem); \ No newline at end of file +BI.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem); diff --git a/src/base/single/button/listitem/icontextitem.js b/src/base/single/button/listitem/icontextitem.js index e9bb02b21..a6c7b596d 100644 --- a/src/base/single/button/listitem/icontextitem.js +++ b/src/base/single/button/listitem/icontextitem.js @@ -18,6 +18,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, { iconWrapperWidth: null, iconHeight: null, iconWidth: null, + iconCls: "", textHgap: 0, textVgap: 0, textLgap: 0, @@ -42,6 +43,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, { }); this.icon = BI.createWidget({ type: "bi.icon_label", + cls: o.iconCls, width: o.iconWrapperWidth || o.height, height: o.height, iconWidth: o.iconWidth, @@ -97,4 +99,4 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, { } }); BI.IconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.icon_text_item", BI.IconTextItem); \ No newline at end of file +BI.shortcut("bi.icon_text_item", BI.IconTextItem); diff --git a/src/base/single/button/listitem/texticonitem.js b/src/base/single/button/listitem/texticonitem.js index cb6560583..e015b44a6 100644 --- a/src/base/single/button/listitem/texticonitem.js +++ b/src/base/single/button/listitem/texticonitem.js @@ -18,6 +18,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, { cls: "close-ha-font", iconHeight: null, iconWidth: null, + iconCls: "", textHgap: 0, textVgap: 0, textLgap: 0, @@ -42,6 +43,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, { }); this.icon = BI.createWidget({ type: "bi.icon_label", + cls: o.iconCls, width: o.height, height: o.height, iconWidth: o.iconWidth, @@ -97,4 +99,4 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, { } }); BI.TextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.text_icon_item", BI.TextIconItem); \ No newline at end of file +BI.shortcut("bi.text_icon_item", BI.TextIconItem);