Browse Source

Merge pull request #1298 in VISUAL/fineui from ~YOUNG/fineui:master to master

* commit 'bbc0cafcc4c4c055b6fe64361b6a745819dfea24':
  BI-62530 refactor: arrowNode中的折叠三角支持宽度属性
  BI-62530 refactor: arrowNode中的折叠三角支持宽度属性
master
Young 5 years ago
parent
commit
e75e673b22
  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: "", id: "",
pId: "", pId: "",
open: false, open: false,
height: 24 height: 24,
iconWrapperWidth: 16
}); });
}, },
_init: function () { _init: function () {
@ -43,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: 16, width: o.iconWrapperWidth,
el: this.checkbox el: this.checkbox
}, this.text); }, this.text);
BI.createWidget(BI.extend({ 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, height: 24,
iconHeight: 12, iconHeight: 12,
iconWidth: 12, iconWidth: 12,
iconCls: "" iconCls: "",
iconWrapperWidth: 16
}); });
}, },
_init: function () { _init: function () {
@ -62,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: 16, width: o.iconWrapperWidth,
el: this.checkbox el: this.checkbox
}, { }, {
width: 16, width: 16,

Loading…
Cancel
Save