Skip to content

Commit

Permalink
feat: 对其 stencli 和 react 组件库的 swiper
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEJIA-LIU committed Oct 28, 2024
1 parent 50b3167 commit 3931ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-components/src/components/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TWO_ADDITIONAL_SLIDES_THRESHOLD = 7
})
export class Swiper implements ComponentInterface {
#id = INSTANCE_ID++
#source = ''
#source = 'autoplay'
#swiperResetting = false
// dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper
#domChangeByOutSide = false
Expand Down Expand Up @@ -327,7 +327,7 @@ export class Swiper implements ComponentInterface {
nested: true,
...effectsProps,
on: {
changeTransitionEnd(e) {
transitionEnd(e) {
if(that.#swiperResetting || that.#lastSwiperActiveIndex === this.realIndex) return
that.#lastSwiperActiveIndex = this.realIndex
that.getNeedFixLoop() && e.loopFix()
Expand Down

0 comments on commit 3931ac5

Please sign in to comment.