Skip to content

mlzxgzy/region-picker

 
 

Repository files navigation

region-picker

Build Status npm NPM downloads LICENSE

A region picker based on Vue and ElementUI.

Demo

Region Picker

Installation

yarn add region-picker
# npm i region-picker -S

Usage

import RegionPicker from 'region-picker'
import 'region-picker/dist/region-picker.css'
import data from 'region-picker/dist/data.json'

Vue.use(RegionPicker)
// or
Vue.component(RegionPicker.name, RegionPicker)
<!-- Single -->
<region-picker :data="data"></region-picker>

<!-- Multiple -->
<region-picker multiple :data="data"></region-picker>

<!-- Two Level -->
<region-picker :max-level="2" :data="data"></region-picker>

<!-- Disabled -->
<region-picker disabled :data="data"></region-picker>

<!-- Default Value -->
<region-picker v-model="place" :data="data"></region-picker>

License

MIT

About

A region picker based on Vue and ElementUI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.9%
  • Stylus 18.0%
  • CSS 8.1%
  • Vue 4.0%