perf: refine style

This commit is contained in:
花裤衩 2020-06-11 13:54:34 +08:00
parent cd1229babf
commit 19d2f8e871
3 changed files with 15 additions and 6 deletions

View File

@ -31,3 +31,11 @@ export default {
} }
} }
</script> </script>
<style scoped>
.sub-el-icon {
color: currentColor;
width: 1em;
height: 1em;
}
</style>

View File

@ -204,7 +204,7 @@ export const asyncRoutes = [
path: 'create', path: 'create',
component: () => import('@/views/example/create'), component: () => import('@/views/example/create'),
name: 'CreateArticle', name: 'CreateArticle',
meta: { title: 'Create Article', icon: 'edit' } meta: { title: 'Create Article', icon: 'el-icon-s-help' }
}, },
{ {
path: 'edit/:id(\\d+)', path: 'edit/:id(\\d+)',

View File

@ -58,11 +58,8 @@
} }
.sub-el-icon { .sub-el-icon {
margin-right: 13px; margin-right: 12px;
margin-left: -1px; margin-left: -2px;
color: currentColor;
width: 1em;
height: 1em;
} }
.el-menu { .el-menu {
@ -194,6 +191,10 @@
.svg-icon { .svg-icon {
margin-right: 16px; margin-right: 16px;
} }
.sub-el-icon {
margin-right: 12px;
margin-left: -2px;
}
} }
.nest-menu .el-submenu>.el-submenu__title, .nest-menu .el-submenu>.el-submenu__title,