n-region-picker
v1.1.0
Published
A region picker based on Vue and ElementUI.
Downloads
7
Maintainers
Readme
region-picker
A region picker based on Vue and ElementUI.
Demo
Installation
yarn add n-region-picker
# npm i n-region-picker -S
Usage
import RegionPicker from 'n-region-picker'
import 'n-region-picker/dist/region-picker.css'
import data from 'n-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