0.1.7 • Published 7 years ago

vue-cascading-address v0.1.7

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

VueJS cascading address component

CircleCI npm version License

How it looks:

npm.io

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}
0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago