Browse Source

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

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '2ac9450dacccc9d65cb3847ea2aa3c6c520a9cb8':
  无JIRA任务 feat: case 里面的node全都加上keyword属性
master
parent
commit
9c335cfe18
  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,
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);
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,
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);
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,
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());

1
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
});

5
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);
BI.shortcut("bi.tree_text_leaf_item", BI.TreeTextLeafItem);

Loading…
Cancel
Save