|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
<template> |
|
|
|
|
<div :class="`${prefixCls}-dom`" :style="getDomStyle"></div> |
|
|
|
|
<div :class="`${prefixCls}-dom`" :style="getDomStyle"/> |
|
|
|
|
<div |
|
|
|
|
v-click-outside="handleClickOutside" |
|
|
|
|
:style="getWrapStyle" |
|
|
|
@ -13,24 +13,24 @@
@@ -13,24 +13,24 @@
|
|
|
|
|
]" |
|
|
|
|
v-bind="getMenuEvents" |
|
|
|
|
> |
|
|
|
|
<AppLogo :showTitle="false" :class="`${prefixCls}-logo`" /> |
|
|
|
|
<AppLogo :showTitle="false" :class="`${prefixCls}-logo`"/> |
|
|
|
|
|
|
|
|
|
<LayoutTrigger :class="`${prefixCls}-trigger`" /> |
|
|
|
|
<LayoutTrigger :class="`${prefixCls}-trigger`"/> |
|
|
|
|
|
|
|
|
|
<ScrollContainer> |
|
|
|
|
<ul :class="`${prefixCls}-module`"> |
|
|
|
|
<li |
|
|
|
|
v-for="item in menuModules" |
|
|
|
|
v-bind="getItemEvents(item)" |
|
|
|
|
:key="item.path" |
|
|
|
|
:class="[ |
|
|
|
|
`${prefixCls}-module__item `, |
|
|
|
|
{ |
|
|
|
|
[`${prefixCls}-module__item--active`]: item.path === activePath, |
|
|
|
|
}, |
|
|
|
|
]" |
|
|
|
|
v-bind="getItemEvents(item)" |
|
|
|
|
v-for="item in menuModules" |
|
|
|
|
:key="item.path" |
|
|
|
|
> |
|
|
|
|
<SimpleMenuTag :item="item" collapseParent dot /> |
|
|
|
|
<SimpleMenuTag :item="item" collapseParent dot/> |
|
|
|
|
<Icon |
|
|
|
|
:class="`${prefixCls}-module__icon`" |
|
|
|
|
:size="getCollapsed ? 16 : 20" |
|
|
|
@ -43,7 +43,7 @@
@@ -43,7 +43,7 @@
|
|
|
|
|
</ul> |
|
|
|
|
</ScrollContainer> |
|
|
|
|
|
|
|
|
|
<div :class="`${prefixCls}-menu-list`" ref="sideRef" :style="getMenuStyle"> |
|
|
|
|
<div ref="sideRef" :class="`${prefixCls}-menu-list`" :style="getMenuStyle"> |
|
|
|
|
<div |
|
|
|
|
v-show="openMenu" |
|
|
|
|
:class="[ |
|
|
|
@ -71,9 +71,9 @@
@@ -71,9 +71,9 @@
|
|
|
|
|
</ScrollContainer> |
|
|
|
|
<div |
|
|
|
|
v-show="getShowDragBar && openMenu" |
|
|
|
|
:class="`${prefixCls}-drag-bar`" |
|
|
|
|
ref="dragBarRef" |
|
|
|
|
></div> |
|
|
|
|
:class="`${prefixCls}-drag-bar`" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|