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

fix(h5): topWindow

上级 3ad862da
此差异已折叠。
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
<uni-top-window <uni-top-window
v-if="topWindow" v-if="topWindow"
v-show="showTopWindow && topWindowMediaQuery" v-show="showTopWindow && topWindowMediaQuery"
ref="topWindow"
:style="topWindowStyle"
> >
<div class="uni-top-window"> <div
ref="topWindow"
class="uni-top-window"
:style="topWindowStyle"
>
<v-uni-top-window <v-uni-top-window
ref="top" ref="top"
@hook:mounted="onTopWindowInit" @hook:mounted="onTopWindowInit"
...@@ -214,7 +216,7 @@ export default { ...@@ -214,7 +216,7 @@ export default {
onTopWindowInit () { onTopWindowInit () {
// TODO page header // TODO page header
let windowTopHeight = '0px' let windowTopHeight = '0px'
if (this.topWindowStyle && this.topWindowStyle.width) { if (this.topWindowStyle && this.topWindowStyle.height) {
windowTopHeight = this.$refs.topWindow.offsetHeight + 'px' windowTopHeight = this.$refs.topWindow.offsetHeight + 'px'
} else { } else {
windowTopHeight = this.$refs.top.$el.offsetHeight + 'px' windowTopHeight = this.$refs.top.$el.offsetHeight + 'px'
...@@ -273,6 +275,7 @@ export default { ...@@ -273,6 +275,7 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
z-index: 998; z-index: 998;
overflow: hidden;
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册