Skip to content

Riokai/vue-timepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-timepicker

Time picker component for Vue

Screenshot

pic

Installation

$ npm install vue-timepicker

Usage

var Vue = require('vue')
var TimePicker = require('vue-timepicker')

// or ES2015
import TimePicker from 'vue-timepicker'

new Vue({
  el: '#app',
  data: {
    myTime: ''
  },
  components: {
    TimePicker: TimePicker
  }
})
<div id="app">
  <h1>{{ myTime }}</h1>
  <time-picker :time.sync="myTime"></time-picker>

Development

$ npm install

$ npm run dev

Todo

  • unit test
  • support default value(e.g. now time)
  • optional second selector
  • on change callback

About

Timepicker base Vue

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published