更新记录

1.0.0(2023-07-25)

1.0.0


平台兼容性

Vue2 Vue3
×
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
× × × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × × × × × × ×

示例代码

使用方法

  1. 下载安装配置uview组件库,该插件基于uview的upicker组件

  2. 页面中直接引入标签使用

    <barry-picker ref="dialog" @get-address="getAddress"></barry-picker>
  3. 方法使用

    // 打开地址弹框
    open() {
          this.$refs.dialog.show = true
    },
    // 获取地址
    getAddress(e) {
          console.log('选择的地址是', e);
          this.location = e
    }
    1. 示例代码

      <template>
      <view class="container">
          <text @click="open">地址:{{location}}</text>
          <barry-picker ref="dialog" @get-address="getAddress"></barry-picker>
      </view>
      </template>
      
      <script>
      export default {
          data() {
              return {
                  location: '',
              };
          },
      
          methods: {
              open() {
                  this.$refs.dialog.show = true
              },
              getAddress(e) {
                  console.log('选择的地址是', e);
                  this.location = e
              }
          },
      }
      </script>
      
      <style lang="scss" scoped>
      .container {
          padding: 20rpx;
      }
      </style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问