From 1d71888e1bcd3d8db738f573671626e21b0df24c Mon Sep 17 00:00:00 2001 From: akai Date: Mon, 18 Jan 2021 19:27:11 +0800 Subject: [PATCH] feat: [Carousel] move the dots to the middle bottom of the slide BREAKING CHANGE: rename `.Carousel-indicators` to `.Carousel-dots` --- src/components/Carousel/index.tsx | 2 +- src/components/Carousel/style.less | 24 +++++++++++++++--------- src/styles/var.less | 12 ++++++++++++ storybook/stories/Carousel.stories.tsx | 8 ++++---- 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/components/Carousel/index.tsx b/src/components/Carousel/index.tsx index f382c762..b1559475 100644 --- a/src/components/Carousel/index.tsx +++ b/src/components/Carousel/index.tsx @@ -462,7 +462,7 @@ export const Carousel = React.forwardRef((props, )} {dots && ( -
    +
      {React.Children.map(children, (_, i) => (