From 3afe28652779777a3211126c8b6955677270b26a Mon Sep 17 00:00:00 2001 From: Young Date: Tue, 14 Apr 2020 11:16:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BI-62530=20refactor:=20arrowNode=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=8A=98=E5=8F=A0=E4=B8=89=E8=A7=92=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/node/node.arrow.js | 5 +++-- src/case/button/node/node.icon.arrow.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/case/button/node/node.arrow.js b/src/case/button/node/node.arrow.js index bc7b6d7e49..709fc7f625 100644 --- a/src/case/button/node/node.arrow.js +++ b/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({ diff --git a/src/case/button/node/node.icon.arrow.js b/src/case/button/node/node.icon.arrow.js index 62608d76fb..d05b333dad 100644 --- a/src/case/button/node/node.icon.arrow.js +++ b/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, From bbc0cafcc4c4c055b6fe64361b6a745819dfea24 Mon Sep 17 00:00:00 2001 From: Young Date: Tue, 14 Apr 2020 12:24:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BI-62530=20refactor:=20arrowNode=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=8A=98=E5=8F=A0=E4=B8=89=E8=A7=92=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/node/node.arrow.js | 4 ++-- src/case/button/node/node.icon.arrow.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/case/button/node/node.arrow.js b/src/case/button/node/node.arrow.js index 709fc7f625..3ac8b67314 100644 --- a/src/case/button/node/node.arrow.js +++ b/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({ diff --git a/src/case/button/node/node.icon.arrow.js b/src/case/button/node/node.icon.arrow.js index d05b333dad..157255bcf6 100644 --- a/src/case/button/node/node.icon.arrow.js +++ b/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,