@tarojs/components 3.8.0-canary.0 → 4.0.0-beta.0
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/helper-ad6306f6.js +31 -0
- package/dist/cjs/loader.cjs.js +1 -1
- 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-aweme-data-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 +13 -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-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 +1 -1
- package/dist/cjs/taro-contact-button-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-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-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-keyboard-accessory-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-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-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-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 +31 -30
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +35 -35
- package/dist/cjs/{taro-pull-to-refresh.cjs.entry.js → taro-pull-to-refresh-core.cjs.entry.js} +15 -13
- 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 +12 -0
- package/dist/cjs/taro-share-element-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 +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 +90 -58
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +9 -21
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +7 -3
- package/dist/cjs/taro-view-core.cjs.entry.js +3 -9
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/canvas/canvas.js +48 -2
- package/dist/collection/components/image/style/index.css +2 -2
- package/dist/collection/components/picker/picker.js +31 -30
- package/dist/collection/components/picker-view/picker-view-column.js +27 -55
- package/dist/collection/components/picker-view/picker-view.js +14 -2
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +14 -12
- package/dist/collection/components/pull-to-refresh/style/index.css +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +18 -2
- package/dist/collection/components/snapshot/snapshot.js +11 -0
- package/dist/collection/components/swiper/swiper-item.js +54 -33
- package/dist/collection/components/swiper/swiper.js +53 -24
- package/dist/collection/components/tabbar/style/index.css +5 -1
- package/dist/collection/components/tabbar/tabbar-item.js +1 -1
- package/dist/collection/components/tabbar/tabbar.js +4 -4
- package/dist/collection/components/video/style/index.css +1 -0
- package/dist/collection/components/video/video.js +6 -2
- package/dist/collection/components/view/view.js +2 -9
- package/dist/collection/utils/helper.js +11 -0
- package/dist/components/helper.js +12 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/taro-canvas-core.js +16 -2
- package/dist/components/taro-image-core.js +1 -1
- package/dist/components/taro-picker-core.js +31 -30
- package/dist/components/taro-picker-view-column-core.js +26 -36
- package/dist/components/taro-picker-view-core.js +11 -2
- package/dist/components/taro-pull-to-refresh-core.d.ts +11 -0
- package/dist/components/{taro-pull-to-refresh.js → taro-pull-to-refresh-core.js} +19 -17
- package/dist/components/taro-scroll-view-core.js +12 -1
- package/dist/components/{taro-pull-to-refresh.d.ts → taro-snapshot-core.d.ts} +4 -4
- package/dist/components/taro-snapshot-core.js +33 -0
- package/dist/components/taro-swiper-core.js +53 -24
- package/dist/components/taro-swiper-item-core.js +40 -36
- package/dist/components/taro-tabbar.js +2 -14
- package/dist/components/taro-video-core.js +7 -3
- package/dist/components/taro-view-core.js +2 -9
- package/dist/esm/helper-8a85bb65.js +24 -0
- package/dist/esm/loader.js +1 -1
- 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-aweme-data-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +13 -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-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-contact-button-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-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-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-keyboard-accessory-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-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-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-official-account-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 +31 -30
- package/dist/esm/taro-picker-view-column-core_2.entry.js +35 -35
- package/dist/esm/{taro-pull-to-refresh.entry.js → taro-pull-to-refresh-core.entry.js} +15 -13
- 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 +12 -0
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-snapshot-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 +90 -58
- package/dist/esm/taro-tab-item-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +2 -14
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +7 -3
- package/dist/esm/taro-view-core.entry.js +3 -9
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/helper-8a85bb65.js +1 -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-aweme-data-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-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-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-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-keyboard-accessory-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-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-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-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-pull-to-refresh-core.entry.js +1 -0
- 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-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-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-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-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/taro-components/p-00ed4bbb.entry.js +1 -0
- package/dist/taro-components/{p-9b6550fc.entry.js → p-065a10d7.entry.js} +1 -1
- package/dist/taro-components/p-06671eee.entry.js +1 -0
- package/dist/taro-components/p-08b7ecd7.system.entry.js +1 -0
- package/dist/taro-components/p-0a250d71.system.entry.js +1 -0
- package/dist/taro-components/{p-c39a46ca.system.entry.js → p-0cedad18.system.entry.js} +1 -1
- package/dist/taro-components/{p-b235e43c.entry.js → p-0e3b37e9.entry.js} +1 -1
- package/dist/taro-components/p-0e8199b7.entry.js +1 -0
- package/dist/taro-components/{p-cc164fa3.entry.js → p-0ec2e88a.entry.js} +1 -1
- package/dist/taro-components/{p-968b7c1d.entry.js → p-124ac21f.entry.js} +1 -1
- package/dist/taro-components/p-15624788.system.entry.js +1 -0
- package/dist/taro-components/p-1b789738.system.entry.js +1 -0
- package/dist/taro-components/p-1cf16dfa.entry.js +1 -0
- package/dist/taro-components/p-1f118969.system.entry.js +1 -0
- package/dist/taro-components/{p-898db637.system.entry.js → p-21c07cb3.system.entry.js} +1 -1
- package/dist/taro-components/{p-af9ef8b4.entry.js → p-22bf7daf.entry.js} +1 -1
- package/dist/taro-components/p-24d9836e.entry.js +1 -0
- package/dist/taro-components/p-29638de3.entry.js +1 -0
- package/dist/taro-components/p-2da9c8fd.entry.js +1 -0
- package/dist/taro-components/{p-5640e9f4.system.entry.js → p-3004e71a.system.entry.js} +1 -1
- package/dist/taro-components/{p-1974e52e.system.entry.js → p-32e9981a.system.entry.js} +1 -1
- package/dist/taro-components/{p-f534057e.system.entry.js → p-36d4407e.system.entry.js} +1 -1
- package/dist/taro-components/p-3f3abe55.system.entry.js +1 -0
- package/dist/taro-components/p-4cedbe5e.system.entry.js +1 -0
- package/dist/taro-components/{p-355e4dbc.entry.js → p-4fc40739.entry.js} +1 -1
- package/dist/taro-components/{p-6d4b7e5c.system.entry.js → p-519fbe84.system.entry.js} +1 -1
- package/dist/taro-components/{p-90333d0a.system.entry.js → p-5756cf00.system.entry.js} +1 -1
- package/dist/taro-components/{p-88d2b41b.system.entry.js → p-5870248f.system.entry.js} +1 -1
- package/dist/taro-components/{p-81f2ad70.system.entry.js → p-58cc2e6d.system.entry.js} +1 -1
- package/dist/taro-components/{p-9ac947ac.system.entry.js → p-5994d9f2.system.entry.js} +1 -1
- package/dist/taro-components/p-5e91398a.system.entry.js +1 -0
- package/dist/taro-components/{p-2d1b4dcc.system.entry.js → p-5ebc7010.system.entry.js} +1 -1
- package/dist/taro-components/p-600e89cc.system.entry.js +1 -0
- package/dist/taro-components/p-64eb91f7.entry.js +1 -0
- package/dist/taro-components/{p-137531b6.entry.js → p-69c43a81.entry.js} +1 -1
- package/dist/taro-components/p-6aa2ac6a.system.entry.js +1 -0
- package/dist/taro-components/{p-982bb5bf.entry.js → p-6b454506.entry.js} +1 -1
- package/dist/taro-components/{p-ebdd350f.system.entry.js → p-6cde54e5.system.entry.js} +1 -1
- package/dist/taro-components/{p-407ca16e.entry.js → p-76996fcb.entry.js} +1 -1
- package/dist/taro-components/p-7726b789.system.entry.js +1 -0
- package/dist/taro-components/{p-bdc30301.entry.js → p-7bfc5f3d.entry.js} +1 -1
- package/dist/taro-components/p-84958ace.entry.js +1 -0
- package/dist/taro-components/p-862b38b9.entry.js +1 -0
- package/dist/taro-components/p-8c3b906c.system.js +1 -0
- package/dist/taro-components/p-8ca82a56.entry.js +1 -0
- package/dist/taro-components/p-8ccaf5e8.entry.js +1 -0
- package/dist/taro-components/{p-0517f107.system.entry.js → p-8d990f1c.system.entry.js} +1 -1
- package/dist/taro-components/{p-07302165.system.entry.js → p-92d04741.system.entry.js} +1 -1
- package/dist/taro-components/p-99e16df8.entry.js +1 -0
- package/dist/taro-components/p-9b0298bf.entry.js +1 -0
- package/dist/taro-components/{p-fa0f6dab.system.entry.js → p-9d76d7a9.system.entry.js} +1 -1
- package/dist/taro-components/p-9dcba4a7.system.entry.js +1 -0
- package/dist/taro-components/p-9e03bc7a.system.entry.js +1 -0
- package/dist/taro-components/p-9ea4f297.entry.js +1 -0
- package/dist/taro-components/p-9eeba192.entry.js +1 -0
- package/dist/taro-components/p-9feff958.system.entry.js +1 -0
- package/dist/taro-components/p-a2141e85.system.entry.js +1 -0
- package/dist/taro-components/p-a2d590ad.entry.js +1 -0
- package/dist/taro-components/{p-204bd245.entry.js → p-a4951dd6.entry.js} +1 -1
- package/dist/taro-components/{p-46b8f89b.entry.js → p-a5a51112.entry.js} +1 -1
- package/dist/taro-components/p-a6e2dd48.entry.js +1 -0
- package/dist/taro-components/{p-66b0b419.system.entry.js → p-a74c970c.system.entry.js} +1 -1
- package/dist/taro-components/{p-e53508c1.system.entry.js → p-a7d31b01.system.entry.js} +1 -1
- package/dist/taro-components/p-a90221ab.system.entry.js +1 -0
- package/dist/taro-components/p-a94e3347.system.entry.js +1 -0
- package/dist/taro-components/p-aa04f605.entry.js +1 -0
- package/dist/taro-components/p-ad9b04e0.entry.js +1 -0
- package/dist/taro-components/{p-f11c9c37.system.entry.js → p-b07cd197.system.entry.js} +1 -1
- package/dist/taro-components/p-b0fc8752.entry.js +1 -0
- package/dist/taro-components/{p-139e6251.entry.js → p-b201ff38.entry.js} +1 -1
- package/dist/taro-components/p-bc541cd8.entry.js +1 -0
- package/dist/taro-components/{p-af8e521a.entry.js → p-bd4ed8b1.entry.js} +1 -1
- package/dist/taro-components/p-be96eb59.system.entry.js +1 -0
- package/dist/taro-components/{p-da239b8b.system.entry.js → p-bf0c8449.system.entry.js} +1 -1
- package/dist/taro-components/p-c0080d83.entry.js +1 -0
- package/dist/taro-components/p-c1a3fecf.system.entry.js +1 -0
- package/dist/taro-components/{p-8201ee31.system.entry.js → p-c913b635.system.entry.js} +1 -1
- package/dist/taro-components/{p-ce33f1f3.entry.js → p-c99e14b5.entry.js} +1 -1
- package/dist/taro-components/p-cb406f85.system.entry.js +1 -0
- package/dist/taro-components/p-cbcaad0e.system.entry.js +1 -0
- package/dist/taro-components/p-ccc64042.system.entry.js +1 -0
- package/dist/taro-components/p-ce303d12.system.entry.js +1 -0
- package/dist/taro-components/{p-7e998213.system.entry.js → p-d025a415.system.entry.js} +1 -1
- package/dist/taro-components/{p-6db97374.entry.js → p-d1756770.entry.js} +1 -1
- package/dist/taro-components/p-d2e0b15c.entry.js +1 -0
- package/dist/taro-components/p-d550aea9.system.entry.js +1 -0
- package/dist/taro-components/p-d5c8380d.system.entry.js +1 -0
- package/dist/taro-components/{p-5dab46cd.system.entry.js → p-d867e333.system.entry.js} +1 -1
- package/dist/taro-components/{p-50902cd0.entry.js → p-d9dcc6c6.entry.js} +1 -1
- package/dist/taro-components/p-da3db323.entry.js +1 -0
- package/dist/taro-components/{p-0114a2e4.entry.js → p-dadd02ca.entry.js} +1 -1
- package/dist/taro-components/p-dbdb9de9.js +1 -0
- package/dist/taro-components/{p-cc70bb7a.system.entry.js → p-dc5d65a0.system.entry.js} +1 -1
- package/dist/taro-components/{p-ab726c20.system.entry.js → p-de96861c.system.entry.js} +1 -1
- package/dist/taro-components/{p-907d9d01.system.entry.js → p-e2cd5dd3.system.entry.js} +1 -1
- package/dist/taro-components/{p-1404c119.entry.js → p-e598f47b.entry.js} +1 -1
- package/dist/taro-components/p-e740320c.entry.js +1 -0
- package/dist/taro-components/p-e976c6c9.system.entry.js +1 -0
- package/dist/taro-components/p-ea0d5d4f.system.entry.js +1 -0
- package/dist/taro-components/p-ed331c06.system.js +1 -1
- package/dist/taro-components/p-eee6e075.system.entry.js +1 -0
- package/dist/taro-components/p-ef322936.entry.js +1 -0
- package/dist/taro-components/p-f1304456.entry.js +1 -0
- package/dist/taro-components/{p-3d8c9dfb.entry.js → p-f2235cbb.entry.js} +1 -1
- package/dist/taro-components/{p-2af69b72.entry.js → p-f23cfdc8.entry.js} +1 -1
- package/dist/taro-components/p-f2c86846.entry.js +1 -0
- package/dist/taro-components/p-f4d86882.entry.js +1 -0
- package/dist/taro-components/{p-8c0b740e.entry.js → p-f658de2e.entry.js} +1 -1
- package/dist/taro-components/p-f78823a1.entry.js +1 -0
- package/dist/taro-components/{p-227e33fc.system.entry.js → p-fac4ce6f.system.entry.js} +1 -1
- package/dist/taro-components/p-fbb2446e.entry.js +1 -0
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/canvas/canvas.d.ts +5 -2
- package/dist/types/components/picker-view/picker-view-column.d.ts +3 -3
- package/dist/types/components/picker-view/picker-view.d.ts +2 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +2 -0
- package/dist/types/components/snapshot/snapshot.d.ts +5 -0
- package/dist/types/components/swiper/swiper-item.d.ts +3 -0
- package/dist/types/components/swiper/swiper.d.ts +4 -3
- package/dist/types/components/tabbar/tabbar-item.d.ts +4 -4
- package/dist/types/components/tabbar/tabbar.d.ts +17 -16
- package/dist/types/components.d.ts +33 -15
- package/dist/types/utils/helper.d.ts +1 -0
- package/lib/react/component-lib/reactify-wc.js +1 -1
- package/lib/react/component-lib/reactify-wc.js.map +1 -1
- package/lib/react/components.d.ts +3 -2
- package/lib/react/components.js +4 -3
- package/lib/react/components.js.map +1 -1
- package/lib/react/index.js +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/lib/react/react-component-lib/utils/attachProps.js +20 -1
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/vue2/components.d.ts +6 -2
- package/lib/vue2/components.js +10 -4
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.js +1 -1
- package/lib/vue2/vue-component-lib/utils.js.map +1 -1
- package/lib/vue3/components.d.ts +6 -3
- package/lib/vue3/components.js +8 -4
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.js +1 -1
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +7 -7
- package/types/Button.d.ts +39 -8
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +12 -12
- package/types/ChannelVideo.d.ts +2 -2
- package/types/Checkbox.d.ts +10 -5
- package/types/CoverImage.d.ts +1 -1
- package/types/Form.d.ts +2 -2
- package/types/GridView.d.ts +1 -1
- package/types/Icon.d.ts +3 -3
- package/types/Image.d.ts +3 -2
- package/types/Input.d.ts +15 -15
- package/types/Label.d.ts +1 -1
- package/types/ListView.d.ts +1 -1
- package/types/LivePlayer.d.ts +11 -4
- package/types/Map.d.ts +46 -3
- package/types/NativeSlot.d.ts +5 -3
- package/types/NavigationBar.d.ts +7 -1
- package/types/Navigator.d.ts +1 -1
- package/types/PageMeta.d.ts +40 -0
- package/types/Picker.d.ts +20 -20
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +10 -5
- package/types/RadioGroup.d.ts +1 -1
- package/types/ScrollView.d.ts +83 -5
- package/types/ShareElement.d.ts +1 -1
- package/types/Slider.d.ts +14 -14
- package/types/Slot.d.ts +5 -3
- package/types/Snapshot.d.ts +16 -0
- package/types/StickyHeader.d.ts +1 -1
- package/types/StickySection.d.ts +1 -1
- package/types/Swiper.d.ts +13 -9
- package/types/SwiperItem.d.ts +6 -1
- package/types/Switch.d.ts +5 -5
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +8 -8
- package/types/Video.d.ts +28 -19
- package/types/common.d.ts +2 -1
- package/types/index.d.ts +8 -5
- package/types/index.vue3.d.ts +21 -7
- package/dist/cjs/helper-db78e01a.js +0 -19
- package/dist/esm/helper-3d0ecf0f.js +0 -13
- package/dist/esm-es5/helper-3d0ecf0f.js +0 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +0 -1
- package/dist/taro-components/p-052da7f0.system.entry.js +0 -1
- package/dist/taro-components/p-15e45ed6.system.js +0 -1
- package/dist/taro-components/p-1991cc1a.system.entry.js +0 -1
- package/dist/taro-components/p-1b3d41d3.system.entry.js +0 -1
- package/dist/taro-components/p-1c4e3899.entry.js +0 -1
- package/dist/taro-components/p-1f39576a.system.entry.js +0 -1
- package/dist/taro-components/p-2de2a3fd.system.entry.js +0 -1
- package/dist/taro-components/p-3094bda6.system.entry.js +0 -1
- package/dist/taro-components/p-416cc4dd.system.entry.js +0 -1
- package/dist/taro-components/p-469ee343.entry.js +0 -1
- package/dist/taro-components/p-478deb81.entry.js +0 -1
- package/dist/taro-components/p-486d0ec7.entry.js +0 -1
- package/dist/taro-components/p-53ef8a6c.system.entry.js +0 -1
- package/dist/taro-components/p-5613907c.entry.js +0 -1
- package/dist/taro-components/p-57b9943c.system.entry.js +0 -1
- package/dist/taro-components/p-5c1e6b1c.system.entry.js +0 -1
- package/dist/taro-components/p-6127b1b6.system.entry.js +0 -1
- package/dist/taro-components/p-66f7eea6.entry.js +0 -1
- package/dist/taro-components/p-69cd1f2a.system.entry.js +0 -1
- package/dist/taro-components/p-6a96da58.js +0 -1
- package/dist/taro-components/p-6cde180b.entry.js +0 -1
- package/dist/taro-components/p-6e115968.entry.js +0 -1
- package/dist/taro-components/p-6f84e936.entry.js +0 -1
- package/dist/taro-components/p-71b54f06.entry.js +0 -1
- package/dist/taro-components/p-79c3fde3.system.entry.js +0 -1
- package/dist/taro-components/p-7b3b8057.entry.js +0 -1
- package/dist/taro-components/p-7d635413.entry.js +0 -1
- package/dist/taro-components/p-801f09b8.entry.js +0 -1
- package/dist/taro-components/p-85a7daeb.system.entry.js +0 -1
- package/dist/taro-components/p-86280254.entry.js +0 -1
- package/dist/taro-components/p-9046110a.entry.js +0 -1
- package/dist/taro-components/p-904df510.entry.js +0 -1
- package/dist/taro-components/p-98f9f50f.system.entry.js +0 -1
- package/dist/taro-components/p-9aeb7995.entry.js +0 -1
- package/dist/taro-components/p-9d9ede17.system.entry.js +0 -1
- package/dist/taro-components/p-a20ecd3b.entry.js +0 -1
- package/dist/taro-components/p-a3a1a779.entry.js +0 -1
- package/dist/taro-components/p-a4882902.system.entry.js +0 -1
- package/dist/taro-components/p-a8565231.entry.js +0 -1
- package/dist/taro-components/p-a8925584.system.entry.js +0 -1
- package/dist/taro-components/p-a8e7cf87.entry.js +0 -1
- package/dist/taro-components/p-af3fa859.system.entry.js +0 -1
- package/dist/taro-components/p-afb3895c.system.entry.js +0 -1
- package/dist/taro-components/p-b027181b.entry.js +0 -1
- package/dist/taro-components/p-b4ea72ea.entry.js +0 -1
- package/dist/taro-components/p-b4f3d0ab.entry.js +0 -1
- package/dist/taro-components/p-b6d4634f.system.entry.js +0 -1
- package/dist/taro-components/p-ba3b2aa5.system.entry.js +0 -1
- package/dist/taro-components/p-bcf80126.system.entry.js +0 -1
- package/dist/taro-components/p-c1073ed6.system.entry.js +0 -1
- package/dist/taro-components/p-c11a42e0.entry.js +0 -1
- package/dist/taro-components/p-c4b8851b.entry.js +0 -1
- package/dist/taro-components/p-d34a6c04.entry.js +0 -1
- package/dist/taro-components/p-e33f3592.entry.js +0 -1
- package/dist/taro-components/p-e3480c4c.entry.js +0 -1
- package/dist/taro-components/p-eaa370a9.system.entry.js +0 -1
- package/dist/taro-components/p-f7927285.system.entry.js +0 -1
- package/dist/taro-components/p-f7b32c6b.entry.js +0 -1
- package/dist/taro-components/p-fa6c022a.system.entry.js +0 -1
- package/dist/taro-components/p-fb983850.entry.js +0 -1
|
@@ -19,14 +19,26 @@ const Canvas = class {
|
|
|
19
19
|
clearTimeout(this.timer);
|
|
20
20
|
};
|
|
21
21
|
this.canvasId = undefined;
|
|
22
|
+
this.height = undefined;
|
|
23
|
+
this.width = undefined;
|
|
22
24
|
this.nativeProps = {};
|
|
23
25
|
}
|
|
26
|
+
componentDidRender() {
|
|
27
|
+
const [canvas] = this.el.children;
|
|
28
|
+
if (!this.height || !this.width) {
|
|
29
|
+
let style = window.getComputedStyle(canvas);
|
|
30
|
+
this.height || (this.height = style.height);
|
|
31
|
+
this.width || (this.width = style.width);
|
|
32
|
+
}
|
|
33
|
+
canvas.height = parseInt(this.height);
|
|
34
|
+
canvas.width = parseInt(this.width);
|
|
35
|
+
}
|
|
24
36
|
render() {
|
|
25
37
|
const { canvasId, nativeProps } = this;
|
|
26
38
|
return (h("canvas", Object.assign({ "canvas-id": canvasId, style: {
|
|
27
39
|
width: '100%',
|
|
28
40
|
height: '100%'
|
|
29
|
-
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
41
|
+
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchCancel: this.onTouchEnd, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
30
42
|
}
|
|
31
43
|
get el() { return getElement(this); }
|
|
32
44
|
};
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32],\"isMove\":[32]},[[1,\"scroll\",\"onScroll\"],[1,\"mouseup\",\"onMouseEnd\"],[1,\"mouseout\",\"onMouseEnd\"],[1,\"mouseleave\",\"onMouseEnd\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"interval\":[2],\"duration\":[2],\"circular\":[4],\"vertical\":[4],\"previousMargin\":[1,\"previous-margin\"],\"nextMargin\":[1,\"next-margin\"],\"displayMultipleItems\":[2,\"display-multiple-items\"],\"full\":[4],\"zoom\":[4],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32],\"observerFirst\":[32],\"observerLast\":[32]}],[0,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core\",[[0,\"taro-block-core\"]]],[\"taro-button-core\",[[4,\"taro-button-core\",{\"disabled\":[4],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"canvas-id\"],\"nativeProps\":[16]}]]],[\"taro-channel-live-core\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core\",[[4,\"taro-cover-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-custom-wrapper-core\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-editor-core\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core\",[[0,\"taro-follow-swan-core\"]]],[\"taro-form-core\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-view-core\",[[0,\"taro-grid-view-core\"]]],[\"taro-icon-core\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core\",[[0,\"taro-like-core\"]]],[\"taro-list-view-core\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core\",[[0,\"taro-login-core\"]]],[\"taro-lottie-core\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core\",[[0,\"taro-map-core\"]]],[\"taro-match-media-core\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-official-account-core\",[[0,\"taro-official-account-core\"]]],[\"taro-open-data-core\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core\",[[0,\"taro-page-meta-core\"]]],[\"taro-progress-core\",[[0,\"taro-progress-core\",{\"percent\":[2],\"showInfo\":[4,\"show-info\"],\"borderRadius\":[8,\"border-radius\"],\"fontSize\":[8,\"font-size\"],\"strokeWidth\":[8,\"stroke-width\"],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"active\":[4]}]]],[\"taro-pull-to-refresh\",[[4,\"taro-pull-to-refresh\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scroll-view-core\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[3,\"scroll\",\"handleScroll\"]]]]],[\"taro-share-element-core\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core\",[[0,\"taro-slot-core\"]]],[\"taro-sticky-header-core\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[4],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isChecked\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core\",[[0,\"taro-tabs-core\"]]],[\"taro-text-core\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"focus\":[64]}]]],[\"taro-view-core\",[[4,\"taro-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-voip-room-core\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"pickerValue\":[32],\"height\":[32],\"hidden\":[32],\"fadeOut\":[32],\"isWillLoadCalled\":[32]}],[0,\"taro-picker-group\",{\"mode\":[1],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"height\":[2],\"columnId\":[1,\"column-id\"],\"updateHeight\":[16],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3\",[[0,\"taro-video-core\",{\"src\":[1],\"duration\":[2],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"initialTime\":[2,\"initial-time\"],\"poster\":[1],\"objectFit\":[1,\"object-fit\"],\"showProgress\":[4,\"show-progress\"],\"showFullscreenBtn\":[4,\"show-fullscreen-btn\"],\"showPlayBtn\":[4,\"show-play-btn\"],\"showCenterPlayBtn\":[4,\"show-center-play-btn\"],\"showMuteBtn\":[4,\"show-mute-btn\"],\"danmuList\":[16],\"danmuBtn\":[4,\"danmu-btn\"],\"enableDanmu\":[4,\"enable-danmu\"],\"enablePlayGesture\":[4,\"enable-play-gesture\"],\"enableProgressGesture\":[4,\"enable-progress-gesture\"],\"vslideGesture\":[4,\"vslide-gesture\"],\"vslideGestureInFullscreen\":[4,\"vslide-gesture-in-fullscreen\"],\"nativeProps\":[16],\"_duration\":[32],\"_enableDanmu\":[32],\"isPlaying\":[32],\"isFirst\":[32],\"isFullScreen\":[32],\"fullScreenTimestamp\":[32],\"isMute\":[32],\"getHlsObject\":[64],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"requestFullScreen\":[64],\"exitFullScreen\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[4,\"taro-video-control\",{\"controls\":[4],\"currentTime\":[2,\"current-time\"],\"duration\":[2],\"isPlaying\":[4,\"is-playing\"],\"pauseFunc\":[16],\"playFunc\":[16],\"seekFunc\":[16],\"showPlayBtn\":[4,\"show-play-btn\"],\"showProgress\":[4,\"show-progress\"],\"setProgressBall\":[64],\"toggleVisibility\":[64],\"getIsDraggingProgressBall\":[64],\"setCurrentTime\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[0,\"taro-video-danmu\",{\"enable\":[4],\"danmuList\":[32],\"sendDanmu\":[64],\"tick\":[64]}]]]]"), options);
|
|
17
|
+
return bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"interval\":[2],\"duration\":[2],\"circular\":[4],\"vertical\":[4],\"previousMargin\":[1,\"previous-margin\"],\"nextMargin\":[1,\"next-margin\"],\"displayMultipleItems\":[2,\"display-multiple-items\"],\"full\":[4],\"zoom\":[4],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32],\"observerFirst\":[32],\"observerLast\":[32]}],[0,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"],\"deep\":[4]}]]],[\"taro-ad-core\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core\",[[0,\"taro-block-core\"]]],[\"taro-button-core\",[[4,\"taro-button-core\",{\"disabled\":[4],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core\",[[4,\"taro-cover-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-custom-wrapper-core\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-editor-core\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core\",[[0,\"taro-follow-swan-core\"]]],[\"taro-form-core\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-view-core\",[[0,\"taro-grid-view-core\"]]],[\"taro-icon-core\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core\",[[0,\"taro-like-core\"]]],[\"taro-list-view-core\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core\",[[0,\"taro-login-core\"]]],[\"taro-lottie-core\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core\",[[0,\"taro-map-core\"]]],[\"taro-match-media-core\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-official-account-core\",[[0,\"taro-official-account-core\"]]],[\"taro-open-data-core\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core\",[[0,\"taro-page-meta-core\"]]],[\"taro-progress-core\",[[0,\"taro-progress-core\",{\"percent\":[2],\"showInfo\":[4,\"show-info\"],\"borderRadius\":[8,\"border-radius\"],\"fontSize\":[8,\"font-size\"],\"strokeWidth\":[8,\"stroke-width\"],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"active\":[4]}]]],[\"taro-pull-to-refresh-core\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scroll-view-core\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core\",[[0,\"taro-snapshot-core\"]]],[\"taro-sticky-header-core\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[4],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isChecked\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core\",[[0,\"taro-tabs-core\"]]],[\"taro-text-core\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"focus\":[64]}]]],[\"taro-view-core\",[[4,\"taro-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-voip-room-core\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"pickerValue\":[32],\"height\":[32],\"hidden\":[32],\"fadeOut\":[32],\"isWillLoadCalled\":[32]}],[0,\"taro-picker-group\",{\"mode\":[1],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"height\":[2],\"columnId\":[1,\"column-id\"],\"updateHeight\":[16],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3\",[[0,\"taro-video-core\",{\"src\":[1],\"duration\":[2],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"initialTime\":[2,\"initial-time\"],\"poster\":[1],\"objectFit\":[1,\"object-fit\"],\"showProgress\":[4,\"show-progress\"],\"showFullscreenBtn\":[4,\"show-fullscreen-btn\"],\"showPlayBtn\":[4,\"show-play-btn\"],\"showCenterPlayBtn\":[4,\"show-center-play-btn\"],\"showMuteBtn\":[4,\"show-mute-btn\"],\"danmuList\":[16],\"danmuBtn\":[4,\"danmu-btn\"],\"enableDanmu\":[4,\"enable-danmu\"],\"enablePlayGesture\":[4,\"enable-play-gesture\"],\"enableProgressGesture\":[4,\"enable-progress-gesture\"],\"vslideGesture\":[4,\"vslide-gesture\"],\"vslideGestureInFullscreen\":[4,\"vslide-gesture-in-fullscreen\"],\"nativeProps\":[16],\"_duration\":[32],\"_enableDanmu\":[32],\"isPlaying\":[32],\"isFirst\":[32],\"isFullScreen\":[32],\"fullScreenTimestamp\":[32],\"isMute\":[32],\"getHlsObject\":[64],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"requestFullScreen\":[64],\"exitFullScreen\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[4,\"taro-video-control\",{\"controls\":[4],\"currentTime\":[2,\"current-time\"],\"duration\":[2],\"isPlaying\":[4,\"is-playing\"],\"pauseFunc\":[16],\"playFunc\":[16],\"seekFunc\":[16],\"showPlayBtn\":[4,\"show-play-btn\"],\"showProgress\":[4,\"show-progress\"],\"setProgressBall\":[64],\"toggleVisibility\":[64],\"getIsDraggingProgressBall\":[64],\"setCurrentTime\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[0,\"taro-video-danmu\",{\"enable\":[4],\"danmuList\":[32],\"sendDanmu\":[64],\"tick\":[64]}]]]]"), options);
|
|
18
18
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-980f930f.js';
|
|
2
2
|
import { c as classnames } from './index-c3e4004b.js';
|
|
3
3
|
|
|
4
|
-
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:
|
|
4
|
+
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:320px;height:240px;font-size:0}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{position:absolute;bottom:0;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;right:0;height:100%}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}";
|
|
5
5
|
|
|
6
6
|
import('./intersection-observer-8e4c7135.js');
|
|
7
7
|
const Image = class {
|
|
@@ -409,40 +409,41 @@ const Picker = class {
|
|
|
409
409
|
}
|
|
410
410
|
else if (mode === 'date') {
|
|
411
411
|
const value = this.value;
|
|
412
|
-
|
|
412
|
+
let _value = verifyDate(value) || new Date(new Date().setHours(0, 0, 0, 0)); // 没传值或值的合法性错误默认今天时间
|
|
413
413
|
const _start = verifyDate(start) || new Date('1970/01/01');
|
|
414
414
|
const _end = verifyDate(end) || new Date('2999/01/01');
|
|
415
415
|
// 时间区间有效性
|
|
416
|
-
if (
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
const monthRange = getMonthRange(_start, _end, currentYear);
|
|
422
|
-
const dayRange = getDayRange(_start, _end, currentYear, currentMonth);
|
|
423
|
-
this.index = [
|
|
424
|
-
yearRange.indexOf(currentYear),
|
|
425
|
-
monthRange.indexOf(currentMonth),
|
|
426
|
-
dayRange.indexOf(currentDay)
|
|
427
|
-
];
|
|
428
|
-
if (!this.pickerDate ||
|
|
429
|
-
this.pickerDate._value.getTime() !== _value.getTime() ||
|
|
430
|
-
this.pickerDate._start.getTime() !== _start.getTime() ||
|
|
431
|
-
this.pickerDate._end.getTime() !== _end.getTime()) {
|
|
432
|
-
this.pickerDate = {
|
|
433
|
-
_value,
|
|
434
|
-
_start,
|
|
435
|
-
_end,
|
|
436
|
-
_updateValue: [
|
|
437
|
-
currentYear,
|
|
438
|
-
currentMonth,
|
|
439
|
-
currentDay
|
|
440
|
-
]
|
|
441
|
-
};
|
|
442
|
-
}
|
|
416
|
+
if (!(_start <= _end)) {
|
|
417
|
+
throw new Error(`Picker start time must be less than end time.`);
|
|
418
|
+
}
|
|
419
|
+
if (!(_value >= _start && _value <= _end)) {
|
|
420
|
+
_value = _start;
|
|
443
421
|
}
|
|
444
|
-
|
|
445
|
-
|
|
422
|
+
const currentYear = _value.getFullYear();
|
|
423
|
+
const currentMonth = _value.getMonth() + 1;
|
|
424
|
+
const currentDay = _value.getDate();
|
|
425
|
+
const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear());
|
|
426
|
+
const monthRange = getMonthRange(_start, _end, currentYear);
|
|
427
|
+
const dayRange = getDayRange(_start, _end, currentYear, currentMonth);
|
|
428
|
+
this.index = [
|
|
429
|
+
yearRange.indexOf(currentYear),
|
|
430
|
+
monthRange.indexOf(currentMonth),
|
|
431
|
+
dayRange.indexOf(currentDay)
|
|
432
|
+
];
|
|
433
|
+
if (!this.pickerDate ||
|
|
434
|
+
this.pickerDate._value.getTime() !== _value.getTime() ||
|
|
435
|
+
this.pickerDate._start.getTime() !== _start.getTime() ||
|
|
436
|
+
this.pickerDate._end.getTime() !== _end.getTime()) {
|
|
437
|
+
this.pickerDate = {
|
|
438
|
+
_value,
|
|
439
|
+
_start,
|
|
440
|
+
_end,
|
|
441
|
+
_updateValue: [
|
|
442
|
+
currentYear,
|
|
443
|
+
currentMonth,
|
|
444
|
+
currentDay
|
|
445
|
+
]
|
|
446
|
+
};
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
449
|
else {
|
|
@@ -49,46 +49,37 @@ const PickerViewColumn = class {
|
|
|
49
49
|
this.initialPosition = '0';
|
|
50
50
|
this.paddingVertical = 0;
|
|
51
51
|
this.isInit = false;
|
|
52
|
-
this.isMove = false;
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
this.isMove = true;
|
|
57
|
-
this.onSelectStart.emit();
|
|
58
|
-
}
|
|
59
|
-
this.handleSelected();
|
|
60
|
-
}
|
|
61
|
-
onMouseEnd() {
|
|
62
|
-
if (!this.isMove)
|
|
63
|
-
return;
|
|
64
|
-
this.isMove = false;
|
|
65
|
-
this.handleSelected();
|
|
53
|
+
onTouchStart() {
|
|
54
|
+
this.onSelectStart.emit();
|
|
66
55
|
}
|
|
67
56
|
onTouchEnd() {
|
|
68
|
-
this.isMove = false;
|
|
69
57
|
this.handleSelected();
|
|
70
58
|
}
|
|
59
|
+
componentDidLoad() {
|
|
60
|
+
this.handleChange();
|
|
61
|
+
}
|
|
71
62
|
componentDidUpdate() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
sum += item.offsetHeight;
|
|
83
|
-
idx++;
|
|
84
|
-
}
|
|
85
|
-
this.el.scrollTo({ top: sum });
|
|
86
|
-
if (idx >= childList.length) {
|
|
87
|
-
this.onChange.emit({
|
|
88
|
-
curIndex: this.col,
|
|
89
|
-
selectedIndex: idx - 1
|
|
90
|
-
});
|
|
63
|
+
this.handleChange();
|
|
64
|
+
}
|
|
65
|
+
handleChange() {
|
|
66
|
+
const childList = this.el.childNodes;
|
|
67
|
+
let idx = 0;
|
|
68
|
+
let sum = 0;
|
|
69
|
+
for (const index in childList) {
|
|
70
|
+
const item = childList[index];
|
|
71
|
+
if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
|
|
72
|
+
break;
|
|
91
73
|
}
|
|
74
|
+
sum += item.offsetHeight;
|
|
75
|
+
idx++;
|
|
76
|
+
}
|
|
77
|
+
this.el.scrollTo({ top: sum });
|
|
78
|
+
if (idx >= childList.length) {
|
|
79
|
+
this.onChange.emit({
|
|
80
|
+
curIndex: this.col,
|
|
81
|
+
selectedIndex: idx - 1
|
|
82
|
+
});
|
|
92
83
|
}
|
|
93
84
|
}
|
|
94
85
|
render() {
|
|
@@ -113,6 +104,9 @@ const PickerView = class {
|
|
|
113
104
|
this.maskStyle = undefined;
|
|
114
105
|
this.maskClass = undefined;
|
|
115
106
|
}
|
|
107
|
+
onPropsChange() {
|
|
108
|
+
this.handleValueChange();
|
|
109
|
+
}
|
|
116
110
|
onSelect(e) {
|
|
117
111
|
e.stopPropagation();
|
|
118
112
|
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
@@ -135,13 +129,16 @@ const PickerView = class {
|
|
|
135
129
|
this.onPickEnd.emit();
|
|
136
130
|
}
|
|
137
131
|
componentDidLoad() {
|
|
132
|
+
this.handleValueChange();
|
|
133
|
+
}
|
|
134
|
+
handleValueChange() {
|
|
138
135
|
const childList = this.el.querySelectorAll('taro-picker-view-column-core');
|
|
139
136
|
childList.forEach((element, index) => {
|
|
140
137
|
var _a;
|
|
141
138
|
element.setAttribute('col', `${index}`);
|
|
142
|
-
let selectIndex =
|
|
139
|
+
let selectIndex = 0;
|
|
143
140
|
if (!!this.value && this.value.length > index) {
|
|
144
|
-
selectIndex =
|
|
141
|
+
selectIndex = this.value[index];
|
|
145
142
|
}
|
|
146
143
|
const pickerHeight = this.el.getBoundingClientRect().height;
|
|
147
144
|
const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
@@ -170,6 +167,9 @@ const PickerView = class {
|
|
|
170
167
|
return (h(Host, { class: "taro-picker-view-container" }, h("slot", null), h("div", { class: "taro-picker-view-mask-container" }, h("div", { class: maskTopCls, style: maskTopStyle }), h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }), h("div", { class: maskBtmCls, style: maskBottomStyle }))));
|
|
171
168
|
}
|
|
172
169
|
get el() { return getElement(this); }
|
|
170
|
+
static get watchers() { return {
|
|
171
|
+
"value": ["onPropsChange"]
|
|
172
|
+
}; }
|
|
173
173
|
};
|
|
174
174
|
PickerView.style = indexCss;
|
|
175
175
|
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
3
|
import { c as classnames } from './index-c3e4004b.js';
|
|
4
4
|
|
|
5
|
-
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:
|
|
5
|
+
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
6
6
|
|
|
7
7
|
function setTransform(nodeStyle, value) {
|
|
8
8
|
nodeStyle.transform = value;
|
|
@@ -221,17 +221,19 @@ const PullToRefresh = class {
|
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
Taro.eventCenter.on('__taroStopPullDownRefresh', ({ successHandler, errorHandler }) => {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
224
|
+
setTimeout(() => {
|
|
225
|
+
try {
|
|
226
|
+
this.triggerPullDownRefresh(false);
|
|
227
|
+
successHandler({
|
|
228
|
+
errMsg: 'stopPullDownRefresh: ok'
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
catch (e) {
|
|
232
|
+
errorHandler({
|
|
233
|
+
errMsg: 'stopPullDownRefresh: fail'
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}, 0);
|
|
235
237
|
});
|
|
236
238
|
}
|
|
237
239
|
render() {
|
|
@@ -255,4 +257,4 @@ const PullToRefresh = class {
|
|
|
255
257
|
};
|
|
256
258
|
PullToRefresh.style = indexCss;
|
|
257
259
|
|
|
258
|
-
export { PullToRefresh as
|
|
260
|
+
export { PullToRefresh as taro_pull_to_refresh_core };
|