vue address select component
Switch branches/tags
Clone or download
savokiss Merge pull request #4 from fossabot/master
Add license scan report and status
Latest commit 5fabb89 Jan 24, 2018
Permalink
Failed to load latest commit information.
build basic Oct 15, 2016
config fix: build assetsPublicPath Apr 11, 2017
docs feat: remove bootstrap Apr 12, 2017
src feat: remove bootstrap Apr 12, 2017
static basic Oct 15, 2016
.babelrc source Oct 13, 2016
.editorconfig source Oct 13, 2016
.gitignore chore: use docs as gh-pages Apr 11, 2017
.npmignore npm ignore dist Oct 17, 2016
LICENSE fix: typo Jan 18, 2018
README.md Add license scan report and status Jan 24, 2018
circle.yml circle to npm Oct 17, 2016
index.html index.html Oct 15, 2016
package.json feat: remove bootstrap Apr 12, 2017

README.md

VueJS cascading address component

CircleCI npm version License FOSSA Status

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

name type required description
inputClass String false custom classes added to input like 'input-sm'
readonly Boolean false set the input to be readonly

Events

name attributes listen to description
confirm (data) @confirm Emitted after confirm button, data structure: { province: String, city: String, area: String}

License

FOSSA Status