region-picker-21
v1.0.2
Published
region-picker的2020年地址更新版
Downloads
3
Maintainers
Readme
region-picker
A region picker based on Vue and ElementUI.
Demo
Installation
yarn add region-picker-21
# npm i region-picker-21 -S
Usage
import RegionPicker from 'region-picker-21'
import 'region-picker-21/dist/region-picker.css'
import data from 'region-picker-21/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