@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
package/types/ScrollView.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { BaseEventOrigFunction, CommonEventFunction, StandardProps } from './com
|
|
|
3
3
|
interface ScrollViewProps extends StandardProps {
|
|
4
4
|
/** 允许横向滚动
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
7
7
|
* @rn 二选一
|
|
8
8
|
*/
|
|
9
9
|
scrollX?: boolean
|
|
10
10
|
/** 允许纵向滚动
|
|
11
11
|
* @default false
|
|
12
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
12
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
13
13
|
* @rn 二选一
|
|
14
14
|
*/
|
|
15
15
|
scrollY?: boolean
|
|
@@ -91,7 +91,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
91
91
|
*/
|
|
92
92
|
bounces?: boolean
|
|
93
93
|
/** 滚动条显隐控制 (同时开启 enhanced 属性后生效)
|
|
94
|
-
* @supported weapp
|
|
94
|
+
* @supported weapp, harmony
|
|
95
95
|
* @default true
|
|
96
96
|
*/
|
|
97
97
|
showScrollbar?: boolean
|
|
@@ -130,7 +130,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
130
130
|
* @supported weapp
|
|
131
131
|
* @default false
|
|
132
132
|
*/
|
|
133
|
-
enablePassive?:
|
|
133
|
+
enablePassive?: boolean
|
|
134
134
|
/** 渲染模式
|
|
135
135
|
* list - 列表模式。只会渲染在屏节点,会根据直接子节点是否在屏来按需渲染,若只有一个直接子节点则性能会退化
|
|
136
136
|
* custom - 自定义模式。只会渲染在屏节点,子节点可以是 sticky-section list-view grid-view 等组件
|
|
@@ -143,10 +143,25 @@ interface ScrollViewProps extends StandardProps {
|
|
|
143
143
|
* @default false
|
|
144
144
|
*/
|
|
145
145
|
reverse?: boolean
|
|
146
|
+
/** 是否对溢出进行裁剪,默认开启
|
|
147
|
+
* @supported weapp
|
|
148
|
+
* @default true
|
|
149
|
+
*/
|
|
150
|
+
clip?: boolean
|
|
146
151
|
/** 指定视口外渲染区域的距离,默认情况下视口外节点不渲染。指定 cache-extent 可优化滚动体验和加载速度,但会提高内存占用且影响首屏速度,可按需启用。
|
|
147
152
|
* @supported weapp
|
|
148
153
|
*/
|
|
149
154
|
cacheExtent?: number
|
|
155
|
+
/** 指定 scroll-view 触发滚动的最小拖动距离。仅在 scroll-view 和其他组件存在手势冲突时使用,可通过调整该属性使得滚动更加灵敏。
|
|
156
|
+
* @supported weapp
|
|
157
|
+
* @default 18
|
|
158
|
+
*/
|
|
159
|
+
minDragDistance?: number
|
|
160
|
+
/** 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
|
|
161
|
+
* @supported weapp
|
|
162
|
+
* @default [0,0,0,0]
|
|
163
|
+
*/
|
|
164
|
+
padding?: [number, number, number, number]
|
|
150
165
|
/** 只 scroll-into-view 到 cacheExtent 以内的目标节点,性能更佳
|
|
151
166
|
* @supported weapp
|
|
152
167
|
* @default false
|
|
@@ -161,6 +176,41 @@ interface ScrollViewProps extends StandardProps {
|
|
|
161
176
|
* @default 'start'
|
|
162
177
|
*/
|
|
163
178
|
scrollIntoViewAlignment?: 'start' | 'center' | 'end' | 'nearest'
|
|
179
|
+
/** 开启下拉二级能力
|
|
180
|
+
* @supported weapp
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
refresherTwoLevelEnabled?: boolean
|
|
184
|
+
/** 设置打开/关闭二级
|
|
185
|
+
* @supported weapp
|
|
186
|
+
* @default false
|
|
187
|
+
*/
|
|
188
|
+
refresherTwoLevelTriggered?: boolean
|
|
189
|
+
/** 下拉二级阈值
|
|
190
|
+
* @supported weapp
|
|
191
|
+
* @default 150
|
|
192
|
+
*/
|
|
193
|
+
refresherTwoLevelThreshold?: number
|
|
194
|
+
/** 滑动返回时关闭二级的阈值
|
|
195
|
+
* @supported weapp
|
|
196
|
+
* @default 80
|
|
197
|
+
*/
|
|
198
|
+
refresherTwoLevelCloseThreshold?: number
|
|
199
|
+
/** 处于二级状态时是否可滑动
|
|
200
|
+
* @supported weapp
|
|
201
|
+
* @default false
|
|
202
|
+
*/
|
|
203
|
+
refresherTwoLevelScrollEnabled?: boolean
|
|
204
|
+
/** 惯性滚动是否触发下拉刷新
|
|
205
|
+
* @supported weapp
|
|
206
|
+
* @default false
|
|
207
|
+
*/
|
|
208
|
+
refresherBallisticRefreshEnabled?: boolean
|
|
209
|
+
/** 即将打开二级时否定住
|
|
210
|
+
* @supported weapp
|
|
211
|
+
* @default false
|
|
212
|
+
*/
|
|
213
|
+
refresherTwoLevelPinned?: boolean
|
|
164
214
|
/** 滚动到顶部/左边,会触发 scrolltoupper 事件
|
|
165
215
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
166
216
|
*/
|
|
@@ -170,7 +220,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
170
220
|
*/
|
|
171
221
|
onScrollToLower?: CommonEventFunction
|
|
172
222
|
/** 滚动时触发
|
|
173
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
223
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
174
224
|
*/
|
|
175
225
|
onScroll?: BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
176
226
|
/** 滚动开始事件
|
|
@@ -201,6 +251,10 @@ interface ScrollViewProps extends StandardProps {
|
|
|
201
251
|
* @supported weapp
|
|
202
252
|
*/
|
|
203
253
|
onRefresherWillRefresh?: CommonEventFunction
|
|
254
|
+
/** 下拉刷新状态回调
|
|
255
|
+
* @supported weapp
|
|
256
|
+
*/
|
|
257
|
+
onRefresherStatusChange?: CommonEventFunction<ScrollViewProps.RefresherStatusChange>
|
|
204
258
|
/** 滑动开始事件 (同时开启 enhanced 属性后生效)
|
|
205
259
|
* @supported weapp
|
|
206
260
|
*/
|
|
@@ -252,6 +306,30 @@ declare namespace ScrollViewProps {
|
|
|
252
306
|
/** 滚动速度 */
|
|
253
307
|
velocity: number
|
|
254
308
|
}
|
|
309
|
+
interface RefresherStatusChange {
|
|
310
|
+
status: RefreshStatus
|
|
311
|
+
dy: number
|
|
312
|
+
}
|
|
313
|
+
const enum RefreshStatus {
|
|
314
|
+
// 空闲
|
|
315
|
+
Idle,
|
|
316
|
+
// 超过下拉刷新阈值,同 bind:refresherwillRefresh 触发时机
|
|
317
|
+
CanRefresh,
|
|
318
|
+
// 下拉刷新,同 bind:refresherrefresh 触发时机
|
|
319
|
+
Refreshing,
|
|
320
|
+
// 下拉刷新完成,同 bind:refresherrestore 触发时机
|
|
321
|
+
Completed,
|
|
322
|
+
// 下拉刷新失败
|
|
323
|
+
Failed,
|
|
324
|
+
// 超过下拉二级阈值
|
|
325
|
+
CanTwoLevel,
|
|
326
|
+
// 开始打开二级
|
|
327
|
+
TwoLevelOpening,
|
|
328
|
+
// 打开二级
|
|
329
|
+
TwoLeveling,
|
|
330
|
+
// 开始关闭二级
|
|
331
|
+
TwoLevelClosing,
|
|
332
|
+
}
|
|
255
333
|
}
|
|
256
334
|
/** 可滚动视图区域。使用竖向滚动时,需要给scroll-view一个固定高度,通过 WXSS 设置 height。组件属性的长度单位默认为 px
|
|
257
335
|
*
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ interface ShareElementProps extends StandardProps {
|
|
|
68
68
|
*
|
|
69
69
|
* 共享元素是一种动画形式,类似于 [`flutter Hero`](https://flutterchina.club/animations/hero-animations/) 动画,表现为元素像是在页面间穿越一样。该组件需与 [`PageContainer`](/docs/components/viewContainer/page-container) 组件结合使用。
|
|
70
70
|
* 使用时需在当前页放置 `ShareElement` 组件,同时在 `PageContainer` 容器中放置对应的 `ShareElement` 组件,对应关系通过属性值 key 映射。当设置 `PageContainer` `显示时,transform` 属性为 `true` 的共享元素会产生动画。当前页面容器退出时,会产生返回动画。
|
|
71
|
-
* @classification
|
|
71
|
+
* @classification skyline
|
|
72
72
|
* @supported weapp, alipay
|
|
73
73
|
* @example_react
|
|
74
74
|
* ```tsx
|
package/types/Slider.d.ts
CHANGED
|
@@ -3,62 +3,62 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
interface SliderProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 最小值
|
|
5
5
|
* @default 0
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
7
7
|
*/
|
|
8
8
|
min?: number
|
|
9
9
|
/** 最大值
|
|
10
10
|
* @default 100
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
12
12
|
*/
|
|
13
13
|
max?: number
|
|
14
14
|
/** 步长,取值必须大于 0,并且可被(max - min)整除
|
|
15
15
|
* @default 1
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
17
17
|
*/
|
|
18
18
|
step?: number
|
|
19
19
|
/** 是否禁用
|
|
20
20
|
* @default false
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean
|
|
24
24
|
/** 当前取值
|
|
25
25
|
* @default 0
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
27
27
|
*/
|
|
28
28
|
value?: number
|
|
29
29
|
/** 背景条的颜色(请使用 backgroundColor)
|
|
30
30
|
* @default "#e9e9e9"
|
|
31
|
-
* @supported weapp, tt, qq, jd
|
|
31
|
+
* @supported weapp, tt, qq, jd, harmony
|
|
32
32
|
*/
|
|
33
33
|
color?: string
|
|
34
34
|
/** 已选择的颜色(请使用 activeColor)
|
|
35
35
|
* @default "#1aad19"
|
|
36
|
-
* @supported weapp, tt, qq, jd
|
|
36
|
+
* @supported weapp, tt, qq, jd, harmony
|
|
37
37
|
*/
|
|
38
38
|
selectedColor?: string
|
|
39
39
|
/** 已选择的颜色
|
|
40
40
|
* @default "#1aad19"
|
|
41
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
41
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
42
42
|
*/
|
|
43
43
|
activeColor?: string
|
|
44
44
|
/** 背景条的颜色
|
|
45
45
|
* @default "#e9e9e9"
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
47
47
|
*/
|
|
48
48
|
backgroundColor?: string
|
|
49
49
|
/** 滑块的大小,取值范围为 12 - 28
|
|
50
50
|
* @default 28
|
|
51
|
-
* @supported weapp, swan, tt, qq, jd, h5
|
|
51
|
+
* @supported weapp, swan, tt, qq, jd, h5, harmony
|
|
52
52
|
*/
|
|
53
53
|
blockSize?: number
|
|
54
54
|
/** 滑块的颜色
|
|
55
55
|
* @default "#ffffff"
|
|
56
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
56
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony
|
|
57
57
|
*/
|
|
58
58
|
blockColor?: string
|
|
59
59
|
/** 是否显示当前 value
|
|
60
60
|
* @default false
|
|
61
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
61
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
62
62
|
*/
|
|
63
63
|
showValue?: boolean
|
|
64
64
|
/** 组件名字,用于表单提交获取数据。
|
|
@@ -84,11 +84,11 @@ interface SliderProps extends StandardProps, FormItemProps {
|
|
|
84
84
|
*/
|
|
85
85
|
ariaLabel?: string
|
|
86
86
|
/** 完成一次拖动后触发的事件
|
|
87
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
87
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
88
88
|
*/
|
|
89
89
|
onChange?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
90
90
|
/** 拖动过程中触发的事件
|
|
91
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
91
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
92
92
|
*/
|
|
93
93
|
onChanging?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
94
94
|
}
|
package/types/Slot.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StandardProps } from './common'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import type { ComponentType, ReactNode } from 'react'
|
|
4
|
+
|
|
5
|
+
interface SlotProps extends StandardProps {
|
|
4
6
|
/** 指定插入的 slot 位置
|
|
5
7
|
* @default none
|
|
6
8
|
* @supported weapp, swan, alipay, tt, jd, qq
|
|
@@ -15,7 +17,7 @@ interface SlotProps {
|
|
|
15
17
|
|
|
16
18
|
/** slot 插槽
|
|
17
19
|
* @classification viewContainer
|
|
18
|
-
* @supported weapp, swan, alipay, tt, jd, qq,
|
|
20
|
+
* @supported weapp, swan, alipay, tt, jd, qq, h5
|
|
19
21
|
* @example
|
|
20
22
|
* ```tsx
|
|
21
23
|
* import { Slot, View, Text } from '@tarojs/components'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from './common'
|
|
4
|
+
|
|
5
|
+
interface SnapshotProps extends StandardProps {
|
|
6
|
+
id: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** 截图组件。
|
|
10
|
+
* 支持将其子节点的渲染结果导出成图片,该组件需配合 snapshot 接口使用。 目前仅在 Skyline 渲染引擎 下支持。
|
|
11
|
+
* @classification skyline
|
|
12
|
+
* @supported weapp
|
|
13
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/snapshot.html
|
|
14
|
+
*/
|
|
15
|
+
declare const Snapshot: ComponentType<SnapshotProps>
|
|
16
|
+
export { Snapshot, SnapshotProps }
|
package/types/StickyHeader.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface StickyHeaderProps extends StandardProps {}
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
|
|
7
|
-
* @classification
|
|
7
|
+
* @classification skyline
|
|
8
8
|
* @supported weapp
|
|
9
9
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/sticky-header.html
|
|
10
10
|
*/
|
package/types/StickySection.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface StickySectionProps extends StandardProps {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点。仅 Skyline 支持。
|
|
12
|
-
* @classification
|
|
12
|
+
* @classification skyline
|
|
13
13
|
* @supported weapp
|
|
14
14
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/sticky-section.html
|
|
15
15
|
*/
|
package/types/Swiper.d.ts
CHANGED
|
@@ -3,41 +3,45 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
interface SwiperProps extends StandardProps {
|
|
4
4
|
/** 是否显示面板指示点
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
7
7
|
*/
|
|
8
8
|
indicatorDots?: boolean
|
|
9
9
|
/** 指示点颜色
|
|
10
10
|
* @default "rgba(0, 0, 0, .3)"
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
12
12
|
*/
|
|
13
13
|
indicatorColor?: string
|
|
14
14
|
/** 当前选中的指示点颜色
|
|
15
15
|
* @default "#000000"
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
17
17
|
*/
|
|
18
18
|
indicatorActiveColor?: string
|
|
19
19
|
/** 是否自动切换
|
|
20
20
|
* @default false
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
22
22
|
*/
|
|
23
23
|
autoplay?: boolean
|
|
24
24
|
/** 当前所在滑块的 index
|
|
25
25
|
* @default 0
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
27
27
|
*/
|
|
28
28
|
current?: number
|
|
29
29
|
/** 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
30
|
+
* @supported tt
|
|
31
|
+
* @weapp deprecated
|
|
30
32
|
* @default ""
|
|
33
|
+
* @supported tt
|
|
34
|
+
* @weapp deprecated
|
|
31
35
|
*/
|
|
32
36
|
currentItemId?: string
|
|
33
37
|
/** 自动切换时间间隔
|
|
34
38
|
* @default 5000
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
36
40
|
*/
|
|
37
41
|
interval?: number
|
|
38
42
|
/** 滑动动画时长
|
|
39
43
|
* @default 500
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
44
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
|
|
41
45
|
*/
|
|
42
46
|
duration?: number
|
|
43
47
|
/** 是否采用衔接滑动
|
|
@@ -47,7 +51,7 @@ interface SwiperProps extends StandardProps {
|
|
|
47
51
|
circular?: boolean
|
|
48
52
|
/** 滑动方向是否为纵向
|
|
49
53
|
* @default false
|
|
50
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
54
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
51
55
|
*/
|
|
52
56
|
vertical?: boolean
|
|
53
57
|
/** 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值
|
|
@@ -150,7 +154,7 @@ interface SwiperProps extends StandardProps {
|
|
|
150
154
|
*/
|
|
151
155
|
cacheExtent?: number
|
|
152
156
|
/** current 改变时会触发 change 事件
|
|
153
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
157
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
154
158
|
*/
|
|
155
159
|
onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
|
|
156
160
|
/** swiper-item 的位置发生改变时会触发 transition 事件
|
package/types/SwiperItem.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
interface SwiperItemProps extends StandardProps {
|
|
4
4
|
/** 该 swiper-item 的标识符
|
|
5
|
-
* @supported weapp, swan, tt, jd, h5, rn
|
|
5
|
+
* @supported weapp, swan, tt, jd, h5, rn, harmony
|
|
6
6
|
*/
|
|
7
7
|
itemId?: string
|
|
8
8
|
/** 是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息
|
|
@@ -10,6 +10,11 @@ interface SwiperItemProps extends StandardProps {
|
|
|
10
10
|
* @supported weapp
|
|
11
11
|
*/
|
|
12
12
|
skipHiddenItemLayout?: boolean
|
|
13
|
+
/** Swiper 循环状态下,前后垫片节点拷贝模式,用于修复 Vue 在 CustomElements 下的节点拷贝问题
|
|
14
|
+
* @default false
|
|
15
|
+
* @supported h5
|
|
16
|
+
*/
|
|
17
|
+
deep?: boolean
|
|
13
18
|
}
|
|
14
19
|
/** 仅可放置在 swiper 组件中,宽高自动设置为100%
|
|
15
20
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
package/types/Switch.d.ts
CHANGED
|
@@ -3,22 +3,22 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
interface SwitchProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 是否选中
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
7
7
|
*/
|
|
8
8
|
checked?: boolean
|
|
9
9
|
/** 是否禁用
|
|
10
10
|
* @default false
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
12
12
|
*/
|
|
13
13
|
disabled?: boolean
|
|
14
14
|
/** 样式,有效值:switch, checkbox
|
|
15
15
|
* @default "switch"
|
|
16
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
16
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony
|
|
17
17
|
*/
|
|
18
18
|
type?: 'switch' | 'checkbox'
|
|
19
19
|
/** switch 的颜色,同 css 的 color
|
|
20
20
|
* @default "#04BE02"
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
22
22
|
*/
|
|
23
23
|
color?: string
|
|
24
24
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
@@ -39,7 +39,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
39
39
|
*/
|
|
40
40
|
ariaLabel?: string
|
|
41
41
|
/** checked 改变时触发 change 事件
|
|
42
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
42
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
43
43
|
*/
|
|
44
44
|
onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
|
|
45
45
|
}
|
package/types/Text.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface TextProps extends StandardProps {
|
|
|
26
26
|
*/
|
|
27
27
|
numberOfLines?: number
|
|
28
28
|
/** 限制文本最大行数
|
|
29
|
-
* @supported weapp
|
|
29
|
+
* @supported weapp, harmony
|
|
30
30
|
*/
|
|
31
31
|
maxLines?: number
|
|
32
32
|
}
|
|
@@ -43,7 +43,7 @@ declare namespace TextProps {
|
|
|
43
43
|
}
|
|
44
44
|
/** 文本
|
|
45
45
|
* @classification base
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
47
47
|
* @example_react
|
|
48
48
|
* ```tsx
|
|
49
49
|
* export default class PageView extends Component {
|
package/types/Textarea.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface TextareaProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 输入框的内容
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
6
|
*/
|
|
7
7
|
value?: string
|
|
8
8
|
/** 输入框为空时占位符
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
10
10
|
*/
|
|
11
11
|
placeholder?: string
|
|
12
12
|
/** 指定 placeholder 的样式
|
|
13
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
13
|
+
* @supported weapp, alipay, swan, tt, qq, jd, harmony
|
|
14
14
|
*/
|
|
15
15
|
placeholderStyle?: string
|
|
16
16
|
/** 指定 placeholder 的样式类
|
|
@@ -99,7 +99,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
99
99
|
/** 点击键盘右下角按钮时是否保持键盘不收起
|
|
100
100
|
* @supported weapp, swan, tt
|
|
101
101
|
*/
|
|
102
|
-
confirmHold?:
|
|
102
|
+
confirmHold?: boolean
|
|
103
103
|
/** 组件名字,用于表单提交获取数据。
|
|
104
104
|
* @supported alipay
|
|
105
105
|
*/
|
|
@@ -124,11 +124,11 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
124
124
|
*/
|
|
125
125
|
adjustKeyboardTo?: boolean
|
|
126
126
|
/** 输入框聚焦时触发
|
|
127
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
127
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
128
128
|
*/
|
|
129
129
|
onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
|
|
130
130
|
/** 输入框失去焦点时触发
|
|
131
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
131
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
132
132
|
*/
|
|
133
133
|
onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
|
|
134
134
|
/** 输入框行数变化时调用
|
|
@@ -138,7 +138,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
138
138
|
/** 当键盘输入时,触发 input 事件
|
|
139
139
|
*
|
|
140
140
|
* **onInput 处理函数的返回值并不会反映到 textarea 上**
|
|
141
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
141
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
142
142
|
*/
|
|
143
143
|
onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
|
|
144
144
|
/** 点击完成时, 触发 confirm 事件
|
|
@@ -146,7 +146,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
146
146
|
*/
|
|
147
147
|
onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
|
|
148
148
|
/** 键盘高度发生变化的时候触发此事件
|
|
149
|
-
* @supported weapp, tt
|
|
149
|
+
* @supported weapp, tt, harmony
|
|
150
150
|
*/
|
|
151
151
|
onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
|
|
152
152
|
}
|
package/types/Video.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface VideoProps extends StandardProps {
|
|
4
4
|
/** 要播放视频的资源地址
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
6
|
*/
|
|
7
7
|
src: string
|
|
8
8
|
/** 指定视频时长
|
|
9
|
-
* @supported weapp, alipay, qq, h5, rn
|
|
9
|
+
* @supported weapp, alipay, qq, h5, rn, harmony
|
|
10
10
|
*/
|
|
11
11
|
duration?: number
|
|
12
12
|
/** 是否显示默认播放控件(播放/暂停按钮、播放进度、时间)
|
|
13
13
|
* @default true
|
|
14
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
14
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
15
15
|
*/
|
|
16
16
|
controls?: boolean
|
|
17
17
|
/** 弹幕列表
|
|
@@ -30,17 +30,17 @@ interface VideoProps extends StandardProps {
|
|
|
30
30
|
enableDanmu?: boolean
|
|
31
31
|
/** 是否自动播放
|
|
32
32
|
* @default false
|
|
33
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
33
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
34
34
|
*/
|
|
35
35
|
autoplay?: boolean
|
|
36
36
|
/** 是否循环播放
|
|
37
37
|
* @default false
|
|
38
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
38
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
39
39
|
*/
|
|
40
40
|
loop?: boolean
|
|
41
41
|
/** 是否静音播放
|
|
42
42
|
* @default false
|
|
43
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
43
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
44
44
|
*/
|
|
45
45
|
muted?: boolean
|
|
46
46
|
/** 指定视频初始播放位置
|
|
@@ -83,7 +83,7 @@ interface VideoProps extends StandardProps {
|
|
|
83
83
|
enableProgressGesture?: boolean
|
|
84
84
|
/** 当视频大小与 video 容器大小不一致时,视频的表现形式
|
|
85
85
|
* @default "contain"
|
|
86
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
86
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
|
|
87
87
|
*/
|
|
88
88
|
objectFit?: keyof VideoProps.ObjectFit
|
|
89
89
|
/** 视频封面的图片网络资源地址,如果 controls 属性值为 false 则设置 poster 无效
|
|
@@ -192,8 +192,9 @@ interface VideoProps extends StandardProps {
|
|
|
192
192
|
nativeProps?: Record<string, unknown>
|
|
193
193
|
/** 是否展示底部进度条
|
|
194
194
|
* @supported weapp
|
|
195
|
+
* @default true
|
|
195
196
|
*/
|
|
196
|
-
showBottomProgress?:
|
|
197
|
+
showBottomProgress?: boolean
|
|
197
198
|
/** 是否在小窗模式下显示播放进度
|
|
198
199
|
* @supported weapp
|
|
199
200
|
*/
|
|
@@ -205,7 +206,7 @@ interface VideoProps extends StandardProps {
|
|
|
205
206
|
/** 是否是 DRM 视频源
|
|
206
207
|
* @supported weapp
|
|
207
208
|
*/
|
|
208
|
-
isDrm?:
|
|
209
|
+
isDrm?: boolean
|
|
209
210
|
/** DRM 设备身份认证 url,仅 is-drm 为 true 时生效 (Android)
|
|
210
211
|
* @supported weapp
|
|
211
212
|
*/
|
|
@@ -235,7 +236,7 @@ interface VideoProps extends StandardProps {
|
|
|
235
236
|
*
|
|
236
237
|
* @supported alipay, jd
|
|
237
238
|
*/
|
|
238
|
-
mobilenetHintType?:
|
|
239
|
+
mobilenetHintType?: number
|
|
239
240
|
/** 浮窗设置。暂时不支持全局浮窗。
|
|
240
241
|
* 可选值:
|
|
241
242
|
*
|
|
@@ -297,24 +298,24 @@ interface VideoProps extends StandardProps {
|
|
|
297
298
|
*/
|
|
298
299
|
definition?: string
|
|
299
300
|
/** 当开始/继续播放时触发 play 事件
|
|
300
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
301
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
301
302
|
*/
|
|
302
303
|
onPlay?: CommonEventFunction
|
|
303
304
|
/** 当暂停播放时触发 pause 事件
|
|
304
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
305
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
305
306
|
*/
|
|
306
307
|
onPause?: CommonEventFunction
|
|
307
308
|
/** 当播放到末尾时触发 ended 事件
|
|
308
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
309
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
309
310
|
*/
|
|
310
311
|
onEnded?: CommonEventFunction
|
|
311
312
|
/** 播放进度变化时触发, 触发频率 250ms 一次
|
|
312
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
313
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
313
314
|
*/
|
|
314
315
|
onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
|
|
315
316
|
/** 当视频进入和退出全屏时触发
|
|
316
317
|
*
|
|
317
|
-
* @supported h5, rn
|
|
318
|
+
* @supported alipay, h5, rn, harmony
|
|
318
319
|
*/
|
|
319
320
|
onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
|
|
320
321
|
/** 视频出现缓冲时触发
|
|
@@ -327,11 +328,11 @@ interface VideoProps extends StandardProps {
|
|
|
327
328
|
*/
|
|
328
329
|
onError?: CommonEventFunction
|
|
329
330
|
/** 加载进度变化时触发,只支持一段加载
|
|
330
|
-
* @supported weapp, tt, qq, h5
|
|
331
|
+
* @supported weapp, tt, qq, h5, harmony
|
|
331
332
|
*/
|
|
332
333
|
onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
|
|
333
334
|
/** 视频元数据加载完成时触发
|
|
334
|
-
* @supported weapp, swan, tt, jd, rn
|
|
335
|
+
* @supported weapp, swan, tt, jd, rn, harmony
|
|
335
336
|
*/
|
|
336
337
|
onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
|
|
337
338
|
/**
|
|
@@ -432,11 +433,11 @@ interface VideoProps extends StandardProps {
|
|
|
432
433
|
*/
|
|
433
434
|
onLoadStart?: CommonEventFunction
|
|
434
435
|
/** 否
|
|
435
|
-
* @supported jd
|
|
436
|
+
* @supported jd, harmony
|
|
436
437
|
*/
|
|
437
438
|
onSeeked?: CommonEventFunction
|
|
438
439
|
/** 否
|
|
439
|
-
* @supported jd
|
|
440
|
+
* @supported jd, harmony
|
|
440
441
|
*/
|
|
441
442
|
onSeeking?: CommonEventFunction
|
|
442
443
|
/** 贴片广告加载成功时触发,event.detail = { adType: 'preRollAd' | 'postRollAd' }
|
|
@@ -487,6 +488,14 @@ declare namespace VideoProps {
|
|
|
487
488
|
currentTime: number
|
|
488
489
|
/** 持续时间 */
|
|
489
490
|
duration: number
|
|
491
|
+
/** 用户实际观看时长
|
|
492
|
+
* @supported alipay
|
|
493
|
+
*/
|
|
494
|
+
userPlayDuration: number
|
|
495
|
+
/** 视频总时长
|
|
496
|
+
* @supported alipay
|
|
497
|
+
*/
|
|
498
|
+
videoDuration: number
|
|
490
499
|
}
|
|
491
500
|
interface onFullscreenChangeEventDetail {
|
|
492
501
|
/** 方向 */
|