From 93f2a1d950dc291829664c7063411d000c927b78 Mon Sep 17 00:00:00 2001 From: zz <2418184580@qq.com> Date: Sun, 30 Oct 2022 16:27:44 +0800 Subject: [PATCH] fix(components): [carousel] missing root ref (#10312) --- packages/components/carousel/src/carousel.vue | 1 + packages/components/carousel/src/use-carousel.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/components/carousel/src/carousel.vue b/packages/components/carousel/src/carousel.vue index 7308cd2b10..7c3bd2d698 100644 --- a/packages/components/carousel/src/carousel.vue +++ b/packages/components/carousel/src/carousel.vue @@ -77,6 +77,7 @@ defineOptions({ const props = defineProps(carouselProps) const emit = defineEmits(carouselEmits) const { + root, activeIndex, arrowDisplay, hasLabel, diff --git a/packages/components/carousel/src/use-carousel.ts b/packages/components/carousel/src/use-carousel.ts index 1b28bbaa88..465b607539 100644 --- a/packages/components/carousel/src/use-carousel.ts +++ b/packages/components/carousel/src/use-carousel.ts @@ -256,6 +256,7 @@ export const useCarousel = ( }) return { + root, activeIndex, arrowDisplay, hasLabel,