提交 b972bc92 authored 作者: lihuihui's avatar lihuihui

修改pdf高

上级 ad30d47e
......@@ -87,7 +87,9 @@ export default {
console.log(this.formData)
},
mounted() {
setTimeout(() => {
this.countDomHeight()
}, 1000)
const _this = this
$(document).keyup(function(event) {
_this.$forceUpdate()
......@@ -98,10 +100,10 @@ export default {
},
methods: {
countDomHeight() {
$('.pdf-height').css('height', $('.practice-box').height() - ($('.pdf-get-height').height()))
$('.practice-box').css('height', $('.app-main').height() - 139 + 'px')
$('.item-right .form .setHeight').css('height', $('.item-right').height() - 112 + 'px')
$('.embed-height').css('height', $('.item-left').height() - $('.item-left .title').outerHeight() - $('.item-left .tit-h2').outerHeight() - $('.item-left .heads').outerHeight() - 20 + 'px')
$('.pdf-height').css('height', $('.practice-box').height() - ($('.pdf-get-height').outerHeight() + $('.heads').outerHeight()))
},
tabChange(n) {
this.tabIndex = n
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论