@lambo-design/pro-layout 1.0.0-beta.95 → 1.0.0-beta.97

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.95",
3
+ "version": "1.0.0-beta.97",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -7,7 +7,7 @@
7
7
  <LamboProLogo></LamboProLogo>
8
8
  </div>
9
9
  <div class="nav-box">
10
- <LamboProNav :accept-app-id="appId"></LamboProNav>
10
+ <LamboProNav :accept-app-id="acceptAppId"></LamboProNav>
11
11
  </div>
12
12
  <div class="tools-box">
13
13
  <LamboProTools></LamboProTools>
@@ -22,7 +22,7 @@ import LamboProNav from './pro-layout-nav'
22
22
  import LamboProTools from './pro-layout-tools'
23
23
  export default {
24
24
  name: "pro-layout-header",
25
- prop:{
25
+ props:{
26
26
  acceptAppId: {
27
27
  type: String,
28
28
  default:''
@@ -33,12 +33,7 @@ export default {
33
33
  LamboProLogo,
34
34
  LamboProNav,
35
35
  LamboProTools
36
- },
37
- data(){
38
- return{
39
- appId: this.acceptAppId
40
- }
41
- },
36
+ }
42
37
  }
43
38
  </script>
44
39
 
@@ -103,11 +103,9 @@ export default {
103
103
  this.$refs.topNav.updateActiveName();
104
104
  })
105
105
  },
106
- acceptAppId: {
107
- handle(newUserId,oldUserId){
108
- console.log('监听成功')
109
- this.selectApp(newUserId)
110
- }
106
+ acceptAppId(val) {
107
+ console.log('监听成功')
108
+ this.selectApp(val)
111
109
  }
112
110
  },
113
111
  created(){
package/src/index.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <i-layout class="pro-layout" :class="layoutClass">
3
3
  <i-header class="pro-layout-header">
4
- <LamboProLayoutHeader :accept-app-id="acceptId"></LamboProLayoutHeader>
4
+ <LamboProLayoutHeader :accept-app-id="acceptAppId"></LamboProLayoutHeader>
5
5
  </i-header>
6
6
  <i-layout>
7
7
  <i-sider
@@ -78,7 +78,6 @@ export default {
78
78
  return {
79
79
  collapsed: false,
80
80
  appId: '',
81
- acceptId:this.acceptAppId,
82
81
  activeName: '',
83
82
  tagList: []
84
83
  }