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: "",
open: false,
height: 24,
collapseIconWidth: 16
iconWrapperWidth: 16
});
},
_init: function () {
@ -44,7 +44,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: o.collapseIconWidth,
width: o.iconWrapperWidth,
el: this.checkbox
}, this.text);
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,
iconWidth: 12,
iconCls: "",
collapseIconWidth: 16
iconWrapperWidth: 16
});
},
_init: function () {
@ -63,7 +63,7 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: o.collapseIconWidth,
width: o.iconWrapperWidth,
el: this.checkbox
}, {
width: 16,

Loading…
Cancel
Save