croll-view
标签内使用uni-popup
在真机环境下会被scroll-view
兄弟元素遮挡 。无法通过z-index去处理
解决方案:在uni-popup
组件外套root-portal
组件即可 。root-portal
原理类似于类似于Vue3的Teleport
方法
<root-portal>
<uni-popup ref="uniPopupRef" type="center">
</uni-popup>
</root-portal>
root-portal的官网介绍: root-portal