更新记录
7.0(2021-08-06) 下载此版本
1、优化地址选择动画样式 2、优化上级地址选择后下级地址列表更新
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
本插件无需引入
<yht-selectAddress @addressSelect="addressSelect" :cityList="cityList" :provinceList="provinceList" :districtList="districtList"></yht-selectAddress>
data() {
return {
provinceList: [],//省数据数组
cityList:[],//市数据数组
districtList:[],//区数据数组
};
},
methoss:{
addressSelect(e){
if (e.type == 2) {
this.formData.province = e.code
this.cityList = []
}else if(e.type == 3){
this.formData.city = e.code
this.districtList = []
}else if (e.type == 4) {
this.formData.district = e.code
}
this.getRegionList(e)//调用自获取省市区数据的方法,给组件赋值
},
}
}