提交 af816073 编写于 作者: Q qiang

fix: 解决使用透明渐变导航栏导致页面高度不正确的问题

上级 ccf4ebdb
......@@ -12,7 +12,7 @@ uni-page-wrapper {
position: relative;
}
uni-page-head ~ uni-page-wrapper {
uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {
height: calc(100% - 44px);
}
......@@ -28,7 +28,7 @@ uni-page-head ~ uni-page-wrapper {
height: 50px;
}
.uni-app--showtabbar uni-page-head ~ uni-page-wrapper {
.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {
height: calc(100% - 44px - 50px);
}
......
<template>
<uni-page-head>
<uni-page-head :uni-page-head-type="type">
<div
:style="{transitionDuration:duration,transitionTimingFunction:timingFunc,backgroundColor:bgColor,color:textColor}"
:class="{'uni-page-head-transparent':type==='transparent'}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册