diff --git a/src/components/ElIcon/index.vue b/src/components/ElIcon/index.vue new file mode 100644 index 00000000..cc67a306 --- /dev/null +++ b/src/components/ElIcon/index.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/icons/index.js b/src/icons/index.js index 2c6b309c..3ea4bb40 100644 --- a/src/icons/index.js +++ b/src/icons/index.js @@ -1,8 +1,10 @@ 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 b515f615..9302d919 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -1,4 +1,6 @@