更新记录
1.0.2(2025-09-29) 下载此版本
关联uni-popup组件
1.0.1(2025-09-29) 下载此版本
新增远程地址JSON数据支持,减少包大小
1.0.0(2025-09-29)
初始提交
平台兼容性
uni-app(3.6.5)
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | √ | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | - | - | - | √ | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
bubble-address-picker
使用方法
符合easycom
组件模式, 导入 uni_modules
后直接使用即可
<template>
<view class="container">
<bubble-address-picker ref="addressPicker" v-model="address" />
</view>
</template>
<script>
export default {
data() {
return {
address: {}
}
},
methods: {
showAddressPicker() {
this.$refs.addressPicker.showPicker()
}
}
}
</script>
<style lang="scss" scoped></style>
如果对包容量大小敏感的话可以将json文件存放在服务器后传入remoteUrl参数,并移除插件对本地json的引用
<script>
// 注释这里
// import CityJsonData from '../../city.json'
export default {
data() {
return {
address: {}
}
},
methods: {
}
}
</script>
<style lang="scss" scoped></style>
参数 | 类型 | 默认值 | 描述 |
---|---|---|---|
remoteUrl | String | '' | 远程数据地址 |