File tree Expand file tree Collapse file tree
resources/js/processes-catalogue/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <b-carousel
44 ref =" carousel"
55 :interval =" 0"
6- controls
6+ class = " carousel "
77 >
8+ <div class =" controls tw-flex tw-content-stretch tw-absolute tw-w-full tw-z-10 tw-top-1/2 tw-flex-wrap" >
9+ <button
10+ class =" tw-content-center tw-grow tw-left-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
11+ @click =" prevSlide()"
12+ >
13+ <i class =" fas fa-caret-left" />
14+ </button >
15+ <button
16+ class =" tw-content-center tw-grow tw-right-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
17+ @click =" nextSlide()"
18+ >
19+ <i class =" fas fa-caret-right" />
20+ </button >
21+ </div >
822 <b-carousel-slide
923 v-for =" (image, index) in images.length > 0 ? images : defaultImage"
1024 :key =" index"
@@ -68,6 +82,12 @@ export default {
6882 );
6983 },
7084 methods: {
85+ prevSlide () {
86+ this .$refs .carousel .prev ();
87+ },
88+ nextSlide () {
89+ this .$refs .carousel .next ();
90+ },
7191 resizeCarousel (url , index ) {
7292 this .fullPage = ! this .fullPage ;
7393 this .$emit (" full-carousel" , {
@@ -80,6 +100,12 @@ export default {
80100 </script >
81101
82102<style scoped>
103+ .controls {
104+ display : none ;
105+ }
106+ .carousel :hover .controls {
107+ display : block ;
108+ }
83109.carousel-normal {
84110 width : 100% ;
85111 height : auto ;
You can’t perform that action at this time.
0 commit comments