@curry30/vue-time-line

1.0.3 • Public • Published

vueTimeline

A component relate to video playback

example

example

Setup vueTimeline

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) {},
},

Constructor options

key descriptions default options
timeBlocksProp time blocks [] []
scrollTo method:scrollTo, scrollTo current day's any time none none

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i @curry30/vue-time-line

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

97.2 kB

Total Files

15

Last publish

Collaborators

  • curry30