提交 bf6d4eb5 编写于 作者: fxy060608's avatar fxy060608

fix(h5): layout

上级 8f276f08
......@@ -214,6 +214,9 @@ export default {
}
},
onTopWindowInit () {
if (!(this.responsive && this.topWindow)) {
return
}
// TODO page header
let windowTopHeight = '0px'
if (this.topWindowStyle && this.topWindowStyle.height) {
......@@ -225,6 +228,9 @@ export default {
updateCssVar('--window-top', windowTopHeight)
},
onLeftWindowInit () {
if (!(this.responsive && this.leftWindow)) {
return
}
if (this.leftWindowStyle && this.leftWindowStyle.width) {
updateCssVar('--window-left', this.$refs.leftWindow.offsetWidth + 'px')
} else {
......@@ -232,6 +238,9 @@ export default {
}
},
onRightWindowInit () {
if (!(this.responsive && this.rightWindow)) {
return
}
if (this.rightWindowStyle && this.rightWindowStyle.width) {
updateCssVar('--window-right', this.$refs.rightWindow.offsetWidth + 'px')
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册