You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
导航栏骨架无高度初值塌陷问题指的是,打开某个有导航栏页面的一瞬间的有塌陷问题。(把isLoading关掉,看起来比较明显)
这是我的一种解决思路。(成功)
在ui-fixed组件中
content.height修改为(content.height || sys_navBar),可以解决导航栏无高度初值塌陷问题。这种方法可能治标不治本,一些没有传入content.height的也被赋为导航栏高度初值,但后面也会根据重新计算实际高度,重新渲染。
<view class="skeleton" style="{{'height: '+(content.height||sys_navBar)+'px'}} {{width?'width:' + width + 'px;':''}}" id="skeleton-{{_uid}}" wx:if="{{sticky?fixed:placeholder&&fixed}}"/>