From 42730b0479782f0d7ad225a4340965323f428ad0 Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Wed, 19 Nov 2025 16:03:12 +0800 Subject: [PATCH] 1 --- app/components/Carousel.tsx | 19 ++++++++++--------- app/components/news/body/FireNews/fhyw.tsx | 7 +++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/components/Carousel.tsx b/app/components/Carousel.tsx index ee00eb0..2a6d040 100755 --- a/app/components/Carousel.tsx +++ b/app/components/Carousel.tsx @@ -25,6 +25,7 @@ export function CarouselDemo() { const [current, setCurrent] = React.useState(0); const [count, setCount] = React.useState(0); const totalSlides = imageUrls.length; + React.useEffect(() => { if (!api) return; @@ -53,18 +54,18 @@ export function CarouselDemo() { {Array.from({ length: totalSlides }).map((_, index) => (
- - -
{/* 移除了 aspect-square */} +
-
- - + > +
+
))} diff --git a/app/components/news/body/FireNews/fhyw.tsx b/app/components/news/body/FireNews/fhyw.tsx index 45d7877..9239ae6 100644 --- a/app/components/news/body/FireNews/fhyw.tsx +++ b/app/components/news/body/FireNews/fhyw.tsx @@ -1,17 +1,16 @@ import { CarouselDemo } from "@/components/Carousel"; import {FireNewsList} from "./FireNewsList"; - export function FhywPage() { return( -
+
{/* 轮播背景图 */} -
+
{/* 固定的烽火要闻 */} -
+