vca
vue-cascading-address
npm i vue-cascading-address
vca

vue-cascading-address

vue address select component

by savokiss

0.1.7 (see all)License:MITTypeScript:Not Found
npm i vue-cascading-address
Readme

VueJS cascading address component

CircleCI npm version License

How it looks:

Dependencies

  • VueJS 2.0+

Usage

INSTALLATION

npm install vue-cascading-address --save

ES6

import cascadingAdress from 'vue-cascading-address'
export {
  components: {
    cascadingAddress
  },
  methods: {
    confirmCity(data){
      console.log(data);// { province: 'xxx' , city: 'xxx' , area: 'xxx' }
    }
  }
}

HTML

  <cascading-address @confirm="confirmCity"></cascading-address>

API

Props

nametyperequireddescription
inputClassStringfalsecustom classes added to input like 'input-sm'
readonlyBooleanfalseset the input to be readonly

Events

nameattributeslisten todescription
confirm(data)@confirmEmitted after confirm button, data structure: { province: String, city: String, area: String}

Downloads/wk

19

GitHub Stars

31

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.1.7
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate