From 5369429cf39fa7c0c0c7227645b7c0684c52eb88 Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Wed, 21 Oct 2020 15:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20feat:=20case?= =?UTF-8?q?=20=E9=87=8C=E9=9D=A2=E7=9A=84node=E5=85=A8=E9=83=BD=E5=8A=A0?= =?UTF-8?q?=E4=B8=8Akeyword=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 | 7 ++++--- src/case/button/node/node.icon.arrow.js | 5 +++-- src/case/button/node/node.multilayer.icon.arrow.js | 3 ++- src/case/button/treeitem/item.multilayer.icon.treeleaf.js | 1 + src/case/button/treeitem/item.treetextleaf.js | 5 +++-- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/case/button/node/node.arrow.js b/src/case/button/node/node.arrow.js index 3ac8b6731..38fe40ffb 100644 --- a/src/case/button/node/node.arrow.js +++ b/src/case/button/node/node.arrow.js @@ -32,7 +32,8 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, { hgap: o.hgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { @@ -66,7 +67,7 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, { BI.ArrowNode.superclass.doClick.apply(this, arguments); this.checkbox.setSelected(this.isOpened()); }, - + setText: function (text) { BI.ArrowNode.superclass.setText.apply(this, arguments); this.text.setText(text); @@ -78,4 +79,4 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, { } }); -BI.shortcut("bi.arrow_group_node", BI.ArrowNode); \ No newline at end of file +BI.shortcut("bi.arrow_group_node", BI.ArrowNode); diff --git a/src/case/button/node/node.icon.arrow.js b/src/case/button/node/node.icon.arrow.js index 157255bcf..1cfa52925 100644 --- a/src/case/button/node/node.icon.arrow.js +++ b/src/case/button/node/node.icon.arrow.js @@ -50,7 +50,8 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, { hgap: o.hgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { if (type === BI.Events.CLICK) { @@ -98,4 +99,4 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, { } }); -BI.shortcut("bi.icon_arrow_node", BI.IconArrowNode); \ No newline at end of file +BI.shortcut("bi.icon_arrow_node", BI.IconArrowNode); diff --git a/src/case/button/node/node.multilayer.icon.arrow.js b/src/case/button/node/node.multilayer.icon.arrow.js index a6e1ddfa4..ffa9c50ea 100644 --- a/src/case/button/node/node.multilayer.icon.arrow.js +++ b/src/case/button/node/node.multilayer.icon.arrow.js @@ -29,7 +29,8 @@ BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, { hgap: o.hgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); this.node.on(BI.Controller.EVENT_CHANGE, function (type) { self.setSelected(self.isSelected()); diff --git a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js index f5f581473..363a348c0 100644 --- a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js +++ b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js @@ -28,6 +28,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, { text: o.text, value: o.value, py: o.py, + keyword: o.keyword, iconWidth: o.iconWidth, iconHeight: o.iconHeight }); diff --git a/src/case/button/treeitem/item.treetextleaf.js b/src/case/button/treeitem/item.treetextleaf.js index d2e2cf9d0..872663fd0 100644 --- a/src/case/button/treeitem/item.treetextleaf.js +++ b/src/case/button/treeitem/item.treetextleaf.js @@ -30,7 +30,8 @@ BI.TreeTextLeafItem = BI.inherit(BI.BasicButton, { rgap: o.hgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); BI.createWidget({ type: "bi.htape", @@ -66,4 +67,4 @@ BI.TreeTextLeafItem = BI.inherit(BI.BasicButton, { } }); -BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem); \ No newline at end of file +BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem);