From f5f9ae06822dbdb122c4a6ccd59bdae2761f785b Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 27 Jun 2021 23:23:11 +0800 Subject: [PATCH] update --- demo/js/center.js | 4 ---- demo/js/main.js | 6 ------ demo/js/main.store.js | 1 - 3 files changed, 11 deletions(-) diff --git a/demo/js/center.js b/demo/js/center.js index e379cdddc..ca9930550 100644 --- a/demo/js/center.js +++ b/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); \ No newline at end of file diff --git a/demo/js/main.js b/demo/js/main.js index 0fa50a657..ab57470d5 100644 --- a/demo/js/main.js +++ b/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); }, diff --git a/demo/js/main.store.js b/demo/js/main.store.js index 26ca4b16d..3efd92eee 100644 --- a/demo/js/main.store.js +++ b/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);