参考网址:https://distpicker.uine.org
1,安装依赖
npm install v-distpicker --save
2,在需要的组件引入
import VDistpicker from 'v-distpicker'
使用方法:
<template>
<v-distpicker :placeholders="placeholders"></v-distpicker>
<template>
<script>
import VDistpicker from 'v-distpicker'
export default {
components: { VDistpicker },
data() {
return {
placeholders: {
province: '------- 省 --------',
city: '--- 市 ---',
area: '--- 区 ---',
}
}
}
}
</script>
网友评论