V distpicker

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

Version: 1.2.12 Updated: 05/18/2021

By: jcc License: MIT

Downloads Last 30 Days: 8.1k

Install

npm i v-distpicker
yarn add v-distpicker

Repository: https://github.com/jcc/v-distpicker

CDNs

bundle.run: https://bundle.run/v-distpicker

jsDelivr: https://cdn.jsdelivr.net/npm/v-distpicker

unpkg: https://unpkg.com/v-distpicker

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.

Categories: Vue js