|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
layer: 0, // 第几层级
|
|
|
|
|
el: {}, |
|
|
|
|
isLastNode: false, |
|
|
|
|
showLine: true, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -22,12 +23,15 @@
|
|
|
|
|
this.popupView.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
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 { |
|
|
|
|
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, |
|
|
|
|
items: [ |
|
|
|
|
this.popupView, |
|
|
|
|