@lambo-design/pro-layout 1.0.0-beta.377 → 1.0.0-beta.378

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.377",
3
+ "version": "1.0.0-beta.378",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@lambo-design/core": "^4.7.1-beta.159",
14
- "@lambo-design/shared": "^1.0.0-beta.255"
14
+ "@lambo-design/shared": "^1.0.0-beta.259"
15
15
  },
16
16
  "scripts": {
17
17
  "release-pro-layout": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
@@ -10,8 +10,7 @@
10
10
  <template v-for="item in topMenList">
11
11
  <MenuItem v-if="!item.children" :key="item.appId" :name="item.appId">
12
12
  <Icon
13
- :type="item.icon"
14
- :custom="item.icon"
13
+ v-bind="getIcon(item)"
15
14
  :size="20"
16
15
  v-show="systemInfo.navLogo === '1'"
17
16
  ></Icon
@@ -48,8 +47,7 @@
48
47
  :key="item.appId"
49
48
  >
50
49
  <Icon
51
- :type="item.icon"
52
- :custom="item.icon"
50
+ v-bind="getIcon(item)"
53
51
  :size="20"
54
52
  v-show="systemInfo.navLogo === '1'"
55
53
  ></Icon
@@ -243,6 +241,19 @@ export default {
243
241
  }
244
242
  }
245
243
  },
244
+ //获取icon图标
245
+ getIcon(item){
246
+ const icon = item.icon
247
+ if(!icon) return
248
+ if(icon.indexOf('iconfont')>=0){
249
+ return {
250
+ custom:this.activeName === item.appId?`${item.icon}-active`:item.icon
251
+ }
252
+ }
253
+ return {
254
+ type:item.icon
255
+ }
256
+ }
246
257
  },
247
258
  watch: {
248
259
  activeName() {