|
|
|
@ -18,32 +18,7 @@ BI.MultiLayerSingleTreePlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.MultiLayerSingleTreePlusGroupNode.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (o.isLastNode && !o.pNode) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.node = BI.createWidget({ |
|
|
|
|
type: "bi.plus_group_node", |
|
|
|
|
cls: "bi-list-item-none", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
open: o.open, |
|
|
|
|
isLastNode: o.isLastNode, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
this.node = this._createNode(); |
|
|
|
|
|
|
|
|
|
var needBlankLayers = []; |
|
|
|
|
var pNode = o.pNode; |
|
|
|
@ -90,6 +65,37 @@ BI.MultiLayerSingleTreePlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
if (BI.isNotNull(this.node)) { |
|
|
|
|
this.node.setOpened(v); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createNode: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
return BI.createWidget({ |
|
|
|
|
type: "bi.plus_group_node", |
|
|
|
|
cls: "bi-list-item-none", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
open: o.open, |
|
|
|
|
isLastNode: o.isLastNode, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Controller.EVENT_CHANGE, |
|
|
|
|
action: function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|