Skip to content

Commit

Permalink
fix: disabled example component
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail9k committed Nov 25, 2024
1 parent 741ee5e commit 66c62c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/ExampleDisable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { ref } from 'vue'
import { Carousel, Pagination, Navigation, Slide } from '../../dist/carousel.es'
import '../../dist/carousel.css'
const config = {}
const enabled = ref(true)
const config = { enabled }
</script>

<template>
Expand All @@ -12,7 +12,7 @@ const config = { enabled }
<input id="status-checkbox" type="checkbox" v-model="enabled" />
</div>

<Carousel v-bind="config">
<Carousel v-bind="config" :enabled="enabled">
<Slide v-for="slide in 10" :key="slide">
<div class="carousel__item">{{ slide }}</div>
</Slide>
Expand Down

0 comments on commit 66c62c5

Please sign in to comment.