Browse Source

BI-62530 refactor: arrowNode中的折叠三角支持宽度属性

es6
Young 5 years ago
parent
commit
bbc0cafcc4
  1. 4
      src/case/button/node/node.arrow.js
  2. 4
      src/case/button/node/node.icon.arrow.js

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

@ -13,7 +13,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
pId: "", pId: "",
open: false, open: false,
height: 24, height: 24,
collapseIconWidth: 16 iconWrapperWidth: 16
}); });
}, },
_init: function () { _init: function () {
@ -44,7 +44,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left); var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: o.collapseIconWidth, width: o.iconWrapperWidth,
el: this.checkbox el: this.checkbox
}, this.text); }, this.text);
BI.createWidget(BI.extend({ BI.createWidget(BI.extend({

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

@ -21,7 +21,7 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
iconHeight: 12, iconHeight: 12,
iconWidth: 12, iconWidth: 12,
iconCls: "", iconCls: "",
collapseIconWidth: 16 iconWrapperWidth: 16
}); });
}, },
_init: function () { _init: function () {
@ -63,7 +63,7 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
}); });
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left); var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: o.collapseIconWidth, width: o.iconWrapperWidth,
el: this.checkbox el: this.checkbox
}, { }, {
width: 16, width: 16,

Loading…
Cancel
Save