the ant design mobile Carousel control displays an exception when there is only one picture; the screenshot has been uploaded
style of a picture
related codes
<Carousel
className="my-carousel"
autoplay={false}//
infinite={false}//
dots={true} //
selectedIndex={0}
swipeSpeed={35}
beforeChange={(from, to) => console.log(`slide from ${from} to ${to}`)}
afterChange={index => console.log("slide to", index)}
>