From 3b2d5e45bb4e8a2a226945fa38da301e287b8b11 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 29 Dec 2024 14:22:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20MediaInfoDialog=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/MediaInfoCard.vue | 5 +- src/components/cards/SubscribeShareCard.vue | 194 ++++++++---------- src/components/dialog/ForkSubscribeDialog.vue | 125 +++++++++++ src/components/dialog/MediaInfoDialog.vue | 22 ++ src/components/filebrowser/FileList.vue | 16 +- 5 files changed, 245 insertions(+), 117 deletions(-) create mode 100644 src/components/dialog/ForkSubscribeDialog.vue create mode 100644 src/components/dialog/MediaInfoDialog.vue diff --git a/src/components/cards/MediaInfoCard.vue b/src/components/cards/MediaInfoCard.vue index 42f9bff0..f11c7f90 100644 --- a/src/components/cards/MediaInfoCard.vue +++ b/src/components/cards/MediaInfoCard.vue @@ -4,7 +4,7 @@ import type { Context } from '@/api/types' import { isNullOrEmptyObject } from '@/@core/utils' // 输入参数 -const props = defineProps({ +defineProps({ context: Object as PropType, }) @@ -45,8 +45,7 @@ function openTmdbPage(type: string, tmdbId: number) { - -
+
{{ context?.media_info?.title || context?.meta_info?.name }} diff --git a/src/components/cards/SubscribeShareCard.vue b/src/components/cards/SubscribeShareCard.vue index e50f390e..8cec229e 100644 --- a/src/components/cards/SubscribeShareCard.vue +++ b/src/components/cards/SubscribeShareCard.vue @@ -1,24 +1,15 @@