refactor: update type of prop passed to VideoCard component

This commit is contained in:
Hakadao
2023-03-31 16:47:12 +08:00
parent 342aed933f
commit 9f369324c8
2 changed files with 34 additions and 24 deletions

View File

@@ -86,7 +86,16 @@ function jumpToLoginPage() {
<VideoCard
v-for="video in videoList"
:key="video.id"
:video-data="video"
:duration="video.duration"
:title="video.title"
:cover="video.pic"
:author="video.owner.name"
:author-face="video.owner.face"
:mid="video.owner.mid"
:view="video.stat.view"
:danmaku="video.stat.danmaku"
:published-timestamp="video.pubdate"
:bvid="video.bvid"
/>
</TransitionGroup>
</div>