From a7c041b0108d6904f099c543890760f5ad2864ac Mon Sep 17 00:00:00 2001 From: joshen <445497689@qq.com> Date: Thu, 20 Jun 2024 14:25:28 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=99=A8=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/video-player/progress-bar.vue | 170 +++++++++++++++++++++++ components/video-player/video-player.vue | 98 ++++++++++++- pages/study/courseStudy.vue | 76 ++++++---- 3 files changed, 309 insertions(+), 35 deletions(-) create mode 100644 components/video-player/progress-bar.vue 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 @@