CalendarCarousel speed prop
This commit is contained in:
parent
6217ae2ecb
commit
d5d61a4a29
1 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<v-carousel
|
||||
cycle
|
||||
interval="10000"
|
||||
:interval="speed"
|
||||
height="auto"
|
||||
:show-arrows="false"
|
||||
touchless
|
||||
|
@ -14,7 +14,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from "vue-property-decorator";
|
||||
import { Component, Prop, Vue } from "vue-property-decorator";
|
||||
import Calendar from "./Calendar.vue";
|
||||
import { CalendarData, CalendarJSONData } from "./model";
|
||||
|
||||
|
@ -24,6 +24,9 @@ import { CalendarData, CalendarJSONData } from "./model";
|
|||
},
|
||||
})
|
||||
export default class CalendarCarousel extends Vue {
|
||||
@Prop({ default: 10000 })
|
||||
private readonly speed!: number;
|
||||
|
||||
private readonly data: Array<CalendarJSONData> = [
|
||||
{
|
||||
title: "Lorem Ipsum",
|
||||
|
|
Loading…
Reference in a new issue