@@ -119,7 +119,7 @@ export default {
119119 on : {
120120 pageBeforeRemove ( page ) {
121121 const app = this ;
122- page . $el . find ( '.swiper-init, . tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
122+ page . $el . find ( '.tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
123123 app . swiper . destroy ( swiperEl ) ;
124124 } ) ;
125125 } ,
@@ -131,29 +131,29 @@ export default {
131131 } ,
132132 pageInit ( page ) {
133133 const app = this ;
134- page . $el . find ( '.swiper-init, . tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
134+ page . $el . find ( '.tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
135135 initSwiper . call ( app , swiperEl ) ;
136136 } ) ;
137137 } ,
138138 pageReinit ( page ) {
139139 const app = this ;
140- page . $el . find ( '.swiper-init, . tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
140+ page . $el . find ( '.tabs-swipeable-wrap' ) . each ( ( swiperEl ) => {
141141 const swiper = app . swiper . get ( swiperEl ) ;
142142 if ( swiper && swiper . update ) swiper . update ( ) ;
143143 } ) ;
144144 } ,
145145 tabMounted ( tabEl ) {
146146 const app = this ;
147147 $ ( tabEl )
148- . find ( '.swiper-init, . tabs-swipeable-wrap' )
148+ . find ( '.tabs-swipeable-wrap' )
149149 . each ( ( swiperEl ) => {
150150 initSwiper . call ( app , swiperEl ) ;
151151 } ) ;
152152 } ,
153153 tabShow ( tabEl ) {
154154 const app = this ;
155155 $ ( tabEl )
156- . find ( '.swiper-init, . tabs-swipeable-wrap' )
156+ . find ( '.tabs-swipeable-wrap' )
157157 . each ( ( swiperEl ) => {
158158 const swiper = app . swiper . get ( swiperEl ) ;
159159 if ( swiper && swiper . update ) swiper . update ( ) ;
@@ -162,25 +162,13 @@ export default {
162162 tabBeforeRemove ( tabEl ) {
163163 const app = this ;
164164 $ ( tabEl )
165- . find ( '.swiper-init, . tabs-swipeable-wrap' )
165+ . find ( '.tabs-swipeable-wrap' )
166166 . each ( ( swiperEl ) => {
167167 app . swiper . destroy ( swiperEl ) ;
168168 } ) ;
169169 } ,
170170 } ,
171171 vnode : {
172- 'swiper-init' : {
173- insert ( vnode ) {
174- const app = this ;
175- const swiperEl = vnode . elm ;
176- initSwiper . call ( app , swiperEl ) ;
177- } ,
178- destroy ( vnode ) {
179- const app = this ;
180- const swiperEl = vnode . elm ;
181- app . swiper . destroy ( swiperEl ) ;
182- } ,
183- } ,
184172 'tabs-swipeable-wrap' : {
185173 insert ( vnode ) {
186174 const app = this ;
0 commit comments