Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/savokiss/vue-cascading-address

vue address select component
https://github.com/savokiss/vue-cascading-address

address-input select vuejs

Last synced: 3 months ago
JSON representation

vue address select component

Lists

README

        

# VueJS cascading address component

[![CircleCI](https://img.shields.io/circleci/project/savokiss/vue-cascading-address/master.svg)](https://circleci.com/gh/savokiss/vue-cascading-address)
[![npm version](https://img.shields.io/npm/v/vue-cascading-address.svg)](https://www.npmjs.com/package/vue-cascading-address)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://opensource.org/licenses/MIT "Feel free to contribute.")
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsavokiss%2Fvue-cascading-address.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsavokiss%2Fvue-cascading-address?ref=badge_shield)

## How it looks:
![](./static/demo.gif)

## 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
```

```

## 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](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsavokiss%2Fvue-cascading-address.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsavokiss%2Fvue-cascading-address?ref=badge_large)