imatrix-ui 2.8.97-dw-tmp10 → 2.8.97-dw-tmp12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
</div>)
|
|
53
53
|
} else {
|
|
54
54
|
// 有子菜单时
|
|
55
|
-
vnodes.push(<div slot
|
|
55
|
+
vnodes.push(<div v-slot:title style='display: inline-block'>
|
|
56
56
|
<div title={title} style={'display: inline-block;width:' + width + ';overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;'}>{(title)}</div>
|
|
57
57
|
</div>)
|
|
58
58
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<el-submenu v-else :index="resolvePath(item.code,item.path,item.pageType)" :show-timeout="0" :hide-timeout="50" popper-class="sidebar-container-popper">
|
|
12
|
-
<template slot
|
|
12
|
+
<template v-slot:title>
|
|
13
13
|
<item :icon="item.iconName" :title="getI18nName(item)" :has-children="item.children.length > 0?true:false" />
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -38,6 +38,7 @@ import AppLink from './Link'
|
|
|
38
38
|
import Vue from 'vue'
|
|
39
39
|
import tabJs from '../../../api/tab'
|
|
40
40
|
import { getI18nName } from '../../../utils/menu'
|
|
41
|
+
// import { SidebarItemChild } from './SidebarItemChild.vue'
|
|
41
42
|
export default {
|
|
42
43
|
name: 'SidebarItem',
|
|
43
44
|
components: { Item, AppLink },
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<el-scrollbar wrap-class="scrollbar-wrapper">
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
<keep-alive>
|
|
5
|
+
<el-menu
|
|
6
|
+
:show-timeout="200"
|
|
7
|
+
:default-active="getDefaultActive()"
|
|
8
|
+
:collapse="isCollapse"
|
|
9
|
+
mode="vertical"
|
|
10
|
+
@select="selectMenu"
|
|
11
|
+
>
|
|
12
|
+
<sidebar-item v-for="menu in menus" :key="menu.code" :item="menu" />
|
|
13
|
+
</el-menu>
|
|
14
|
+
</keep-alive>
|
|
13
15
|
</el-scrollbar>
|
|
14
16
|
<hamburger :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
15
17
|
</div>
|