cover-view动态隐藏在安卓机上延迟严重
发布于 5 年前 作者 xiuyingfeng 4634 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

shouldAlert改变了,但是cover-view延迟很长时间才隐藏

  • 预期表现

shouldAlert改变了,cover-view立即隐藏

  • 复现路径
  • 提供一个最简复现 Demo
1 回复

换一种写法感觉快多了,

<!-- 列表弹框 -->

<cover-view class=“alert-wrap” catchtap=“shopOnClick” style=“display:{{shopList.length > 0 && shouldAlert ? ‘block’ : ‘none’}}”>

    <cover-view scroll-y class=“alert-main”>

        <cover-view class=“alert-item” wx:for="{{shopList}}" wx:for-item=“shopItem” catchtap=“shopOnClick” data-item="{{shopItem}}" wx:key=“fullName”>{{shopItem.shop_name}}</cover-view>

    </cover-view>

</cover-view>

回到顶部