File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,24 +142,24 @@ export class AdapSwiper extends Mixins(MixinAdapScreenSize) {
142
142
nextSlide ( ) {
143
143
const component = this . $refs . swiperComponent as SwiperComponent
144
144
if ( component ) {
145
- component . swiper . slideNext ( )
145
+ component . $ swiper. slideNext ( )
146
146
}
147
147
}
148
148
149
149
prevSlide ( ) {
150
150
const component = this . $refs . swiperComponent as SwiperComponent
151
151
if ( component ) {
152
- component . swiper . slidePrev ( )
152
+ component . $ swiper. slidePrev ( )
153
153
}
154
154
}
155
155
156
156
async pageChangeEvent ( args : Swiper ) {
157
157
this . $emit ( 'slideChange' , args )
158
158
159
159
this . isBeginning = Boolean (
160
- this . swiperComponent && this . swiperComponent . swiper && this . swiperComponent . swiper . isBeginning
160
+ this . swiperComponent && this . swiperComponent . $ swiper && this . swiperComponent . $ swiper. isBeginning
161
161
)
162
- this . isEnd = Boolean ( this . swiperComponent && this . swiperComponent . swiper && this . swiperComponent . swiper . isEnd )
162
+ this . isEnd = Boolean ( this . swiperComponent && this . swiperComponent . $ swiper && this . swiperComponent . $ swiper. isEnd )
163
163
164
164
if ( this . hasReachedTheLimit || this . locked ) return
165
165
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ declare module 'vue-awesome-swiper' {
17
17
export { default as Swiper } from 'swiper'
18
18
19
19
export class SwiperComponent extends Vue {
20
- swiper : Swiper
20
+ $ swiper : Swiper
21
21
options : SwiperOptions
22
22
globalOptions : SwiperOptions
23
23
classes : {
You can’t perform that action at this time.
0 commit comments