wag-m-region-picker
v1.0.0
Published
移动端省市区选择工具
Downloads
3
Maintainers
Readme
wag-m-region-picker
基于vue的移动端省市区选择工具
##Install npm install wag-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
}
}
@confirm通知父组件
//具体用法看例子