Browse Source

无JIRA任务 feat: case 里面的node全都加上keyword属性

es6
zsmj1994 4 years ago
parent
commit
5369429cf3
  1. 7
      src/case/button/node/node.arrow.js
  2. 5
      src/case/button/node/node.icon.arrow.js
  3. 3
      src/case/button/node/node.multilayer.icon.arrow.js
  4. 1
      src/case/button/treeitem/item.multilayer.icon.treeleaf.js
  5. 5
      src/case/button/treeitem/item.treetextleaf.js

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

@ -32,7 +32,8 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
hgap: o.hgap, hgap: o.hgap,
text: o.text, text: o.text,
value: o.value, value: o.value,
py: o.py py: o.py,
keyword: o.keyword
}); });
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { 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); BI.ArrowNode.superclass.doClick.apply(this, arguments);
this.checkbox.setSelected(this.isOpened()); this.checkbox.setSelected(this.isOpened());
}, },
setText: function (text) { setText: function (text) {
BI.ArrowNode.superclass.setText.apply(this, arguments); BI.ArrowNode.superclass.setText.apply(this, arguments);
this.text.setText(text); this.text.setText(text);
@ -78,4 +79,4 @@ BI.ArrowNode = BI.inherit(BI.NodeButton, {
} }
}); });
BI.shortcut("bi.arrow_group_node", BI.ArrowNode); BI.shortcut("bi.arrow_group_node", BI.ArrowNode);

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

@ -50,7 +50,8 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
hgap: o.hgap, hgap: o.hgap,
text: o.text, text: o.text,
value: o.value, value: o.value,
py: o.py py: o.py,
keyword: o.keyword
}); });
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
@ -98,4 +99,4 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
} }
}); });
BI.shortcut("bi.icon_arrow_node", BI.IconArrowNode); BI.shortcut("bi.icon_arrow_node", BI.IconArrowNode);

3
src/case/button/node/node.multilayer.icon.arrow.js

@ -29,7 +29,8 @@ BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, {
hgap: o.hgap, hgap: o.hgap,
text: o.text, text: o.text,
value: o.value, value: o.value,
py: o.py py: o.py,
keyword: o.keyword
}); });
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { this.node.on(BI.Controller.EVENT_CHANGE, function (type) {
self.setSelected(self.isSelected()); self.setSelected(self.isSelected());

1
src/case/button/treeitem/item.multilayer.icon.treeleaf.js

@ -28,6 +28,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, {
text: o.text, text: o.text,
value: o.value, value: o.value,
py: o.py, py: o.py,
keyword: o.keyword,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,
iconHeight: o.iconHeight iconHeight: o.iconHeight
}); });

5
src/case/button/treeitem/item.treetextleaf.js

@ -30,7 +30,8 @@ BI.TreeTextLeafItem = BI.inherit(BI.BasicButton, {
rgap: o.hgap, rgap: o.hgap,
text: o.text, text: o.text,
value: o.value, value: o.value,
py: o.py py: o.py,
keyword: o.keyword
}); });
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",
@ -66,4 +67,4 @@ BI.TreeTextLeafItem = BI.inherit(BI.BasicButton, {
} }
}); });
BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem); BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem);

Loading…
Cancel
Save