Browse Source

无JIRA icon_text_item 增加一个iconCls props

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

4
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);
BI.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem);

4
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);
BI.shortcut("bi.icon_text_item", BI.IconTextItem);

4
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);
BI.shortcut("bi.text_icon_item", BI.TextIconItem);

Loading…
Cancel
Save