自定义导航条,使用web-view后会强行显示默认导航条

发布于 7 年前作者 tanli6601 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

IDE模拟器上表现如下

  • 复现路径

<web-view src=“https://mioss.pinza.ltd/svg_linearGradient_animate/index.html”></web-view>

  • 提供一个最简复现 Demo

<web-view src=“https://mioss.pinza.ltd/svg_linearGradient_animate/index.html”></web-view>

自定义导航条,使用web-view后会强行显示默认导航条

1 回复
songjuan
songjuan1 楼5 年前

大家当刚才什么都没有发生过,重来一次。

客户端 6.7.2 版本开始,navigationStyle: custom 对 <web-view> 组件无效

https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html