@tarojs/components 3.3.16 → 3.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-cde74e58.js → index-b9715722.js} +0 -0
- package/dist/cjs/{index-7464647f.js → index-dd4b7ba3.js} +0 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +12 -8
- package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +9 -5
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +12 -3
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +38 -32
- package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +183 -100
- package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +20 -4
- package/dist/collection/components/ad/ad.js +11 -0
- package/dist/collection/components/ad-custom/ad-custom.js +11 -0
- package/dist/collection/components/editor/editor.js +11 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +2 -2
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
- package/dist/collection/components/live-player/live-player.js +11 -0
- package/dist/collection/components/live-pusher/live-pusher.js +11 -0
- package/dist/collection/components/map/map.js +11 -0
- package/dist/collection/components/match-media/match-media.js +11 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
- package/dist/collection/components/navigator/navigator.js +1 -1
- package/dist/collection/components/official-account/official-account.js +11 -0
- package/dist/collection/components/page-container/page-container.js +11 -0
- package/dist/collection/components/page-meta/page-meta.js +11 -0
- package/dist/collection/components/{picker-view-column → picker-view}/picker-view-column.js +0 -0
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.js +1 -1
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/style/index.css +0 -0
- package/dist/collection/components/share-element/share-element.js +11 -0
- package/dist/collection/components/slot/slot.js +11 -0
- package/dist/collection/components/swiper/swiper.js +10 -1
- package/dist/collection/components/tabbar/tabbar.js +10 -4
- package/dist/collection/components/video/video-control.js +39 -22
- package/dist/collection/components/video/video-danmu.js +52 -39
- package/dist/collection/components/video/video.js +60 -37
- package/dist/collection/components/voip-room/voip-room.js +11 -0
- package/dist/collection/utils/index.js +50 -64
- package/dist/esm/{index-85e10859.js → index-3c78bcaf.js} +0 -0
- package/dist/esm/{index-165a6222.js → index-5bd7cbab.js} +0 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/taro-ad-core.entry.js +15 -0
- package/dist/esm/taro-ad-custom-core.entry.js +15 -0
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +2 -2
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +15 -0
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +4 -4
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +15 -0
- package/dist/esm/taro-live-pusher-core.entry.js +15 -0
- package/dist/esm/taro-map-core.entry.js +15 -0
- package/dist/esm/taro-match-media-core.entry.js +15 -0
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
- package/dist/esm/taro-navigator-core.entry.js +3 -3
- package/dist/esm/taro-official-account-core.entry.js +15 -0
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +15 -0
- package/dist/esm/taro-page-meta-core.entry.js +15 -0
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm/taro-picker-view-core.entry.js +1 -1
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +2 -2
- package/dist/esm/taro-share-element-core.entry.js +15 -0
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +15 -0
- package/dist/esm/taro-swiper-core_2.entry.js +12 -3
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +13 -11
- package/dist/esm/taro-text-core.entry.js +2 -2
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +183 -100
- package/dist/esm/taro-view-core.entry.js +2 -2
- package/dist/esm/taro-voip-room-core.entry.js +15 -0
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/{index-85e10859.js → index-3c78bcaf.js} +0 -0
- package/dist/esm-es5/{index-165a6222.js → index-5bd7cbab.js} +0 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -0
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -0
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-0303f9e0.entry.js +1 -0
- package/dist/taro-components/p-0472e474.system.entry.js +1 -0
- package/dist/taro-components/p-04818461.system.entry.js +1 -0
- package/dist/taro-components/p-065ec61d.entry.js +1 -0
- package/dist/taro-components/p-06af26db.system.entry.js +1 -0
- package/dist/taro-components/{p-3e2d4793.entry.js → p-06bffead.entry.js} +1 -1
- package/dist/taro-components/p-0c2982fc.system.entry.js +1 -0
- package/dist/taro-components/p-0ee69803.entry.js +1 -0
- package/dist/taro-components/p-11932905.entry.js +1 -0
- package/dist/taro-components/{p-d9494012.system.entry.js → p-12638ebc.system.entry.js} +1 -1
- package/dist/taro-components/{p-79b3c05a.entry.js → p-12ae0a33.entry.js} +1 -1
- package/dist/taro-components/{p-8d905ff5.system.entry.js → p-13c1404f.system.entry.js} +1 -1
- package/dist/taro-components/p-14dbbb42.entry.js +1 -0
- package/dist/taro-components/p-15bea37d.entry.js +1 -0
- package/dist/taro-components/{p-d6269b5e.system.entry.js → p-17039974.system.entry.js} +1 -1
- package/dist/taro-components/{p-7a5be745.entry.js → p-17cf8b5b.entry.js} +1 -1
- package/dist/taro-components/{p-5a13bd63.system.entry.js → p-1b790eb0.system.entry.js} +1 -1
- package/dist/taro-components/{p-2eda9121.system.entry.js → p-1e4f1702.system.entry.js} +1 -1
- package/dist/taro-components/{p-00328ebf.system.entry.js → p-264b7229.system.entry.js} +1 -1
- package/dist/taro-components/p-2d2f8064.entry.js +1 -0
- package/dist/taro-components/{p-8cf16235.entry.js → p-32937866.entry.js} +1 -1
- package/dist/taro-components/p-3334ac67.system.entry.js +1 -0
- package/dist/taro-components/p-336f2b2a.system.entry.js +1 -0
- package/dist/taro-components/p-33ee636a.system.js +1 -0
- package/dist/taro-components/{p-1507bcbf.entry.js → p-3633bb84.entry.js} +1 -1
- package/dist/taro-components/{p-2ce9bc65.system.entry.js → p-3643d8f7.system.entry.js} +1 -1
- package/dist/taro-components/{p-6967e577.js → p-37cfdd8f.js} +0 -0
- package/dist/taro-components/p-3c0230ba.entry.js +1 -0
- package/dist/taro-components/p-3dfb1807.entry.js +1 -0
- package/dist/taro-components/p-431197bc.entry.js +1 -0
- package/dist/taro-components/{p-2de1a146.system.entry.js → p-43de2f12.system.entry.js} +1 -1
- package/dist/taro-components/{p-f4158e42.entry.js → p-4dbed323.entry.js} +1 -1
- package/dist/taro-components/{p-bd922592.system.entry.js → p-50066d5e.system.entry.js} +1 -1
- package/dist/taro-components/p-527a38ee.system.entry.js +1 -0
- package/dist/taro-components/p-554e1039.entry.js +1 -0
- package/dist/taro-components/{p-0da88b1b.entry.js → p-55b0a30b.entry.js} +1 -1
- package/dist/taro-components/p-56618f09.entry.js +1 -0
- package/dist/taro-components/p-59d38db0.entry.js +1 -0
- package/dist/taro-components/p-5c420456.entry.js +1 -0
- package/dist/taro-components/{p-d12592f1.entry.js → p-5f8b5f62.entry.js} +1 -1
- package/dist/taro-components/{p-8235b7b7.system.entry.js → p-627a5064.system.entry.js} +1 -1
- package/dist/taro-components/{p-39bee235.entry.js → p-66237ac0.entry.js} +1 -1
- package/dist/taro-components/p-665e8461.system.entry.js +1 -0
- package/dist/taro-components/{p-923c6e08.entry.js → p-6965567d.entry.js} +1 -1
- package/dist/taro-components/{p-a34988ff.system.entry.js → p-703dfad8.system.entry.js} +1 -1
- package/dist/taro-components/p-7423fc3b.system.entry.js +1 -0
- package/dist/taro-components/{p-cb8099dd.entry.js → p-74540410.entry.js} +1 -1
- package/dist/taro-components/p-7721e046.entry.js +1 -0
- package/dist/taro-components/p-7cdad34e.system.entry.js +1 -0
- package/dist/taro-components/{p-1ed219a6.system.entry.js → p-7d848382.system.entry.js} +1 -1
- package/dist/taro-components/{p-ca67c759.entry.js → p-83dedaa2.entry.js} +1 -1
- package/dist/taro-components/{p-81588c19.entry.js → p-865c21b5.entry.js} +1 -1
- package/dist/taro-components/{p-26c08f44.entry.js → p-8a5e67cb.entry.js} +1 -1
- package/dist/taro-components/p-8b2bf902.system.entry.js +1 -0
- package/dist/taro-components/p-8bc82aaa.entry.js +1 -0
- package/dist/taro-components/p-8db237e0.entry.js +1 -0
- package/dist/taro-components/{p-5c8ba192.system.entry.js → p-8f90fca9.system.entry.js} +1 -1
- package/dist/taro-components/p-92e95d3f.entry.js +1 -0
- package/dist/taro-components/p-94502fc3.entry.js +1 -0
- package/dist/taro-components/{p-696f0d1c.system.js → p-94c20f60.system.js} +0 -0
- package/dist/taro-components/p-95529dc0.entry.js +1 -0
- package/dist/taro-components/{p-d8363f59.system.entry.js → p-964692f7.system.entry.js} +1 -1
- package/dist/taro-components/p-98b47fc9.system.entry.js +1 -0
- package/dist/taro-components/p-99cb65a6.system.entry.js +1 -0
- package/dist/taro-components/{p-9bd65170.system.entry.js → p-99ed3ed2.system.entry.js} +1 -1
- package/dist/taro-components/{p-ce49e2f4.system.entry.js → p-9a618935.system.entry.js} +1 -1
- package/dist/taro-components/p-9d0ab7c4.entry.js +1 -0
- package/dist/taro-components/p-9eb7dfa8.entry.js +1 -0
- package/dist/taro-components/{p-9e807bd6.system.entry.js → p-9fc88fc1.system.entry.js} +1 -1
- package/dist/taro-components/p-a1423df9.entry.js +1 -0
- package/dist/taro-components/{p-098f4931.system.entry.js → p-b15d0302.system.entry.js} +1 -1
- package/dist/taro-components/{p-93748645.system.js → p-b2d01686.system.js} +0 -0
- package/dist/taro-components/p-b6d6c744.entry.js +1 -0
- package/dist/taro-components/p-b75d8a65.entry.js +1 -0
- package/dist/taro-components/p-b87cf623.entry.js +1 -0
- package/dist/taro-components/p-b9280444.entry.js +1 -0
- package/dist/taro-components/{p-4462dca4.system.entry.js → p-bd3fa355.system.entry.js} +1 -1
- package/dist/taro-components/p-c218c298.entry.js +1 -0
- package/dist/taro-components/p-c362734b.entry.js +1 -0
- package/dist/taro-components/p-cb395e7d.entry.js +1 -0
- package/dist/taro-components/p-cdffee54.system.entry.js +1 -0
- package/dist/taro-components/{p-d52bf5f5.system.entry.js → p-cea9a198.system.entry.js} +1 -1
- package/dist/taro-components/p-cf55a63c.entry.js +1 -0
- package/dist/taro-components/{p-321aeeec.system.entry.js → p-cfbdd4e3.system.entry.js} +1 -1
- package/dist/taro-components/p-cfbfeee8.entry.js +1 -0
- package/dist/taro-components/p-d1c2481c.system.entry.js +1 -0
- package/dist/taro-components/p-d394a61f.system.entry.js +1 -0
- package/dist/taro-components/{p-7b021c48.entry.js → p-d567b95e.entry.js} +1 -1
- package/dist/taro-components/{p-de3a4828.entry.js → p-d5971476.entry.js} +1 -1
- package/dist/taro-components/p-dd34408a.entry.js +1 -0
- package/dist/taro-components/p-df5a19b0.system.entry.js +1 -0
- package/dist/taro-components/p-e03fa2d5.system.entry.js +1 -0
- package/dist/taro-components/{p-26d8c60a.system.entry.js → p-e0af1d0d.system.entry.js} +1 -1
- package/dist/taro-components/p-e27798a4.entry.js +1 -0
- package/dist/taro-components/p-e2f6448d.system.entry.js +1 -0
- package/dist/taro-components/{p-37cfef64.entry.js → p-e6298500.entry.js} +1 -1
- package/dist/taro-components/p-ebf5b2eb.system.entry.js +1 -0
- package/dist/taro-components/{p-49ae5efb.js → p-f05e1558.js} +0 -0
- package/dist/taro-components/{p-5e6feca6.system.entry.js → p-fb0959c1.system.entry.js} +1 -1
- package/dist/taro-components/{p-4168e24d.system.entry.js → p-fb2252b7.system.entry.js} +1 -1
- package/dist/taro-components/{p-5412a1d2.system.entry.js → p-fc4939c6.system.entry.js} +1 -1
- package/dist/taro-components/p-fcc1c676.system.entry.js +1 -0
- package/dist/taro-components/{p-9d6a7a70.system.entry.js → p-fd8312e5.system.entry.js} +1 -1
- package/dist/taro-components/{p-7ffcfb05.system.entry.js → p-fdd73355.system.entry.js} +1 -1
- package/dist/taro-components/{p-016f56cc.system.entry.js → p-fde3a009.system.entry.js} +1 -1
- package/dist/taro-components/{p-9e912454.system.entry.js → p-fe156231.system.entry.js} +1 -1
- package/dist/taro-components/{p-2b6a2449.system.entry.js → p-ffe63ce9.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/ad/ad.d.ts +4 -0
- package/dist/types/components/ad-custom/ad-custom.d.ts +4 -0
- package/dist/types/components/editor/editor.d.ts +4 -0
- package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
- package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
- package/dist/types/components/live-player/live-player.d.ts +4 -0
- package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
- package/dist/types/components/map/map.d.ts +4 -0
- package/dist/types/components/match-media/match-media.d.ts +4 -0
- package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
- package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
- package/dist/types/components/official-account/official-account.d.ts +4 -0
- package/dist/types/components/page-container/page-container.d.ts +4 -0
- package/dist/types/components/page-meta/page-meta.d.ts +4 -0
- package/dist/types/components/{picker-view-column → picker-view}/picker-view-column.d.ts +0 -0
- package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
- package/dist/types/components/share-element/share-element.d.ts +4 -0
- package/dist/types/components/slot/slot.d.ts +4 -0
- package/dist/types/components/swiper/swiper.d.ts +1 -0
- package/dist/types/components/tabbar/tabbar.d.ts +1 -1
- package/dist/types/components/voip-room/voip-room.d.ts +4 -0
- package/dist/types/components.d.ts +208 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist-h5/react/index.js +2 -1
- package/package.json +3 -3
- package/types/Ad.d.ts +6 -6
- package/types/AdCustom.d.ts +50 -0
- package/types/Button.d.ts +2 -2
- package/types/CoverImage.d.ts +3 -3
- package/types/CoverView.d.ts +3 -3
- package/types/Image.d.ts +8 -2
- package/types/KeyboardAccessory.d.ts +29 -0
- package/types/MovableView.d.ts +1 -1
- package/types/PageContainer.d.ts +115 -0
- package/types/ShareElement.d.ts +39 -0
- package/types/View.d.ts +1 -1
- package/types/VoipRoom.d.ts +71 -0
- package/types/common.d.ts +3 -8
- package/types/index.d.ts +72 -46
- package/virtual-list/react/createListComponent.js +4 -3
- package/dist/taro-components/p-0fb7f599.entry.js +0 -1
- package/dist/taro-components/p-17c0731f.entry.js +0 -1
- package/dist/taro-components/p-30bfacb9.system.js +0 -1
- package/dist/taro-components/p-33bcdee9.entry.js +0 -1
- package/dist/taro-components/p-3554df41.entry.js +0 -1
- package/dist/taro-components/p-4a2ffc1c.entry.js +0 -1
- package/dist/taro-components/p-4ff67760.entry.js +0 -1
- package/dist/taro-components/p-5d84eaf0.entry.js +0 -1
- package/dist/taro-components/p-69be8189.system.entry.js +0 -1
- package/dist/taro-components/p-6daacf48.entry.js +0 -1
- package/dist/taro-components/p-72f2b6f5.entry.js +0 -1
- package/dist/taro-components/p-76c00960.entry.js +0 -1
- package/dist/taro-components/p-7f3e5f09.entry.js +0 -1
- package/dist/taro-components/p-9767491b.entry.js +0 -1
- package/dist/taro-components/p-a03009b5.entry.js +0 -1
- package/dist/taro-components/p-a65e86b8.system.entry.js +0 -1
- package/dist/taro-components/p-a895db87.entry.js +0 -1
- package/dist/taro-components/p-b685a487.system.entry.js +0 -1
- package/dist/taro-components/p-ce093936.entry.js +0 -1
- package/dist/taro-components/p-d52009d1.system.entry.js +0 -1
- package/dist/taro-components/p-d6a37b93.entry.js +0 -1
- package/dist/taro-components/p-f6c7f07c.system.entry.js +0 -1
- package/dist/taro-components/p-f7b6c1a6.entry.js +0 -1
- package/dist/taro-components/p-f991bc7b.entry.js +0 -1
package/types/Image.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ interface ImageProps extends StandardProps {
|
|
|
20
20
|
*/
|
|
21
21
|
webp?: boolean
|
|
22
22
|
|
|
23
|
+
/** 默认不解析 svg 格式,svg 图片只支持 aspectFit
|
|
24
|
+
* @default false
|
|
25
|
+
* @supported rn
|
|
26
|
+
*/
|
|
27
|
+
svg?: boolean
|
|
28
|
+
|
|
23
29
|
/** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
|
|
24
30
|
* @default false
|
|
25
31
|
* @supported weapp, swan, alipay, tt
|
|
@@ -94,7 +100,7 @@ declare namespace ImageProps {
|
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
/** 图片。支持 JPG、PNG、SVG、WEBP、GIF 等格式以及云文件ID。
|
|
97
|
-
*
|
|
103
|
+
*
|
|
98
104
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
99
105
|
* @classification media
|
|
100
106
|
* @supported weapp, h5, rn, swan, alipay, tt
|
|
@@ -104,7 +110,7 @@ declare namespace ImageProps {
|
|
|
104
110
|
* constructor() {
|
|
105
111
|
* super(...arguments)
|
|
106
112
|
* }
|
|
107
|
-
*
|
|
113
|
+
*
|
|
108
114
|
* render() {
|
|
109
115
|
* return (
|
|
110
116
|
* <View className='components-page'>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps, CommonEventFunction } from './common'
|
|
3
|
+
|
|
4
|
+
type KeyboardAccessoryProps = StandardProps
|
|
5
|
+
|
|
6
|
+
/** 设置 input / textarea 聚焦时键盘上方 cover-view / cover-image 工具栏视图
|
|
7
|
+
*
|
|
8
|
+
* @classification forms
|
|
9
|
+
* @supported weapp
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* class App extends Component {
|
|
13
|
+
* render () {
|
|
14
|
+
* return (
|
|
15
|
+
* <Textarea holdKeyboard="{{true}}">
|
|
16
|
+
* <KeyboardAccessory className="container" style={{ height: 50 }} >
|
|
17
|
+
* <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'green' }}>1</CoverView>
|
|
18
|
+
* <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'red' }}>2</CoverView>
|
|
19
|
+
* </KeyboardAccessory>
|
|
20
|
+
* </Textarea>
|
|
21
|
+
* )
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
26
|
+
*/
|
|
27
|
+
declare const KeyboardAccessory: ComponentType<KeyboardAccessoryProps>
|
|
28
|
+
|
|
29
|
+
export { KeyboardAccessory, KeyboardAccessoryProps }
|
package/types/MovableView.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction, TouchEventFunction
|
|
2
|
+
import { StandardProps, CommonEventFunction, TouchEventFunction } from './common'
|
|
3
3
|
|
|
4
4
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
5
5
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps, CommonEventFunction, BaseEventOrigFunction } from './common'
|
|
3
|
+
|
|
4
|
+
interface PageContainerProps extends StandardProps {
|
|
5
|
+
/** 是否显示容器组件
|
|
6
|
+
* @default false
|
|
7
|
+
* @supported weapp
|
|
8
|
+
*/
|
|
9
|
+
show?: boolean
|
|
10
|
+
|
|
11
|
+
/** 动画时长,单位毫秒
|
|
12
|
+
* @default 300
|
|
13
|
+
* @supported weapp
|
|
14
|
+
*/
|
|
15
|
+
duration?: number
|
|
16
|
+
|
|
17
|
+
/** z-index 层级
|
|
18
|
+
* @default 100
|
|
19
|
+
* @supported weapp
|
|
20
|
+
*/
|
|
21
|
+
zIndex?: number
|
|
22
|
+
|
|
23
|
+
/** 是否显示遮罩层
|
|
24
|
+
* @default true
|
|
25
|
+
* @supported weapp
|
|
26
|
+
*/
|
|
27
|
+
overlay?: boolean
|
|
28
|
+
|
|
29
|
+
/** 弹出位置,可选值为 top bottom right center
|
|
30
|
+
* @default bottom
|
|
31
|
+
* @supported weapp
|
|
32
|
+
*/
|
|
33
|
+
position?: keyof PageContainerProps.position
|
|
34
|
+
|
|
35
|
+
/** 是否显示圆角
|
|
36
|
+
* @default false
|
|
37
|
+
* @supported weapp
|
|
38
|
+
*/
|
|
39
|
+
round?: boolean
|
|
40
|
+
|
|
41
|
+
/** 自定义遮罩层样式
|
|
42
|
+
* @default false
|
|
43
|
+
* @supported weapp
|
|
44
|
+
*/
|
|
45
|
+
closeOnSlideDown?: boolean
|
|
46
|
+
|
|
47
|
+
/** 是否在下滑一段距离后关闭
|
|
48
|
+
* @supported weapp
|
|
49
|
+
*/
|
|
50
|
+
overlayStyle?: boolean
|
|
51
|
+
|
|
52
|
+
/** 自定义弹出层样式
|
|
53
|
+
* @supported weapp
|
|
54
|
+
*/
|
|
55
|
+
customStyle?: boolean
|
|
56
|
+
|
|
57
|
+
/** 进入前触发
|
|
58
|
+
* @supported weapp
|
|
59
|
+
*/
|
|
60
|
+
onBeforeEnter?: CommonEventFunction
|
|
61
|
+
|
|
62
|
+
/** 进入中触发
|
|
63
|
+
* @supported weapp
|
|
64
|
+
*/
|
|
65
|
+
onEnter?: CommonEventFunction
|
|
66
|
+
|
|
67
|
+
/** 进入后触发
|
|
68
|
+
* @supported weapp
|
|
69
|
+
*/
|
|
70
|
+
onAfterEnter?: CommonEventFunction
|
|
71
|
+
|
|
72
|
+
/** 离开前触发
|
|
73
|
+
* @supported weapp
|
|
74
|
+
*/
|
|
75
|
+
onBeforeLeave?: CommonEventFunction
|
|
76
|
+
|
|
77
|
+
/** 离开中触发
|
|
78
|
+
* @supported weapp
|
|
79
|
+
*/
|
|
80
|
+
onLeave?: CommonEventFunction
|
|
81
|
+
|
|
82
|
+
/** 离开后触发
|
|
83
|
+
* @supported weapp
|
|
84
|
+
*/
|
|
85
|
+
onAfterLeave?: CommonEventFunction
|
|
86
|
+
|
|
87
|
+
/** 点击遮罩层时触发
|
|
88
|
+
* @supported weapp
|
|
89
|
+
*/
|
|
90
|
+
onClickOverlay?: CommonEventFunction
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare namespace PageContainerProps {
|
|
94
|
+
interface position {
|
|
95
|
+
top
|
|
96
|
+
bottom
|
|
97
|
+
left
|
|
98
|
+
right
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** 页面容器
|
|
103
|
+
*
|
|
104
|
+
* 小程序如果在页面内进行复杂的界面设计(如在页面内弹出半屏的弹窗、在页面内加载一个全屏的子页面等),用户进行返回操作会直接离开当前页面,不符合用户预期,预期应为关闭当前弹出的组件。
|
|
105
|
+
* 为此提供“假页”容器组件,效果类似于 `popup` 弹出层,页面内存在该容器时,当用户进行返回操作,关闭该容器不关闭页面。返回操作包括三种情形,右滑手势、安卓物理返回键和调用 `navigateBack` 接口。
|
|
106
|
+
*
|
|
107
|
+
* Bug & Tip
|
|
108
|
+
* 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
|
|
109
|
+
* 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面
|
|
110
|
+
* @classification viewContainer
|
|
111
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
|
|
112
|
+
*/
|
|
113
|
+
declare const PageContainer: ComponentType<PageContainerProps>
|
|
114
|
+
|
|
115
|
+
export { PageContainer, PageContainerProps }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps, CommonEventFunction } from './common'
|
|
3
|
+
|
|
4
|
+
interface ShareElementProps extends StandardProps {
|
|
5
|
+
/** 映射标记
|
|
6
|
+
* @supported weapp
|
|
7
|
+
*/
|
|
8
|
+
key: string
|
|
9
|
+
|
|
10
|
+
/** 是否进行动画
|
|
11
|
+
* @default false
|
|
12
|
+
* @supported weapp
|
|
13
|
+
*/
|
|
14
|
+
transform?: boolean
|
|
15
|
+
|
|
16
|
+
/** 动画时长,单位毫秒
|
|
17
|
+
* @default 300
|
|
18
|
+
* @supported weapp
|
|
19
|
+
*/
|
|
20
|
+
duration?: number
|
|
21
|
+
|
|
22
|
+
/** css缓动函数
|
|
23
|
+
* @default ease-out
|
|
24
|
+
* @supported weapp
|
|
25
|
+
*/
|
|
26
|
+
easingFunction?: number
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 共享元素
|
|
30
|
+
*
|
|
31
|
+
* 共享元素是一种动画形式,类似于 [`flutter Hero`](https://flutterchina.club/animations/hero-animations/) 动画,表现为元素像是在页面间穿越一样。该组件需与 [`page-container`](https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html) 组件结合使用。
|
|
32
|
+
* 使用时需在当前页放置 `share-element` 组件,同时在 `page-container` 容器中放置对应的 `share-element` 组件,对应关系通过属性值 key 映射。当设置 `page-container` `显示时,transform` 属性为 `true` 的共享元素会产生动画。当前页面容器退出时,会产生返回动画。
|
|
33
|
+
* @classification viewContainer
|
|
34
|
+
* @supported weapp
|
|
35
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/share-element.html
|
|
36
|
+
*/
|
|
37
|
+
declare const ShareElement: ComponentType<ShareElementProps>
|
|
38
|
+
|
|
39
|
+
export { ShareElement, ShareElementProps }
|
package/types/View.d.ts
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native'
|
|
4
|
+
|
|
5
|
+
interface VoipRoomProps extends StandardProps {
|
|
6
|
+
/** 进入房间用户的 openid
|
|
7
|
+
* @default none
|
|
8
|
+
* @supported weapp, swan, alipay, tt, h5
|
|
9
|
+
*/
|
|
10
|
+
openId?: string
|
|
11
|
+
|
|
12
|
+
/** 对话窗口类型,自身传入 camera,其它用户传入 video
|
|
13
|
+
* @default camera
|
|
14
|
+
* @supported weapp, swan, alipay, tt, h5
|
|
15
|
+
*/
|
|
16
|
+
mode?: keyof VoipRoomProps.mode
|
|
17
|
+
|
|
18
|
+
/** 仅在 mode 为 camera 时有效,前置或后置,值为front, back
|
|
19
|
+
* @default front
|
|
20
|
+
* @supported weapp, swan, alipay, tt, h5
|
|
21
|
+
*/
|
|
22
|
+
devicePosition?: keyof VoipRoomProps.devicePosition
|
|
23
|
+
|
|
24
|
+
/** 创建对话窗口失败时触发
|
|
25
|
+
* @supported weapp
|
|
26
|
+
*/
|
|
27
|
+
onError?: CommonEventFunction
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
namespace VoipRoomProps {
|
|
31
|
+
/** 对话窗口类型 */
|
|
32
|
+
interface mode {
|
|
33
|
+
camera
|
|
34
|
+
video
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 摄像头类型 */
|
|
38
|
+
interface devicePosition {
|
|
39
|
+
front
|
|
40
|
+
back
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** 多人音视频对话
|
|
45
|
+
*
|
|
46
|
+
* 需用户授权 `scope.camera`、`scope.record`。相关接口: [Taro.joinVoIPChat](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.joinVoIPChat.html)
|
|
47
|
+
* 开通该组件权限后,开发者可在 joinVoIPChat 成功后,获取房间成员的 openid,传递给 voip-room 组件,以显示成员画面。
|
|
48
|
+
* @classification media
|
|
49
|
+
* @supported weapp
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* export default class PageView extends Component {
|
|
53
|
+
* constructor() {
|
|
54
|
+
* super(...arguments)
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* render() {
|
|
58
|
+
* return (
|
|
59
|
+
* <VoipRoom
|
|
60
|
+
* openId="{{item}}"
|
|
61
|
+
* mode="{{selfOpenId === item ? 'camera' : 'video'}}">
|
|
62
|
+
* </VoipRoom>
|
|
63
|
+
* )
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
|
|
68
|
+
*/
|
|
69
|
+
declare const VoipRoom: ComponentType<VoipRoomProps>
|
|
70
|
+
|
|
71
|
+
export { VoipRoom, VoipRoomProps }
|
package/types/common.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, LegacyRef } from 'react'
|
|
2
2
|
|
|
3
|
-
export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never })[keyof T]>;
|
|
4
|
-
|
|
5
3
|
export interface StandardProps<T = any, TouchEvent extends BaseTouchEvent<any> = ITouchEvent> extends EventProps<TouchEvent> {
|
|
6
4
|
/** 组件的唯一标示, 保持整个页面唯一 */
|
|
7
5
|
id?: string
|
|
@@ -16,7 +14,7 @@ export interface StandardProps<T = any, TouchEvent extends BaseTouchEvent<any> =
|
|
|
16
14
|
/** 组件是否显示, 所有组件默认显示 */
|
|
17
15
|
hidden?: boolean
|
|
18
16
|
/** 动画属性 */
|
|
19
|
-
animation?: { actions:
|
|
17
|
+
animation?: { actions: TaroGeneral.IAnyObject[] }
|
|
20
18
|
/** 引用 */
|
|
21
19
|
ref?: LegacyRef<T>
|
|
22
20
|
/**
|
|
@@ -24,7 +22,7 @@ export interface StandardProps<T = any, TouchEvent extends BaseTouchEvent<any> =
|
|
|
24
22
|
* @see https://taro-docs.jd.com/taro/docs/html
|
|
25
23
|
*/
|
|
26
24
|
dangerouslySetInnerHTML?: {
|
|
27
|
-
__html: string
|
|
25
|
+
__html: string
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -146,10 +144,7 @@ export interface Target {
|
|
|
146
144
|
}
|
|
147
145
|
}
|
|
148
146
|
|
|
149
|
-
|
|
150
|
-
* @ignore
|
|
151
|
-
*/
|
|
152
|
-
export interface currentTarget extends Target {}
|
|
147
|
+
export type currentTarget = Target
|
|
153
148
|
|
|
154
149
|
/** 网络状态数据 */
|
|
155
150
|
export interface netStatus {
|
package/types/index.d.ts
CHANGED
|
@@ -1,49 +1,75 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './common'
|
|
2
|
+
export * from './event'
|
|
3
|
+
|
|
4
|
+
/** 视图容器 */
|
|
3
5
|
export { Block } from './Block'
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { MatchMedia } from './MatchMedia'
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
6
|
+
export { CoverImage, CoverImageProps } from './CoverImage'
|
|
7
|
+
export { CoverView, CoverViewProps } from './CoverView'
|
|
8
|
+
export { MatchMedia, MatchMediaProps } from './MatchMedia'
|
|
9
|
+
export { MovableArea, MovableAreaProps } from './MovableArea'
|
|
10
|
+
export { MovableView, MovableViewProps } from './MovableView'
|
|
11
|
+
export { PageContainer, PageContainerProps } from './PageContainer'
|
|
12
|
+
export { ScrollView, ScrollViewProps } from './ScrollView'
|
|
13
|
+
export { ShareElement, ShareElementProps } from './ShareElement'
|
|
14
|
+
export { Swiper, SwiperProps } from './Swiper'
|
|
15
|
+
export { SwiperItem, SwiperItemProps } from './SwiperItem'
|
|
16
|
+
export { View, ViewProps } from './View'
|
|
17
|
+
|
|
18
|
+
/** 基础内容 */
|
|
19
|
+
export { Icon, IconProps } from './Icon'
|
|
20
|
+
export { Progress, ProgressProps } from './Progress'
|
|
21
|
+
export { RichText, RichTextProps } from './RichText'
|
|
22
|
+
export { Text, TextProps } from './Text'
|
|
23
|
+
|
|
24
|
+
/** 表单组件 */
|
|
15
25
|
export { Button, ButtonProps } from './Button'
|
|
16
|
-
export { Checkbox } from './Checkbox'
|
|
17
|
-
export { CheckboxGroup } from './CheckboxGroup'
|
|
18
|
-
export { Editor } from './Editor'
|
|
19
|
-
export { Form } from './Form'
|
|
20
|
-
export { Input } from './Input'
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
26
|
+
export { Checkbox, CheckboxProps } from './Checkbox'
|
|
27
|
+
export { CheckboxGroup, CheckboxGroupProps } from './CheckboxGroup'
|
|
28
|
+
export { Editor, EditorProps } from './Editor'
|
|
29
|
+
export { Form, FormProps } from './Form'
|
|
30
|
+
export { Input, InputProps } from './Input'
|
|
31
|
+
export { KeyboardAccessory, KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
32
|
+
export { Label, LabelProps } from './Label'
|
|
33
|
+
export { Picker, PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerStandardProps, PickerMultiSelectorProps } from './Picker'
|
|
34
|
+
export { PickerView, PickerViewProps } from './PickerView'
|
|
24
35
|
export { PickerViewColumn } from './PickerViewColumn'
|
|
25
|
-
export { Radio } from './Radio'
|
|
26
|
-
export { RadioGroup } from './RadioGroup'
|
|
27
|
-
export { Slider } from './Slider'
|
|
28
|
-
export { Switch } from './Switch'
|
|
29
|
-
export { Textarea } from './Textarea'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export
|
|
49
|
-
|
|
36
|
+
export { Radio, RadioProps } from './Radio'
|
|
37
|
+
export { RadioGroup, RadioGroupProps } from './RadioGroup'
|
|
38
|
+
export { Slider, SliderProps } from './Slider'
|
|
39
|
+
export { Switch, SwitchProps } from './Switch'
|
|
40
|
+
export { Textarea, TextareaProps } from './Textarea'
|
|
41
|
+
|
|
42
|
+
/** 导航 */
|
|
43
|
+
export { FunctionalPageNavigator, FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
44
|
+
export { Navigator, NavigatorProps } from './Navigator'
|
|
45
|
+
export { NavigationBar, NavigationBarProps } from './NavigationBar'
|
|
46
|
+
// export { Tabbar, TabbarProps } from './Tabbar'
|
|
47
|
+
// export { TabbarItem, TabbarProps } from './TabbarItem'
|
|
48
|
+
|
|
49
|
+
/** 媒体组件 */
|
|
50
|
+
export { Audio, AudioProps } from './Audio'
|
|
51
|
+
export { Camera, CameraProps } from './Camera'
|
|
52
|
+
export { Image, ImageProps } from './Image'
|
|
53
|
+
export { LivePlayer, LivePlayerProps } from './LivePlayer'
|
|
54
|
+
export { LivePusher, LivePusherProps } from './LivePusher'
|
|
55
|
+
export { Video, VideoProps } from './Video'
|
|
56
|
+
export { VoipRoom, VoipRoomProps } from './VoipRoom'
|
|
57
|
+
|
|
58
|
+
/** 地图 */
|
|
59
|
+
export { Map, MapProps } from './Map'
|
|
60
|
+
|
|
61
|
+
/** 画布 */
|
|
62
|
+
export { Canvas, CanvasProps } from './Canvas'
|
|
63
|
+
|
|
64
|
+
/** 开放能力 */
|
|
65
|
+
export { Ad, AdProps } from './Ad'
|
|
66
|
+
export { AdCustom, AdCustomProps } from './AdCustom'
|
|
67
|
+
export { OfficialAccount, OfficialAccountProps } from './OfficialAccount'
|
|
68
|
+
export { OpenData, OpenDataProps } from './OpenData'
|
|
69
|
+
export { WebView, WebViewProps } from './WebView'
|
|
70
|
+
|
|
71
|
+
/** 配置节点 */
|
|
72
|
+
export { PageMeta, PageMetaProps } from './PageMeta'
|
|
73
|
+
|
|
74
|
+
export { CustomWrapper, CustomWrapperProps } from './CustomWrapper'
|
|
75
|
+
export { Slot, SlotProps } from './Slot'
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { createSelectorQuery } from '@tarojs/taro'
|
|
2
1
|
/* eslint-disable no-sequences */
|
|
3
2
|
/* eslint-disable no-case-declarations */
|
|
4
3
|
/* eslint-disable no-void */
|
|
5
4
|
/* eslint-disable no-return-assign */
|
|
5
|
+
import Taro from '@tarojs/taro'
|
|
6
|
+
import { getRTLOffsetType } from '../domHelpers'
|
|
6
7
|
import { memoizeOne } from '../memoize'
|
|
7
8
|
import { createElement, PureComponent } from 'react'
|
|
8
9
|
import { cancelTimeout, requestTimeout } from '../timer'
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
const IS_SCROLLING_DEBOUNCE_INTERVAL = 200
|
|
11
12
|
|
|
12
13
|
const defaultItemKey = (index) => index // In DEV mode, this Set helps us only log a warning once per component instance.
|
|
@@ -21,7 +22,7 @@ export function isRtlFunc ({ direction }) {
|
|
|
21
22
|
return direction === 'rtl'
|
|
22
23
|
}
|
|
23
24
|
export function getRectSize (id, success = () => {}, fail = () => {}) {
|
|
24
|
-
const query = createSelectorQuery()
|
|
25
|
+
const query = Taro.createSelectorQuery()
|
|
25
26
|
query.select(id).boundingClientRect((res) => {
|
|
26
27
|
if (res) {
|
|
27
28
|
success(res)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as o,H as e}from"./p-49ae5efb.js";import{c as s}from"./p-6967e577.js";import("./p-72f327e1.js");let r=class{constructor(o){t(this,o),this.onLoad=i(this,"load",7),this.onError=i(this,"error",7),this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.aspectFillMode="width"}componentDidLoad(){if(!this.lazyLoad)return;const t=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(t.unobserve(this.imgRef),this.imgRef.src=this.src)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){const{width:t,height:i,naturalWidth:o,naturalHeight:e}=this.imgRef;this.onLoad.emit({width:t,height:i}),this.aspectFillMode=o>e?"width":"height"}imageOnError(){this.onError.emit()}render(){const{src:t,mode:i,lazyLoad:r,aspectFillMode:a,imageOnLoad:h,imageOnError:m,nativeProps:d}=this,g=s({"taro-img__widthfix":"widthFix"===i}),l=s(`taro-img__mode-${i.toLowerCase().replace(/\s/g,"")}`,{[`taro-img__mode-aspectfill--${a}`]:"aspectFill"===i});return o(e,{class:g},o("img",Object.assign(r?{ref:t=>this.imgRef=t,class:l,onLoad:h.bind(this),onError:m.bind(this)}:{ref:t=>this.imgRef=t,class:l,src:t,onLoad:h.bind(this),onError:m.bind(this)},d)))}};r.style='img[src=""]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;font-size:0;width:320px;height:240px}.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;top:50%;left: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-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;height:100%;right:0}.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}';export{r as taro_image_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r,H as o}from"./p-49ae5efb.js";let s=class{constructor(r){e(this,r)}componentDidLoad(){console.error("H5 暂不支持 PickerView 组件!")}render(){return r(o,null)}};export{s as taro_picker_view_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-93748645.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(e){t=e.p;r=e.b}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r([["p-016f56cc.system",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-2eda9121.system",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-098f4931.system",[[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],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-2ce9bc65.system",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-5c8ba192.system",[[0,"taro-block-core"]]],["p-26d8c60a.system",[[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:[1,"form-type"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-4462dca4.system",[[0,"taro-camera-core"]]],["p-9d6a7a70.system",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-d8363f59.system",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-9bd65170.system",[[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"]]]]],["p-321aeeec.system",[[0,"taro-custom-wrapper-core"]]],["p-5a13bd63.system",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-d6269b5e.system",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-d52009d1.system",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-d9494012.system",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16],_value:[32]}]]],["p-1ed219a6.system",[[4,"taro-label-core",{for:[1]}]]],["p-00328ebf.system",[[0,"taro-movable-area-core"]]],["p-5e6feca6.system",[[0,"taro-movable-view-core"]]],["p-b685a487.system",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-ce49e2f4.system",[[0,"taro-open-data-core"]]],["p-4168e24d.system",[[0,"taro-picker-view-column-core"]]],["p-2de1a146.system",[[0,"taro-picker-view-core"]]],["p-d52bf5f5.system",[[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]}]]],["p-69be8189.system",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7ffcfb05.system",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-8d905ff5.system",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-a34988ff.system",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-2b6a2449.system",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-a65e86b8.system",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-bd922592.system",[[4,"taro-text-core",{selectable:[4]}]]],["p-8235b7b7.system",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-9e912454.system",[[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"]]]]],["p-9e807bd6.system",[[0,"taro-web-view-core",{src:[1]}]]],["p-5412a1d2.system",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],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],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-f6c7f07c.system",[[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],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]}]]]],e)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as t,h as i}from"./p-49ae5efb.js";let e=class{constructor(i){r(this,i),this.onLoad=t(this,"load",7),this.onError=t(this,"error",7),this.nativeProps={}}imageOnLoad(){const{width:r,height:t}=this.imgRef;this.onLoad.emit({width:r,height:t})}imageOnError(){this.onError.emit()}render(){const{src:r,imageOnLoad:t,imageOnError:e,nativeProps:o}=this;return i("img",Object.assign({ref:r=>this.imgRef=r,src:r,onLoad:t.bind(this),onError:e.bind(this)},o))}};e.style="taro-cover-image-core{overflow:hidden;width:320px;height:240px}";export{e as taro_cover_image_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as e,H as s}from"./p-49ae5efb.js";let t=class{constructor(e){r(this,e)}render(){return e(s,null)}};export{t as taro_custom_wrapper_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as s,H as r}from"./p-49ae5efb.js";import{c as t}from"./p-6967e577.js";let e=class{constructor(s){o(this,s),this.size="23"}render(){const{type:o,size:e,color:c}=this,i=null==o?void 0:o.replace(/_/g,"-"),a=t({[`weui-icon-${i}`]:!0});return s(r,{class:a,style:{"font-size":`${e}px`,color:c}})}};export{e as taro_icon_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as s,h as t,H as a}from"./p-49ae5efb.js";import{c as r}from"./p-6967e577.js";const i=require("@tarojs/taro");let o=class{constructor(t){e(this,t),this.onSuccess=s(this,"cuccess",7),this.onFail=s(this,"fail",7),this.onComplete=s(this,"Complete",7),this.openType="navigate",this.isHover=!1,this.delta=0}onClick(){const{openType:e,onSuccess:s,onFail:t,onComplete:a}=this;let r=Promise.resolve();switch(e){case"navigate":r=i.navigateTo({url:this.url});break;case"redirect":r=i.redirectTo({url:this.url});break;case"switchTab":r=i.switchTab({url:this.url});break;case"reLaunch":r=i.reLaunch({url:this.url});break;case"navigateBack":r=i.navigateBack({delta:this.delta});break;case"exit":r=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'))}r&&r.then((e=>{s.emit(e)})).catch((e=>{t.emit(e)})).finally((()=>{a.emit()}))}render(){const{isHover:e,hoverClass:s}=this;return t(a,{class:r({[s]:e})})}};o.style=".navigator-hover{background:#efefef}";export{o as taro_navigator_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as r}from"./p-49ae5efb.js";import{c as h}from"./p-6967e577.js";const a=require("@tarojs/taro");const n="undefined"!=typeof navigator&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),o={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};let l=!1;try{const t=Object.defineProperty({},"passive",{get(){l=!0}});window.addEventListener("cancel",(()=>({})),t)}catch(t){}const c=!!l&&{passive:!1};let d=class{constructor(s){t(this,s),this.onRefresh=i(this,"refresh",7),this.prefixCls="rmc-pull-to-refresh",this.distanceToRefresh=50,this.damping=100,this.indicator=o,this.currSt="deactivate",this.dragOnEdge=!1,this._ScreenY=0,this._startScreenY=0,this._lastScreenY=0,this._isMounted=!1,this.triggerPullDownRefresh=t=>{!this.dragOnEdge&&this._isMounted&&(t?(this._lastScreenY=this.distanceToRefresh+1,this.currSt="release",this.setContentStyle(this._lastScreenY)):(this.currSt="finish",this.reset()))},this.init=()=>{const t=this.scrollContainer;this._to={touchstart:this.onTouchStart.bind(this,t),touchmove:this.onTouchMove.bind(this,t),touchend:this.onTouchEnd.bind(this,t),touchcancel:this.onTouchEnd.bind(this,t)},Object.keys(this._to).forEach((i=>{t.addEventListener(i,this._to[i],c)}))},this.destroy=()=>{const t=this.scrollContainer;Object.keys(this._to).forEach((i=>{t.removeEventListener(i,this._to[i])}))},this.onTouchStart=(t,i)=>{this._ScreenY=this._startScreenY=i.touches[0].screenY,this._lastScreenY=this._lastScreenY||0},this.isEdge=t=>{const i=this.scrollContainer;return i&&i===document.body?(document.scrollingElement?document.scrollingElement:document.body).scrollTop<=0:t.scrollTop<=0},this.damp=t=>Math.abs(this._lastScreenY)>this.damping?0:t*(.6*(1-Math.abs(this._ScreenY-this._startScreenY)/window.screen.height)),this.onTouchMove=(t,i)=>{const s=i.touches[0].screenY;if(!(this._startScreenY>s)&&this.isEdge(t)){this.dragOnEdge||(this._ScreenY=this._startScreenY=i.touches[0].screenY,this.dragOnEdge=!0),i.cancelable&&i.preventDefault();const t=Math.round(s-this._ScreenY);this._ScreenY=s,this._lastScreenY+=this.damp(t),this.setContentStyle(this._lastScreenY),Math.abs(this._lastScreenY)<this.distanceToRefresh?"deactivate"!==this.currSt&&(this.currSt="deactivate"):"deactivate"===this.currSt&&(this.currSt="activate"),n&&i.changedTouches[0].clientY<0&&this.onTouchEnd()}},this.onTouchEnd=()=>{this.dragOnEdge&&(this.dragOnEdge=!1),"activate"===this.currSt?(this.currSt="release",this.onRefresh.emit(this),this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):"release"===this.currSt?(this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):this.reset()},this.reset=()=>{this._lastScreenY=0,this.setContentStyle(0)},this.setContentStyle=t=>{var i,s;this.contentRef&&((i=this.contentRef.style).transform=s=t?`translate3d(0px,${t}px,0)`:"",i.webkitTransform=s,i.MozTransform=s)}}get scrollContainer(){return document.querySelector(".taro-tabbar__panel")||document.body}statusChange(){if("release"===this.currSt){const t=this.el.closest(".taro_page");t&&t.__page&&t.__page.onPullDownRefresh()}}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init(),this._isMounted=!0,a.eventCenter.on("__taroStartPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!0),t({errMsg:"startPullDownRefresh: ok"})}catch(t){i({errMsg:"startPullDownRefresh: fail"})}})),a.eventCenter.on("__taroStopPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!1),t({errMsg:"stopPullDownRefresh: ok"})}catch(t){i({errMsg:"stopPullDownRefresh: fail"})}}))}render(){const t=t=>{const{currSt:i,dragOnEdge:e,prefixCls:r}=this,a=h(t,!e&&`${r}-transition`);return s("div",{class:`${r}-content-wrapper`},s("div",{class:a,ref:t=>{this.contentRef=t}},("activate"===i||"release"===i)&&s("div",{class:`${r}-indicator`},s("div",null),s("div",null),s("div",null)),s("slot",null)))};return this.scrollContainer?t(`${this.prefixCls}-content ${this.prefixCls}-down`):s(e,{class:h(this.prefixCls,`${this.prefixCls}-down`)},t(`${this.prefixCls}-content`))}get el(){return r(this)}static get watchers(){return{currSt:["statusChange"]}}};d.style=".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0px;transform-origin:left top 0px}.rmc-pull-to-refresh-content-wrapper{overflow:hidden}.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{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:grey;width:6px;height:6px;border-radius:100%;margin:3px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear}.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}";export{d as taro_pull_to_refresh}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(e){"use strict";var t,r,n,i,o,s;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.H;o=e.g},function(e){s=e.c}],execute:function(){var a=".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0px;transform-origin:left top 0px}.rmc-pull-to-refresh-content-wrapper{overflow:hidden}.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{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:grey;width:6px;height:6px;border-radius:100%;margin:3px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear}.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}";var c=require("@tarojs/taro");function l(e,t){e.transform=t;e.webkitTransform=t;e.MozTransform=t}var f=typeof navigator!=="undefined"&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);var u={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};var d=false;try{var h=Object.defineProperty({},"passive",{get:function(){d=true}});window.addEventListener("cancel",(function(){return{}}),h)}catch(e){}var p=d?{passive:false}:false;var m=e("taro_pull_to_refresh",function(){function e(e){var n=this;t(this,e);this.onRefresh=r(this,"refresh",7);this.prefixCls="rmc-pull-to-refresh";this.distanceToRefresh=50;this.damping=100;this.indicator=u;this.currSt="deactivate";this.dragOnEdge=false;this._ScreenY=0;this._startScreenY=0;this._lastScreenY=0;this._isMounted=false;this.triggerPullDownRefresh=function(e){if(!n.dragOnEdge&&n._isMounted){if(e){n._lastScreenY=n.distanceToRefresh+1;n.currSt="release";n.setContentStyle(n._lastScreenY)}else{n.currSt="finish";n.reset()}}};this.init=function(){var e=n.scrollContainer;n._to={touchstart:n.onTouchStart.bind(n,e),touchmove:n.onTouchMove.bind(n,e),touchend:n.onTouchEnd.bind(n,e),touchcancel:n.onTouchEnd.bind(n,e)};Object.keys(n._to).forEach((function(t){e.addEventListener(t,n._to[t],p)}))};this.destroy=function(){var e=n.scrollContainer;Object.keys(n._to).forEach((function(t){e.removeEventListener(t,n._to[t])}))};this.onTouchStart=function(e,t){n._ScreenY=n._startScreenY=t.touches[0].screenY;n._lastScreenY=n._lastScreenY||0};this.isEdge=function(e){var t=n.scrollContainer;if(t&&t===document.body){var r=document.scrollingElement?document.scrollingElement:document.body;return r.scrollTop<=0}return e.scrollTop<=0};this.damp=function(e){if(Math.abs(n._lastScreenY)>n.damping){return 0}var t=Math.abs(n._ScreenY-n._startScreenY)/window.screen.height;e*=(1-t)*.6;return e};this.onTouchMove=function(e,t){var r=t.touches[0].screenY;if(n._startScreenY>r){return}if(n.isEdge(e)){if(!n.dragOnEdge){n._ScreenY=n._startScreenY=t.touches[0].screenY;n.dragOnEdge=true}if(t.cancelable){t.preventDefault()}var i=Math.round(r-n._ScreenY);n._ScreenY=r;n._lastScreenY+=n.damp(i);n.setContentStyle(n._lastScreenY);if(Math.abs(n._lastScreenY)<n.distanceToRefresh){if(n.currSt!=="deactivate"){n.currSt="deactivate"}}else{if(n.currSt==="deactivate"){n.currSt="activate"}}if(f&&t.changedTouches[0].clientY<0){n.onTouchEnd()}}};this.onTouchEnd=function(){if(n.dragOnEdge){n.dragOnEdge=false}if(n.currSt==="activate"){n.currSt="release";n.onRefresh.emit(n);n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else if(n.currSt==="release"){n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else{n.reset()}};this.reset=function(){n._lastScreenY=0;n.setContentStyle(0)};this.setContentStyle=function(e){if(n.contentRef){if(e){l(n.contentRef.style,"translate3d(0px,"+e+"px,0)")}else{l(n.contentRef.style,"")}}}}Object.defineProperty(e.prototype,"scrollContainer",{get:function(){return document.querySelector(".taro-tabbar__panel")||document.body},enumerable:false,configurable:true});e.prototype.statusChange=function(){if(this.currSt==="release"){var e=this.el.closest(".taro_page");if(e&&e.__page){e.__page.onPullDownRefresh()}}};e.prototype.disconnectedCallback=function(){this.destroy()};e.prototype.componentDidLoad=function(){var e=this;this.init();this._isMounted=true;c.eventCenter.on("__taroStartPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(true);r({errMsg:"startPullDownRefresh: ok"})}catch(e){n({errMsg:"startPullDownRefresh: fail"})}}));c.eventCenter.on("__taroStopPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(false);r({errMsg:"stopPullDownRefresh: ok"})}catch(e){n({errMsg:"stopPullDownRefresh: fail"})}}))};e.prototype.render=function(){var e=this;var t=function(t){var r=e,i=r.currSt,o=r.dragOnEdge,a=r.prefixCls;var c=s(t,!o&&a+"-transition");var l=i==="activate"||i==="release";return n("div",{class:a+"-content-wrapper"},n("div",{class:c,ref:function(t){e.contentRef=t}},l&&n("div",{class:a+"-indicator"},n("div",null),n("div",null),n("div",null)),n("slot",null)))};if(this.scrollContainer){return t(this.prefixCls+"-content "+this.prefixCls+"-down")}return n(i,{class:s(this.prefixCls,this.prefixCls+"-down")},t(this.prefixCls+"-content"))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currSt:["statusChange"]}},enumerable:false,configurable:true});return e}());m.style=a}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as t}from"./p-49ae5efb.js";let e=class{constructor(t){r(this,t)}render(){return t("label",{htmlFor:this.for},t("slot",null))}};export{e as taro_label_core}
|