Skip to content

624117671/selected

Repository files navigation

fineway liguodong

区划数据来源

民政部门户网站

Install

npm install vue-selected --save

API

<selectarea :provinceUrl="url.province" @selected="selecteds" :cityUrl="url.city" :areaUrl="url.area"/>

import selectarea from 'vue-selected'
export default {
    data(){
        return{
          url:{
            province:'',//省接口地址
            city:'',//市接口地址
            area:''//县接口地址
          },
          province:"",//默认省id
          city:"",//默认市id
          area:"",//默认县id
          selected:[]
        }
        
    },
    components: {
      selectarea
    },
    methods:{
      selecteds(data){
        console.log(data);//选中的数据
        this.selected = data;
      }
    }
}

About

三级下拉 省市县联动

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published