diff --git a/components/video-player/progress-bar.vue b/components/video-player/progress-bar.vue new file mode 100644 index 0000000..106ed7f --- /dev/null +++ b/components/video-player/progress-bar.vue @@ -0,0 +1,170 @@ +/** + $emit: updateProgress, -> 调整进度条后触发的事件,传递参数:currentProgress + getMouseDownStatus, -> 获取是否鼠标按下的状态,传递参数:true/false + props: width, height, + currentProgress, -> 当前进度,范围0-1 + */ + + + + + \ No newline at end of file diff --git a/components/video-player/video-player.vue b/components/video-player/video-player.vue index a587a8c..9e9e2c5 100644 --- a/components/video-player/video-player.vue +++ b/components/video-player/video-player.vue @@ -22,9 +22,22 @@ {{currtime}} - - + + + + + {{druationTime}} @@ -51,14 +64,21 @@