Skip to content

blue0728/vue-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install vue-bspicker --save

Info

vue-bspicker 使用了 better-scroll @ustbhuangyi,非常感谢

Usage

    <button @click="show">点击</button>
    <vue-picker ref="picker" :data="data" @select="select"></vue-picker>

import vuePicker from 'vue-bspicker'

var app = new Vue({
  el: '#app',
  components: {
    vuePicker
  },
  methods: {
    show: function(){
        this.$refs['picker'].show();
    },
    select: function(){
        console.log(arguments)
    }
  },
  data: function(){
    return {
      data: [[
        text: 1,
        value: 'value1'
      ],[
        text: 2,
        value: 'value2'
      ],[
        text: 3,
        value: 'value3'
      ]]
    } 
  }
})

demo

/demo/index.html

About

picker component for vue.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published