首页 > 其他 > 详细

vue 高度 动态更新计算 calcHeight watch $route

时间:2019-02-26 13:57:05      阅读:1329      评论:0      收藏:0      [点我收藏+]

vue 高度 动态更新计算

 calcHeight () {
      this.orgTreeHeight = window.innerHeight - 180
      // this.tableHeight = window.innerHeight - 210
      this.divHeight = window.innerHeight - 180
    }

  },
  mounted () {
    // console.info(‘jobOrgNum this‘, this)
    window.onresize = () => {
      this.calcHeight()
    }
  },
  watch: {
    $route (to, from) {
      this.calcHeight()
    }

 

vue 高度 动态更新计算 calcHeight watch $route

原文:https://www.cnblogs.com/pengchenggang/p/10436398.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!