File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 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) {
142142 nextSlide ( ) {
143143 const component = this . $refs . swiperComponent as SwiperComponent
144144 if ( component ) {
145- component . swiper . slideNext ( )
145+ component . $ swiper. slideNext ( )
146146 }
147147 }
148148
149149 prevSlide ( ) {
150150 const component = this . $refs . swiperComponent as SwiperComponent
151151 if ( component ) {
152- component . swiper . slidePrev ( )
152+ component . $ swiper. slidePrev ( )
153153 }
154154 }
155155
156156 async pageChangeEvent ( args : Swiper ) {
157157 this . $emit ( 'slideChange' , args )
158158
159159 this . isBeginning = Boolean (
160- this . swiperComponent && this . swiperComponent . swiper && this . swiperComponent . swiper . isBeginning
160+ this . swiperComponent && this . swiperComponent . $ swiper && this . swiperComponent . $ swiper. isBeginning
161161 )
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 )
163163
164164 if ( this . hasReachedTheLimit || this . locked ) return
165165
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ declare module 'vue-awesome-swiper' {
1717 export { default as Swiper } from 'swiper'
1818
1919 export class SwiperComponent extends Vue {
20- swiper : Swiper
20+ $ swiper : Swiper
2121 options : SwiperOptions
2222 globalOptions : SwiperOptions
2323 classes : {
You can’t perform that action at this time.
0 commit comments