From 73ade7e82bc1addc325fb2f530635a5f15dca358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 31 May 2023 16:57:44 +0300 Subject: [PATCH] Refactor #3965 - For Carousel --- components/lib/carousel/BaseCarousel.vue | 172 ++++++++++++++++ components/lib/carousel/Carousel.d.ts | 5 + components/lib/carousel/Carousel.vue | 247 ++++++----------------- 3 files changed, 242 insertions(+), 182 deletions(-) create mode 100644 components/lib/carousel/BaseCarousel.vue diff --git a/components/lib/carousel/BaseCarousel.vue b/components/lib/carousel/BaseCarousel.vue new file mode 100644 index 000000000..838526358 --- /dev/null +++ b/components/lib/carousel/BaseCarousel.vue @@ -0,0 +1,172 @@ + diff --git a/components/lib/carousel/Carousel.d.ts b/components/lib/carousel/Carousel.d.ts index e53fa2335..c87ba68ad 100755 --- a/components/lib/carousel/Carousel.d.ts +++ b/components/lib/carousel/Carousel.d.ts @@ -256,6 +256,11 @@ export interface CarouselProps { * @type {CarouselPassThroughOptions} */ pt?: CarouselPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index b24e3b84c..430f968df 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -1,35 +1,32 @@