Browse Source

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

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

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

@ -12,7 +12,8 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
id: "",
pId: "",
open: false,
height: 24
height: 24,
collapseIconWidth: 16
});
},
_init: function () {
@ -43,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: 16,
width: o.collapseIconWidth,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

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

@ -20,7 +20,8 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
height: 24,
iconHeight: 12,
iconWidth: 12,
iconCls: ""
iconCls: "",
collapseIconWidth: 16
});
},
_init: function () {
@ -62,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: 16,
width: o.collapseIconWidth,
el: this.checkbox
}, {
width: 16,

Loading…
Cancel
Save