更新记录
1.0.0(2023-10-08) 下载此版本
初始版本
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | √ | - | √ | √ | √ | √ |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
1.引入插件
import region from "@/component/region.vue"
components: {region,}
2.即插即用
<!-- 三级联动 选择地址 --><region @region="region" :previnceName="addressInfo.regionList.prevince" :cityName="addressInfo.regionList.city" :countyName="addressInfo.regionList.area" :regionSel="addressInfo.regionList" placeholderStr="请选择地址" :isRevise="regionShow">
3.通过region获取选中参数
region(province, city, area) { //省市区 this.form.province = province this.form.city = city this.form.area = area },