From cd1229babfcbbefb40896f4d0047e81fbc5a1f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Thu, 11 Jun 2020 13:47:35 +0800 Subject: [PATCH] refacor: change --- src/components/ElIcon/index.vue | 39 ------------------- src/icons/index.js | 2 - src/layout/components/Sidebar/Item.vue | 18 +++------ src/layout/components/Sidebar/SidebarItem.vue | 4 +- src/router/index.js | 4 +- src/styles/sidebar.scss | 3 ++ 6 files changed, 13 insertions(+), 57 deletions(-) delete mode 100644 src/components/ElIcon/index.vue diff --git a/src/components/ElIcon/index.vue b/src/components/ElIcon/index.vue deleted file mode 100644 index cc67a306..00000000 --- a/src/components/ElIcon/index.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - - diff --git a/src/icons/index.js b/src/icons/index.js index 3ea4bb40..2c6b309c 100644 --- a/src/icons/index.js +++ b/src/icons/index.js @@ -1,10 +1,8 @@ import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg component -import ElIcon from '@/components/ElIcon' // register globally Vue.component('svg-icon', SvgIcon) -Vue.component('el-icon', ElIcon) const req = require.context('./svg', false, /\.svg$/) const requireAll = requireContext => requireContext.keys().map(requireContext) diff --git a/src/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 9302d919..72d7e768 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -1,6 +1,4 @@