vue-m-region-picker
v1.0.7
Published
移动端省市区选择工具
Downloads
4
Maintainers
Readme
vue-m-region-picker
基于vue的移动端省市区选择工具
##Install npm install vue-m-region-picker
##Use
var Vue = require('vue');
Vue.component('region-picker', require('vue-m-region-picker'));
<region-picker :type="3" @confirm="confirm">
<button>选择地区</button>
</region-picker>
//通过props传值
props: {
type: {//1:只有省,2:省市,3:省市区,默认是3
type: Number,
default: 3
},
raw: {
type: Boolean,
default: false
}
}
@confirm通知父组件
//具体用法看例子