Skip to content

Commit

Permalink
fix table height
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfliper committed Mar 23, 2017
1 parent 2a5a91d commit 4006724
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/src/renderer/components/LandingPageView/Tablevue.vue
Expand Up @@ -4,6 +4,7 @@
show-index,
:data='getFiles',
:striped='true',
:height='viewheight'
)

column(label='姓名', :width='200')
Expand All @@ -28,12 +29,6 @@ import {mapGetters, mapMutations, mapActions} from 'vuex'
export default {
name:'table-vue',
ready: function () {
window.addEventListener('resize', this.onResize)
},
beforeDestroy: function () {
window.removeEventListener('resize', this.onResize)
},
computed: mapGetters([
'mainCounter',
'getFiles',
Expand All @@ -45,9 +40,6 @@ export default {
'getContent'
]),
methods: {
onResize(event){
this.viewheight=window.innerHeight-250
},
...mapMutations({
decrement_main_counter:'DECREMENT_MAIN_COUNTER',
increment_main_counter:'INCREMENT_MAIN_COUNTER',
Expand All @@ -65,6 +57,7 @@ export default {
},
data (){
return {
viewheight:window.innerHeight-215
}
}
}
Expand Down

0 comments on commit 4006724

Please sign in to comment.