Skip to content

Commit

Permalink
修改点击触发
Browse files Browse the repository at this point in the history
  • Loading branch information
MyDAIDAI committed Aug 1, 2018
1 parent 27e7e0c commit 7d9b7b9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/base/layout/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
<div class="layout">
<div class="content-wrapper">
<div class="panel">
<card @go="showCurrentPage"></card>
<card @go="goPage"></card>
<slot name="list"></slot>
</div>
<div class="box">
<div class="box-header">
<div class="title-wrap">
<div class="title">{{title}}</div>
</div>
</div>
<div class="box-body"></div>
<div class="box-body">
<slot></slot>
</div>
</div>
</div>
</div>
Expand All @@ -29,12 +32,11 @@ export default {
},
data () {
return {
page: ''
}
},
methods: {
showCurrentPage (page) {
this.page === page
goPage (page) {
this.$emit('go', page)
}
}
}
Expand Down

0 comments on commit 7d9b7b9

Please sign in to comment.