import vueTimeLine from '@curry30/vue-time-line'
Vue.use(vueTimeLine)
Useage
// template
<vue-time-line
ref="timeline"
:timeBlocksProp="timeBlocks"
@arrive-left="onArriveLeft"
@arrive-right="onArriveRight"
></vue-time-line>
// js
data() {
return {
timeBlocks: [],
}
},
methods: {
/**
* @description when child component arrive left 00:00, you need push new times to timeBlocks
*/
onArriveLeft(datetime) {},
/**
* @description when child component arrive right 00:00, you need push new times to timeBlocks
*/
onArriveRight(datetime) {},
},