From c04c937ea8b4b79e10b467afac09ed30e5355ce0 Mon Sep 17 00:00:00 2001 From: Guyi Date: Mon, 23 Aug 2021 10:24:10 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-8279=20refactor=EF=BC=9ARouterWidget?= =?UTF-8?q?=E6=94=B9=E6=88=90BI.RouterWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/router.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/router.js b/dist/router.js index c0e0469a6..c1addf567 100644 --- a/dist/router.js +++ b/dist/router.js @@ -3123,7 +3123,7 @@ var $router, cbs = []; - var RouterWidget = BI.inherit(BI.Widget, { + BI.RouterWidget = BI.inherit(BI.Widget, { init: function () { this.$router = this._router = BI.Router.$router = $router = new VueRouter({ routes: this.options.routes @@ -3143,9 +3143,9 @@ this.$router.init(this); } }); - BI.shortcut("bi.router", RouterWidget); + BI.shortcut("bi.router", BI.RouterWidget); - var RouterView = BI.inherit(BI.Widget, { + BI.RouterView = BI.inherit(BI.Widget, { props: { deps: 0 }, @@ -3176,7 +3176,7 @@ BI.remove(cbs, this._callbackListener); } }); - BI.shortcut("bi.router_view", RouterView); + BI.shortcut("bi.router_view", BI.RouterView); BI.Router = BI.Router || VueRouter; BI.Router.isSameRoute = isSameRoute;