@tarojs/components 4.0.0-beta.7 → 4.0.0-beta.70
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-dbbe9dde.js → index-5b029707.js} +208 -5
- package/dist/cjs/{index-dfd8638f.js → index-8a70c333.js} +6 -0
- 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 +21 -0
- 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 +21 -0
- 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 +21 -0
- 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 +6 -3
- 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 +21 -0
- package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-container-core.cjs.entry.js +21 -0
- 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 +2 -2
- package/dist/cjs/taro-progress-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +4 -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 +2 -2
- 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 +21 -0
- 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 +41 -7
- 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 +3 -3
- 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 +14 -5
- 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/collection-manifest.json +7 -0
- package/dist/collection/components/draggable-sheet/draggable-sheet.js +11 -0
- package/dist/collection/components/grid-builder/grid-builder.js +11 -0
- package/dist/collection/components/list-builder/list-builder.js +11 -0
- package/dist/collection/components/movable-area/movable-area.js +2 -1
- package/dist/collection/components/movable-area/movable-view.js +3 -1
- package/dist/collection/components/nested-scroll-body/nested-scroll-body.js +11 -0
- package/dist/collection/components/nested-scroll-header/nested-scroll-header.js +11 -0
- package/dist/collection/components/open-container/open-container.js +11 -0
- package/dist/collection/components/progress/style/index.css +1 -1
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +3 -0
- package/dist/collection/components/span/span.js +11 -0
- package/dist/collection/components/swiper/swiper.js +59 -5
- package/dist/collection/components/tabbar/style/index.css +1 -1
- package/dist/collection/components/video/video.js +8 -3
- package/dist/collection/utils/index.js +10 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/index3.js +6 -1
- package/dist/components/taro-draggable-sheet-core.d.ts +11 -0
- package/dist/components/taro-draggable-sheet-core.js +33 -0
- package/dist/components/taro-grid-builder-core.d.ts +11 -0
- package/dist/components/taro-grid-builder-core.js +33 -0
- package/dist/components/taro-list-builder-core.d.ts +11 -0
- package/dist/components/taro-list-builder-core.js +33 -0
- package/dist/components/taro-movable-area-core.js +2 -1
- package/dist/components/taro-movable-view-core.js +3 -1
- package/dist/components/taro-nested-scroll-body-core.d.ts +11 -0
- package/dist/components/taro-nested-scroll-body-core.js +33 -0
- package/dist/components/taro-nested-scroll-header-core.d.ts +11 -0
- package/dist/components/taro-nested-scroll-header-core.js +33 -0
- package/dist/components/taro-open-container-core.d.ts +11 -0
- package/dist/components/taro-open-container-core.js +33 -0
- package/dist/components/taro-progress-core.js +1 -1
- package/dist/components/taro-pull-to-refresh-core.js +3 -0
- package/dist/components/taro-span-core.d.ts +11 -0
- package/dist/components/taro-span-core.js +33 -0
- package/dist/components/taro-swiper-core.js +40 -5
- package/dist/components/taro-tabbar.js +2 -2
- package/dist/components/taro-video-core.js +8 -3
- package/dist/esm/{index-d1b03e47.js → index-a00a7418.js} +6 -1
- package/dist/esm/{index-486e187e.js → index-ab3c86da.js} +209 -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 +17 -0
- 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 +17 -0
- 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 +17 -0
- 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 +6 -3
- 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 +17 -0
- package/dist/esm/taro-nested-scroll-header-core.entry.js +17 -0
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-container-core.entry.js +17 -0
- 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 +2 -2
- package/dist/esm/taro-progress-core.entry.js +2 -2
- package/dist/esm/taro-pull-to-refresh-core.entry.js +4 -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 +2 -2
- 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 +17 -0
- 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 +41 -7
- 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 +3 -3
- 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 +10 -5
- 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-a00a7418.js +1 -0
- package/dist/esm-es5/index-ab3c86da.js +2 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -0
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-container-core.entry.js +1 -0
- 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 -0
- 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.d.ts +217 -0
- package/dist/hydrate/index.js +13240 -0
- package/dist/hydrate/package.json +6 -0
- package/dist/taro-components/{p-7b6f6526.system.entry.js → p-0044961f.system.entry.js} +1 -1
- package/dist/taro-components/p-010faa87.system.js +1 -0
- package/dist/taro-components/{p-128f9eb0.entry.js → p-0132e803.entry.js} +1 -1
- package/dist/taro-components/{p-7cecf08e.system.entry.js → p-019124ae.system.entry.js} +1 -1
- package/dist/taro-components/{p-25bbf4aa.system.entry.js → p-04f97133.system.entry.js} +1 -1
- package/dist/taro-components/{p-de3e1cee.system.entry.js → p-069ae782.system.entry.js} +1 -1
- package/dist/taro-components/p-0d8a0733.entry.js +1 -0
- package/dist/taro-components/{p-74129eac.entry.js → p-0f95be56.entry.js} +1 -1
- package/dist/taro-components/{p-61cb688a.entry.js → p-0fe4660a.entry.js} +1 -1
- package/dist/taro-components/{p-205a0692.system.entry.js → p-1087c51a.system.entry.js} +1 -1
- package/dist/taro-components/p-111fadd7.system.entry.js +1 -0
- package/dist/taro-components/{p-88c5f0eb.system.entry.js → p-11c0dc59.system.entry.js} +1 -1
- package/dist/taro-components/{p-5bb60b5e.entry.js → p-12b967fd.entry.js} +1 -1
- package/dist/taro-components/{p-4928ee37.entry.js → p-13bf0192.entry.js} +1 -1
- package/dist/taro-components/{p-3e9bf572.entry.js → p-13e80cf7.entry.js} +1 -1
- package/dist/taro-components/{p-bba220a9.entry.js → p-15c1ce79.entry.js} +1 -1
- package/dist/taro-components/p-16705ca9.entry.js +1 -0
- package/dist/taro-components/{p-bcf5d78a.system.entry.js → p-194ace03.system.entry.js} +1 -1
- package/dist/taro-components/p-19b04eb7.entry.js +1 -0
- package/dist/taro-components/{p-352b6b6b.system.entry.js → p-19b993d8.system.entry.js} +1 -1
- package/dist/taro-components/p-1acf7537.entry.js +1 -0
- package/dist/taro-components/p-1d102ddb.system.entry.js +1 -0
- package/dist/taro-components/p-25636983.entry.js +1 -0
- package/dist/taro-components/{p-4e4cc6ab.entry.js → p-28bc8a48.entry.js} +1 -1
- package/dist/taro-components/p-2b70c348.system.js +2 -0
- package/dist/taro-components/p-2d382d0e.entry.js +1 -0
- package/dist/taro-components/{p-8d437a7f.entry.js → p-2ebc3182.entry.js} +1 -1
- package/dist/taro-components/{p-b6694eb3.system.entry.js → p-2f8ebd28.system.entry.js} +1 -1
- package/dist/taro-components/{p-d60b66c2.entry.js → p-317c4cad.entry.js} +1 -1
- package/dist/taro-components/{p-846aa5ec.entry.js → p-342a2594.entry.js} +1 -1
- package/dist/taro-components/{p-e09e8b51.system.entry.js → p-3430d520.system.entry.js} +1 -1
- package/dist/taro-components/p-34ba9330.system.entry.js +1 -0
- package/dist/taro-components/{p-26545e4e.system.entry.js → p-36ea0ac1.system.entry.js} +1 -1
- package/dist/taro-components/{p-e7d82e00.entry.js → p-370cc947.entry.js} +1 -1
- package/dist/taro-components/p-378b504c.entry.js +1 -0
- package/dist/taro-components/{p-00d05751.entry.js → p-37bc198d.entry.js} +1 -1
- package/dist/taro-components/{p-ba195b39.entry.js → p-39b3e34d.entry.js} +1 -1
- package/dist/taro-components/{p-b04cdd9a.system.entry.js → p-3a0a05fd.system.entry.js} +1 -1
- package/dist/taro-components/{p-5a1bb2d3.system.entry.js → p-3a3d40de.system.entry.js} +1 -1
- package/dist/taro-components/{p-2d6d4850.entry.js → p-3d423adc.entry.js} +1 -1
- package/dist/taro-components/p-3e4b5391.system.entry.js +1 -0
- package/dist/taro-components/{p-10d3c795.system.entry.js → p-3eedb8d7.system.entry.js} +1 -1
- package/dist/taro-components/{p-4cbd26dd.entry.js → p-43932446.entry.js} +1 -1
- package/dist/taro-components/p-4621b303.system.entry.js +1 -0
- package/dist/taro-components/{p-1ee83d63.system.entry.js → p-46ccb393.system.entry.js} +1 -1
- package/dist/taro-components/p-477f8fbd.system.js +1 -0
- package/dist/taro-components/{p-16954dd6.entry.js → p-4824cc94.entry.js} +1 -1
- package/dist/taro-components/p-48a84765.entry.js +1 -0
- package/dist/taro-components/{p-861834ce.entry.js → p-49e9b2ff.entry.js} +1 -1
- package/dist/taro-components/p-4a748c0d.entry.js +1 -0
- package/dist/taro-components/{p-75b927b4.system.entry.js → p-4b5f75b9.system.entry.js} +1 -1
- package/dist/taro-components/p-4c30ea10.entry.js +1 -0
- package/dist/taro-components/{p-2f403f7f.entry.js → p-4e63d3bd.entry.js} +1 -1
- package/dist/taro-components/{p-87422c88.entry.js → p-4fcb258a.entry.js} +1 -1
- package/dist/taro-components/{p-2dea35fd.entry.js → p-4ffae31c.entry.js} +1 -1
- package/dist/taro-components/{p-510a69b3.entry.js → p-50b21f94.entry.js} +1 -1
- package/dist/taro-components/p-5186ab96.system.entry.js +1 -0
- package/dist/taro-components/p-518a9b73.entry.js +1 -0
- package/dist/taro-components/p-52ad5213.system.entry.js +1 -0
- package/dist/taro-components/{p-dbb47d14.system.entry.js → p-55934653.system.entry.js} +1 -1
- package/dist/taro-components/p-55e54f2a.system.entry.js +1 -0
- package/dist/taro-components/{p-02dd30fa.system.entry.js → p-562eace8.system.entry.js} +1 -1
- package/dist/taro-components/p-5893c3ed.js +1 -0
- package/dist/taro-components/{p-34933f34.system.entry.js → p-5a78fbdf.system.entry.js} +1 -1
- package/dist/taro-components/{p-8b70fd1d.entry.js → p-5b4de079.entry.js} +1 -1
- package/dist/taro-components/{p-f554428f.system.entry.js → p-5b86e66b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d36f8c4f.entry.js → p-5bfdb5f3.entry.js} +1 -1
- package/dist/taro-components/{p-07e94301.system.entry.js → p-5c0f97d3.system.entry.js} +1 -1
- package/dist/taro-components/{p-bb712e32.entry.js → p-5dbabb65.entry.js} +1 -1
- package/dist/taro-components/{p-2f683899.entry.js → p-5f4c6ca5.entry.js} +1 -1
- package/dist/taro-components/{p-6229bb7d.system.entry.js → p-618ee593.system.entry.js} +1 -1
- package/dist/taro-components/{p-600d9210.entry.js → p-62df5526.entry.js} +1 -1
- package/dist/taro-components/{p-80106cc2.system.entry.js → p-66029061.system.entry.js} +1 -1
- package/dist/taro-components/{p-940d41e9.system.entry.js → p-69e70cd5.system.entry.js} +1 -1
- package/dist/taro-components/{p-578f19ea.system.entry.js → p-6c06b440.system.entry.js} +1 -1
- package/dist/taro-components/p-6dd357b9.entry.js +1 -0
- package/dist/taro-components/{p-0cf04b3d.system.entry.js → p-6f1034a6.system.entry.js} +1 -1
- package/dist/taro-components/p-6f3187bc.entry.js +1 -0
- package/dist/taro-components/p-6f8926e3.entry.js +1 -0
- package/dist/taro-components/p-6ffc9bda.system.entry.js +1 -0
- package/dist/taro-components/p-751d42cb.entry.js +1 -0
- package/dist/taro-components/{p-48e5ddaa.entry.js → p-756aa971.entry.js} +1 -1
- package/dist/taro-components/p-76c0f443.entry.js +1 -0
- package/dist/taro-components/{p-1182efdd.system.entry.js → p-77e030e9.system.entry.js} +1 -1
- package/dist/taro-components/p-7b3ce3af.system.entry.js +1 -0
- package/dist/taro-components/{p-e457a83a.system.entry.js → p-7b80637e.system.entry.js} +1 -1
- package/dist/taro-components/p-7bc6aa36.entry.js +1 -0
- package/dist/taro-components/{p-bdd7b5a9.entry.js → p-7e3f0837.entry.js} +1 -1
- package/dist/taro-components/p-7f3d9184.entry.js +1 -0
- package/dist/taro-components/{p-9e138188.entry.js → p-80228985.entry.js} +1 -1
- package/dist/taro-components/{p-50e1ba06.system.entry.js → p-80fa706c.system.entry.js} +1 -1
- package/dist/taro-components/{p-7f084a29.system.entry.js → p-829157b1.system.entry.js} +1 -1
- package/dist/taro-components/p-82c5b9d3.entry.js +1 -0
- package/dist/taro-components/{p-290fd78b.system.entry.js → p-82d52f00.system.entry.js} +1 -1
- package/dist/taro-components/p-87b0d22f.entry.js +1 -0
- package/dist/taro-components/p-895982a4.entry.js +1 -0
- package/dist/taro-components/p-8a6e93ed.entry.js +1 -0
- package/dist/taro-components/{p-d03136d7.system.entry.js → p-8b7e37c9.system.entry.js} +1 -1
- package/dist/taro-components/{p-37593ce7.entry.js → p-8bde1f48.entry.js} +1 -1
- package/dist/taro-components/{p-8df92f90.system.entry.js → p-90ee19f8.system.entry.js} +1 -1
- package/dist/taro-components/{p-1e3d7899.system.entry.js → p-923aa1c8.system.entry.js} +1 -1
- package/dist/taro-components/{p-970623a1.entry.js → p-92b7b545.entry.js} +1 -1
- package/dist/taro-components/{p-114f89d6.system.entry.js → p-93b39a89.system.entry.js} +1 -1
- package/dist/taro-components/{p-ebf38559.system.entry.js → p-970a4199.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d76b46e.system.entry.js → p-97177863.system.entry.js} +1 -1
- package/dist/taro-components/{p-92daad3f.system.entry.js → p-99440bcc.system.entry.js} +1 -1
- package/dist/taro-components/p-9f1b0ae1.entry.js +1 -0
- package/dist/taro-components/{p-9a5bfa2a.system.entry.js → p-9f3e0019.system.entry.js} +1 -1
- package/dist/taro-components/{p-e1c2e636.entry.js → p-a0f42e7f.entry.js} +1 -1
- package/dist/taro-components/{p-80278124.entry.js → p-a2f848cc.entry.js} +1 -1
- package/dist/taro-components/{p-c0f710ae.entry.js → p-a6790f39.entry.js} +1 -1
- package/dist/taro-components/{p-014534ca.system.entry.js → p-a997cf7c.system.entry.js} +1 -1
- package/dist/taro-components/{p-8e45a207.system.entry.js → p-aa11b00c.system.entry.js} +1 -1
- package/dist/taro-components/{p-28bf8423.system.entry.js → p-adee7f1b.system.entry.js} +1 -1
- package/dist/taro-components/{p-9b4e5578.entry.js → p-ae99551a.entry.js} +1 -1
- package/dist/taro-components/{p-3dadbe4c.system.entry.js → p-aed23034.system.entry.js} +1 -1
- package/dist/taro-components/{p-170ce205.system.entry.js → p-b0f12e64.system.entry.js} +1 -1
- package/dist/taro-components/{p-a2a70581.system.entry.js → p-b259a558.system.entry.js} +1 -1
- package/dist/taro-components/{p-e25c2a22.entry.js → p-b3129dec.entry.js} +1 -1
- package/dist/taro-components/{p-bdee068b.system.entry.js → p-b3419d7f.system.entry.js} +1 -1
- package/dist/taro-components/{p-dca5e9ee.entry.js → p-b4047b11.entry.js} +1 -1
- package/dist/taro-components/{p-b8e2465a.entry.js → p-b43fa9b0.entry.js} +1 -1
- package/dist/taro-components/{p-64f5abce.entry.js → p-b4707cdd.entry.js} +1 -1
- package/dist/taro-components/{p-ff7dfc5c.system.entry.js → p-b655e854.system.entry.js} +1 -1
- package/dist/taro-components/{p-54941baf.system.entry.js → p-b66dfc82.system.entry.js} +1 -1
- package/dist/taro-components/{p-6cf765b7.system.entry.js → p-ba241824.system.entry.js} +1 -1
- package/dist/taro-components/p-baea6a63.entry.js +1 -0
- package/dist/taro-components/{p-caba17c6.system.entry.js → p-bdafd94c.system.entry.js} +1 -1
- package/dist/taro-components/{p-a17b1a7e.entry.js → p-c0d93f74.entry.js} +1 -1
- package/dist/taro-components/{p-6e9d509a.entry.js → p-c0f16127.entry.js} +1 -1
- package/dist/taro-components/{p-445810cb.entry.js → p-c253be9f.entry.js} +1 -1
- package/dist/taro-components/{p-3bd04d38.entry.js → p-c58627f4.entry.js} +1 -1
- package/dist/taro-components/{p-a197cbae.system.entry.js → p-c863ac7f.system.entry.js} +1 -1
- package/dist/taro-components/p-cc993977.system.entry.js +1 -0
- package/dist/taro-components/{p-d78ab2de.system.entry.js → p-cee51d71.system.entry.js} +1 -1
- package/dist/taro-components/{p-ba50342b.system.entry.js → p-d12b6a84.system.entry.js} +1 -1
- package/dist/taro-components/p-d184903b.entry.js +1 -0
- package/dist/taro-components/{p-72b954ce.system.entry.js → p-d1a095bd.system.entry.js} +1 -1
- package/dist/taro-components/p-d29a59cd.entry.js +1 -0
- package/dist/taro-components/p-d6bd1a5b.entry.js +1 -0
- package/dist/taro-components/p-da4c4cad.entry.js +1 -0
- package/dist/taro-components/{p-e26c787b.entry.js → p-dc366f18.entry.js} +1 -1
- package/dist/taro-components/p-dd7a128d.js +2 -0
- package/dist/taro-components/{p-870e0d9d.entry.js → p-dde26531.entry.js} +1 -1
- package/dist/taro-components/{p-581e844d.system.entry.js → p-de1d495a.system.entry.js} +1 -1
- package/dist/taro-components/{p-dc98486d.entry.js → p-e23769c4.entry.js} +1 -1
- package/dist/taro-components/{p-35e96af8.system.entry.js → p-e2694a79.system.entry.js} +1 -1
- package/dist/taro-components/{p-1d25f4e3.entry.js → p-e2a22cd1.entry.js} +1 -1
- package/dist/taro-components/{p-3ca9aa19.system.entry.js → p-e41ed824.system.entry.js} +1 -1
- package/dist/taro-components/{p-2bbdbe9c.system.entry.js → p-e5a80896.system.entry.js} +1 -1
- package/dist/taro-components/{p-b8858af9.system.entry.js → p-e5b43c80.system.entry.js} +1 -1
- package/dist/taro-components/{p-758e3319.system.entry.js → p-e6a2f1bd.system.entry.js} +1 -1
- package/dist/taro-components/{p-95058ee1.entry.js → p-ead6e57b.entry.js} +1 -1
- package/dist/taro-components/p-ec00e517.entry.js +1 -0
- package/dist/taro-components/p-ed081b3d.entry.js +1 -0
- package/dist/taro-components/{p-1b42ba7e.system.entry.js → p-eda34d91.system.entry.js} +1 -1
- package/dist/taro-components/{p-040f15f2.system.entry.js → p-ee9d6467.system.entry.js} +1 -1
- package/dist/taro-components/{p-2059cbc0.system.entry.js → p-f0056aca.system.entry.js} +1 -1
- package/dist/taro-components/{p-67ff5a50.system.entry.js → p-f470ce9f.system.entry.js} +1 -1
- package/dist/taro-components/{p-9890bb7b.entry.js → p-f662c928.entry.js} +1 -1
- package/dist/taro-components/{p-dc6db06e.system.entry.js → p-f7198b67.system.entry.js} +1 -1
- package/dist/taro-components/{p-74b1be20.system.entry.js → p-f782ee74.system.entry.js} +1 -1
- package/dist/taro-components/p-f94c0445.system.entry.js +1 -0
- package/dist/taro-components/p-f9a13a5c.entry.js +1 -0
- package/dist/taro-components/p-fa9dbb6f.system.entry.js +1 -0
- package/dist/taro-components/{p-9937cf08.system.entry.js → p-fbb789a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-9623f19c.system.entry.js → p-fe1dd94f.system.entry.js} +1 -1
- package/dist/taro-components/{p-55be4215.entry.js → p-fe8ee676.entry.js} +1 -1
- package/dist/taro-components/{p-015b3025.system.entry.js → p-ffaac078.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/draggable-sheet/draggable-sheet.d.ts +5 -0
- package/dist/types/components/grid-builder/grid-builder.d.ts +5 -0
- package/dist/types/components/list-builder/list-builder.d.ts +5 -0
- package/dist/types/components/nested-scroll-body/nested-scroll-body.d.ts +5 -0
- package/dist/types/components/nested-scroll-header/nested-scroll-header.d.ts +5 -0
- package/dist/types/components/open-container/open-container.d.ts +5 -0
- package/dist/types/components/span/span.d.ts +5 -0
- package/dist/types/components/swiper/swiper.d.ts +5 -0
- package/dist/types/components.d.ts +99 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/lib/react/components.d.ts +8 -1
- package/lib/react/components.js +9 -2
- package/lib/react/components.js.map +1 -1
- package/lib/react/index.js +1 -1
- package/lib/vue2/components.d.ts +9 -1
- package/lib/vue2/components.js +24 -2
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.js +1 -1
- package/lib/vue3/components.d.ts +8 -1
- package/lib/vue3/components.js +10 -2
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.js +1 -1
- package/package.json +8 -9
- package/types/Canvas.d.ts +1 -1
- package/types/DraggableSheet.d.ts +47 -0
- package/types/GridBuilder.d.ts +72 -0
- package/types/GridView.d.ts +18 -4
- package/types/Input.d.ts +2 -1
- package/types/ListBuilder.d.ts +55 -0
- package/types/ListView.d.ts +9 -2
- package/types/Map.d.ts +0 -2
- package/types/NavigationBar.d.ts +5 -5
- package/types/NestedScrollBody.d.ts +15 -0
- package/types/NestedScrollHeader.d.ts +15 -0
- package/types/OpenContainer.d.ts +74 -0
- package/types/PageMeta.d.ts +13 -7
- package/types/Picker.d.ts +6 -1
- package/types/PickerView.d.ts +1 -0
- package/types/Script.d.ts +37 -0
- package/types/ScrollView.d.ts +8 -2
- package/types/ShareElement.d.ts +1 -0
- package/types/Slider.d.ts +3 -2
- package/types/Snapshot.d.ts +12 -3
- package/types/Span.d.ts +14 -0
- package/types/StickyHeader.d.ts +15 -2
- package/types/StickySection.d.ts +7 -1
- package/types/Swiper.d.ts +1 -3
- package/types/Switch.d.ts +2 -1
- package/types/Text.d.ts +16 -0
- package/types/Textarea.d.ts +2 -1
- package/types/index.d.ts +8 -0
- package/types/index.vue3.d.ts +4 -0
- package/dist/esm-es5/index-486e187e.js +0 -2
- package/dist/esm-es5/index-d1b03e47.js +0 -1
- package/dist/taro-components/p-06cf6b18.system.entry.js +0 -1
- package/dist/taro-components/p-0e3d8ada.entry.js +0 -1
- package/dist/taro-components/p-101f49dd.entry.js +0 -1
- package/dist/taro-components/p-1ced140d.entry.js +0 -1
- package/dist/taro-components/p-30623371.entry.js +0 -1
- package/dist/taro-components/p-387f300a.entry.js +0 -1
- package/dist/taro-components/p-3afbae36.entry.js +0 -1
- package/dist/taro-components/p-4408d796.entry.js +0 -1
- package/dist/taro-components/p-449f60fa.entry.js +0 -1
- package/dist/taro-components/p-46661961.entry.js +0 -1
- package/dist/taro-components/p-4e4ac1fe.system.entry.js +0 -1
- package/dist/taro-components/p-5307637c.system.entry.js +0 -1
- package/dist/taro-components/p-6066e633.entry.js +0 -1
- package/dist/taro-components/p-69e747dc.entry.js +0 -1
- package/dist/taro-components/p-6bbb639a.system.js +0 -2
- package/dist/taro-components/p-6f027b85.entry.js +0 -1
- package/dist/taro-components/p-764cd497.entry.js +0 -1
- package/dist/taro-components/p-7bd1345f.entry.js +0 -1
- package/dist/taro-components/p-83699a53.entry.js +0 -1
- package/dist/taro-components/p-95e88e0f.entry.js +0 -1
- package/dist/taro-components/p-98b1fc13.js +0 -2
- package/dist/taro-components/p-a61e195b.entry.js +0 -1
- package/dist/taro-components/p-a972aa1d.system.js +0 -1
- package/dist/taro-components/p-ae128150.entry.js +0 -1
- package/dist/taro-components/p-b317674b.entry.js +0 -1
- package/dist/taro-components/p-b9f19e77.entry.js +0 -1
- package/dist/taro-components/p-bb87373d.entry.js +0 -1
- package/dist/taro-components/p-bd5177d3.system.js +0 -1
- package/dist/taro-components/p-bf0d2c21.system.entry.js +0 -1
- package/dist/taro-components/p-c11fcb25.system.entry.js +0 -1
- package/dist/taro-components/p-cbc19d63.entry.js +0 -1
- package/dist/taro-components/p-d3c7f87d.js +0 -1
- package/dist/taro-components/p-eeb6aeb5.system.entry.js +0 -1
- package/dist/taro-components/p-ef0aff29.entry.js +0 -1
- package/dist/taro-components/p-fd1d75db.entry.js +0 -1
|
@@ -60,7 +60,7 @@ export class Swiper {
|
|
|
60
60
|
};
|
|
61
61
|
this.handleSwiperLoopDebounce = debounce(this.handleSwiperLoop, 50);
|
|
62
62
|
this.handleSwiperSizeDebounce = debounce(() => {
|
|
63
|
-
if (this.swiper && !this.circular) {
|
|
63
|
+
if (this.swiper && this.swiper.$wrapperEl && !this.circular) {
|
|
64
64
|
this.swiper.updateSlides();
|
|
65
65
|
}
|
|
66
66
|
}, 50);
|
|
@@ -72,6 +72,7 @@ export class Swiper {
|
|
|
72
72
|
this.indicatorActiveColor = '#000000';
|
|
73
73
|
this.autoplay = false;
|
|
74
74
|
this.current = 0;
|
|
75
|
+
this.currentItemId = '';
|
|
75
76
|
this.interval = 5000;
|
|
76
77
|
this.duration = 500;
|
|
77
78
|
this.circular = false;
|
|
@@ -86,7 +87,7 @@ export class Swiper {
|
|
|
86
87
|
this.observerLast = undefined;
|
|
87
88
|
}
|
|
88
89
|
watchCurrent(newVal) {
|
|
89
|
-
if (!this.isWillLoadCalled)
|
|
90
|
+
if (this.currentItemId || !this.isWillLoadCalled)
|
|
90
91
|
return;
|
|
91
92
|
const n = parseInt(newVal, 10);
|
|
92
93
|
if (isNaN(n))
|
|
@@ -100,6 +101,25 @@ export class Swiper {
|
|
|
100
101
|
this.swiper.slideTo(n); // 更新下标
|
|
101
102
|
}
|
|
102
103
|
}
|
|
104
|
+
watchCurrentItemId(newVal) {
|
|
105
|
+
var _a;
|
|
106
|
+
const wrapper = (_a = this.swiper.$wrapperEl) === null || _a === void 0 ? void 0 : _a[0];
|
|
107
|
+
let itemIdIndex = 0;
|
|
108
|
+
wrapper.querySelectorAll('taro-swiper-item-core:not(.swiper-slide-duplicate)').forEach((swiperItem, index) => {
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
if (swiperItem.itemId && swiperItem.itemId === newVal) {
|
|
111
|
+
itemIdIndex = index;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
if (this.circular) {
|
|
115
|
+
if (!this.swiper.isBeginning && !this.swiper.isEnd) {
|
|
116
|
+
this.swiper.slideToLoop(itemIdIndex); // 更新下标
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.swiper.slideTo(itemIdIndex); // 更新下标
|
|
121
|
+
}
|
|
122
|
+
}
|
|
103
123
|
watchAutoplay(newVal) {
|
|
104
124
|
if (!this.isWillLoadCalled || !this.swiper)
|
|
105
125
|
return;
|
|
@@ -187,7 +207,9 @@ export class Swiper {
|
|
|
187
207
|
if (this.autoplay && !((_a = this.swiper.autoplay) === null || _a === void 0 ? void 0 : _a.running)) {
|
|
188
208
|
(_b = this.swiper.autoplay) === null || _b === void 0 ? void 0 : _b.start();
|
|
189
209
|
}
|
|
190
|
-
this.swiper
|
|
210
|
+
if (this.swiper.$el) {
|
|
211
|
+
this.swiper.update(); // 更新子元素
|
|
212
|
+
}
|
|
191
213
|
}
|
|
192
214
|
componentDidRender() {
|
|
193
215
|
this.handleSwiperLoop();
|
|
@@ -202,7 +224,18 @@ export class Swiper {
|
|
|
202
224
|
(_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
203
225
|
}
|
|
204
226
|
handleInit() {
|
|
205
|
-
const { autoplay, circular, current, displayMultipleItems, duration, interval, vertical } = this;
|
|
227
|
+
const { autoplay, circular, current, currentItemId, displayMultipleItems, duration, interval, vertical } = this;
|
|
228
|
+
let initialSlide = circular ? current + 1 : current;
|
|
229
|
+
if (currentItemId) {
|
|
230
|
+
let itemIdIndex = 0;
|
|
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;
|
|
238
|
+
}
|
|
206
239
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
207
240
|
const that = this;
|
|
208
241
|
const options = {
|
|
@@ -210,7 +243,7 @@ export class Swiper {
|
|
|
210
243
|
direction: vertical ? 'vertical' : 'horizontal',
|
|
211
244
|
loop: circular,
|
|
212
245
|
slidesPerView: displayMultipleItems,
|
|
213
|
-
initialSlide:
|
|
246
|
+
initialSlide: initialSlide,
|
|
214
247
|
speed: duration,
|
|
215
248
|
observer: true,
|
|
216
249
|
observeParents: true,
|
|
@@ -409,6 +442,24 @@ export class Swiper {
|
|
|
409
442
|
"reflect": false,
|
|
410
443
|
"defaultValue": "0"
|
|
411
444
|
},
|
|
445
|
+
"currentItemId": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"mutable": false,
|
|
448
|
+
"complexType": {
|
|
449
|
+
"original": "string",
|
|
450
|
+
"resolved": "string",
|
|
451
|
+
"references": {}
|
|
452
|
+
},
|
|
453
|
+
"required": false,
|
|
454
|
+
"optional": false,
|
|
455
|
+
"docs": {
|
|
456
|
+
"tags": [],
|
|
457
|
+
"text": "\u5F53\u524D\u6240\u5728\u6ED1\u5757\u7684 item-id"
|
|
458
|
+
},
|
|
459
|
+
"attribute": "current-item-id",
|
|
460
|
+
"reflect": false,
|
|
461
|
+
"defaultValue": "''"
|
|
462
|
+
},
|
|
412
463
|
"interval": {
|
|
413
464
|
"type": "number",
|
|
414
465
|
"mutable": false,
|
|
@@ -621,6 +672,9 @@ export class Swiper {
|
|
|
621
672
|
return [{
|
|
622
673
|
"propName": "current",
|
|
623
674
|
"methodName": "watchCurrent"
|
|
675
|
+
}, {
|
|
676
|
+
"propName": "currentItemId",
|
|
677
|
+
"methodName": "watchCurrentItemId"
|
|
624
678
|
}, {
|
|
625
679
|
"propName": "autoplay",
|
|
626
680
|
"methodName": "watchAutoplay"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.weui-tabbar{z-index:500;background-color:#f7f7fa;width:100%;display:flex;position:absolute;bottom:0}.weui-tabbar:before{content:" ";color:#c0bfc4;transform-origin:0 0;border-top:1px solid #c0bfc4;height:1px;position:absolute;top:0;left:0;right:0;transform:scaleY(.5)}.weui-tabbar__item{padding:5px 0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);color:#999;text-align:center;-webkit-tap-highlight-color:transparent;flex:1;font-size:0;display:block}.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label{color:#09bb07}.weui-tabbar__icon{width:27px;height:27px;display:inline-block}.weui-tabbar__icon img{width:100%;height:100%}i.weui-tabbar__icon,.weui-tabbar__icon>i{color:#999;font-size:24px}.weui-tabbar__label{text-align:center;color:#999;font-size:10px;line-height:1.8}.weui-badge{color:#fff;text-align:center;vertical-align:middle;background-color:#f43530;border-radius:18px;min-width:8px;padding:.15em .4em;font-size:12px;line-height:1.2;display:inline-block}.weui-badge_dot{min-width:0;padding:.4em}html,body{height:100%}:root{--taro-tabbar-height
|
|
1
|
+
.weui-tabbar{z-index:500;background-color:#f7f7fa;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.weui-tabbar:before{content:" ";color:#c0bfc4;transform-origin:0 0;border-top:1px solid #c0bfc4;height:1px;position:absolute;top:0;left:0;right:0;transform:scaleY(.5)}.weui-tabbar__item{padding:5px 0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);color:#999;text-align:center;-webkit-tap-highlight-color:transparent;flex:1;font-size:0;display:block}.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label{color:#09bb07}.weui-tabbar__icon{width:27px;height:27px;display:inline-block}.weui-tabbar__icon img{width:100%;height:100%}i.weui-tabbar__icon,.weui-tabbar__icon>i{color:#999;font-size:24px}.weui-tabbar__label{text-align:center;color:#999;font-size:10px;line-height:1.8}.weui-badge{color:#fff;text-align:center;vertical-align:middle;background-color:#f43530;border-radius:18px;min-width:8px;padding:.15em .4em;font-size:12px;line-height:1.2;display:inline-block}.weui-badge_dot{min-width:0;padding:.4em}html,body{height:100%}:root{--taro-tabbar-height:50px}#app{height:100%}.taro-tabbar__border-white:before{border-top-color:#fff!important}.taro-tabbar__container{flex-direction:column;height:100%;display:flex;overflow:hidden}.taro-tabbar__panel{-webkit-overflow-scrolling:auto;flex:1;position:relative;overflow:auto}.taro-tabbar__tabbar{height:var(--taro-tabbar-height);width:100%;transition:bottom .2s,top .2s;position:relative}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{flex:0 0;top:-52px}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
+
import Taro from '@tarojs/taro';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import { throttle } from '../../utils';
|
|
4
5
|
import { formatTime, calcDist, normalizeNumber, screenFn, isHls, scene } from './utils';
|
|
@@ -213,11 +214,15 @@ export class Video {
|
|
|
213
214
|
if (this.isFullScreen && !document[screenFn.fullscreenElement]) {
|
|
214
215
|
setTimeout(() => {
|
|
215
216
|
this.videoRef[screenFn.requestFullscreen]({ navigationUI: 'auto' });
|
|
217
|
+
Taro.eventCenter.trigger('__taroEnterFullScreen', {});
|
|
216
218
|
}, 0);
|
|
217
219
|
}
|
|
218
|
-
else
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
else {
|
|
221
|
+
if (!fromBrowser) {
|
|
222
|
+
// Note: 全屏后,"退出全屏"是浏览器按钮是浏览器内部按钮,非html按钮,点击"退出全屏"按钮是浏览器内部实现功能。此时再次调用exitFullscreen反而会报错,因此不再调用
|
|
223
|
+
document[screenFn.exitFullscreen]();
|
|
224
|
+
}
|
|
225
|
+
Taro.eventCenter.trigger('__taroExitFullScreen', {});
|
|
221
226
|
}
|
|
222
227
|
};
|
|
223
228
|
this.toggleMute = (e) => {
|
|
@@ -33,3 +33,13 @@ export * from './url';
|
|
|
33
33
|
export function isVisible(e) {
|
|
34
34
|
return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
|
|
35
35
|
}
|
|
36
|
+
export function isElement(e) {
|
|
37
|
+
return typeof HTMLElement === 'object'
|
|
38
|
+
? e instanceof HTMLElement
|
|
39
|
+
: e && typeof e === 'object' && e !== null && e.nodeType === 1 && typeof e.nodeName === 'string';
|
|
40
|
+
}
|
|
41
|
+
export function isNode(e) {
|
|
42
|
+
return typeof Node === 'object'
|
|
43
|
+
? e instanceof Node
|
|
44
|
+
: e && typeof e === 'object' && e !== null && typeof e.nodeType === 'number' && typeof e.nodeName === 'string';
|
|
45
|
+
}
|
|
@@ -20,10 +20,12 @@ export { ContactButton as TaroContactButtonCore } from '../types/components/cont
|
|
|
20
20
|
export { CoverImage as TaroCoverImageCore } from '../types/components/cover-image/cover-image';
|
|
21
21
|
export { CoverView as TaroCoverViewCore } from '../types/components/cover-view/cover-view';
|
|
22
22
|
export { CustomWrapper as TaroCustomWrapperCore } from '../types/components/custom-wrapper/custom-wrapper';
|
|
23
|
+
export { DraggableSheet as TaroDraggableSheetCore } from '../types/components/draggable-sheet/draggable-sheet';
|
|
23
24
|
export { Editor as TaroEditorCore } from '../types/components/editor/editor';
|
|
24
25
|
export { FollowSwan as TaroFollowSwanCore } from '../types/components/follow-swan/follow-swan';
|
|
25
26
|
export { Form as TaroFormCore } from '../types/components/form/form';
|
|
26
27
|
export { FunctionalPageNavigator as TaroFunctionalPageNavigatorCore } from '../types/components/functional-page-navigator/functional-page-navigator';
|
|
28
|
+
export { GridBuilder as TaroGridBuilderCore } from '../types/components/grid-builder/grid-builder';
|
|
27
29
|
export { GridView as TaroGridViewCore } from '../types/components/grid-view/grid-view';
|
|
28
30
|
export { Icon as TaroIconCore } from '../types/components/icon/icon';
|
|
29
31
|
export { Image as TaroImageCore } from '../types/components/image/image';
|
|
@@ -33,6 +35,7 @@ export { KeyboardAccessory as TaroKeyboardAccessoryCore } from '../types/compone
|
|
|
33
35
|
export { Label as TaroLabelCore } from '../types/components/label/label';
|
|
34
36
|
export { Lifestyle as TaroLifestyleCore } from '../types/components/lifestyle/lifestyle';
|
|
35
37
|
export { Like as TaroLikeCore } from '../types/components/like/like';
|
|
38
|
+
export { ListBuilder as TaroListBuilderCore } from '../types/components/list-builder/list-builder';
|
|
36
39
|
export { ListView as TaroListViewCore } from '../types/components/list-view/list-view';
|
|
37
40
|
export { LivePlayer as TaroLivePlayerCore } from '../types/components/live-player/live-player';
|
|
38
41
|
export { LivePusher as TaroLivePusherCore } from '../types/components/live-pusher/live-pusher';
|
|
@@ -45,7 +48,10 @@ export { MovableView as TaroMovableViewCore } from '../types/components/movable-
|
|
|
45
48
|
export { NativeSlot as TaroNativeSlotCore } from '../types/components/slot/native-slot';
|
|
46
49
|
export { NavigationBar as TaroNavigationBarCore } from '../types/components/navigation-bar/navigation-bar';
|
|
47
50
|
export { Navigator as TaroNavigatorCore } from '../types/components/navigator/navigator';
|
|
51
|
+
export { NestedScrollBody as TaroNestedScrollBodyCore } from '../types/components/nested-scroll-body/nested-scroll-body';
|
|
52
|
+
export { NestedScrollHeader as TaroNestedScrollHeaderCore } from '../types/components/nested-scroll-header/nested-scroll-header';
|
|
48
53
|
export { OfficialAccount as TaroOfficialAccountCore } from '../types/components/official-account/official-account';
|
|
54
|
+
export { OpenContainer as TaroOpenContainerCore } from '../types/components/open-container/open-container';
|
|
49
55
|
export { OpenData as TaroOpenDataCore } from '../types/components/open-data/open-data';
|
|
50
56
|
export { PageContainer as TaroPageContainerCore } from '../types/components/page-container/page-container';
|
|
51
57
|
export { PageMeta as TaroPageMetaCore } from '../types/components/page-meta/page-meta';
|
|
@@ -66,6 +72,7 @@ export { ShareElement as TaroShareElementCore } from '../types/components/share-
|
|
|
66
72
|
export { Slider as TaroSliderCore } from '../types/components/slider/slider';
|
|
67
73
|
export { Slot as TaroSlotCore } from '../types/components/slot/slot';
|
|
68
74
|
export { Snapshot as TaroSnapshotCore } from '../types/components/snapshot/snapshot';
|
|
75
|
+
export { Span as TaroSpanCore } from '../types/components/span/span';
|
|
69
76
|
export { StickyHeader as TaroStickyHeaderCore } from '../types/components/sticky-header/sticky-header';
|
|
70
77
|
export { StickySection as TaroStickySectionCore } from '../types/components/sticky-section/sticky-section';
|
|
71
78
|
export { Swiper as TaroSwiperCore } from '../types/components/swiper/swiper';
|
package/dist/components/index.js
CHANGED
|
@@ -20,10 +20,12 @@ export { TaroContactButtonCore, defineCustomElement as defineCustomElementTaroCo
|
|
|
20
20
|
export { TaroCoverImageCore, defineCustomElement as defineCustomElementTaroCoverImageCore } from './taro-cover-image-core.js';
|
|
21
21
|
export { TaroCoverViewCore, defineCustomElement as defineCustomElementTaroCoverViewCore } from './taro-cover-view-core.js';
|
|
22
22
|
export { TaroCustomWrapperCore, defineCustomElement as defineCustomElementTaroCustomWrapperCore } from './taro-custom-wrapper-core.js';
|
|
23
|
+
export { TaroDraggableSheetCore, defineCustomElement as defineCustomElementTaroDraggableSheetCore } from './taro-draggable-sheet-core.js';
|
|
23
24
|
export { TaroEditorCore, defineCustomElement as defineCustomElementTaroEditorCore } from './taro-editor-core.js';
|
|
24
25
|
export { TaroFollowSwanCore, defineCustomElement as defineCustomElementTaroFollowSwanCore } from './taro-follow-swan-core.js';
|
|
25
26
|
export { TaroFormCore, defineCustomElement as defineCustomElementTaroFormCore } from './taro-form-core.js';
|
|
26
27
|
export { TaroFunctionalPageNavigatorCore, defineCustomElement as defineCustomElementTaroFunctionalPageNavigatorCore } from './taro-functional-page-navigator-core.js';
|
|
28
|
+
export { TaroGridBuilderCore, defineCustomElement as defineCustomElementTaroGridBuilderCore } from './taro-grid-builder-core.js';
|
|
27
29
|
export { TaroGridViewCore, defineCustomElement as defineCustomElementTaroGridViewCore } from './taro-grid-view-core.js';
|
|
28
30
|
export { TaroIconCore, defineCustomElement as defineCustomElementTaroIconCore } from './taro-icon-core.js';
|
|
29
31
|
export { TaroImageCore, defineCustomElement as defineCustomElementTaroImageCore } from './taro-image-core.js';
|
|
@@ -33,6 +35,7 @@ export { TaroKeyboardAccessoryCore, defineCustomElement as defineCustomElementTa
|
|
|
33
35
|
export { TaroLabelCore, defineCustomElement as defineCustomElementTaroLabelCore } from './taro-label-core.js';
|
|
34
36
|
export { TaroLifestyleCore, defineCustomElement as defineCustomElementTaroLifestyleCore } from './taro-lifestyle-core.js';
|
|
35
37
|
export { TaroLikeCore, defineCustomElement as defineCustomElementTaroLikeCore } from './taro-like-core.js';
|
|
38
|
+
export { TaroListBuilderCore, defineCustomElement as defineCustomElementTaroListBuilderCore } from './taro-list-builder-core.js';
|
|
36
39
|
export { TaroListViewCore, defineCustomElement as defineCustomElementTaroListViewCore } from './taro-list-view-core.js';
|
|
37
40
|
export { TaroLivePlayerCore, defineCustomElement as defineCustomElementTaroLivePlayerCore } from './taro-live-player-core.js';
|
|
38
41
|
export { TaroLivePusherCore, defineCustomElement as defineCustomElementTaroLivePusherCore } from './taro-live-pusher-core.js';
|
|
@@ -45,7 +48,10 @@ export { TaroMovableViewCore, defineCustomElement as defineCustomElementTaroMova
|
|
|
45
48
|
export { TaroNativeSlotCore, defineCustomElement as defineCustomElementTaroNativeSlotCore } from './taro-native-slot-core.js';
|
|
46
49
|
export { TaroNavigationBarCore, defineCustomElement as defineCustomElementTaroNavigationBarCore } from './taro-navigation-bar-core.js';
|
|
47
50
|
export { TaroNavigatorCore, defineCustomElement as defineCustomElementTaroNavigatorCore } from './taro-navigator-core.js';
|
|
51
|
+
export { TaroNestedScrollBodyCore, defineCustomElement as defineCustomElementTaroNestedScrollBodyCore } from './taro-nested-scroll-body-core.js';
|
|
52
|
+
export { TaroNestedScrollHeaderCore, defineCustomElement as defineCustomElementTaroNestedScrollHeaderCore } from './taro-nested-scroll-header-core.js';
|
|
48
53
|
export { TaroOfficialAccountCore, defineCustomElement as defineCustomElementTaroOfficialAccountCore } from './taro-official-account-core.js';
|
|
54
|
+
export { TaroOpenContainerCore, defineCustomElement as defineCustomElementTaroOpenContainerCore } from './taro-open-container-core.js';
|
|
49
55
|
export { TaroOpenDataCore, defineCustomElement as defineCustomElementTaroOpenDataCore } from './taro-open-data-core.js';
|
|
50
56
|
export { TaroPageContainerCore, defineCustomElement as defineCustomElementTaroPageContainerCore } from './taro-page-container-core.js';
|
|
51
57
|
export { TaroPageMetaCore, defineCustomElement as defineCustomElementTaroPageMetaCore } from './taro-page-meta-core.js';
|
|
@@ -66,6 +72,7 @@ export { TaroShareElementCore, defineCustomElement as defineCustomElementTaroSha
|
|
|
66
72
|
export { TaroSliderCore, defineCustomElement as defineCustomElementTaroSliderCore } from './taro-slider-core.js';
|
|
67
73
|
export { TaroSlotCore, defineCustomElement as defineCustomElementTaroSlotCore } from './taro-slot-core.js';
|
|
68
74
|
export { TaroSnapshotCore, defineCustomElement as defineCustomElementTaroSnapshotCore } from './taro-snapshot-core.js';
|
|
75
|
+
export { TaroSpanCore, defineCustomElement as defineCustomElementTaroSpanCore } from './taro-span-core.js';
|
|
69
76
|
export { TaroStickyHeaderCore, defineCustomElement as defineCustomElementTaroStickyHeaderCore } from './taro-sticky-header-core.js';
|
|
70
77
|
export { TaroStickySectionCore, defineCustomElement as defineCustomElementTaroStickySectionCore } from './taro-sticky-section-core.js';
|
|
71
78
|
export { TaroSwiperCore, defineCustomElement as defineCustomElementTaroSwiperCore } from './taro-swiper-core.js';
|
|
@@ -30,5 +30,10 @@ function debounce(fn, ms = 250, scope) {
|
|
|
30
30
|
function isVisible(e) {
|
|
31
31
|
return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
|
|
32
32
|
}
|
|
33
|
+
function isElement(e) {
|
|
34
|
+
return typeof HTMLElement === 'object'
|
|
35
|
+
? e instanceof HTMLElement
|
|
36
|
+
: e && typeof e === 'object' && e !== null && e.nodeType === 1 && typeof e.nodeName === 'string';
|
|
37
|
+
}
|
|
33
38
|
|
|
34
|
-
export { debounce as d,
|
|
39
|
+
export { isVisible as a, debounce as d, isElement as i, throttle as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroDraggableSheetCore extends Components.TaroDraggableSheetCore, HTMLElement {}
|
|
4
|
+
export const TaroDraggableSheetCore: {
|
|
5
|
+
prototype: TaroDraggableSheetCore;
|
|
6
|
+
new (): TaroDraggableSheetCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const DraggableSheet = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('DraggableSheet', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-draggable-sheet-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-draggable-sheet-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-draggable-sheet-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, DraggableSheet);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroDraggableSheetCore = DraggableSheet;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroDraggableSheetCore, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroGridBuilderCore extends Components.TaroGridBuilderCore, HTMLElement {}
|
|
4
|
+
export const TaroGridBuilderCore: {
|
|
5
|
+
prototype: TaroGridBuilderCore;
|
|
6
|
+
new (): TaroGridBuilderCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const GridBuilder = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('GridBuilder', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-grid-builder-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-grid-builder-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-grid-builder-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, GridBuilder);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroGridBuilderCore = GridBuilder;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroGridBuilderCore, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroListBuilderCore extends Components.TaroListBuilderCore, HTMLElement {}
|
|
4
|
+
export const TaroListBuilderCore: {
|
|
5
|
+
prototype: TaroListBuilderCore;
|
|
6
|
+
new (): TaroListBuilderCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const ListBuilder = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('ListBuilder', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-list-builder-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-list-builder-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-list-builder-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, ListBuilder);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroListBuilderCore = ListBuilder;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroListBuilderCore, defineCustomElement };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { i as isElement } from './index3.js';
|
|
2
3
|
|
|
3
4
|
const areaCss = "taro-movable-area-core{width:10px;height:10px;display:block;position:relative}";
|
|
4
5
|
|
|
@@ -36,7 +37,7 @@ const MovableArea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
36
37
|
if (!(e = e.parentNode)) {
|
|
37
38
|
return false;
|
|
38
39
|
}
|
|
39
|
-
return (!(e
|
|
40
|
+
return (!isElement(e) || e !== document.body) && (e === t || e === t.element || e.element === t || loop(e, t));
|
|
40
41
|
};
|
|
41
42
|
for (let i = 0; i < views.length; i++) {
|
|
42
43
|
const view = views[i];
|
|
@@ -166,7 +166,9 @@ const MovableView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
166
166
|
if (this.disabled || !this.element || this.scaling || !this.touching || touches.length > 1) {
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
if (this.direction !== "horizontal") {
|
|
170
|
+
e.preventDefault();
|
|
171
|
+
}
|
|
170
172
|
const touch = touches[0];
|
|
171
173
|
const x = touch.screenX - this.origin.x;
|
|
172
174
|
const y = touch.screenY - this.origin.y;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroNestedScrollBodyCore extends Components.TaroNestedScrollBodyCore, HTMLElement {}
|
|
4
|
+
export const TaroNestedScrollBodyCore: {
|
|
5
|
+
prototype: TaroNestedScrollBodyCore;
|
|
6
|
+
new (): TaroNestedScrollBodyCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const NestedScrollBody = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('NestedScrollBody', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-nested-scroll-body-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-nested-scroll-body-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-nested-scroll-body-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, NestedScrollBody);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroNestedScrollBodyCore = NestedScrollBody;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroNestedScrollBodyCore, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroNestedScrollHeaderCore extends Components.TaroNestedScrollHeaderCore, HTMLElement {}
|
|
4
|
+
export const TaroNestedScrollHeaderCore: {
|
|
5
|
+
prototype: TaroNestedScrollHeaderCore;
|
|
6
|
+
new (): TaroNestedScrollHeaderCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const NestedScrollHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('NestedScrollHeader', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-nested-scroll-header-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-nested-scroll-header-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-nested-scroll-header-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, NestedScrollHeader);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroNestedScrollHeaderCore = NestedScrollHeader;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroNestedScrollHeaderCore, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroOpenContainerCore extends Components.TaroOpenContainerCore, HTMLElement {}
|
|
4
|
+
export const TaroOpenContainerCore: {
|
|
5
|
+
prototype: TaroOpenContainerCore;
|
|
6
|
+
new (): TaroOpenContainerCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const OpenContainer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('OpenContainer', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null));
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-open-container-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-open-container-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-open-container-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, OpenContainer);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroOpenContainerCore = OpenContainer;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroOpenContainerCore, defineCustomElement };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const indexCss = ".weui-progress{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}";
|
|
3
|
+
const indexCss = ".weui-progress{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-progress__bar{background-color:#ebebeb;-ms-flex:1;flex:1;height:3px}.weui-progress__inner-bar{background-color:#09bb07;width:0;height:100%}.weui-progress__opr{margin-left:15px;font-size:0;display:block}";
|
|
4
4
|
|
|
5
5
|
const Progress = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -71,6 +71,9 @@ const PullToRefresh = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
this.destroy = () => {
|
|
74
|
+
// fix 频繁切换页面,可能会导致 this._to 为空造成报错
|
|
75
|
+
if (!this._to)
|
|
76
|
+
return;
|
|
74
77
|
const ele = this.scrollContainer;
|
|
75
78
|
Object.keys(this._to).forEach(key => {
|
|
76
79
|
ele.removeEventListener(key, this._to[key]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroSpanCore extends Components.TaroSpanCore, HTMLElement {}
|
|
4
|
+
export const TaroSpanCore: {
|
|
5
|
+
prototype: TaroSpanCore;
|
|
6
|
+
new (): TaroSpanCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const Span = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('Span', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h(Host, null);
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-span-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-span-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-span-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, Span);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroSpanCore = Span;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroSpanCore, defineCustomElement };
|