Vux 中x-address的使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/marko_zheng/article/details/84286899

Vux 中x-address的使用

<template>
    <div>
      <Group>
        <x-address title="地址信息" v-model="MyAddress" placeholder="请选择地址" :list="ChinaAddressV4Data"></x-address>
      </Group>
    </div>
</template>

  import { XAddress,Group,ChinaAddressV4Data } from 'vux';
  export default {
    data(){
      return{
        MyAddress:[],   //------------------------地址---必须是数组格式
        ChinaAddressV4Data:ChinaAddressV4Data,
        
      }
    },
    components: {
      XAddress,Group
    },
    mounted(){
      console.log(this.ChinaAddressV4Data)
    },
    methods:{}
    
  }
</script>

<style scoped>

</style>

猜你喜欢

转载自blog.csdn.net/marko_zheng/article/details/84286899