A flexible, highly available district picker for picking provinces, cities and districts of China.
Branch: master
Clone or download
Latest commit 6693e03 Jan 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Updated areas Dec 28, 2018
dist Update areas and area code Jan 4, 2019
examples 新增参数provinceDisable、cityDisable、areaDisable,分开控制省、市、县的禁用 Oct 12, 2018
src Update areas and area code Jan 4, 2019
.babelrc
.editorconfig It works! Mar 17, 2017
.eslintignore It works! Mar 17, 2017
.eslintrc.json It works! Mar 17, 2017
.gitignore Fixed the component name Aug 2, 2017
LICENSE Add License Mar 17, 2017
README.md Updated README May 7, 2018
package-lock.json 1.1.0 Jan 4, 2019
package.json 1.1.0 Jan 4, 2019

README.md

Powered By Jiajian Chan

A flexible, highly available district selector for picking provinces, cities and districts of China.


 创造不息,交付不止

V - Distpicker

Here is documents

Installation

npm install v-distpicker --save

Or

yarn add v-distpicker --save

Usage

Register component

Registe global component:

import Distpicker from 'v-distpicker'

Vue.component('v-distpicker', Distpicker)

Registe component:

import VDistpicker from 'v-distpicker'

export default {
  components: { VDistpicker }
}

How to use

Basic:

<v-distpicker></v-distpicker>

Default Value:

<v-distpicker province="广东省" city="广州市" area="海珠区"></v-distpicker>

Mobile:

<v-distpicker type="mobile"></v-distpicker>

Contributors

Thanks

License

The plugin is open-sourced software licensed under the MIT license.