Skip to content

Commit 19d2f8e

Browse files
committed
perf: refine style
1 parent cd1229b commit 19d2f8e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

src/layout/components/Sidebar/Item.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ export default {
3131
}
3232
}
3333
</script>
34+
35+
<style scoped>
36+
.sub-el-icon {
37+
color: currentColor;
38+
width: 1em;
39+
height: 1em;
40+
}
41+
</style>

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const asyncRoutes = [
204204
path: 'create',
205205
component: () => import('@/views/example/create'),
206206
name: 'CreateArticle',
207-
meta: { title: 'Create Article', icon: 'edit' }
207+
meta: { title: 'Create Article', icon: 'el-icon-s-help' }
208208
},
209209
{
210210
path: 'edit/:id(\\d+)',

src/styles/sidebar.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@
5858
}
5959

6060
.sub-el-icon {
61-
margin-right: 13px;
62-
margin-left: -1px;
63-
color: currentColor;
64-
width: 1em;
65-
height: 1em;
61+
margin-right: 12px;
62+
margin-left: -2px;
6663
}
6764

6865
.el-menu {
@@ -194,6 +191,10 @@
194191
.svg-icon {
195192
margin-right: 16px;
196193
}
194+
.sub-el-icon {
195+
margin-right: 12px;
196+
margin-left: -2px;
197+
}
197198
}
198199

199200
.nest-menu .el-submenu>.el-submenu__title,

0 commit comments

Comments
 (0)