朱桂飞
2023-03-20 3755d8c086441ce54864121ca4eb6f800fb914a8
1
2
3
4
5
6
7
8
9
10
11
12
13
export default function onClick(e) {
  const swiper = this;
  if (!swiper.enabled) return;
 
  if (!swiper.allowClick) {
    if (swiper.params.preventClicks) e.preventDefault();
 
    if (swiper.params.preventClicksPropagation && swiper.animating) {
      e.stopPropagation();
      e.stopImmediatePropagation();
    }
  }
}