|
|
@ -9,6 +9,10 @@ Demo.West = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var selectedId = BI.Router.$router.currentRoute.params?.componentId; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
@ -60,7 +64,7 @@ Demo.West = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent(Demo.West.EVENT_VALUE_CHANGE, v); |
|
|
|
self.fireEvent(Demo.West.EVENT_VALUE_CHANGE, v); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
|
value: Demo.showIndex, |
|
|
|
value: selectedId || Demo.showIndex, |
|
|
|
items: Demo.CONFIG, |
|
|
|
items: Demo.CONFIG, |
|
|
|
ref: function (ref) { |
|
|
|
ref: function (ref) { |
|
|
|
self.tree = ref; |
|
|
|
self.tree = ref; |
|
|
|