mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2025-12-17 19:36:32 +01:00
Add ImageCarousel.vue
This commit is contained in:
25
components/ImageCarousel.vue
Normal file
25
components/ImageCarousel.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<v-dialog v-model="show" class="d-flex align-center justify-center">
|
||||
<v-carousel
|
||||
:model-value="index"
|
||||
:show-arrows="images.length > 1"
|
||||
hide-delimiters
|
||||
>
|
||||
<v-carousel-item v-for="image of images" :key="image"
|
||||
:src="image"
|
||||
class="ma-auto"
|
||||
></v-carousel-item>
|
||||
</v-carousel>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ImageCarousel',
|
||||
data: () => ({
|
||||
show: false,
|
||||
images: [],
|
||||
index: 0
|
||||
})
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user