diff --git a/src/core/view/components/swiper/index.vue b/src/core/view/components/swiper/index.vue index 213b16c47072fd844b3847107141eb017ecb5909..4f6d08a51366bb7a870028eb7932f5271cbcdfa0 100644 --- a/src/core/view/components/swiper/index.vue +++ b/src/core/view/components/swiper/index.vue @@ -638,9 +638,11 @@ export default { this.circularEnabled ? 1 : 0 ) }, - _navigationClick ($event, type) { + _navigationClick ($event, type, disabled) { $event.stopPropagation() + if (disabled) return + const swiperItemLength = this.items.length let _current = this.currentSync @@ -796,7 +798,7 @@ export default { 'div', { on: { - click: (e) => this._navigationClick(e, 'prev'), + click: (e) => this._navigationClick(e, 'prev', this.prevDisabled), ...navigationEvent }, class: [ @@ -814,7 +816,7 @@ export default { 'div', { on: { - click: (e) => this._navigationClick(e, 'next'), + click: (e) => this._navigationClick(e, 'next', this.nextDisabled), ...navigationEvent }, class: [ @@ -949,8 +951,7 @@ uni-swiper .uni-swiper-navigation { uni-swiper .uni-swiper-navigation-disabled { opacity: 0.35; - cursor: auto; - pointer-events: none; + cursor: not-allowed; } uni-swiper .uni-swiper-navigation-hide {