From 27305f62486ffdf6ab2f4ca2838402c492ba967b Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Wed, 8 May 2024 15:28:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:(vol)=20=E6=9C=9F=E5=88=8A=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E6=92=AD=E6=94=BE=E6=8C=89=E9=92=AE=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=92=AD=E6=94=BE=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Journal/JournalCard.tsx | 6 ------ .../Journal/JournalList/VolListCoverCard.tsx | 7 ++++++- src/components/Journal/VolPlayButton.tsx | 15 +++++++++++++++ .../Journal/widget/CardPlayButton.tsx | 18 ++++++++++++++++++ 4 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 src/components/Journal/widget/CardPlayButton.tsx diff --git a/src/components/Journal/JournalCard.tsx b/src/components/Journal/JournalCard.tsx index 18c7c94..3a48659 100644 --- a/src/components/Journal/JournalCard.tsx +++ b/src/components/Journal/JournalCard.tsx @@ -18,7 +18,6 @@ export default function JournalCard({ image, title, journalNo, - showPlay = false, scale = false, children, className, @@ -26,7 +25,6 @@ export default function JournalCard({ image: string; journalNo: string; title?: string; - showPlay?: boolean; scale?: boolean; children?: React.ReactNode; className?: string; @@ -51,10 +49,6 @@ export default function JournalCard({
{title}
)} - {/* 播放按钮 */} - {showPlay && ( - - )} {children} ); diff --git a/src/components/Journal/JournalList/VolListCoverCard.tsx b/src/components/Journal/JournalList/VolListCoverCard.tsx index 76559a0..eacd4ca 100644 --- a/src/components/Journal/JournalList/VolListCoverCard.tsx +++ b/src/components/Journal/JournalList/VolListCoverCard.tsx @@ -1,3 +1,5 @@ +import CardPlayButton from '@/components/Journal/widget/CardPlayButton'; + import styles from '../index.module.css'; import { JournalCard } from '@/components'; @@ -8,7 +10,10 @@ export default function CoverCard({ title, img, no }: { title: string; img: stri{title}