Time picker component for Vue
$ npm install vue-timepicker
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>
$ npm install
$ npm run dev
- unit test
- support default value(e.g. now time)
- optional second selector
- on change callback