Browse Source

无JIRA icon_text_item 增加一个iconCls props

es6
dailer 3 years ago
parent
commit
f69a282016
  1. 2
      src/base/single/button/listitem/blankicontextitem.js
  2. 2
      src/base/single/button/listitem/icontextitem.js
  3. 2
      src/base/single/button/listitem/texticonitem.js

2
src/base/single/button/listitem/blankicontextitem.js

@ -18,6 +18,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
blankWidth: 0, blankWidth: 0,
iconHeight: null, iconHeight: null,
iconWidth: null, iconWidth: null,
iconCls: "",
textHgap: 0, textHgap: 0,
textVgap: 0, textVgap: 0,
textLgap: 0, textLgap: 0,
@ -46,6 +47,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
}); });
this.icon = BI.createWidget({ this.icon = BI.createWidget({
type: "bi.icon_label", type: "bi.icon_label",
cls: o.iconCls,
width: o.height, width: o.height,
height: o.height, height: o.height,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,

2
src/base/single/button/listitem/icontextitem.js

@ -18,6 +18,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
iconWrapperWidth: null, iconWrapperWidth: null,
iconHeight: null, iconHeight: null,
iconWidth: null, iconWidth: null,
iconCls: "",
textHgap: 0, textHgap: 0,
textVgap: 0, textVgap: 0,
textLgap: 0, textLgap: 0,
@ -42,6 +43,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
}); });
this.icon = BI.createWidget({ this.icon = BI.createWidget({
type: "bi.icon_label", type: "bi.icon_label",
cls: o.iconCls,
width: o.iconWrapperWidth || o.height, width: o.iconWrapperWidth || o.height,
height: o.height, height: o.height,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,

2
src/base/single/button/listitem/texticonitem.js

@ -18,6 +18,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
cls: "close-ha-font", cls: "close-ha-font",
iconHeight: null, iconHeight: null,
iconWidth: null, iconWidth: null,
iconCls: "",
textHgap: 0, textHgap: 0,
textVgap: 0, textVgap: 0,
textLgap: 0, textLgap: 0,
@ -42,6 +43,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
}); });
this.icon = BI.createWidget({ this.icon = BI.createWidget({
type: "bi.icon_label", type: "bi.icon_label",
cls: o.iconCls,
width: o.height, width: o.height,
height: o.height, height: o.height,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,

Loading…
Cancel
Save