feat: implement hover-to-preview video on video card

This commit is contained in:
Hakadao
2023-12-05 02:38:27 +08:00
parent 0036e0afac
commit b2281c1ea8
4 changed files with 102 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ function jumpToLoginPage() {
:danmaku="video.stat.danmaku"
:published-timestamp="video.pubdate"
:bvid="video.bvid"
:cid="video.cid"
show-preview
/>
</template>
<template v-else>
@@ -189,6 +191,8 @@ function jumpToLoginPage() {
:bvid="video.bvid"
:view-str="video.cover_left_text_1"
:danmaku-str="video.cover_left_text_2"
:cid="video.player_args ? video.player_args.cid : 0"
show-preview
/>
</template>