vue移动端省市区三级联动
VDistpicker
·
安装:npm i v-distpicker --save
使用:
<!--三级联动-->
<div class="address" v-show="popupVisible">
<v-distpicker class="picker" type="mobile" @selected='selected'>
</v-distpicker>
</div>
//选择area
selected(data){
console.log(data);
this.popupVisible = false;
this.agentArea = data.province.value + data.city.value + data.area.value
},
更多推荐
已为社区贡献2条内容
所有评论(0)