prop name updated
parent
c1fab8f3fb
commit
85b6c807c3
|
@ -14,7 +14,7 @@
|
|||
:showItemNavigators="true"
|
||||
:showItemNavigatorsOnHover="true"
|
||||
:circular="true"
|
||||
:autoPlay="isPlayed"
|
||||
:autoPlay="isAutoPlay"
|
||||
:transitionInterval="3000"
|
||||
>
|
||||
<template #item="slotProps">
|
||||
|
@ -53,11 +53,11 @@ export default {
|
|||
showThumbnails: false,
|
||||
isAutoPlayActive: true,
|
||||
fullScreen: false,
|
||||
isPlayed: true,
|
||||
isAutoPlay: true,
|
||||
code: {
|
||||
basic: `
|
||||
<Galleria ref="galleria" v-model:activeIndex="activeIndex" :value="images" :numVisible="5" containerStyle="max-width: 640px" :containerClass="galleriaClass"
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isPlayed" :transitionInterval="3000">
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isAutoPlay" :transitionInterval="3000">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" :style="[{ width: !fullScreen ? '100%' : '', display: !fullScreen ? 'block' : '' }]" />
|
||||
</template>
|
||||
|
@ -83,7 +83,7 @@ export default {
|
|||
<template>
|
||||
<div class="card flex justify-content-center galleria demo">
|
||||
<Galleria ref="galleria" v-model:activeIndex="activeIndex" :value="images" :numVisible="5" containerStyle="max-width: 640px" :containerClass="galleriaClass"
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isPlayed" :transitionInterval="3000">
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isAutoPlay" :transitionInterval="3000">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" :style="[{ width: !fullScreen ? '100%' : '', display: !fullScreen ? 'block' : '' }]" />
|
||||
</template>
|
||||
|
@ -118,7 +118,7 @@ export default {
|
|||
activeIndex: 0,
|
||||
showThumbnails: false,
|
||||
fullScreen: false,
|
||||
isPlayed: true,
|
||||
isAutoPlay: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
@ -127,7 +127,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
toggleAutoSlide() {
|
||||
this.isPlayed = !this.isPlayed;
|
||||
this.isAutoPlay = !this.isAutoPlay;
|
||||
},
|
||||
onThumbnailButtonClick() {
|
||||
this.showThumbnails = !this.showThumbnails;
|
||||
|
@ -184,7 +184,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
slideButtonIcon() {
|
||||
return this.isPlayed ? 'pi pi-pause' : 'pi pi-play';
|
||||
return this.isAutoPlay ? 'pi pi-pause' : 'pi pi-play';
|
||||
},
|
||||
galleriaClass() {
|
||||
return ['custom-galleria', { fullscreen: this.fullScreen }];
|
||||
|
@ -262,7 +262,7 @@ export default {
|
|||
<template>
|
||||
<div class="card flex justify-content-center galleria demo">
|
||||
<Galleria ref="galleria" v-model:activeIndex="activeIndex" :value="images" :numVisible="5" containerStyle="max-width: 640px" :containerClass="galleriaClass"
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isPlayed" :transitionInterval="3000">
|
||||
:showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="isAutoPlay" :transitionInterval="3000">
|
||||
<template #item="slotProps">
|
||||
<img :src="slotProps.item.itemImageSrc" :alt="slotProps.item.alt" :style="[{ width: !fullScreen ? '100%' : '', display: !fullScreen ? 'block' : '' }]" />
|
||||
</template>
|
||||
|
@ -301,10 +301,10 @@ const images = ref();
|
|||
const activeIndex = ref(0);
|
||||
const showThumbnails = ref(false);
|
||||
const fullScreen = ref(false);
|
||||
const isPlayed = ref(true);
|
||||
const isAutoPlay = ref(true);
|
||||
|
||||
const toggleAutoSlide = () => {
|
||||
isPlayed.value = !isPlayed.value ;
|
||||
isAutoPlay.value = !isAutoPlay.value ;
|
||||
};
|
||||
const onThumbnailButtonClick = () => {
|
||||
showThumbnails.value = !showThumbnails.value ;
|
||||
|
@ -368,7 +368,7 @@ const fullScreenIcon = computed(() => {
|
|||
return \`pi \${fullScreen.value ? 'pi-window-minimize' : 'pi-window-maximize'}\`;
|
||||
});
|
||||
const slideButtonIcon = computed(() => {
|
||||
return \`pi \${isPlayed.value ? 'pi-pause' : 'pi-play'}\`;
|
||||
return \`pi \${isAutoPlay.value ? 'pi-pause' : 'pi-play'}\`;
|
||||
});
|
||||
<\/script>
|
||||
|
||||
|
@ -453,7 +453,7 @@ const slideButtonIcon = computed(() => {
|
|||
},
|
||||
methods: {
|
||||
toggleAutoSlide() {
|
||||
this.isPlayed = !this.isPlayed;
|
||||
this.isAutoPlay = !this.isAutoPlay;
|
||||
},
|
||||
onThumbnailButtonClick() {
|
||||
this.showThumbnails = !this.showThumbnails;
|
||||
|
@ -510,7 +510,7 @@ const slideButtonIcon = computed(() => {
|
|||
},
|
||||
computed: {
|
||||
slideButtonIcon() {
|
||||
return this.isPlayed ? 'pi pi-pause' : 'pi pi-play';
|
||||
return this.isAutoPlay ? 'pi pi-pause' : 'pi pi-play';
|
||||
},
|
||||
galleriaClass() {
|
||||
return ['custom-galleria', { fullscreen: this.fullScreen }];
|
||||
|
|
Loading…
Reference in New Issue