Browse Source

Merge pull request #526 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit 'c4151367831410dde959769696e9a10d4413292d':
  BI-27584 center_adapt替换
es6
imp 6 years ago
parent
commit
411802058d
  1. 4
      demo/js/case/combo/demo.icon_text_value_combo.js
  2. 66
      dist/_fineui.min.js
  3. 122
      dist/base.js
  4. 137
      dist/bundle.js
  5. 67
      dist/bundle.min.js
  6. 15
      dist/case.js
  7. 4
      dist/demo.js
  8. 137
      dist/fineui.js
  9. 66
      dist/fineui.min.js
  10. 22
      src/base/single/button/listitem/blankicontexticonitem.js
  11. 11
      src/base/single/button/listitem/blankicontextitem.js
  12. 23
      src/base/single/button/listitem/icontexticonitem.js
  13. 11
      src/base/single/button/listitem/icontextitem.js
  14. 11
      src/base/single/button/listitem/texticonitem.js
  15. 22
      src/base/single/button/node/icontexticonnode.js
  16. 11
      src/base/single/button/node/icontextnode.js
  17. 11
      src/base/single/button/node/texticonnode.js
  18. 4
      src/case/button/node/node.arrow.js
  19. 11
      src/case/button/node/node.icon.arrow.js

4
demo/js/case/combo/demo.icon_text_value_combo.js

@ -14,11 +14,9 @@ Demo.IconTextValueCombo = BI.inherit(BI.Widget, {
text: "默认值",
// defaultIconCls: "next-page-h-font",
width: 300,
iconHeight: 16,
iconWidth: 16,
items: [{
text: "MVC-1",
iconCls: "check-box-icon",
iconCls: "close-font",
value: 1
}, {
text: "MVC-2",

66
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

122
dist/base.js vendored

@ -17115,34 +17115,24 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -17252,16 +17242,11 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -17357,17 +17342,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -17378,16 +17358,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
height: o.height,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -17486,16 +17462,11 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -17590,16 +17561,11 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -17778,17 +17744,12 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -17800,16 +17761,11 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -17899,16 +17855,11 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -17992,16 +17943,11 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

137
dist/bundle.js vendored

@ -52922,34 +52922,24 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53059,16 +53049,11 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53164,17 +53149,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -53185,16 +53165,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
height: o.height,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53293,16 +53269,11 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53397,16 +53368,11 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53585,17 +53551,12 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -53607,16 +53568,11 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53706,16 +53662,11 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53799,16 +53750,11 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -73030,9 +72976,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options;
BI.ArrowNode.superclass._init.apply(this, arguments);
this.checkbox = BI.createWidget({
type: "bi.arrow_group_node_checkbox",
iconWidth: 12,
iconHeight: 12
type: "bi.arrow_group_node_checkbox"
});
this.text = BI.createWidget({
@ -73206,14 +73150,11 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
});
var icon = BI.createWidget({
type: "bi.center_adapt",
cls: o.iconCls,
type: "bi.icon_label",
width: 24,
items: [{
type: "bi.icon",
height: o.iconHeight,
width: o.iconWidth
}]
cls: o.iconCls,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.text = BI.createWidget({

67
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/case.js vendored

@ -421,9 +421,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options;
BI.ArrowNode.superclass._init.apply(this, arguments);
this.checkbox = BI.createWidget({
type: "bi.arrow_group_node_checkbox",
iconWidth: 12,
iconHeight: 12
type: "bi.arrow_group_node_checkbox"
});
this.text = BI.createWidget({
@ -597,14 +595,11 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
});
var icon = BI.createWidget({
type: "bi.center_adapt",
cls: o.iconCls,
type: "bi.icon_label",
width: 24,
items: [{
type: "bi.icon",
height: o.iconHeight,
width: o.iconWidth
}]
cls: o.iconCls,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.text = BI.createWidget({

4
dist/demo.js vendored

@ -2050,11 +2050,9 @@ Demo.IconTextValueCombo = BI.inherit(BI.Widget, {
text: "默认值",
// defaultIconCls: "next-page-h-font",
width: 300,
iconHeight: 16,
iconWidth: 16,
items: [{
text: "MVC-1",
iconCls: "check-box-icon",
iconCls: "close-font",
value: 1
}, {
text: "MVC-2",

137
dist/fineui.js vendored

@ -53171,34 +53171,24 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53308,16 +53298,11 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53413,17 +53398,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -53434,16 +53414,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
height: o.height,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53542,16 +53518,11 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53646,16 +53617,11 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -53834,17 +53800,12 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -53856,16 +53817,11 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,
@ -53955,16 +53911,11 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -54048,16 +53999,11 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({
@ -73279,9 +73225,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options;
BI.ArrowNode.superclass._init.apply(this, arguments);
this.checkbox = BI.createWidget({
type: "bi.arrow_group_node_checkbox",
iconWidth: 12,
iconHeight: 12
type: "bi.arrow_group_node_checkbox"
});
this.text = BI.createWidget({
@ -73455,14 +73399,11 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
});
var icon = BI.createWidget({
type: "bi.center_adapt",
cls: o.iconCls,
type: "bi.icon_label",
width: 24,
items: [{
type: "bi.icon",
height: o.iconHeight,
width: o.iconWidth
}]
cls: o.iconCls,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.text = BI.createWidget({

66
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

22
src/base/single/button/listitem/blankicontexticonitem.js

@ -43,34 +43,24 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,

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

@ -45,16 +45,11 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

23
src/base/single/button/listitem/icontexticonitem.js

@ -42,17 +42,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -63,16 +58,12 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
height: o.height,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,

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

@ -40,16 +40,11 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

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

@ -41,16 +41,11 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

22
src/base/single/button/node/icontexticonnode.js

@ -40,17 +40,12 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
});
var icon1 = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls1,
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
var blank = BI.createWidget({
type: "bi.layout",
@ -62,16 +57,11 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
element: this,
items: [{
el: {
type: "bi.center_adapt",
type: "bi.icon_label",
cls: o.iconCls2,
width: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
},
top: 0,
bottom: 0,

11
src/base/single/button/node/icontextnode.js

@ -39,16 +39,11 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

11
src/base/single/button/node/texticonnode.js

@ -38,16 +38,11 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
height: o.height
});
this.icon = BI.createWidget({
type: "bi.center_adapt",
type: "bi.icon_label",
width: o.height,
height: o.height,
items: [{
el: {
type: "bi.icon",
width: o.iconWidth,
height: o.iconHeight
}
}]
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
BI.createWidget(BI.extend({

4
src/case/button/node/node.arrow.js

@ -19,9 +19,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var self = this, o = this.options;
BI.ArrowNode.superclass._init.apply(this, arguments);
this.checkbox = BI.createWidget({
type: "bi.arrow_group_node_checkbox",
iconWidth: 12,
iconHeight: 12
type: "bi.arrow_group_node_checkbox"
});
this.text = BI.createWidget({

11
src/case/button/node/node.icon.arrow.js

@ -33,14 +33,11 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
});
var icon = BI.createWidget({
type: "bi.center_adapt",
cls: o.iconCls,
type: "bi.icon_label",
width: 24,
items: [{
type: "bi.icon",
height: o.iconHeight,
width: o.iconWidth
}]
cls: o.iconCls,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.text = BI.createWidget({

Loading…
Cancel
Save