@lambo-design/pro-layout 1.0.0-beta.429 → 1.0.0-beta.430

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.429",
3
+ "version": "1.0.0-beta.430",
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/core": "^4.7.1-beta.176",
14
- "@lambo-design/shared": "^1.0.0-beta.346"
13
+ "@lambo-design/shared": "^1.0.0-beta.351",
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",
@@ -3,7 +3,7 @@
3
3
  <ul class="top-menu" :style="layoutSize === 'default' ? {height: '64px'} : {height: '50px'}" ref="topNav">
4
4
  <template v-for="(item,index) in topMenList" >
5
5
  <li class="top-menu-item"
6
- :class="{ 'active': activeName === item.appId }"
6
+ :class="{ 'active': notHomeIndex ? activeName === item.appId : 'backHome' === item.appId}"
7
7
  :key="item.appId"
8
8
  @click="selectApp(item.appId)">
9
9
  <div class="menu-item" :style="layoutSize === 'default' ? {paddingTop: '10px'} : {paddingTop: '2px'}">
@@ -82,7 +82,7 @@ export default {
82
82
  this.layoutSize = data.layoutSize ? data.layoutSize : 'default';
83
83
  this.topMenuNum = Number.isInteger(data.topMenu) ? data.topMenu : 4;
84
84
  this.acceptAppId = data.acceptAppId ? data.acceptAppId : '';
85
- if (!this.activeName) {
85
+ if (!this.activeName && this.notHomeIndex) {
86
86
  this.activeName = this.acceptAppId
87
87
  }
88
88
  this.initNav(this.navList)
@@ -113,6 +113,8 @@ export default {
113
113
  }
114
114
  if (this.notHomeIndex) {
115
115
  this.selectApp(appId)
116
+ } else if (this.systemInfo.backToHome === "1" && this.systemInfo.backToHomeStyle === "app") {
117
+ this.activeName = 'backHome'
116
118
  }
117
119
  }
118
120
  },