diff --git a/api-generator/components/carousel.js b/api-generator/components/carousel.js index c77580298..ea51532dd 100644 --- a/api-generator/components/carousel.js +++ b/api-generator/components/carousel.js @@ -97,6 +97,14 @@ const CarouselSlots = [ { name: 'item', description: 'Custom content for the component item.' + }, + { + name: 'previcon', + description: 'Custom previous icon template.' + }, + { + name: 'nexticon', + description: 'Custom next icon template.' } ]; diff --git a/components/lib/carousel/Carousel.d.ts b/components/lib/carousel/Carousel.d.ts index b825bac99..9210bb379 100755 --- a/components/lib/carousel/Carousel.d.ts +++ b/components/lib/carousel/Carousel.d.ts @@ -130,6 +130,14 @@ export interface CarouselSlots { * Custom footer template. */ footer(): VNode[]; + /** + * Custom previous icon template. + */ + previcon(): VNode[]; + /** + * Custom next icon template. + */ + nexticon(): VNode[]; } /** diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index 60592655e..76bd9ccc1 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -15,7 +15,9 @@ @click="navBackward" v-bind="prevButtonProps" > - + + +