Commit e3b4c0ce by 姜雷

调整菜单显示图标

parent b3e2d4a7
......@@ -31,7 +31,7 @@ export const routerMap = [
path: '/DatePicker',
name: 'DatePicker',
component: () => import('./containers/DatePicker.vue'),
meta: { title: '时间选择' },
meta: { title: '时间选择', icon: layoutIcon },
},
{
path: '/layout',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "rym-element-ui",
"version": "0.1.40",
"version": "0.1.41",
"description": "任意门组件库",
"main": "lib/rymUi.common.js",
"scripts": {
......
......@@ -152,6 +152,8 @@ export default {
font-size: 12px;
}
.el-menu-item {
display: flex;
align-items: center;
color: #fff !important;
text-align: left;
&:hover {
......
......@@ -30,10 +30,6 @@
:key="child.name"
>
<el-menu-item :index="child.path">
<!-- <svg-icon
v-if="child.meta&&child.meta.icon"
:icon-class="child.meta.icon"
></svg-icon> -->
<span v-if="child.meta&&child.meta.title">{{child.meta.title}}</span>
<span class="menu-arrow"></span>
</el-menu-item>
......@@ -47,6 +43,10 @@
:to="item.path"
>
<el-menu-item :index="item.path">
<img-icon
v-if="item.meta&&item.meta.icon"
:iconName="item.meta.icon"
></img-icon>
<span v-if="item.meta&&item.meta.title">{{item.meta.title}}</span>
<span class="menu-arrow"></span>
</el-menu-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment