处理菜单
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
<template>
|
||||
<template v-for="menu in props.menuList" :key="menu.menu_id">
|
||||
<a-sub-menu
|
||||
class="mymenu"
|
||||
v-if="menu.menu_type== 1 && menu.children"
|
||||
:key="menu.path"
|
||||
>
|
||||
<template #icon>
|
||||
<component :is="menu.icon" v-if="menu.icon"/>
|
||||
</template>
|
||||
<template #title>{{ menu.menu_title }}</template>
|
||||
<template #title>
|
||||
<div v-if="menu.menu_title=='医生配置'" style="margin-left:-16px;">{{ menu.menu_title }}</div>
|
||||
<span v-else>{{ menu.menu_title }}</span>
|
||||
</template>
|
||||
<sub-menu :menuList="menu.children" />
|
||||
</a-sub-menu>
|
||||
<a-menu-item
|
||||
@@ -34,3 +38,8 @@ const isRouteParams = computed(() => {
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style scoped >
|
||||
.mymenu .arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon .arco-menu-title ::v-deep{
|
||||
overflow-x: auto!important;;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user