#vue-m-picker
##Install npm install vue-m-picker ##Usevar Vue = require('vue'); Vue.component('region-picker', require('vue-m-picker')); <picker :list="list" :cur-idx="curIdx" @picker="result"></picker>//通过props传值 props: { list: {//显示的数组,数组中对象格式是{label:'显示的内容',value:'值'} type: Array, required: true }, label: {//label的别名 type: String, required: false, default: 'label' }, value: {value的别名 type: String, required: false, default: 'value' }, curIdx: {//当前选中的下标 type: Number, required: false, default: 0 } }
//通知结果通过绑定picker事件完成 //@picker="result"