Browse Source

update

master
guy 3 years ago
parent
commit
f5f9ae0682
  1. 4
      demo/js/center.js
  2. 6
      demo/js/main.js
  3. 1
      demo/js/main.store.js

4
demo/js/center.js

@ -7,10 +7,6 @@ Demo.Center = BI.inherit(BI.Widget, {
return {
type: "bi.router_view"
}
},
setValue: function (v) {
// this.tab.setSelect(v);
}
});
BI.shortcut("demo.center", Demo.Center);

6
demo/js/main.js

@ -7,12 +7,6 @@ Demo.Main = BI.inherit(BI.Widget, {
return BI.Stores.getStore("demo.store.main");
},
watch: {
activeCard: function (v) {
this.center.setValue(v);
}
},
beforeInit: function (cb) {
this.store.init(cb);
},

1
demo/js/main.store.js

@ -42,7 +42,6 @@
},
handleTreeSelectChange: function (v) {
this.model.activeCard = v;
var matched = BI.some(Demo.CONFIG, function (index, item) {
if (item.value === v) {
BI.router.push(item.text);

Loading…
Cancel
Save