computed: {
// (滚动区高度:iframe图片响应式适配)
scrollerHeight: function() {
return (window.innerHeight - 80) + ‘px’;
}
},

mounted() {
    this.$nextTick(() => {
        let h = this.$refs.main.offsetHeight;
        let h_btngroup = this.$refs.btngroup.offsetHeight;
        let h_main = h - 40 - h_btngroup;
        this.style_form =
            "height:" + h_main + "px;overflow-y:auto;overflow-x:hidden;";
    });
},
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐