@tarojs/components 4.0.4 → 4.0.5-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-09efe07d.js → index-a7069008.js} +0 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-builder-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-builder-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-span-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +231 -224
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/swiper/style/index.css +4 -16
- package/dist/collection/components/swiper/swiper-item.js +7 -60
- package/dist/collection/components/swiper/swiper.js +242 -183
- package/dist/components/taro-swiper-core.js +224 -184
- package/dist/components/taro-swiper-item-core.js +9 -45
- package/dist/esm/{index-9924aee9.js → index-5e431bb8.js} +0 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +1 -1
- package/dist/esm/taro-animation-view-core.entry.js +1 -1
- package/dist/esm/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-channel-live-core.entry.js +1 -1
- package/dist/esm/taro-channel-video-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-contact-button-core.entry.js +1 -1
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-draggable-sheet-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-builder-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm/taro-like-core.entry.js +1 -1
- package/dist/esm/taro-list-builder-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-login-core.entry.js +1 -1
- package/dist/esm/taro-lottie-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm/taro-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-nested-scroll-body-core.entry.js +1 -1
- package/dist/esm/taro-nested-scroll-header-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-container-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh-core.entry.js +1 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-root-portal-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-snapshot-core.entry.js +1 -1
- package/dist/esm/taro-span-core.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +231 -224
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +1 -1
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/{index-9924aee9.js → index-5e431bb8.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-builder-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -1
- package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
- package/dist/esm-es5/taro-span-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/hydrate/index.js +234 -231
- package/dist/taro-components/{p-ac2be5f3.entry.js → p-010113d5.entry.js} +1 -1
- package/dist/taro-components/p-0711615a.entry.js +1 -0
- package/dist/taro-components/{p-65d11e99.system.entry.js → p-08f31efb.system.entry.js} +1 -1
- package/dist/taro-components/{p-17b9f865.system.entry.js → p-0b9fa602.system.entry.js} +1 -1
- package/dist/taro-components/{p-71c89856.system.entry.js → p-0c3bf536.system.entry.js} +1 -1
- package/dist/taro-components/{p-6664a2ca.system.entry.js → p-0cbc06a0.system.entry.js} +1 -1
- package/dist/taro-components/p-0d965cb0.entry.js +1 -0
- package/dist/taro-components/{p-0fc790c0.system.entry.js → p-0e77f1af.system.entry.js} +1 -1
- package/dist/taro-components/{p-b4577a12.system.entry.js → p-0e8c1988.system.entry.js} +1 -1
- package/dist/taro-components/p-101c15ac.entry.js +1 -0
- package/dist/taro-components/{p-d5603857.entry.js → p-1331d6e6.entry.js} +1 -1
- package/dist/taro-components/{p-e1cce2f1.entry.js → p-13773464.entry.js} +1 -1
- package/dist/taro-components/{p-79cad66b.entry.js → p-13f9d171.entry.js} +1 -1
- package/dist/taro-components/{p-91ee1f8a.system.entry.js → p-14e9f2fd.system.entry.js} +1 -1
- package/dist/taro-components/p-1565cc2e.system.entry.js +1 -0
- package/dist/taro-components/{p-18c039ef.entry.js → p-177ab579.entry.js} +1 -1
- package/dist/taro-components/p-1bb89572.entry.js +1 -0
- package/dist/taro-components/{p-c7d8c076.system.entry.js → p-200ba6f2.system.entry.js} +1 -1
- package/dist/taro-components/p-2053531e.system.entry.js +1 -0
- package/dist/taro-components/{p-75ded8a0.system.entry.js → p-2210c50a.system.entry.js} +1 -1
- package/dist/taro-components/p-22140f38.entry.js +1 -0
- package/dist/taro-components/{p-dedf50a9.entry.js → p-2338fbc5.entry.js} +1 -1
- package/dist/taro-components/p-24a12aac.system.entry.js +1 -0
- package/dist/taro-components/p-26792379.entry.js +1 -0
- package/dist/taro-components/{p-5f23dc41.system.entry.js → p-274753ad.system.entry.js} +1 -1
- package/dist/taro-components/{p-3cf08137.entry.js → p-2ad41ae2.entry.js} +1 -1
- package/dist/taro-components/{p-dc25fa81.entry.js → p-2b0158fc.entry.js} +1 -1
- package/dist/taro-components/{p-9e359fff.system.entry.js → p-2d2c8354.system.entry.js} +1 -1
- package/dist/taro-components/{p-12582166.entry.js → p-310f27ae.entry.js} +1 -1
- package/dist/taro-components/p-31f20299.entry.js +1 -0
- package/dist/taro-components/{p-7ca2d075.system.entry.js → p-336b5b6c.system.entry.js} +1 -1
- package/dist/taro-components/{p-02465454.system.entry.js → p-34aee4d3.system.entry.js} +1 -1
- package/dist/taro-components/{p-ac9fb309.system.entry.js → p-34b51434.system.entry.js} +1 -1
- package/dist/taro-components/p-3779a716.entry.js +1 -0
- package/dist/taro-components/{p-02d4d104.entry.js → p-39dd80dd.entry.js} +1 -1
- package/dist/taro-components/p-3d163624.entry.js +1 -0
- package/dist/taro-components/{p-1eea2828.entry.js → p-3dc40ce0.entry.js} +1 -1
- package/dist/taro-components/{p-e3d825d1.system.entry.js → p-3ee0dda1.system.entry.js} +1 -1
- package/dist/taro-components/{p-d73b3a94.system.entry.js → p-4446fe5f.system.entry.js} +1 -1
- package/dist/taro-components/p-45ce1c8b.system.entry.js +1 -0
- package/dist/taro-components/{p-c677414d.system.entry.js → p-48395cab.system.entry.js} +1 -1
- package/dist/taro-components/{p-03dc0283.entry.js → p-48887552.entry.js} +1 -1
- package/dist/taro-components/p-493e2c9a.entry.js +1 -0
- package/dist/taro-components/{p-57911e2c.system.entry.js → p-498d940e.system.entry.js} +1 -1
- package/dist/taro-components/{p-7e054ae7.system.entry.js → p-49bd1791.system.entry.js} +1 -1
- package/dist/taro-components/{p-53e62840.system.entry.js → p-4dddb4a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-07ae6678.system.entry.js → p-4f62b74a.system.entry.js} +1 -1
- package/dist/taro-components/p-5584c307.entry.js +1 -0
- package/dist/taro-components/p-578c9258.entry.js +1 -0
- package/dist/taro-components/{p-ba5e7ec4.system.entry.js → p-58a44067.system.entry.js} +1 -1
- package/dist/taro-components/{p-9f53e26c.system.entry.js → p-5c3d432f.system.entry.js} +1 -1
- package/dist/taro-components/{p-ebad862a.system.entry.js → p-60869da5.system.entry.js} +1 -1
- package/dist/taro-components/p-60c76b97.entry.js +1 -0
- package/dist/taro-components/p-62fcda43.entry.js +1 -0
- package/dist/taro-components/{p-9b6b17c4.system.entry.js → p-636c9e22.system.entry.js} +1 -1
- package/dist/taro-components/p-646b6bb1.entry.js +1 -0
- package/dist/taro-components/{p-f5f3a111.entry.js → p-6a54dc69.entry.js} +1 -1
- package/dist/taro-components/p-6c314305.entry.js +1 -0
- package/dist/taro-components/{p-d05eb105.system.entry.js → p-6ef0579d.system.entry.js} +1 -1
- package/dist/taro-components/{p-4ac48df1.system.entry.js → p-6f25b319.system.entry.js} +1 -1
- package/dist/taro-components/{p-55e12654.entry.js → p-6f43d1a1.entry.js} +1 -1
- package/dist/taro-components/{p-f168fffc.entry.js → p-70283efb.entry.js} +1 -1
- package/dist/taro-components/{p-f43f26cf.entry.js → p-71167112.entry.js} +1 -1
- package/dist/taro-components/{p-938f9036.system.entry.js → p-720c96ae.system.entry.js} +1 -1
- package/dist/taro-components/p-725381f1.entry.js +1 -0
- package/dist/taro-components/{p-dcf5747c.system.entry.js → p-731de0f1.system.entry.js} +1 -1
- package/dist/taro-components/{p-3bfe9260.entry.js → p-757c9533.entry.js} +1 -1
- package/dist/taro-components/p-7625b781.system.entry.js +1 -0
- package/dist/taro-components/{p-4a8b4d58.system.entry.js → p-7677dcb3.system.entry.js} +1 -1
- package/dist/taro-components/p-76eedcd8.system.entry.js +1 -0
- package/dist/taro-components/{p-204996e7.entry.js → p-77dee229.entry.js} +1 -1
- package/dist/taro-components/p-7a860d44.system.entry.js +1 -0
- package/dist/taro-components/p-7ba8fbd4.entry.js +1 -0
- package/dist/taro-components/{p-b1f80b6b.entry.js → p-7c78d193.entry.js} +1 -1
- package/dist/taro-components/p-7d115ac1.entry.js +1 -0
- package/dist/taro-components/p-7d469e2e.entry.js +1 -0
- package/dist/taro-components/{p-f9935901.system.entry.js → p-7e486065.system.entry.js} +1 -1
- package/dist/taro-components/{p-6654374e.system.entry.js → p-7f067654.system.entry.js} +1 -1
- package/dist/taro-components/{p-5c98f478.entry.js → p-81f8a153.entry.js} +1 -1
- package/dist/taro-components/p-86b09ede.system.entry.js +1 -0
- package/dist/taro-components/p-88bcad64.entry.js +1 -0
- package/dist/taro-components/{p-75d01c60.system.js → p-88de70df.system.js} +2 -2
- package/dist/taro-components/p-88ded2fb.entry.js +1 -0
- package/dist/taro-components/p-8f7c9757.system.entry.js +1 -0
- package/dist/taro-components/{p-1bd4da3b.system.entry.js → p-920663c3.system.entry.js} +1 -1
- package/dist/taro-components/p-920e9e08.system.entry.js +1 -0
- package/dist/taro-components/p-92d5f74a.entry.js +1 -0
- package/dist/taro-components/p-932b1e72.entry.js +1 -0
- package/dist/taro-components/p-93329865.system.entry.js +1 -0
- package/dist/taro-components/p-96d58e6b.entry.js +1 -0
- package/dist/taro-components/{p-bd57edcd.entry.js → p-9b1be768.entry.js} +1 -1
- package/dist/taro-components/{p-6cc0bcb9.entry.js → p-9cf98daf.entry.js} +1 -1
- package/dist/taro-components/p-9d2e99b5.entry.js +1 -0
- package/dist/taro-components/{p-6b83388c.system.entry.js → p-9d815ff0.system.entry.js} +1 -1
- package/dist/taro-components/p-a1368421.entry.js +1 -0
- package/dist/taro-components/p-a1e9e6e9.entry.js +1 -0
- package/dist/taro-components/{p-d2203687.system.entry.js → p-a263b21b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d9884371.entry.js → p-a33c6ab4.entry.js} +1 -1
- package/dist/taro-components/{p-2649c7ae.entry.js → p-a34fb684.entry.js} +1 -1
- package/dist/taro-components/{p-27041d86.system.entry.js → p-a3948a42.system.entry.js} +1 -1
- package/dist/taro-components/p-a39bfe0d.system.entry.js +1 -0
- package/dist/taro-components/p-a51c3fc6.entry.js +1 -0
- package/dist/taro-components/{p-ab0e0366.system.entry.js → p-a57123fa.system.entry.js} +1 -1
- package/dist/taro-components/{p-97b09fb4.system.entry.js → p-a6258172.system.entry.js} +1 -1
- package/dist/taro-components/p-a89cb7e0.entry.js +1 -0
- package/dist/taro-components/{p-ba11ef7d.entry.js → p-a8a443a5.entry.js} +1 -1
- package/dist/taro-components/{p-ded98693.system.entry.js → p-ac808059.system.entry.js} +1 -1
- package/dist/taro-components/{p-d87a68f6.entry.js → p-b03b164f.entry.js} +1 -1
- package/dist/taro-components/p-b139e0bb.entry.js +1 -0
- package/dist/taro-components/{p-56a82bf3.entry.js → p-b197f269.entry.js} +1 -1
- package/dist/taro-components/p-b1e74461.entry.js +1 -0
- package/dist/taro-components/{p-a9ca8247.system.entry.js → p-b4d3d0bf.system.entry.js} +1 -1
- package/dist/taro-components/p-b4e5684a.entry.js +1 -0
- package/dist/taro-components/{p-e681d764.entry.js → p-b8916511.entry.js} +1 -1
- package/dist/taro-components/p-b8b1e967.entry.js +1 -0
- package/dist/taro-components/p-b923d242.entry.js +1 -0
- package/dist/taro-components/p-b9e52b27.system.entry.js +1 -0
- package/dist/taro-components/{p-df7c6216.system.entry.js → p-baba6d35.system.entry.js} +1 -1
- package/dist/taro-components/{p-46a66c43.entry.js → p-bc4dbbfb.entry.js} +1 -1
- package/dist/taro-components/{p-8836f70b.entry.js → p-bd7d7771.entry.js} +1 -1
- package/dist/taro-components/{p-3b36196b.system.entry.js → p-c089b757.system.entry.js} +1 -1
- package/dist/taro-components/{p-078cb65e.entry.js → p-c0c4d551.entry.js} +1 -1
- package/dist/taro-components/p-c2df3326.system.entry.js +1 -0
- package/dist/taro-components/p-c575464d.entry.js +1 -0
- package/dist/taro-components/p-c6258ca4.system.entry.js +1 -0
- package/dist/taro-components/{p-ca6a5916.system.entry.js → p-c6bf856c.system.entry.js} +1 -1
- package/dist/taro-components/{p-1c37143a.system.entry.js → p-c7d84f5f.system.entry.js} +1 -1
- package/dist/taro-components/{p-443e31ab.system.entry.js → p-c984e3bd.system.entry.js} +1 -1
- package/dist/taro-components/{p-fa31b2de.system.entry.js → p-cb55d5a3.system.entry.js} +1 -1
- package/dist/taro-components/p-cc02c5b6.system.entry.js +1 -0
- package/dist/taro-components/p-ce63e336.system.entry.js +1 -0
- package/dist/taro-components/p-d04b19f1.system.entry.js +1 -0
- package/dist/taro-components/p-d0cabaaa.js +2 -0
- package/dist/taro-components/p-d2023e97.entry.js +1 -0
- package/dist/taro-components/{p-fbf13159.system.entry.js → p-d2b08d6c.system.entry.js} +1 -1
- package/dist/taro-components/p-d3573732.system.entry.js +1 -0
- package/dist/taro-components/{p-e853a2c8.system.entry.js → p-d482a085.system.entry.js} +1 -1
- package/dist/taro-components/{p-ddf75d6a.system.entry.js → p-d6bd3fa0.system.entry.js} +1 -1
- package/dist/taro-components/{p-4979e93c.system.entry.js → p-d952367b.system.entry.js} +1 -1
- package/dist/taro-components/p-d9b9319b.system.js +1 -0
- package/dist/taro-components/p-da00c309.entry.js +1 -0
- package/dist/taro-components/p-da3ae8b9.entry.js +1 -0
- package/dist/taro-components/p-da5ac143.system.entry.js +1 -0
- package/dist/taro-components/p-db885f6a.entry.js +1 -0
- package/dist/taro-components/{p-b087ad2a.system.entry.js → p-deaafb30.system.entry.js} +1 -1
- package/dist/taro-components/{p-5b9aa4b0.system.entry.js → p-df082aca.system.entry.js} +1 -1
- package/dist/taro-components/p-e30dbf52.entry.js +1 -0
- package/dist/taro-components/p-e4b971a9.entry.js +1 -0
- package/dist/taro-components/{p-cae6c5d0.system.entry.js → p-e5f31143.system.entry.js} +1 -1
- package/dist/taro-components/p-e6a85481.entry.js +1 -0
- package/dist/taro-components/p-ea2ea074.entry.js +1 -0
- package/dist/taro-components/p-ea867ded.entry.js +1 -0
- package/dist/taro-components/{p-fe5eefdc.system.entry.js → p-eb385fbc.system.entry.js} +1 -1
- package/dist/taro-components/{p-43367dd1.entry.js → p-eb7aa8ad.entry.js} +1 -1
- package/dist/taro-components/{p-3293c5d9.system.entry.js → p-ede005c7.system.entry.js} +1 -1
- package/dist/taro-components/{p-61a325d2.system.entry.js → p-ee2e9a0f.system.entry.js} +1 -1
- package/dist/taro-components/{p-cafbb3d9.system.entry.js → p-f0694b9f.system.entry.js} +1 -1
- package/dist/taro-components/{p-a96f8f60.system.entry.js → p-f1597269.system.entry.js} +1 -1
- package/dist/taro-components/{p-d973d536.entry.js → p-f26ddbc9.entry.js} +1 -1
- package/dist/taro-components/{p-0a64f78c.system.entry.js → p-f490ca1e.system.entry.js} +1 -1
- package/dist/taro-components/{p-7fdbcf4d.entry.js → p-f5cd77f9.entry.js} +1 -1
- package/dist/taro-components/{p-dc08715a.entry.js → p-f6d29525.entry.js} +1 -1
- package/dist/taro-components/p-f922c742.entry.js +1 -0
- package/dist/taro-components/p-fa01bbca.entry.js +1 -0
- package/dist/taro-components/{p-17938fa0.system.entry.js → p-fb23fdb8.system.entry.js} +1 -1
- package/dist/taro-components/{p-4fad4beb.system.entry.js → p-fc124d0d.system.entry.js} +1 -1
- package/dist/taro-components/{p-6ba08ce0.system.entry.js → p-fe3e2fdb.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/swiper/swiper-item.d.ts +1 -3
- package/dist/types/components/swiper/swiper.d.ts +13 -9
- package/dist/types/components.d.ts +8 -2
- package/lib/vue3/components.js +2 -2
- package/lib/vue3/components.js.map +1 -1
- package/package.json +6 -6
- package/types/Picker.d.ts +1 -0
- package/types/Swiper.d.ts +4 -0
- package/types/global.d.ts +4 -0
- package/types/index.d.ts +20 -0
- package/types/index.solid.d.ts +297 -0
- package/dist/taro-components/p-047e4bfe.entry.js +0 -1
- package/dist/taro-components/p-06adeb65.system.entry.js +0 -1
- package/dist/taro-components/p-07f27474.entry.js +0 -1
- package/dist/taro-components/p-083c3147.system.entry.js +0 -1
- package/dist/taro-components/p-0f2c1ecc.entry.js +0 -1
- package/dist/taro-components/p-0f480c38.system.entry.js +0 -1
- package/dist/taro-components/p-0ff5a55b.entry.js +0 -1
- package/dist/taro-components/p-156e9634.system.entry.js +0 -1
- package/dist/taro-components/p-17e72555.entry.js +0 -1
- package/dist/taro-components/p-26eb2f3f.entry.js +0 -1
- package/dist/taro-components/p-27d372b4.system.entry.js +0 -1
- package/dist/taro-components/p-280795f2.entry.js +0 -1
- package/dist/taro-components/p-292470e5.entry.js +0 -1
- package/dist/taro-components/p-2d537212.entry.js +0 -1
- package/dist/taro-components/p-2f177716.entry.js +0 -1
- package/dist/taro-components/p-32c0f326.entry.js +0 -1
- package/dist/taro-components/p-35dec732.entry.js +0 -1
- package/dist/taro-components/p-38b29261.entry.js +0 -1
- package/dist/taro-components/p-3a180dc7.entry.js +0 -1
- package/dist/taro-components/p-402c7f93.entry.js +0 -1
- package/dist/taro-components/p-425d1d69.entry.js +0 -1
- package/dist/taro-components/p-4523b1c7.entry.js +0 -1
- package/dist/taro-components/p-47790dc0.system.entry.js +0 -1
- package/dist/taro-components/p-50849470.system.entry.js +0 -1
- package/dist/taro-components/p-56552c9e.entry.js +0 -1
- package/dist/taro-components/p-57b77f17.system.entry.js +0 -1
- package/dist/taro-components/p-5884c108.system.entry.js +0 -1
- package/dist/taro-components/p-5c156db3.system.entry.js +0 -1
- package/dist/taro-components/p-6282bdee.system.entry.js +0 -1
- package/dist/taro-components/p-68197378.entry.js +0 -1
- package/dist/taro-components/p-6989c232.entry.js +0 -1
- package/dist/taro-components/p-7163d09e.system.js +0 -1
- package/dist/taro-components/p-75b4c1fc.system.entry.js +0 -1
- package/dist/taro-components/p-77e82dfa.entry.js +0 -1
- package/dist/taro-components/p-7e692c70.entry.js +0 -1
- package/dist/taro-components/p-7ebd4310.entry.js +0 -1
- package/dist/taro-components/p-8179438b.system.entry.js +0 -1
- package/dist/taro-components/p-84998109.entry.js +0 -1
- package/dist/taro-components/p-855619b6.system.entry.js +0 -1
- package/dist/taro-components/p-8b0c9d3f.entry.js +0 -1
- package/dist/taro-components/p-937a6c36.entry.js +0 -1
- package/dist/taro-components/p-93a2b2e9.entry.js +0 -1
- package/dist/taro-components/p-93b02321.entry.js +0 -1
- package/dist/taro-components/p-9571836f.entry.js +0 -1
- package/dist/taro-components/p-a25aca16.system.entry.js +0 -1
- package/dist/taro-components/p-a50c6736.entry.js +0 -1
- package/dist/taro-components/p-aabac550.entry.js +0 -1
- package/dist/taro-components/p-ac714300.system.entry.js +0 -1
- package/dist/taro-components/p-acb113bd.entry.js +0 -1
- package/dist/taro-components/p-b4c7bb48.entry.js +0 -1
- package/dist/taro-components/p-bb67318d.entry.js +0 -1
- package/dist/taro-components/p-be055537.entry.js +0 -1
- package/dist/taro-components/p-be1701b2.entry.js +0 -1
- package/dist/taro-components/p-c056d527.system.entry.js +0 -1
- package/dist/taro-components/p-c0c567e5.system.entry.js +0 -1
- package/dist/taro-components/p-c3dc7072.entry.js +0 -1
- package/dist/taro-components/p-c71d5745.system.entry.js +0 -1
- package/dist/taro-components/p-c7836e2b.entry.js +0 -1
- package/dist/taro-components/p-c8cd6e16.entry.js +0 -1
- package/dist/taro-components/p-c95d2b90.entry.js +0 -1
- package/dist/taro-components/p-ccbaba23.entry.js +0 -1
- package/dist/taro-components/p-e62a1287.js +0 -2
- package/dist/taro-components/p-ebb1ae64.entry.js +0 -1
- package/dist/taro-components/p-f034a433.entry.js +0 -1
- package/dist/taro-components/p-f367a754.entry.js +0 -1
- package/dist/taro-components/p-f8f2461f.entry.js +0 -1
- package/dist/taro-components/p-fab63183.entry.js +0 -1
- package/dist/taro-components/p-feb89474.system.entry.js +0 -1
- package/dist/taro-components/p-ff772345.entry.js +0 -1
|
@@ -14,56 +14,58 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _Swiper_id, _Swiper_source;
|
|
17
|
+
var _Swiper_id, _Swiper_source, _Swiper_swiperResetting, _Swiper_domChangeByOutSide, _Swiper_lastSwiperActiveIndex;
|
|
18
18
|
import { h, Host } from '@stencil/core';
|
|
19
|
-
import
|
|
20
|
-
import SwiperJS from 'swiper/swiper-bundle.esm.js';
|
|
19
|
+
import SwiperJS from 'swiper/bundle';
|
|
21
20
|
import { debounce } from '../../utils';
|
|
22
21
|
let INSTANCE_ID = 0;
|
|
22
|
+
const ONE_ADDITIONAL_SLIDES_THRESHOLD = 5;
|
|
23
|
+
const TWO_ADDITIONAL_SLIDES_THRESHOLD = 7;
|
|
23
24
|
export class Swiper {
|
|
24
25
|
constructor() {
|
|
25
26
|
_Swiper_id.set(this, INSTANCE_ID++);
|
|
26
27
|
_Swiper_source.set(this, '');
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (list.length >= 1) {
|
|
36
|
-
this.observerFirst.observe(list[0], {
|
|
37
|
-
characterData: true
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
else if (list.length >= 2) {
|
|
41
|
-
this.observerLast.observe(list[list.length - 1], {
|
|
42
|
-
characterData: true
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
this.handleSwiperLoop = () => {
|
|
47
|
-
var _a, _b, _c, _d;
|
|
48
|
-
if (!this.swiper || !this.circular)
|
|
28
|
+
_Swiper_swiperResetting.set(this, false
|
|
29
|
+
// dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper
|
|
30
|
+
);
|
|
31
|
+
// dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper
|
|
32
|
+
_Swiper_domChangeByOutSide.set(this, false);
|
|
33
|
+
_Swiper_lastSwiperActiveIndex.set(this, 0);
|
|
34
|
+
this.handleSwiperSizeDebounce = debounce(() => {
|
|
35
|
+
if (!this.swiper || !this.isWillLoadCalled)
|
|
49
36
|
return;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
if (this.circular) {
|
|
38
|
+
if (__classPrivateFieldGet(this, _Swiper_domChangeByOutSide, "f")) {
|
|
39
|
+
this.reset();
|
|
40
|
+
__classPrivateFieldSet(this, _Swiper_domChangeByOutSide, false, "f");
|
|
41
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, false, "f");
|
|
42
|
+
}
|
|
56
43
|
}
|
|
57
44
|
else {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
this.handleSwiperLoopDebounce = debounce(this.handleSwiperLoop, 50);
|
|
62
|
-
this.handleSwiperSizeDebounce = debounce(() => {
|
|
63
|
-
if (this.swiper && this.swiper.$wrapperEl && !this.circular) {
|
|
64
|
-
this.swiper.updateSlides();
|
|
45
|
+
this.swiper.update();
|
|
46
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, false, "f");
|
|
65
47
|
}
|
|
66
48
|
}, 50);
|
|
49
|
+
this.reset = () => {
|
|
50
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, true, "f");
|
|
51
|
+
__classPrivateFieldSet(this, _Swiper_lastSwiperActiveIndex, this.swiper.realIndex, "f");
|
|
52
|
+
this.swiper.destroy();
|
|
53
|
+
this.handleInit(true);
|
|
54
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, false, "f");
|
|
55
|
+
};
|
|
56
|
+
// 下面为方法函数
|
|
57
|
+
this.getSlidersList = () => this.el.querySelectorAll('taro-swiper-item-core:not(.swiper-slide-duplicate)') || [];
|
|
58
|
+
// 获取是否需要手动修复 loop 的条件
|
|
59
|
+
this.getNeedFixLoop = () => {
|
|
60
|
+
const margins = this.parseMargin();
|
|
61
|
+
const hasMargin = margins.filter(Boolean).length > 0;
|
|
62
|
+
return this.circular && hasMargin;
|
|
63
|
+
};
|
|
64
|
+
this.parseMargin = () => {
|
|
65
|
+
const [, previousMargin] = /^(\d+)px/.exec(this.previousMargin) || [];
|
|
66
|
+
const [, nextMargin] = /^(\d+)px/.exec(this.nextMargin) || [];
|
|
67
|
+
return [parseInt(previousMargin) || 0, parseInt(nextMargin) || 0];
|
|
68
|
+
};
|
|
67
69
|
this.swiperWrapper = undefined;
|
|
68
70
|
this.swiper = undefined;
|
|
69
71
|
this.isWillLoadCalled = false;
|
|
@@ -82,39 +84,50 @@ export class Swiper {
|
|
|
82
84
|
this.displayMultipleItems = 1;
|
|
83
85
|
this.full = false;
|
|
84
86
|
this.zoom = false;
|
|
87
|
+
this.effectsProps = {};
|
|
85
88
|
this.observer = undefined;
|
|
86
|
-
this.observerFirst = undefined;
|
|
87
|
-
this.observerLast = undefined;
|
|
88
89
|
}
|
|
89
90
|
watchCurrent(newVal) {
|
|
90
|
-
if (this.currentItemId || !this.isWillLoadCalled)
|
|
91
|
+
if (this.currentItemId || !this.isWillLoadCalled || !this.swiper)
|
|
91
92
|
return;
|
|
92
93
|
const n = parseInt(newVal, 10);
|
|
93
|
-
if (isNaN(n))
|
|
94
|
+
if (isNaN(n) || n === this.swiper.realIndex)
|
|
94
95
|
return;
|
|
96
|
+
__classPrivateFieldSet(this, _Swiper_source, '', "f");
|
|
95
97
|
if (this.circular) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
this.swiper.slideToLoop(n); // 更新下标
|
|
99
|
+
this.autoplay && this.swiper.autoplay.pause();
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
this.swiper.loopFix();
|
|
102
|
+
this.autoplay && this.swiper.autoplay.start();
|
|
99
103
|
}
|
|
100
104
|
else {
|
|
101
105
|
this.swiper.slideTo(n); // 更新下标
|
|
102
106
|
}
|
|
103
107
|
}
|
|
104
108
|
watchCurrentItemId(newVal) {
|
|
105
|
-
|
|
106
|
-
|
|
109
|
+
if (!this.swiperWrapper || !this.isWillLoadCalled)
|
|
110
|
+
return;
|
|
107
111
|
let itemIdIndex = 0;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
|
|
112
|
+
this.getSlidersList().forEach((swiperItem, index) => {
|
|
113
|
+
const itemId = swiperItem.getAttribute('item-id');
|
|
114
|
+
if (itemId === newVal) {
|
|
115
|
+
if (this.circular) {
|
|
116
|
+
itemIdIndex = Number(swiperItem.getAttribute('data-swiper-slide-index'));
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
itemIdIndex = index;
|
|
120
|
+
}
|
|
112
121
|
}
|
|
113
122
|
});
|
|
123
|
+
if (itemIdIndex === this.swiper.realIndex)
|
|
124
|
+
return; // 无需更新
|
|
125
|
+
__classPrivateFieldSet(this, _Swiper_source, '', "f");
|
|
114
126
|
if (this.circular) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
127
|
+
this.swiper.slideToLoop(itemIdIndex); // 更新下标
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
this.swiper.loopFix();
|
|
130
|
+
this.autoplay && this.swiper.autoplay.start();
|
|
118
131
|
}
|
|
119
132
|
else {
|
|
120
133
|
this.swiper.slideTo(itemIdIndex); // 更新下标
|
|
@@ -142,165 +155,156 @@ export class Swiper {
|
|
|
142
155
|
}
|
|
143
156
|
}
|
|
144
157
|
watchDuration(newVal) {
|
|
145
|
-
if (!this.isWillLoadCalled)
|
|
158
|
+
if (!this.swiper || !this.isWillLoadCalled)
|
|
146
159
|
return;
|
|
147
160
|
this.swiper.params.speed = newVal;
|
|
148
161
|
}
|
|
149
162
|
watchInterval(newVal) {
|
|
150
|
-
if (!this.isWillLoadCalled)
|
|
163
|
+
if (!this.swiper || !this.isWillLoadCalled)
|
|
151
164
|
return;
|
|
152
165
|
if (typeof this.swiper.params.autoplay === 'object') {
|
|
153
166
|
this.swiper.params.autoplay.delay = newVal;
|
|
154
167
|
}
|
|
155
168
|
}
|
|
156
169
|
watchSwiperWrapper(newVal) {
|
|
157
|
-
if (!this.isWillLoadCalled)
|
|
170
|
+
if (!this.isWillLoadCalled || !this.swiper)
|
|
158
171
|
return;
|
|
159
172
|
if (!newVal)
|
|
160
173
|
return;
|
|
174
|
+
const beforeDomOperation = () => {
|
|
175
|
+
__classPrivateFieldSet(this, _Swiper_domChangeByOutSide, true, "f");
|
|
176
|
+
// 如果是由于外部子节点的变化引起的 dom 变化,需要重新初始化 swiper。
|
|
177
|
+
// 在初dom操作之前,需要调用 loopDestroy,把子节点的顺序恢复
|
|
178
|
+
this.swiper.loopDestroy();
|
|
179
|
+
this.swiper.params.loop = false;
|
|
180
|
+
};
|
|
161
181
|
this.el.appendChild = (newChild) => {
|
|
182
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, true, "f");
|
|
183
|
+
if (!__classPrivateFieldGet(this, _Swiper_domChangeByOutSide, "f") && this.circular) {
|
|
184
|
+
beforeDomOperation();
|
|
185
|
+
}
|
|
162
186
|
return newVal.appendChild(newChild);
|
|
163
187
|
};
|
|
164
188
|
this.el.insertBefore = (newChild, refChild) => {
|
|
189
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, true, "f");
|
|
190
|
+
if (!__classPrivateFieldGet(this, _Swiper_domChangeByOutSide, "f") && this.circular) {
|
|
191
|
+
beforeDomOperation();
|
|
192
|
+
}
|
|
165
193
|
return newVal.insertBefore(newChild, refChild);
|
|
166
194
|
};
|
|
167
195
|
this.el.replaceChild = (newChild, oldChild) => {
|
|
196
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, true, "f");
|
|
197
|
+
if (!__classPrivateFieldGet(this, _Swiper_domChangeByOutSide, "f") && this.circular) {
|
|
198
|
+
beforeDomOperation();
|
|
199
|
+
}
|
|
168
200
|
return newVal.replaceChild(newChild, oldChild);
|
|
169
201
|
};
|
|
170
202
|
this.el.removeChild = (oldChild) => {
|
|
203
|
+
__classPrivateFieldSet(this, _Swiper_swiperResetting, true, "f");
|
|
204
|
+
if (!__classPrivateFieldGet(this, _Swiper_domChangeByOutSide, "f") && this.circular) {
|
|
205
|
+
beforeDomOperation();
|
|
206
|
+
}
|
|
171
207
|
return newVal.removeChild(oldChild);
|
|
172
208
|
};
|
|
173
|
-
this.el.addEventListener('DOMNodeInserted', this.handleSwiperSizeDebounce);
|
|
174
|
-
this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSizeDebounce);
|
|
175
|
-
this.el.addEventListener('MutationObserver', this.handleSwiperSizeDebounce);
|
|
176
209
|
}
|
|
177
210
|
watchCircular() {
|
|
178
|
-
if (this.swiper)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
211
|
+
if (!this.swiper || !this.isWillLoadCalled)
|
|
212
|
+
return;
|
|
213
|
+
this.reset();
|
|
182
214
|
}
|
|
183
215
|
watchDisplayMultipleItems() {
|
|
184
|
-
if (this.swiper)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
216
|
+
if (!this.swiper || !this.isWillLoadCalled)
|
|
217
|
+
return;
|
|
218
|
+
this.reset();
|
|
188
219
|
}
|
|
189
220
|
componentWillLoad() {
|
|
190
221
|
this.isWillLoadCalled = true;
|
|
191
222
|
}
|
|
192
223
|
componentDidLoad() {
|
|
193
|
-
var _a;
|
|
194
224
|
this.handleInit();
|
|
195
|
-
if (!this.swiper || !this.
|
|
225
|
+
if (!this.swiper || !this.swiperWrapper)
|
|
196
226
|
return;
|
|
197
|
-
|
|
198
|
-
this.observer
|
|
199
|
-
this.observer.observe(wrapper, {
|
|
227
|
+
this.observer = new MutationObserver(this.handleSwiperSizeDebounce);
|
|
228
|
+
this.observer.observe(this.swiperWrapper, {
|
|
200
229
|
childList: true
|
|
201
230
|
});
|
|
202
231
|
}
|
|
203
|
-
componentWillUpdate() {
|
|
204
|
-
var _a, _b;
|
|
205
|
-
if (!this.swiper)
|
|
206
|
-
return;
|
|
207
|
-
if (this.autoplay && !((_a = this.swiper.autoplay) === null || _a === void 0 ? void 0 : _a.running)) {
|
|
208
|
-
(_b = this.swiper.autoplay) === null || _b === void 0 ? void 0 : _b.start();
|
|
209
|
-
}
|
|
210
|
-
if (this.swiper.$el) {
|
|
211
|
-
this.swiper.update(); // 更新子元素
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
componentDidRender() {
|
|
215
|
-
this.handleSwiperLoop();
|
|
216
|
-
}
|
|
217
232
|
disconnectedCallback() {
|
|
218
|
-
var _a
|
|
219
|
-
|
|
220
|
-
this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSizeDebounce);
|
|
221
|
-
this.el.removeEventListener('MutationObserver', this.handleSwiperSizeDebounce);
|
|
222
|
-
(_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
223
|
-
(_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
224
|
-
(_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
233
|
+
var _a;
|
|
234
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
225
235
|
}
|
|
226
|
-
handleInit() {
|
|
227
|
-
const { autoplay, circular, current, currentItemId, displayMultipleItems, duration, interval, vertical } = this;
|
|
228
|
-
let initialSlide =
|
|
229
|
-
if (
|
|
230
|
-
|
|
231
|
-
this.el.querySelectorAll('taro-swiper-item-core:not(.swiper-slide-duplicate)').forEach((swiperItem, index) => {
|
|
232
|
-
// @ts-ignore
|
|
233
|
-
if (swiperItem.itemId && swiperItem.itemId === currentItemId) {
|
|
234
|
-
itemIdIndex = index;
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
initialSlide = circular ? itemIdIndex + 1 : itemIdIndex;
|
|
236
|
+
handleInit(reset = false) {
|
|
237
|
+
const { autoplay, circular, current, currentItemId, displayMultipleItems, duration, interval, effectsProps, vertical } = this;
|
|
238
|
+
let initialSlide = current;
|
|
239
|
+
if (reset) {
|
|
240
|
+
initialSlide = __classPrivateFieldGet(this, _Swiper_lastSwiperActiveIndex, "f");
|
|
238
241
|
}
|
|
242
|
+
else {
|
|
243
|
+
if (currentItemId) {
|
|
244
|
+
let itemIdIndex = 0;
|
|
245
|
+
this.getSlidersList().forEach((swiperItem, index) => {
|
|
246
|
+
// @ts-ignore
|
|
247
|
+
if (swiperItem.itemId && swiperItem.itemId === currentItemId) {
|
|
248
|
+
itemIdIndex = index;
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
initialSlide = itemIdIndex;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const loopAdditionalSlides = this.getLoopAdditionalSlides();
|
|
255
|
+
const centeredSlides = displayMultipleItems === 1;
|
|
256
|
+
const slidesPerView = displayMultipleItems === 1 ? 'auto' : displayMultipleItems;
|
|
239
257
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
240
258
|
const that = this;
|
|
241
|
-
const options = {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
zoom: this.zoom,
|
|
251
|
-
on: {
|
|
252
|
-
slideTo() {
|
|
253
|
-
that.current = this.realIndex;
|
|
254
|
-
},
|
|
255
|
-
// Note: slideChange 事件在 swiper.slideTo 改写 current 时不触发,因此用 slideChangeTransitionEnd 事件代替
|
|
256
|
-
slideChangeTransitionEnd() {
|
|
257
|
-
/** Note: 此处不能使用 slideChangeTransitionStart 事件
|
|
258
|
-
* - 因为在它触发时 swiper 各个参数并未准备好,将会导致错误的事件抛出;
|
|
259
|
-
* - 同时抛出 change 事件会导致 current 监听被打乱 swiper 的生命周期;
|
|
260
|
-
* - 模式与 slideTo 结合时,会导致动画会被中断、slider 展示不完整或衔接模式错误等问题。
|
|
261
|
-
*/
|
|
262
|
-
if (circular) {
|
|
263
|
-
if (this.isBeginning || this.isEnd) {
|
|
264
|
-
this.slideToLoop(this.realIndex, 0); // 更新下标
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
that.onChange.emit({
|
|
259
|
+
const options = Object.assign(Object.assign({ pagination: { el: `.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination` }, direction: vertical ? 'vertical' : 'horizontal', loop: circular, slidesPerView: slidesPerView, initialSlide: initialSlide, loopAdditionalSlides: loopAdditionalSlides, speed: duration, observeParents: true, observer: true, centeredSlides: centeredSlides, zoom: this.zoom }, effectsProps), { on: {
|
|
260
|
+
changeTransitionEnd(e) {
|
|
261
|
+
if (__classPrivateFieldGet(that, _Swiper_swiperResetting, "f") || __classPrivateFieldGet(that, _Swiper_lastSwiperActiveIndex, "f") === this.realIndex)
|
|
262
|
+
return;
|
|
263
|
+
__classPrivateFieldSet(that, _Swiper_lastSwiperActiveIndex, this.realIndex, "f");
|
|
264
|
+
that.getNeedFixLoop() && e.loopFix();
|
|
265
|
+
that.autoplay && e.autoplay.start();
|
|
266
|
+
const currentItemId = that.getCurrentItemId(e);
|
|
267
|
+
that.onAnimationFinish.emit({
|
|
269
268
|
current: this.realIndex,
|
|
270
269
|
source: __classPrivateFieldGet(that, _Swiper_source, "f"),
|
|
270
|
+
currentItemId,
|
|
271
271
|
});
|
|
272
|
+
__classPrivateFieldSet(that, _Swiper_source, 'autoplay', "f");
|
|
272
273
|
},
|
|
273
|
-
|
|
274
|
+
touchMove() {
|
|
274
275
|
__classPrivateFieldSet(that, _Swiper_source, 'touch', "f");
|
|
275
276
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
__classPrivateFieldSet(that, _Swiper_source, '', "f");
|
|
282
|
-
});
|
|
283
|
-
that.onAnimationFinish.emit({
|
|
277
|
+
slideChange(e) {
|
|
278
|
+
if (__classPrivateFieldGet(that, _Swiper_swiperResetting, "f") || __classPrivateFieldGet(that, _Swiper_lastSwiperActiveIndex, "f") === this.realIndex)
|
|
279
|
+
return;
|
|
280
|
+
const currentItemId = that.getCurrentItemId(e);
|
|
281
|
+
that.onChange.emit({
|
|
284
282
|
current: this.realIndex,
|
|
285
283
|
source: __classPrivateFieldGet(that, _Swiper_source, "f"),
|
|
284
|
+
currentItemId,
|
|
286
285
|
});
|
|
287
286
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
287
|
+
init: (e) => {
|
|
288
|
+
that.getNeedFixLoop() && e.loopFix();
|
|
289
|
+
that.autoplay && e.autoplay.start();
|
|
290
|
+
},
|
|
291
|
+
touchEnd: (e) => {
|
|
292
|
+
__classPrivateFieldSet(that, _Swiper_source, 'touch', "f");
|
|
293
|
+
that.autoplay && e.autoplay.start();
|
|
294
|
+
},
|
|
295
|
+
touchStart: (e) => {
|
|
296
|
+
__classPrivateFieldSet(that, _Swiper_source, 'touch', "f");
|
|
297
|
+
that.autoplay && e.autoplay.pause();
|
|
298
|
+
},
|
|
299
|
+
autoplay(e) {
|
|
300
|
+
// Note: 修复 autoplay 时,切换到其他页面再切回来,autoplay 会停止的问题
|
|
301
|
+
// autoplay 会调用 slideTo 方法,里面会判断是否 animating,如果 animating 为 true,就会被 return
|
|
302
|
+
// 参考源码:https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/slide/slideTo.mjs#27 27行
|
|
303
|
+
// https://github.com/nolimits4web/swiper/blob/v11.1.0/src/modules/autoplay/autoplay.mjs
|
|
304
|
+
e.animating = false;
|
|
305
|
+
__classPrivateFieldSet(that, _Swiper_source, 'autoplay', "f");
|
|
301
306
|
}
|
|
302
|
-
}
|
|
303
|
-
};
|
|
307
|
+
} });
|
|
304
308
|
// 自动播放
|
|
305
309
|
if (autoplay) {
|
|
306
310
|
options.autoplay = {
|
|
@@ -309,35 +313,72 @@ export class Swiper {
|
|
|
309
313
|
};
|
|
310
314
|
}
|
|
311
315
|
this.swiper = new SwiperJS(`.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container`, options);
|
|
312
|
-
|
|
316
|
+
// Note: 这里是拦截了 swiper 的 minTranslate 和 maxTranslate 方法,手动修复了 loop 模式下的 margin 问题
|
|
317
|
+
// 因为这两个属性会影响滑动到哪个位置进行 fixloop
|
|
318
|
+
// 可参考源码:https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/events/onTouchMove.mjs
|
|
319
|
+
// https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/loop/loopFix.mjs
|
|
320
|
+
if (this.getNeedFixLoop()) {
|
|
321
|
+
// @ts-ignore
|
|
322
|
+
const minTranslate = this.swiper.minTranslate.bind(this.swiper);
|
|
323
|
+
//@ts-ignore
|
|
324
|
+
const maxTranslate = this.swiper.maxTranslate.bind(this.swiper);
|
|
325
|
+
if (centeredSlides && this.getSlidersList().length < 4) {
|
|
326
|
+
//@ts-ignore
|
|
327
|
+
this.swiper.minTranslate = () => minTranslate() + this.parseMargin()[1];
|
|
328
|
+
//@ts-ignore
|
|
329
|
+
this.swiper.maxTranslate = () => maxTranslate() - this.parseMargin()[0];
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
//@ts-ignore
|
|
333
|
+
this.swiper.minTranslate = () => minTranslate() - this.parseMargin()[0];
|
|
334
|
+
//@ts-ignore
|
|
335
|
+
this.swiper.maxTranslate = () => maxTranslate() + this.parseMargin()[1];
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
this.swiperWrapper = this.swiper.wrapperEl;
|
|
339
|
+
}
|
|
340
|
+
// Note: loop 的时候添加 additionalSlides 可以避免循环的时候由于 loopFix 不及时,出现空白的问题。但是并不是 additionalSlides 越多越好,因为 additionalSlides 越多,如果 swiper-item 的数量不够,会导致出现 bug。
|
|
341
|
+
// 目前的策略是 swiper-item 的数量小于等于 5 时,不添加 additionalSlides,大于 5 小于等于 7 时,添加 1 个 additionalSlides,大于 7 时,添加 2 个 additionalSlides。
|
|
342
|
+
getLoopAdditionalSlides() {
|
|
343
|
+
const slidersLength = (this.getSlidersList()).length;
|
|
344
|
+
if (!this.el || !this.getNeedFixLoop() || slidersLength < ONE_ADDITIONAL_SLIDES_THRESHOLD)
|
|
345
|
+
return 0;
|
|
346
|
+
if (slidersLength <= TWO_ADDITIONAL_SLIDES_THRESHOLD)
|
|
347
|
+
return 1;
|
|
348
|
+
return 2;
|
|
349
|
+
}
|
|
350
|
+
getCurrentItemId(swiper) {
|
|
351
|
+
const slides = swiper.slides;
|
|
352
|
+
const activeIndex = swiper.activeIndex;
|
|
353
|
+
const currentSlide = slides[activeIndex];
|
|
354
|
+
return currentSlide.getAttribute('item-id');
|
|
313
355
|
}
|
|
314
356
|
render() {
|
|
315
357
|
const { vertical, indicatorDots, indicatorColor, indicatorActiveColor } = this;
|
|
316
|
-
const
|
|
317
|
-
const
|
|
358
|
+
const [pM, nM] = this.parseMargin();
|
|
359
|
+
const hasMargin = pM || nM;
|
|
360
|
+
const hostStyle = {};
|
|
361
|
+
if (hasMargin) {
|
|
362
|
+
hostStyle.overflow = 'hidden';
|
|
363
|
+
}
|
|
318
364
|
if (this.full) {
|
|
319
365
|
hostStyle.height = '100%';
|
|
320
|
-
style.height = '100%';
|
|
321
|
-
}
|
|
322
|
-
const [, previousMargin] = /^(\d+)px/.exec(this.previousMargin) || [];
|
|
323
|
-
const [, nextMargin] = /^(\d+)px/.exec(this.nextMargin) || [];
|
|
324
|
-
const pM = parseInt(previousMargin) || 0;
|
|
325
|
-
const nM = parseInt(nextMargin) || 0;
|
|
326
|
-
if (vertical) {
|
|
327
|
-
style.marginTop = `${pM}px`;
|
|
328
|
-
style.marginBottom = `${nM}px`;
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
style.marginRight = `${nM}px`;
|
|
332
|
-
style.marginLeft = `${pM}px`;
|
|
333
366
|
}
|
|
334
|
-
|
|
367
|
+
const swiperContainerStyleList = [
|
|
368
|
+
'overflow: visible;',
|
|
369
|
+
vertical ? `margin-top: ${pM}px; margin-bottom: ${nM}px;` : `margin-right: ${nM}px; margin-left: ${pM}px;`,
|
|
370
|
+
this.full ? 'height: 100%;' : '',
|
|
371
|
+
];
|
|
372
|
+
const swiperPaginationStyleList = [
|
|
373
|
+
indicatorDots ? 'opacity: 1;' : 'display: none;',
|
|
374
|
+
'font-size: 0;'
|
|
375
|
+
];
|
|
376
|
+
return (h(Host, { class: `taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")}`, style: hostStyle }, h("div", { class: 'swiper-container' }, h("style", { type: 'text/css' }, `
|
|
335
377
|
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${indicatorColor} }
|
|
336
378
|
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${indicatorActiveColor} }
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}) }))));
|
|
379
|
+
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container { ${swiperContainerStyleList.join('')} }
|
|
380
|
+
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination { ${swiperPaginationStyleList.join('')} }
|
|
381
|
+
`), h("div", { class: 'swiper-wrapper' }, h("slot", null)), h("div", { class: 'swiper-pagination' }))));
|
|
341
382
|
}
|
|
342
383
|
static get is() { return "taro-swiper-core"; }
|
|
343
384
|
static get originalStyleUrls() {
|
|
@@ -621,6 +662,26 @@ export class Swiper {
|
|
|
621
662
|
"attribute": "zoom",
|
|
622
663
|
"reflect": false,
|
|
623
664
|
"defaultValue": "false"
|
|
665
|
+
},
|
|
666
|
+
"effectsProps": {
|
|
667
|
+
"type": "unknown",
|
|
668
|
+
"mutable": false,
|
|
669
|
+
"complexType": {
|
|
670
|
+
"original": "Record<string, any>",
|
|
671
|
+
"resolved": "{ [x: string]: any; }",
|
|
672
|
+
"references": {
|
|
673
|
+
"Record": {
|
|
674
|
+
"location": "global"
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
"required": false,
|
|
679
|
+
"optional": false,
|
|
680
|
+
"docs": {
|
|
681
|
+
"tags": [],
|
|
682
|
+
"text": "swiper11 \u76F8\u5173\u7684\u52A8\u6548\u53C2\u6570\uFF0C\u5177\u4F53\u89C1\u6587\u6863 https://swiperjs.com/swiper-api#parameters"
|
|
683
|
+
},
|
|
684
|
+
"defaultValue": "{}"
|
|
624
685
|
}
|
|
625
686
|
};
|
|
626
687
|
}
|
|
@@ -629,9 +690,7 @@ export class Swiper {
|
|
|
629
690
|
"swiperWrapper": {},
|
|
630
691
|
"swiper": {},
|
|
631
692
|
"isWillLoadCalled": {},
|
|
632
|
-
"observer": {}
|
|
633
|
-
"observerFirst": {},
|
|
634
|
-
"observerLast": {}
|
|
693
|
+
"observer": {}
|
|
635
694
|
};
|
|
636
695
|
}
|
|
637
696
|
static get events() {
|
|
@@ -696,4 +755,4 @@ export class Swiper {
|
|
|
696
755
|
}];
|
|
697
756
|
}
|
|
698
757
|
}
|
|
699
|
-
_Swiper_id = new WeakMap(), _Swiper_source = new WeakMap();
|
|
758
|
+
_Swiper_id = new WeakMap(), _Swiper_source = new WeakMap(), _Swiper_swiperResetting = new WeakMap(), _Swiper_domChangeByOutSide = new WeakMap(), _Swiper_lastSwiperActiveIndex = new WeakMap();
|