--- interface Props { autoplay?: boolean; autoplaySpeed?: number; // 毫秒 showArrows?: boolean; showDots?: boolean; cardGap?: number; // px className?: string; } const { autoplay = true, autoplaySpeed = 5000, showArrows = true, showDots = true, cardGap = 16, className = "" } = Astro.props; const carouselId = `carousel-${Math.random().toString(36).substring(2, 11)}`; ---