|
|
@ -6,6 +6,7 @@ |
|
|
|
layer: 0, // 第几层级
|
|
|
|
layer: 0, // 第几层级
|
|
|
|
el: {}, |
|
|
|
el: {}, |
|
|
|
isLastNode: false, |
|
|
|
isLastNode: false, |
|
|
|
|
|
|
|
showLine: true, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -22,12 +23,15 @@ |
|
|
|
this.popupView.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.popupView.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popupView.element.css("margin-left", -offset * (o.layer + 1)); |
|
|
|
|
|
|
|
this.element.css("margin-left", offset * (o.layer + 1)); |
|
|
|
if (o.showLine) { |
|
|
|
|
|
|
|
this.popupView.element.css("margin-left", -offset * (o.layer + 1)); |
|
|
|
|
|
|
|
this.element.css("margin-left", offset * (o.layer + 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
cls: !o.isLastNode ? (BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "line solid" : "line") : "", |
|
|
|
cls: (o.showLine && !o.isLastNode) ? (BI.STYLE_CONSTANTS.LINK_LINE_TYPE === "solid" ? "line solid" : "line") : "", |
|
|
|
scrolly: null, |
|
|
|
scrolly: null, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
this.popupView, |
|
|
|
this.popupView, |
|
|
|