vant实现Popup 弹出层下拉选择功能
<van-popup v-model="show" position="bottom" :overlay="true">
<van-picker
title="城市"
show-toolbar
:columns="managerArr.map(item => ({
text: item.userName
}))"
@cancel="show = false"
@confirm="managerConfirm"
>
</van-picker>
</van-popup>
使用:columns对下拉选项接口返回的城市作出遍历