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