A flexible, highly available district selector for picking provinces, cities and districts of China.
V - Distpicker
Here is online documents
Vue 2
- 1.x
Vue 3
- 2.x
Installation
npm install v-distpicker --save
Or
yarn add v-distpicker --save
Usage
Register component
Registe global component:
import VDistpicker from 'v-distpicker'
const app = createApp(App)
app.component('v-distpicker', VDistpicker)
Use setup-api:
<script setuo>
import VDistpicker from 'v-distpicker'
</script>
Registe component:
import {defineComponent} from 'vue';
import VDistpicker from 'v-distpicker'
export default defineComponent({
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
jcc |
lyh2668 |
wwhwwhwwh |
kent666a |
Milogenius |
xu8117 |
tcsiye |
iyangsheng |
liushuai05 |
Aufree |
Thanks
License
The plugin is open-sourced software licensed under the MIT license.