Skip to content

luckyAlexandra/vue-m-picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#vue-m-picker

基于vue的移动端选择工具
v0.0.3版本以后支持Vue2.0
##Install npm install vue-m-picker ##Use
var 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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.5%
  • CSS 2.3%
  • HTML 1.2%