van-popup组件在ios上出现重叠问题
利用更改挂载节点来解决此问题。
<van-popup v-model="pickerRuler" position="bottom" :get-container="$parent.getContainer">
<div class="content">
</div>
</van-popup>
created(){
this.popDivContainer = document.createElement('div');
document.body.appendChild(this.popDivContainer);
},
destroyed(){
document.body.removeChild(this.popDivContainer);
console.log(this.popDivContainer,this.popDivContainer)
},
methods:{
getContainer() {
return this.popDivContainer;
},