Ant design mobile Carousel display exception

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)}
                >
Mar.22,2021

indicates that the point does not display


I would like to ask whether the problem of abnormal, ant design mobile Carousel display has been solved


setting the initial height?


has the landlord solved the problem

  • Where can I modify the back-end API of Antd?

    Today, I want to learn and use Antd to write a user login page. Antd officially provides Demo directly npm start . The structure of the source code I look at is as follows: I want to modify the fakeAccountLogin here to interact with the local da...

    Mar.20,2021
Menu