@tarojs/components 3.5.0-canary.1 → 3.5.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/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
- package/dist/cjs/index-47a1959e.js +34 -0
- package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
- package/dist/cjs/loader.cjs.js +3 -3
- 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-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 +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- 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 +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-input-core.cjs.entry.js +23 -19
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.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 +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +24 -10
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +6 -14
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +15 -18
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +41 -40
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +5 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -23
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +7 -4
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +23 -22
- package/dist/collection/components/navigator/navigator.js +2 -2
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +218 -4
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +22 -8
- package/dist/collection/components/pull-to-refresh/style/index.css +53 -49
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +3 -11
- package/dist/collection/components/swiper/style/index.css +21 -9
- package/dist/collection/components/swiper/swiper.js +10 -13
- package/dist/collection/components/tabbar/style/index.css +9 -6
- package/dist/collection/components/tabbar/tabbar.js +10 -15
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -1
- package/dist/collection/components/video/style/index.css +88 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video-control.js +9 -9
- package/dist/collection/components/video/video.js +57 -9
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/view/view.js +2 -2
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +23 -83
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
- package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- 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-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +3 -3
- 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 +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-input-core.entry.js +23 -19
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +24 -10
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +5 -13
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +12 -15
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +41 -40
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +5 -3
- package/dist/esm/taro-video-control_3.entry.js +27867 -223
- package/dist/esm/taro-view-core.entry.js +5 -5
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-1d8e8acd.js +7 -0
- package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
- package/dist/esm-es5/index-cad8203e.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-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 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-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 -1
- package/dist/esm-es5/taro-label-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-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.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 -1
- package/dist/esm-es5/taro-navigator-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.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 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-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 +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-019591c8.system.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
- package/dist/taro-components/p-0996daee.entry.js +1 -0
- package/dist/taro-components/{p-94502fc3.entry.js → p-0ca42006.entry.js} +1 -1
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/{p-336f2b2a.system.entry.js → p-0d1e0e91.system.entry.js} +1 -1
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/p-0f42b8a4.entry.js +1 -0
- package/dist/taro-components/{p-cdffee54.system.entry.js → p-12deba0b.system.entry.js} +1 -1
- package/dist/taro-components/p-133e3ac4.entry.js +1 -0
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
- package/dist/taro-components/{p-14dbbb42.entry.js → p-16c1e564.entry.js} +1 -1
- package/dist/taro-components/{p-0c2982fc.system.entry.js → p-178a3adf.system.entry.js} +1 -1
- package/dist/taro-components/p-1e0406ec.system.entry.js +1 -0
- package/dist/taro-components/p-1e516bd0.entry.js +1 -0
- package/dist/taro-components/p-2241b671.system.js +1 -0
- package/dist/taro-components/p-26e9ce75.entry.js +1 -0
- package/dist/taro-components/{p-98b47fc9.system.entry.js → p-2887213d.system.entry.js} +1 -1
- package/dist/taro-components/{p-3334ac67.system.entry.js → p-29b7c721.system.entry.js} +1 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
- package/dist/taro-components/{p-e03fa2d5.system.entry.js → p-2e8a1479.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
- package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-3b801a38.system.entry.js} +1 -1
- package/dist/taro-components/p-3b85bb4b.system.entry.js +1 -0
- package/dist/taro-components/{p-59d38db0.entry.js → p-3bb72c08.entry.js} +1 -1
- package/dist/taro-components/{p-15bea37d.entry.js → p-3d3cd72f.entry.js} +1 -1
- package/dist/taro-components/p-3e223f2f.system.entry.js +1 -0
- package/dist/taro-components/p-430d72e8.entry.js +1 -0
- package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
- package/dist/taro-components/p-44a199e4.entry.js +1 -0
- package/dist/taro-components/{p-cfbfeee8.entry.js → p-45e6f8be.entry.js} +1 -1
- package/dist/taro-components/p-46b7f84e.entry.js +1 -0
- package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
- package/dist/taro-components/p-49954245.system.entry.js +1 -0
- package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
- package/dist/taro-components/p-53244eac.entry.js +1 -0
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-df5a19b0.system.entry.js → p-5ff0e954.system.entry.js} +1 -1
- package/dist/taro-components/p-61f225ef.system.js +7 -0
- package/dist/taro-components/p-62608b28.system.entry.js +1 -0
- package/dist/taro-components/{p-0303f9e0.entry.js → p-62c64770.entry.js} +1 -1
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
- package/dist/taro-components/p-671defcd.entry.js +1 -0
- package/dist/taro-components/p-69334f7c.entry.js +1 -0
- package/dist/taro-components/p-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/{p-b87cf623.entry.js → p-74013ace.entry.js} +1 -1
- package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
- package/dist/taro-components/p-76724e58.js +7 -0
- package/dist/taro-components/{p-1e4f1702.system.entry.js → p-78676120.system.entry.js} +1 -1
- package/dist/taro-components/p-7b2049b7.entry.js +1 -0
- package/dist/taro-components/p-7dc268ee.entry.js +1 -0
- package/dist/taro-components/p-7f7aa688.entry.js +1 -0
- package/dist/taro-components/p-80abb865.entry.js +1 -0
- package/dist/taro-components/{p-55b0a30b.entry.js → p-81976128.entry.js} +1 -1
- package/dist/taro-components/p-81dc5b7b.entry.js +1 -0
- package/dist/taro-components/{p-99cb65a6.system.entry.js → p-828efe43.system.entry.js} +1 -1
- package/dist/taro-components/{p-7cdad34e.system.entry.js → p-831ebd02.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ee69803.entry.js → p-832cc63a.entry.js} +1 -1
- package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
- package/dist/taro-components/p-841a2031.system.entry.js +365 -0
- package/dist/taro-components/{p-b6d6c744.entry.js → p-86205110.entry.js} +1 -1
- package/dist/taro-components/p-88063d40.system.entry.js +1 -0
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
- package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
- package/dist/taro-components/p-8ead6b19.entry.js +1 -0
- package/dist/taro-components/{p-ebf5b2eb.system.entry.js → p-8f466248.system.entry.js} +1 -1
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
- package/dist/taro-components/p-95e51d62.entry.js +1 -0
- package/dist/taro-components/p-9961074d.entry.js +1 -0
- package/dist/taro-components/{p-3643d8f7.system.entry.js → p-9b90554b.system.entry.js} +1 -1
- package/dist/taro-components/{p-06af26db.system.entry.js → p-9ce624a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-7423fc3b.system.entry.js → p-a36bfe97.system.entry.js} +1 -1
- package/dist/taro-components/p-a4721ae0.js +1 -0
- package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
- package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
- package/dist/taro-components/p-a900b437.system.entry.js +1 -0
- package/dist/taro-components/{p-8b2bf902.system.entry.js → p-a90bfe9d.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2f6448d.system.entry.js → p-a9ab6434.system.entry.js} +1 -1
- package/dist/taro-components/p-abb9c7d0.entry.js +1 -0
- package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-ac398961.system.entry.js} +1 -1
- package/dist/taro-components/{p-4dbed323.entry.js → p-ac56ffed.entry.js} +1 -1
- package/dist/taro-components/{p-fc4939c6.system.entry.js → p-baa5019a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fb0959c1.system.entry.js → p-c1458fbe.system.entry.js} +1 -1
- package/dist/taro-components/p-c9b73495.entry.js +1 -0
- package/dist/taro-components/{p-8f90fca9.system.entry.js → p-ca7ad427.system.entry.js} +1 -1
- package/dist/taro-components/{p-8bc82aaa.entry.js → p-ce0489a6.entry.js} +1 -1
- package/dist/taro-components/{p-9d0ab7c4.entry.js → p-ce46f79d.entry.js} +1 -1
- package/dist/taro-components/{p-2d2f8064.entry.js → p-cfebd931.entry.js} +1 -1
- package/dist/taro-components/p-d2b6b891.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
- package/dist/taro-components/p-d7e13592.entry.js +365 -0
- package/dist/taro-components/{p-0472e474.system.entry.js → p-de573939.system.entry.js} +1 -1
- package/dist/taro-components/p-e01af6c8.entry.js +1 -0
- package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
- package/dist/taro-components/{p-527a38ee.system.entry.js → p-ec59899b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d1c2481c.system.entry.js → p-f1da4ed7.system.entry.js} +1 -1
- package/dist/taro-components/p-fc226017.entry.js +1 -0
- package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.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/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +1 -3
- package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/swiper/swiper.d.ts +2 -2
- package/dist/types/components/tabbar/tabbar.d.ts +3 -2
- package/dist/types/components/video/utils.d.ts +6 -0
- package/dist/types/components/video/video-control.d.ts +2 -2
- package/dist/types/components.d.ts +22 -0
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -8
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/components/input.js +2 -2
- package/dist-h5/react/index.js +1 -46
- package/dist-h5/react/utils/reactify-wc.js +8 -5
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/components/picker.js +2 -2
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/createComponent.js +1 -0
- package/dist-h5/vue/createFormsComponent.js +3 -3
- package/dist-h5/vue/index.js +23 -26
- package/dist-h5/vue/mixins/listeners.js +2 -2
- package/dist-h5/vue3/components/icon.js +3 -0
- package/dist-h5/vue3/components/image.js +3 -0
- package/dist-h5/vue3/components/index.js +64 -0
- package/dist-h5/vue3/components/scroll-view.js +3 -0
- package/dist-h5/vue3/components/text.js +3 -0
- package/dist-h5/vue3/createComponent.js +3 -0
- package/dist-h5/vue3/createFormsComponent.js +6 -3
- package/dist-h5/vue3/forwardRef.js +11 -0
- package/dist-h5/vue3/index.js +12 -29
- package/package.json +37 -19
- package/types/Ad.d.ts +15 -15
- package/types/Audio.d.ts +3 -3
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +50 -34
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +10 -10
- package/types/Form.d.ts +8 -8
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Image.d.ts +2 -2
- package/types/Input.d.ts +41 -37
- package/types/KeyboardAccessory.d.ts +21 -8
- package/types/Label.d.ts +2 -2
- package/types/LivePlayer.d.ts +18 -18
- package/types/LivePusher.d.ts +14 -14
- package/types/Map.d.ts +33 -33
- package/types/MovableArea.d.ts +1 -1
- package/types/MovableView.d.ts +18 -18
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -7
- package/types/OpenData.d.ts +10 -10
- package/types/PageContainer.d.ts +22 -22
- package/types/Picker.d.ts +5 -5
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +6 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +7 -2
- package/types/ScrollView.d.ts +9 -9
- package/types/ShareElement.d.ts +196 -3
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +7 -7
- package/types/Switch.d.ts +3 -3
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +21 -21
- package/types/Video.d.ts +23 -23
- package/types/View.d.ts +4 -4
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +6 -6
- package/types/common.d.ts +4 -2
- package/types/index.d.ts +53 -52
- package/types/index.vue3.d.ts +157 -0
- package/types/props.ts +72 -0
- package/virtual-list/memoize.js +1 -0
- package/virtual-list/react/createListComponent.js +4 -3
- package/virtual-list/react/index.js +2 -1
- package/virtual-list/timer.js +1 -1
- package/virtual-list/vue/index.js +1 -1
- package/vue3.d.ts +3 -0
- package/dist/esm-es5/index-3c78bcaf.js +0 -7
- package/dist/taro-components/p-04818461.system.entry.js +0 -1
- package/dist/taro-components/p-065ec61d.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2dc57c71.system.entry.js +0 -1
- package/dist/taro-components/p-32937866.entry.js +0 -1
- package/dist/taro-components/p-33ee636a.system.js +0 -1
- package/dist/taro-components/p-37cfdd8f.js +0 -7
- package/dist/taro-components/p-3c0230ba.entry.js +0 -1
- package/dist/taro-components/p-3dfb1807.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
- package/dist/taro-components/p-554e1039.entry.js +0 -1
- package/dist/taro-components/p-56618f09.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-63ff7fa7.entry.js +0 -1
- package/dist/taro-components/p-7721e046.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-92e95d3f.entry.js +0 -1
- package/dist/taro-components/p-94c20f60.system.js +0 -7
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-9dc9c615.system.entry.js +0 -1
- package/dist/taro-components/p-9eb7dfa8.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-abe415b4.system.entry.js +0 -1
- package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
- package/dist/taro-components/p-b55fedc1.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-cb395e7d.entry.js +0 -1
- package/dist/taro-components/p-cc818a13.entry.js +0 -1
- package/dist/taro-components/p-cf55a63c.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d567b95e.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-e1040131.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fcc1c676.system.entry.js +0 -1
- package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
package/types/LivePlayer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction,
|
|
2
|
+
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
3
|
|
|
4
4
|
interface LivePlayerProps extends StandardProps {
|
|
5
5
|
/** 音视频地址。目前仅支持 flv, rtmp 格式
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
8
|
src?: string
|
|
9
9
|
|
|
@@ -11,29 +11,29 @@ interface LivePlayerProps extends StandardProps {
|
|
|
11
11
|
* @default "live"
|
|
12
12
|
* @supported weapp
|
|
13
13
|
*/
|
|
14
|
-
mode?: keyof LivePlayerProps.
|
|
14
|
+
mode?: keyof LivePlayerProps.Mode
|
|
15
15
|
|
|
16
16
|
/** 自动播放
|
|
17
17
|
* @default false
|
|
18
|
-
* @supported weapp
|
|
18
|
+
* @supported weapp, tt
|
|
19
19
|
*/
|
|
20
20
|
autoplay?: boolean
|
|
21
21
|
|
|
22
22
|
/** 是否静音
|
|
23
23
|
* @default false
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
muted?: boolean
|
|
27
27
|
|
|
28
28
|
/** 画面方向
|
|
29
29
|
* @default "vertical"
|
|
30
|
-
* @supported weapp
|
|
30
|
+
* @supported weapp, tt
|
|
31
31
|
*/
|
|
32
|
-
orientation?: keyof LivePlayerProps.
|
|
32
|
+
orientation?: keyof LivePlayerProps.Orientation
|
|
33
33
|
|
|
34
34
|
/** 填充模式
|
|
35
35
|
* @default "contain"
|
|
36
|
-
* @supported weapp
|
|
36
|
+
* @supported weapp, tt
|
|
37
37
|
*/
|
|
38
38
|
objectFit?: keyof LivePlayerProps.objectFit
|
|
39
39
|
|
|
@@ -44,13 +44,13 @@ interface LivePlayerProps extends StandardProps {
|
|
|
44
44
|
*/
|
|
45
45
|
backgroundMute?: boolean
|
|
46
46
|
|
|
47
|
-
/**
|
|
47
|
+
/** 最小缓冲区,单位s
|
|
48
48
|
* @default 1
|
|
49
49
|
* @supported weapp
|
|
50
50
|
*/
|
|
51
51
|
minCache?: number
|
|
52
52
|
|
|
53
|
-
/**
|
|
53
|
+
/** 最大缓冲区,单位s
|
|
54
54
|
* @default 3
|
|
55
55
|
* @supported weapp
|
|
56
56
|
*/
|
|
@@ -80,12 +80,12 @@ interface LivePlayerProps extends StandardProps {
|
|
|
80
80
|
pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
|
|
81
81
|
|
|
82
82
|
/** 播放状态变化事件,detail = {code}
|
|
83
|
-
* @supported weapp
|
|
83
|
+
* @supported weapp, tt
|
|
84
84
|
*/
|
|
85
85
|
onStateChange?: CommonEventFunction<LivePlayerProps.onStateChangeEventDetail>
|
|
86
86
|
|
|
87
87
|
/** 全屏变化事件,detail = {direction, fullScreen}
|
|
88
|
-
* @supported weapp
|
|
88
|
+
* @supported weapp, tt
|
|
89
89
|
*/
|
|
90
90
|
onFullScreenChange?: CommonEventFunction<LivePlayerProps.onFullScreenChangeEventDetail>
|
|
91
91
|
|
|
@@ -112,14 +112,14 @@ interface LivePlayerProps extends StandardProps {
|
|
|
112
112
|
|
|
113
113
|
declare namespace LivePlayerProps {
|
|
114
114
|
/** mode 的合法值 */
|
|
115
|
-
interface
|
|
115
|
+
interface Mode {
|
|
116
116
|
/** 直播 */
|
|
117
117
|
live
|
|
118
118
|
/** 实时通话,该模式时延更低 */
|
|
119
119
|
RTC
|
|
120
120
|
}
|
|
121
121
|
/** orientation 的合法值 */
|
|
122
|
-
interface
|
|
122
|
+
interface Orientation {
|
|
123
123
|
/** 竖直 */
|
|
124
124
|
vertical
|
|
125
125
|
/** 水平 */
|
|
@@ -151,10 +151,10 @@ declare namespace LivePlayerProps {
|
|
|
151
151
|
fullScreen: number | boolean
|
|
152
152
|
}
|
|
153
153
|
interface onNetStatusEventDetail {
|
|
154
|
-
info:
|
|
154
|
+
info: NetStatus
|
|
155
155
|
}
|
|
156
156
|
/** 状态码 */
|
|
157
|
-
interface
|
|
157
|
+
interface Status {
|
|
158
158
|
/** 已经连接服务器 */
|
|
159
159
|
2001
|
|
160
160
|
/** 已经连接 RTMP 服务器,开始拉流 */
|
|
@@ -205,10 +205,10 @@ declare namespace LivePlayerProps {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/** 实时音视频播放。相关api:Taro.createLivePlayerContext
|
|
208
|
-
*
|
|
208
|
+
*
|
|
209
209
|
* 需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
|
210
210
|
* @classification media
|
|
211
|
-
* @supported weapp
|
|
211
|
+
* @supported weapp, tt
|
|
212
212
|
* @example_react
|
|
213
213
|
* ```tsx
|
|
214
214
|
* class App extends Components {
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction,
|
|
2
|
+
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
3
|
|
|
4
4
|
/** 实时音视频录制。
|
|
5
5
|
* 需要用户授权 scope.camera、scope.record
|
|
@@ -46,7 +46,7 @@ interface LivePusherProps extends StandardProps {
|
|
|
46
46
|
* @default "vertical"
|
|
47
47
|
* @supported weapp
|
|
48
48
|
*/
|
|
49
|
-
orientation?: keyof LivePusherProps.
|
|
49
|
+
orientation?: keyof LivePusherProps.Orientation
|
|
50
50
|
|
|
51
51
|
/** 美颜,取值范围 0-9 ,0 表示关闭
|
|
52
52
|
* @default 0
|
|
@@ -131,13 +131,13 @@ interface LivePusherProps extends StandardProps {
|
|
|
131
131
|
* @default "auto"
|
|
132
132
|
* @supported weapp
|
|
133
133
|
*/
|
|
134
|
-
localMirror?: keyof LivePusherProps.
|
|
134
|
+
localMirror?: keyof LivePusherProps.LocalMirror
|
|
135
135
|
|
|
136
136
|
/** 音频混响类型
|
|
137
137
|
* @default 0
|
|
138
138
|
* @supported weapp
|
|
139
139
|
*/
|
|
140
|
-
audioReverbType?: keyof LivePusherProps.
|
|
140
|
+
audioReverbType?: keyof LivePusherProps.AudioReverbType
|
|
141
141
|
|
|
142
142
|
/** 开启或关闭麦克风
|
|
143
143
|
* @default true
|
|
@@ -161,7 +161,7 @@ interface LivePusherProps extends StandardProps {
|
|
|
161
161
|
* @default "voicecall"
|
|
162
162
|
* @supported weapp
|
|
163
163
|
*/
|
|
164
|
-
audioVolumeType?: keyof LivePusherProps.
|
|
164
|
+
audioVolumeType?: keyof LivePusherProps.AudioVolumeType
|
|
165
165
|
|
|
166
166
|
/** 上推的视频流的分辨率宽度
|
|
167
167
|
* @default 360
|
|
@@ -179,13 +179,13 @@ interface LivePusherProps extends StandardProps {
|
|
|
179
179
|
* @default smooth
|
|
180
180
|
* @supported weapp
|
|
181
181
|
*/
|
|
182
|
-
beautyStyle?: keyof LivePusherProps.
|
|
182
|
+
beautyStyle?: keyof LivePusherProps.BeautyStyleType
|
|
183
183
|
|
|
184
184
|
/** 设置色彩滤镜
|
|
185
185
|
* @default standard
|
|
186
186
|
* @supported weapp
|
|
187
187
|
*/
|
|
188
|
-
filter?: keyof LivePusherProps.
|
|
188
|
+
filter?: keyof LivePusherProps.FilterType
|
|
189
189
|
|
|
190
190
|
/** 状态变化事件,detail = {code}
|
|
191
191
|
* @supported weapp
|
|
@@ -225,14 +225,14 @@ interface LivePusherProps extends StandardProps {
|
|
|
225
225
|
|
|
226
226
|
declare namespace LivePusherProps {
|
|
227
227
|
/** orientation 的合法值 */
|
|
228
|
-
interface
|
|
228
|
+
interface Orientation {
|
|
229
229
|
/** 竖直 */
|
|
230
230
|
vertical
|
|
231
231
|
/** 水平 */
|
|
232
232
|
horizontal
|
|
233
233
|
}
|
|
234
234
|
/** localMirror 的合法值 */
|
|
235
|
-
interface
|
|
235
|
+
interface LocalMirror {
|
|
236
236
|
/** 前置摄像头镜像,后置摄像头不镜像 */
|
|
237
237
|
auto
|
|
238
238
|
/** 前后置摄像头均镜像 */
|
|
@@ -241,7 +241,7 @@ declare namespace LivePusherProps {
|
|
|
241
241
|
disable
|
|
242
242
|
}
|
|
243
243
|
/** audioReverbType 的合法值 */
|
|
244
|
-
interface
|
|
244
|
+
interface AudioReverbType {
|
|
245
245
|
/** 关闭 */
|
|
246
246
|
0
|
|
247
247
|
/** KTV */
|
|
@@ -260,21 +260,21 @@ declare namespace LivePusherProps {
|
|
|
260
260
|
7
|
|
261
261
|
}
|
|
262
262
|
/** audioVolumeType 的合法值 */
|
|
263
|
-
interface
|
|
263
|
+
interface AudioVolumeType {
|
|
264
264
|
/** 媒体音量 */
|
|
265
265
|
media
|
|
266
266
|
/** 通话音量 */
|
|
267
267
|
voicecall
|
|
268
268
|
}
|
|
269
269
|
/** beautyStyleType 的合法值 */
|
|
270
|
-
interface
|
|
270
|
+
interface BeautyStyleType {
|
|
271
271
|
/** 光滑美颜 */
|
|
272
272
|
smooth
|
|
273
273
|
/** 自然美颜 */
|
|
274
274
|
nature
|
|
275
275
|
}
|
|
276
276
|
/** filterType 的合法值 */
|
|
277
|
-
interface
|
|
277
|
+
interface FilterType {
|
|
278
278
|
/** 标准 */
|
|
279
279
|
standard
|
|
280
280
|
/** 粉嫩 */
|
|
@@ -304,7 +304,7 @@ declare namespace LivePusherProps {
|
|
|
304
304
|
}
|
|
305
305
|
interface onNetstatusEventDetail {
|
|
306
306
|
/** 网络状态 */
|
|
307
|
-
info:
|
|
307
|
+
info: NetStatus
|
|
308
308
|
}
|
|
309
309
|
interface onErrorEventDetail {
|
|
310
310
|
/** 错误信息 */
|
package/types/Map.d.ts
CHANGED
|
@@ -3,35 +3,35 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface MapProps extends StandardProps {
|
|
5
5
|
/** 中心经度
|
|
6
|
-
* @supported weapp, swan, alipay
|
|
6
|
+
* @supported weapp, swan, alipay, tt
|
|
7
7
|
*/
|
|
8
8
|
longitude: number
|
|
9
9
|
|
|
10
10
|
/** 中心纬度
|
|
11
|
-
* @supported weapp, swan, alipay
|
|
11
|
+
* @supported weapp, swan, alipay, tt
|
|
12
12
|
*/
|
|
13
13
|
latitude: number
|
|
14
14
|
|
|
15
15
|
/** 缩放级别,取值范围为3-20
|
|
16
16
|
* @default 16
|
|
17
|
-
* @supported weapp, swan, alipay
|
|
17
|
+
* @supported weapp, swan, alipay, tt
|
|
18
18
|
* @swan 取值范围为4-21
|
|
19
19
|
* @alipay 取值范围为5-18
|
|
20
20
|
*/
|
|
21
21
|
scale?: number
|
|
22
22
|
/** 最小缩放级别3-20
|
|
23
23
|
* @default 3
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
minScale?: number
|
|
27
27
|
/** 最大缩放级别3-20
|
|
28
28
|
* @default 20
|
|
29
|
-
* @supported weapp
|
|
29
|
+
* @supported weapp, tt
|
|
30
30
|
*/
|
|
31
31
|
maxScale?: number
|
|
32
32
|
|
|
33
33
|
/** 标记点
|
|
34
|
-
* @supported weapp, swan, alipay
|
|
34
|
+
* @supported weapp, swan, alipay, tt
|
|
35
35
|
*/
|
|
36
36
|
markers?: MapProps.marker[]
|
|
37
37
|
|
|
@@ -42,12 +42,12 @@ interface MapProps extends StandardProps {
|
|
|
42
42
|
covers?: any[]
|
|
43
43
|
|
|
44
44
|
/** 路线
|
|
45
|
-
* @supported weapp, swan, alipay
|
|
45
|
+
* @supported weapp, swan, alipay, tt
|
|
46
46
|
*/
|
|
47
47
|
polyline?: MapProps.polyline[]
|
|
48
48
|
|
|
49
49
|
/** 圆
|
|
50
|
-
* @supported weapp, swan, alipay
|
|
50
|
+
* @supported weapp, swan, alipay, tt
|
|
51
51
|
*/
|
|
52
52
|
circles?: MapProps.circle[]
|
|
53
53
|
|
|
@@ -58,18 +58,18 @@ interface MapProps extends StandardProps {
|
|
|
58
58
|
controls?: MapProps.control[]
|
|
59
59
|
|
|
60
60
|
/** 缩放视野以包含所有给定的坐标点
|
|
61
|
-
* @supported weapp, swan, alipay
|
|
61
|
+
* @supported weapp, swan, alipay, tt
|
|
62
62
|
*/
|
|
63
63
|
includePoints?: MapProps.point[]
|
|
64
64
|
|
|
65
65
|
/** 显示带有方向的当前定位点
|
|
66
66
|
* @default false
|
|
67
|
-
* @supported weapp, swan, alipay
|
|
67
|
+
* @supported weapp, swan, alipay, tt
|
|
68
68
|
*/
|
|
69
69
|
showLocation?: boolean
|
|
70
70
|
|
|
71
71
|
/** 多边形
|
|
72
|
-
* @supported weapp, swan, alipay
|
|
72
|
+
* @supported weapp, swan, alipay, tt
|
|
73
73
|
*/
|
|
74
74
|
polygons?: MapProps.polygon[]
|
|
75
75
|
|
|
@@ -86,67 +86,67 @@ interface MapProps extends StandardProps {
|
|
|
86
86
|
|
|
87
87
|
/** 旋转角度,范围 0 ~ 360, 地图正北和设备 y 轴角度的夹角
|
|
88
88
|
* @default 0
|
|
89
|
-
* @supported weapp
|
|
89
|
+
* @supported weapp, tt
|
|
90
90
|
*/
|
|
91
91
|
rotate?: number
|
|
92
92
|
|
|
93
93
|
/** 倾斜角度,范围 0 ~ 40 , 关于 z 轴的倾角
|
|
94
94
|
* @default 0
|
|
95
|
-
* @supported weapp
|
|
95
|
+
* @supported weapp, tt
|
|
96
96
|
*/
|
|
97
97
|
skew?: number
|
|
98
98
|
|
|
99
99
|
/** 展示 3D 楼块
|
|
100
100
|
* @default false
|
|
101
|
-
* @supported weapp, swan
|
|
101
|
+
* @supported weapp, swan, tt
|
|
102
102
|
*/
|
|
103
103
|
enable3D?: boolean
|
|
104
104
|
|
|
105
105
|
/** 显示指南针
|
|
106
106
|
* @default false
|
|
107
|
-
* @supported weapp, swan
|
|
107
|
+
* @supported weapp, swan, tt
|
|
108
108
|
*/
|
|
109
109
|
showCompass?: boolean
|
|
110
110
|
|
|
111
111
|
/** 显示比例尺
|
|
112
112
|
* @default false
|
|
113
|
-
* @supported weapp
|
|
113
|
+
* @supported weapp, tt
|
|
114
114
|
*/
|
|
115
115
|
showScale?: boolean
|
|
116
116
|
|
|
117
117
|
/** 开启俯视
|
|
118
118
|
* @default false
|
|
119
|
-
* @supported weapp, swan
|
|
119
|
+
* @supported weapp, swan, tt
|
|
120
120
|
*/
|
|
121
121
|
enableOverlooking?: boolean
|
|
122
122
|
|
|
123
123
|
/** 是否支持缩放
|
|
124
124
|
* @default true
|
|
125
|
-
* @supported weapp, swan
|
|
125
|
+
* @supported weapp, swan, tt
|
|
126
126
|
*/
|
|
127
127
|
enableZoom?: boolean
|
|
128
128
|
|
|
129
129
|
/** 是否支持拖动
|
|
130
130
|
* @default true
|
|
131
|
-
* @supported weapp, swan
|
|
131
|
+
* @supported weapp, swan, tt
|
|
132
132
|
*/
|
|
133
133
|
enableScroll?: boolean
|
|
134
134
|
|
|
135
135
|
/** 是否支持旋转
|
|
136
136
|
* @default false
|
|
137
|
-
* @supported weapp, swan
|
|
137
|
+
* @supported weapp, swan, tt
|
|
138
138
|
*/
|
|
139
139
|
enableRotate?: boolean
|
|
140
140
|
|
|
141
141
|
/** 是否开启卫星图
|
|
142
142
|
* @default false
|
|
143
|
-
* @supported weapp
|
|
143
|
+
* @supported weapp, tt
|
|
144
144
|
*/
|
|
145
145
|
enableSatellite?: boolean
|
|
146
146
|
|
|
147
147
|
/** 是否开启实时路况
|
|
148
148
|
* @default false
|
|
149
|
-
* @supported weapp
|
|
149
|
+
* @supported weapp, tt
|
|
150
150
|
*/
|
|
151
151
|
enableTraffic?: boolean
|
|
152
152
|
|
|
@@ -158,17 +158,17 @@ interface MapProps extends StandardProps {
|
|
|
158
158
|
setting?: MapProps | { [key: string]: number | string | any }
|
|
159
159
|
|
|
160
160
|
/** 点击地图时触发
|
|
161
|
-
* @supported weapp, swan, alipay
|
|
161
|
+
* @supported weapp, swan, alipay, tt
|
|
162
162
|
*/
|
|
163
163
|
onTap?: CommonEventFunction
|
|
164
164
|
|
|
165
165
|
/** 点击标记点时触发,e.detail = {markerId}
|
|
166
|
-
* @supported weapp, swan, alipay
|
|
166
|
+
* @supported weapp, swan, alipay, tt
|
|
167
167
|
*/
|
|
168
168
|
onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
|
|
169
169
|
|
|
170
170
|
/** 点击label时触发,e.detail = {markerId}
|
|
171
|
-
* @supported weapp
|
|
171
|
+
* @supported weapp, tt
|
|
172
172
|
*/
|
|
173
173
|
onLabelTap?: CommonEventFunction<MapProps.onLabelTapEventDetail>
|
|
174
174
|
|
|
@@ -178,17 +178,17 @@ interface MapProps extends StandardProps {
|
|
|
178
178
|
onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
|
|
179
179
|
|
|
180
180
|
/** 点击标记点对应的气泡时触发,e.detail = {markerId}
|
|
181
|
-
* @supported weapp, swan, alipay
|
|
181
|
+
* @supported weapp, swan, alipay, tt
|
|
182
182
|
*/
|
|
183
183
|
onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
|
|
184
184
|
|
|
185
185
|
/** 在地图渲染更新完成时触发
|
|
186
|
-
* @supported weapp, swan
|
|
186
|
+
* @supported weapp, swan, tt
|
|
187
187
|
*/
|
|
188
188
|
onUpdated?: CommonEventFunction
|
|
189
189
|
|
|
190
190
|
/** 视野发生变化时触发
|
|
191
|
-
* @supported weapp, swan, alipay
|
|
191
|
+
* @supported weapp, swan, alipay, tt
|
|
192
192
|
*/
|
|
193
193
|
onRegionChange?: CommonEventFunction<MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>>
|
|
194
194
|
|
|
@@ -499,14 +499,14 @@ declare namespace MapProps {
|
|
|
499
499
|
end
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
interface
|
|
502
|
+
interface CausedByBegin {
|
|
503
503
|
/** 手势触发 */
|
|
504
504
|
gesture
|
|
505
505
|
/** 接口触发 */
|
|
506
506
|
update
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
interface
|
|
509
|
+
interface CausedByEnd {
|
|
510
510
|
/** 拖动导致 */
|
|
511
511
|
drag
|
|
512
512
|
/** 缩放导致 */
|
|
@@ -523,7 +523,7 @@ declare namespace MapProps {
|
|
|
523
523
|
/** 导致视野变化的原因
|
|
524
524
|
* @remarks 有效值为 gesture(手势触发)、update(接口触发或调用更新接口导致)、drag(拖动导致)、scale(缩放导致)
|
|
525
525
|
*/
|
|
526
|
-
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.
|
|
526
|
+
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
|
|
527
527
|
/** 视野改变详情 */
|
|
528
528
|
detail: regionChangeDetail<RegionChangeDetail.type>
|
|
529
529
|
}
|
|
@@ -532,7 +532,7 @@ declare namespace MapProps {
|
|
|
532
532
|
rotate: number
|
|
533
533
|
/** 倾斜角度 */
|
|
534
534
|
skew: number
|
|
535
|
-
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.
|
|
535
|
+
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
|
|
536
536
|
type: T | string
|
|
537
537
|
scale: number
|
|
538
538
|
centerLocation: point
|
|
@@ -578,7 +578,7 @@ declare namespace MapProps {
|
|
|
578
578
|
* `@markertap="markertap"
|
|
579
579
|
* />
|
|
580
580
|
* </template>
|
|
581
|
-
*
|
|
581
|
+
*
|
|
582
582
|
* <script>
|
|
583
583
|
* export default {
|
|
584
584
|
* data() {
|
package/types/MovableArea.d.ts
CHANGED
package/types/MovableView.d.ts
CHANGED
|
@@ -4,97 +4,97 @@ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common
|
|
|
4
4
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
5
5
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
6
6
|
* @default none
|
|
7
|
-
* @supported weapp, rn
|
|
7
|
+
* @supported weapp, rn, tt
|
|
8
8
|
*/
|
|
9
9
|
direction?: 'all' | 'vertical' | 'horizontal' | 'none'
|
|
10
10
|
|
|
11
11
|
/** movable-view 是否带有惯性
|
|
12
12
|
* @default false
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, tt
|
|
14
14
|
*/
|
|
15
15
|
inertia?: boolean
|
|
16
16
|
|
|
17
17
|
/** 超过可移动区域后,movable-view 是否还可以移动
|
|
18
18
|
* @default false
|
|
19
|
-
* @supported weapp
|
|
19
|
+
* @supported weapp, tt
|
|
20
20
|
*/
|
|
21
21
|
outOfBounds?: boolean
|
|
22
22
|
|
|
23
23
|
/** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
|
|
24
|
-
* @supported weapp, rn
|
|
24
|
+
* @supported weapp, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
x?: number | string
|
|
27
27
|
|
|
28
28
|
/** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
|
|
29
|
-
* @supported weapp, rn
|
|
29
|
+
* @supported weapp, rn, tt
|
|
30
30
|
*/
|
|
31
31
|
y?: number | string
|
|
32
32
|
|
|
33
33
|
/** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
34
34
|
* @default 20
|
|
35
|
-
* @supported weapp
|
|
35
|
+
* @supported weapp, tt
|
|
36
36
|
*/
|
|
37
37
|
damping?: number
|
|
38
38
|
|
|
39
39
|
/** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
|
|
40
40
|
* @default 2
|
|
41
|
-
* @supported weapp
|
|
41
|
+
* @supported weapp, tt
|
|
42
42
|
*/
|
|
43
43
|
friction?: number
|
|
44
44
|
|
|
45
45
|
/** 是否禁用
|
|
46
46
|
* @default false
|
|
47
|
-
* @supported weapp, rn
|
|
47
|
+
* @supported weapp, rn, tt
|
|
48
48
|
*/
|
|
49
49
|
disabled?: boolean
|
|
50
50
|
|
|
51
51
|
/** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
|
|
52
52
|
* @default false
|
|
53
|
-
* @supported weapp
|
|
53
|
+
* @supported weapp, tt
|
|
54
54
|
*/
|
|
55
55
|
scale?: boolean
|
|
56
56
|
|
|
57
57
|
/** 定义缩放倍数最小值
|
|
58
58
|
* @default 0.5
|
|
59
|
-
* @supported weapp
|
|
59
|
+
* @supported weapp, tt
|
|
60
60
|
*/
|
|
61
61
|
scaleMin?: number
|
|
62
62
|
|
|
63
63
|
/** 定义缩放倍数最大值
|
|
64
64
|
* @default 10
|
|
65
|
-
* @supported weapp
|
|
65
|
+
* @supported weapp, tt
|
|
66
66
|
*/
|
|
67
67
|
scaleMax?: number
|
|
68
68
|
|
|
69
69
|
/** 定义缩放倍数,取值范围为 0.5 - 10
|
|
70
70
|
* @default 1
|
|
71
|
-
* @supported weapp
|
|
71
|
+
* @supported weapp, tt
|
|
72
72
|
*/
|
|
73
73
|
scaleValue?: number
|
|
74
74
|
|
|
75
75
|
/** 是否使用动画
|
|
76
76
|
* @default true
|
|
77
|
-
* @supported weapp
|
|
77
|
+
* @supported weapp, tt
|
|
78
78
|
*/
|
|
79
79
|
animation?: boolean
|
|
80
80
|
|
|
81
81
|
/** 拖动过程中触发的事件
|
|
82
|
-
* @supported weapp
|
|
82
|
+
* @supported weapp, tt
|
|
83
83
|
*/
|
|
84
84
|
onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
|
|
85
85
|
|
|
86
86
|
/** 缩放过程中触发的事件
|
|
87
|
-
* @supported weapp
|
|
87
|
+
* @supported weapp, tt
|
|
88
88
|
*/
|
|
89
89
|
onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
|
|
90
90
|
|
|
91
91
|
/** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
92
|
-
* @supported weapp
|
|
92
|
+
* @supported weapp, tt
|
|
93
93
|
*/
|
|
94
94
|
onHTouchMove?: TouchEventFunction
|
|
95
95
|
|
|
96
96
|
/** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
97
|
-
* @supported weapp
|
|
97
|
+
* @supported weapp, tt
|
|
98
98
|
*/
|
|
99
99
|
onVTouchMove?: TouchEventFunction
|
|
100
100
|
/** 开始拖动时触发
|
|
@@ -143,7 +143,7 @@ declare namespace MovableViewProps {
|
|
|
143
143
|
|
|
144
144
|
/** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
|
|
145
145
|
* @classification viewContainer
|
|
146
|
-
* @supported weapp, swan, alipay, rn
|
|
146
|
+
* @supported weapp, swan, alipay, rn, tt
|
|
147
147
|
* @example_react
|
|
148
148
|
* ```tsx
|
|
149
149
|
* class App extends Components {
|
package/types/Navigator.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
6
6
|
* @default "self"
|
|
7
7
|
* @supported weapp, swan
|
|
8
8
|
*/
|
|
9
|
-
target?: keyof NavigatorProps.
|
|
9
|
+
target?: keyof NavigatorProps.Target
|
|
10
10
|
|
|
11
11
|
/** 当前小程序内的跳转链接
|
|
12
12
|
* @supported weapp, swan, alipay, tt
|
|
@@ -17,7 +17,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
17
17
|
* @default "navigate"
|
|
18
18
|
* @supported weapp, swan, alipay, tt
|
|
19
19
|
*/
|
|
20
|
-
openType?: keyof NavigatorProps.
|
|
20
|
+
openType?: keyof NavigatorProps.OpenType
|
|
21
21
|
|
|
22
22
|
/** 当 open-type 为 'navigateBack' 时有效,表示回退的层数
|
|
23
23
|
* @supported weapp, swan, tt
|
|
@@ -42,7 +42,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
42
42
|
/** 当 `target="miniProgram"` 时有效,要打开的小程序版本
|
|
43
43
|
* @supported weapp, swan
|
|
44
44
|
*/
|
|
45
|
-
version?: keyof NavigatorProps.
|
|
45
|
+
version?: keyof NavigatorProps.Version
|
|
46
46
|
|
|
47
47
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
48
48
|
* @default "navigator-hover"
|
|
@@ -86,17 +86,17 @@ interface NavigatorProps extends StandardProps {
|
|
|
86
86
|
|
|
87
87
|
declare namespace NavigatorProps {
|
|
88
88
|
/** target 的合法值 */
|
|
89
|
-
interface
|
|
89
|
+
interface Target {
|
|
90
90
|
/** 当前小程序 */
|
|
91
91
|
self
|
|
92
92
|
/** 其它小程序 */
|
|
93
93
|
miniProgram
|
|
94
94
|
}
|
|
95
95
|
/** open-type 的合法值 */
|
|
96
|
-
interface
|
|
96
|
+
interface OpenType {
|
|
97
97
|
/** 对应 Taro.navigateTo 或 Taro.navigateToMiniProgram 的功能 */
|
|
98
98
|
navigate
|
|
99
|
-
/** 对应 Taro.redirectTo 的功能 */
|
|
99
|
+
/** 对应 Taro.redirectTo 的功能 */
|
|
100
100
|
redirect
|
|
101
101
|
/** 对应 Taro.switchTab 的功能 */
|
|
102
102
|
switchTab
|
|
@@ -108,7 +108,7 @@ declare namespace NavigatorProps {
|
|
|
108
108
|
exit
|
|
109
109
|
}
|
|
110
110
|
/** version 的合法值 */
|
|
111
|
-
interface
|
|
111
|
+
interface Version {
|
|
112
112
|
/** 开发版 */
|
|
113
113
|
develop
|
|
114
114
|
/** 体验版 */
|