From dd84cd98b2123c567ba6abdb22c22355fc45645f Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 6 Dec 2023 01:15:58 +0800 Subject: [PATCH] feat: enable video preview feature --- src/components/VideoCard/VideoCard.vue | 3 ++- src/contentScripts/views/Home/components/Following.vue | 4 ++-- src/contentScripts/views/Home/components/Ranking.vue | 2 ++ src/contentScripts/views/Home/components/Trending.vue | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/VideoCard/VideoCard.vue b/src/components/VideoCard/VideoCard.vue index 8b7e95bd..8342a1b1 100644 --- a/src/components/VideoCard/VideoCard.vue +++ b/src/components/VideoCard/VideoCard.vue @@ -21,6 +21,7 @@ interface Props { capsuleText?: string bvid?: string aid?: number + /** If you want to show preview video, you should set the cid value */ cid?: number epid?: number isFollowed?: boolean @@ -195,7 +196,7 @@ function handelMouseLeave() {