11<template lang="pug">
2- div .vueperslides ( :class ="{ 'vueperslides--ready': isReady, 'vueperslides--fade': conf.fade, 'vueperslides--parallax': conf.parallax, 'vueperslides--touchable': touch.enabled && !disable, 'vueperslides--fixed-height': conf.fixedHeight, 'vueperslides--animated': transition.animated }" ref ="vueperslides" aria-label ="Slideshow" : style= "vueperStyles" )
3- div .vueperslide__content-wrapper.vueperslide__content-wrapper--outside-top ( :class ="conf.slideContentOutsideClass" v-if ="conf.slideContentOutside === 'top'" )
4- div .vueperslide__title ( v-if ="slides.count" v-html ="getCurrentSlideData('title')" )
5- div .vueperslide__content ( v-if ="slides.count" v-html ="getCurrentSlideData('content')" )
6-
7- div .vueperslides__inner
8- div .vueperslides__parallax-wrapper ( :style ="'padding-bottom:' + (conf.slideRatio * 100) + '%'" aria-live ="polite" )
9- div .vueperslides__track ( :class ="{ 'vueperslides__track--dragging': touch.dragging, 'vueperslides__track--mousedown': mouseDown }" : style= "trackStyles" ref ="track" )
10- div .vueperslides__track-inner ( :style ="trackInnerStyles" )
2+ .vueperslides ( :class ="{ 'vueperslides--ready': isReady, 'vueperslides--fade': conf.fade, 'vueperslides--parallax': conf.parallax, 'vueperslides--touchable': touch.enabled && !disable, 'vueperslides--fixed-height': conf.fixedHeight, 'vueperslides--animated': transition.animated }" ref ="vueperslides" aria-label ="Slideshow" : style= "vueperStyles" )
3+ .vueperslide__content-wrapper.vueperslide__content-wrapper--outside-top ( :class ="conf.slideContentOutsideClass" v-if ="conf.slideContentOutside === 'top'" )
4+ .vueperslide__title ( v-if ="slides.count" v-html ="getCurrentSlideData('title')" )
5+ .vueperslide__content ( v-if ="slides.count" v-html ="getCurrentSlideData('content')" )
6+
7+ .vueperslides__inner
8+ .vueperslides__parallax-wrapper ( :style ="'padding-bottom:' + (conf.slideRatio * 100) + '%'" aria-live ="polite" )
9+ .vueperslides__track ( :class ="{ 'vueperslides__track--dragging': touch.dragging, 'vueperslides__track--mousedown': mouseDown }" : style= "trackStyles" ref ="track" )
10+ .vueperslides__track-inner ( :style ="trackInnerStyles" )
1111 vueper-slide.vueperslide--clone ( v-if ="slides.count && clones[0]" : clone= "0" : title= "clones[0].title" : content= "clones[0].content" : image= "clones[0].image" : style= "clones[0].style" aria-hidden ="true" )
1212 div( v-if ="clones[0].titleSlot" slot ="slideTitle" v-html ="clones[0].titleSlot" )
1313 div( v-if ="clones[0].contentSlot" slot ="slideContent" v-html ="clones[0].contentSlot" )
@@ -16,9 +16,9 @@ div.vueperslides(:class="{ 'vueperslides--ready': isReady, 'vueperslides--fade':
1616 div( v-if ="clones[1].titleSlot" slot ="slideTitle" v-html ="clones[1].titleSlot" )
1717 div( v-if ="clones[1].contentSlot" slot ="slideContent" v-html ="clones[1].contentSlot" )
1818
19- div .vueperslides__paused ( v-if ="$slots.pausedIcon" )
19+ .vueperslides__paused ( v-if ="$slots.pausedIcon" )
2020 slot( name ="pausedIcon" )
21- div .vueperslides__arrows ( :class ="{ 'vueperslides__arrows--outside': conf.arrowsOutside }" v-if ="conf.arrows && slides.count > 1 && !disable" )
21+ .vueperslides__arrows ( :class ="{ 'vueperslides__arrows--outside': conf.arrowsOutside }" v-if ="conf.arrows && slides.count > 1 && !disable" )
2222 button.vueperslides__arrow.vueperslides__arrow--prev ( @click ="previous()" v-show ="!arrowPrevDisabled" aria-label ="Previous" @keyup.left ="previous()" @keyup.right ="next()" )
2323 slot( name ="arrowLeft" )
2424 svg( viewBox ="0 0 24 24" )
@@ -27,15 +27,15 @@ div.vueperslides(:class="{ 'vueperslides--ready': isReady, 'vueperslides--fade':
2727 slot( name ="arrowRight" )
2828 svg( viewBox ="0 0 24 24" )
2929 path( d ="M7.8,21c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l7.4-7.3L7,4.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l8.8,8.7l-8.8,8.7C8.3,20.9,8,21,7.8,21z" )
30- div .vueperslides__bullets ( v-if ="conf.bullets && slides.count > 1 && !disable && !conf.bulletsOutside" role ="tablist" aria-label ="Slideshow navigation" )
30+ .vueperslides__bullets ( v-if ="conf.bullets && slides.count > 1 && !disable && !conf.bulletsOutside" role ="tablist" aria-label ="Slideshow navigation" )
3131 button.vueperslides__bullet ( :class ="{ 'vueperslides__bullet--active': slides.current === i * conf.slideMultiple }" v-for ="(item, i) in Math.ceil(slides.count / conf.slideMultiple)" : key= "i" @click ="goToSlide(i * conf.slideMultiple)" @keyup.left ="previous()" @keyup.right ="next()" ref ="bullet" )
3232 span {{ i + 1 }}
3333
34- div .vueperslides__bullets.vueperslides__bullets--outside ( v-if ="conf.bullets && slides.count > 1 && !disable && conf.bulletsOutside" )
34+ .vueperslides__bullets.vueperslides__bullets--outside ( v-if ="conf.bullets && slides.count > 1 && !disable && conf.bulletsOutside" )
3535 button.vueperslides__bullet ( :class ="{ 'vueperslides__bullet--active': slides.current === i * conf.slideMultiple }" v-for ="(item, i) in Math.ceil(slides.count / conf.slideMultiple)" : key= "i" @click ="goToSlide(i * conf.slideMultiple)" @keyup.left ="previous()" @keyup.right ="next()" ref ="bullet" )
3636 span {{ i + 1 }}
3737
38- div .vueperslide__content-wrapper.vueperslide__content-wrapper--outside-bottom ( :class ="conf.slideContentOutsideClass" v-if ="conf.slideContentOutside === 'bottom'" )
38+ .vueperslide__content-wrapper.vueperslide__content-wrapper--outside-bottom ( :class ="conf.slideContentOutsideClass" v-if ="conf.slideContentOutside === 'bottom'" )
3939 div.vueperslide__title ( v-if ="slides.count" v-html ="getCurrentSlideData('title')" )
4040 div.vueperslide__content ( v-if ="slides.count" v-html ="getCurrentSlideData('content')" )
4141</template >
@@ -805,13 +805,13 @@ export default {
805805 return conf
806806 },
807807 vueperStyles () {
808- return / ^ -? \d / .test (this .conf .fixedHeight ) ? ' height: ' + this .conf .fixedHeight : null
808+ return / ^ -? \d / .test (this .conf .fixedHeight ) ? ` height: ${ this .conf .fixedHeight } ` : null
809809 },
810810 trackStyles () {
811811 let styles = {}
812812
813813 if (this .conf .parallax ) {
814- styles .transform = ' translate3d(0, ' + this .parallaxData .translation + ' %, 0)'
814+ styles .transform = ` translate3d(0, ${ this .parallaxData .translation } %, 0)`
815815
816816 // Increase browser optimizations by allocating more machine resource.
817817 // ! \\ To be used wisely so deactivate when not needed.
@@ -826,7 +826,7 @@ export default {
826826 styles .transitionDuration = this .transition .speed + ' ms'
827827
828828 if (! this .conf .fade ) {
829- styles .transform = ' translate3d(' + this .transition .currentTranslation + ' %, 0, 0)'
829+ styles .transform = ` translate3d(${ this .transition .currentTranslation } %, 0, 0)`
830830
831831 // Increase browser optimizations by allocating more machine resource.
832832 // ! \\ To be used wisely so deactivate when not needed.
0 commit comments