File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 119
119
},
120
120
// start auto rotate slides
121
121
start () {
122
- if (this .interval === 0 || typeof this .interval === ' undefined' ) return ;
123
- this ._intervalId = setInterval (function () {
124
- this .next ()
125
- }, this .interval );
122
+ if (this .interval === 0 || typeof this .interval === ' undefined' ) return ;
123
+ this ._intervalId = setInterval ( () => {
124
+ this .next ()
125
+ }, this .interval );
126
126
}
127
127
},
128
128
mounted () {
158
158
this ._items [oldVal].classList .add (this .direction .outgoing );
159
159
this ._items [val].classList .remove (this .direction .incoming );
160
160
// wait for animation to finish and cleanup classes
161
- this ._carouselAnimation = setTimeout (function () {
162
- this ._items [oldVal].classList .remove (this .direction .outgoing , ' active' );
163
- this ._items [val].classList .remove (this .direction .overlay );
164
- this .animating = false ;
165
- // trigger an event
166
- $root .$emit (' slid::carousel' , val)
161
+ this ._carouselAnimation = setTimeout ( () => {
162
+ this ._items [oldVal].classList .remove (this .direction .outgoing , ' active' );
163
+ this ._items [val].classList .remove (this .direction .overlay );
164
+ this .animating = false ;
165
+ // trigger an event
166
+ this . $root .$emit (' slid::carousel' , val)
167
167
}, TRANSITION_DURATION );
168
168
}
169
169
},
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import bButtonRadio from './button-radio'
6
6
import bButton from './button'
7
7
import bCard from './card'
8
8
import bCarousel from './carousel'
9
- import bCarouselSlide from './carousel'
9
+ import bCarouselSlide from './carousel-slide '
10
10
import bCollapse from './collapse'
11
11
import bCollapseToggle from './collapse-toggle'
12
12
import bDropdown from './dropdown'
@@ -67,7 +67,7 @@ export {
67
67
bNavItemDropdown ,
68
68
bListGroupItem ,
69
69
bListGroup ,
70
- bCarouselSlide ,
70
+ bCarouselSlide as bSlide ,
71
71
bCarousel ,
72
72
bCollapse ,
73
73
bCollapseToggle
You can’t perform that action at this time.
0 commit comments