@lambo-design/pro-layout 1.0.0-beta.423 → 1.0.0-beta.424
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/pro-layout",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.424",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/shared": "^1.0.0-beta.346",
|
|
14
|
+
"@lambo-design/core": "^4.7.1-beta.176"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"release-pro-layout": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div ref="listenWidth" class="pro-layout-sider-wrapper"
|
|
3
3
|
:class="[(collapsed || systemInfo.showSearchMenu === '0') ? 'menu-has-collapsed' : '',tabsHeight != 46 ? 'custom-tabs' : '']">
|
|
4
4
|
<Menu v-show="!collapsed" ref="menu"
|
|
5
|
-
:accordion="
|
|
5
|
+
:accordion="isAccordionMode" :active-name="activeName"
|
|
6
6
|
:open-names="openedNames" theme="dark"
|
|
7
7
|
width="auto" @on-select="handleSelect">
|
|
8
8
|
<template v-for="(item,index) in menuList">
|
|
@@ -130,7 +130,6 @@ export default {
|
|
|
130
130
|
menuList: [],
|
|
131
131
|
appId: '',
|
|
132
132
|
collapsed: false,
|
|
133
|
-
accordion: true,
|
|
134
133
|
activeName: '',
|
|
135
134
|
openedNames: [],
|
|
136
135
|
activeMenu: null,
|
|
@@ -149,6 +148,12 @@ export default {
|
|
|
149
148
|
}
|
|
150
149
|
},
|
|
151
150
|
mixins:[sider],
|
|
151
|
+
computed: {
|
|
152
|
+
isAccordionMode() {
|
|
153
|
+
// 当 accordionMode 为 '0' 时关闭手风琴模式,否则开启
|
|
154
|
+
return this.systemInfo.accordionMode !== '0';
|
|
155
|
+
}
|
|
156
|
+
},
|
|
152
157
|
methods: {
|
|
153
158
|
initListener(){
|
|
154
159
|
Bus.$on('origin-all-menu-list', (data)=>{
|