如果当前组件所在位置某一父级使用了 ViewBox 组件或者直接使用了 Safari 的 overflowScrolling:touch,请引入指令 transfer-dom 以解决其带来的 z-index 失效问题。
<div v-transfer-dom>
<loading v-model="isLoading"></loading>
</div>
<div v-transfer-dom>
<actionsheet :menus="menus" v-model="showMenu" @on-click-menu="changeLocale"></actionsheet>
</div>
<script>
import { TransferDom } from 'vux'
</script>
网友评论