@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/Slot.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface SlotProps {
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```tsx
|
|
20
20
|
* import { Slot, View, Text } from '@tarojs/components'
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
22
|
* export default class SlotView extends Component {
|
|
23
23
|
* render () {
|
|
24
24
|
* return (
|
|
@@ -36,4 +36,4 @@ interface SlotProps {
|
|
|
36
36
|
*/
|
|
37
37
|
declare const Slot: ComponentType<SlotProps>
|
|
38
38
|
|
|
39
|
-
export { Slot, SlotProps }
|
|
39
|
+
export { Slot, SlotProps }
|
package/types/Swiper.d.ts
CHANGED
|
@@ -63,13 +63,13 @@ interface SwiperProps extends StandardProps {
|
|
|
63
63
|
|
|
64
64
|
/** 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值
|
|
65
65
|
* @default "0px"
|
|
66
|
-
* @supported weapp, h5
|
|
66
|
+
* @supported weapp, h5, tt
|
|
67
67
|
*/
|
|
68
68
|
previousMargin?: string
|
|
69
69
|
|
|
70
70
|
/** 后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值
|
|
71
71
|
* @default "0px"
|
|
72
|
-
* @supported weapp, h5
|
|
72
|
+
* @supported weapp, h5, tt
|
|
73
73
|
*/
|
|
74
74
|
nextMargin?: string
|
|
75
75
|
|
|
@@ -94,7 +94,7 @@ interface SwiperProps extends StandardProps {
|
|
|
94
94
|
|
|
95
95
|
/** 指定 swiper 切换缓动动画类型
|
|
96
96
|
* @default "default"
|
|
97
|
-
* @supported weapp
|
|
97
|
+
* @supported weapp, tt
|
|
98
98
|
*/
|
|
99
99
|
easingFunction?: keyof SwiperProps.TEasingFunction
|
|
100
100
|
|
|
@@ -104,15 +104,15 @@ interface SwiperProps extends StandardProps {
|
|
|
104
104
|
onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
|
|
105
105
|
|
|
106
106
|
/** swiper-item 的位置发生改变时会触发 transition 事件
|
|
107
|
-
* @supported weapp
|
|
107
|
+
* @supported weapp, tt
|
|
108
108
|
*/
|
|
109
109
|
onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
|
|
110
110
|
|
|
111
111
|
/** 动画结束时会触发 animationfinish 事件
|
|
112
|
-
* @supported weapp, swan, h5, rn
|
|
112
|
+
* @supported weapp, swan, h5, rn, tt
|
|
113
113
|
*/
|
|
114
114
|
onAnimationFinish?: SwiperProps['onChange']
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
/** 是否禁止用户 touch 操作
|
|
117
117
|
* @default false
|
|
118
118
|
* @supported alipay
|
|
@@ -151,7 +151,7 @@ declare namespace SwiperProps {
|
|
|
151
151
|
/** 导致变更的原因 */
|
|
152
152
|
source: keyof SwiperProps.TChangeSource
|
|
153
153
|
/** SwiperItem的itemId参数值 */
|
|
154
|
-
currentItemId?: string
|
|
154
|
+
currentItemId?: string
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
interface onTransitionEventDetail {
|
package/types/Switch.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
10
10
|
|
|
11
11
|
/** 是否禁用
|
|
12
12
|
* @default false
|
|
13
|
-
* @supported weapp, rn
|
|
13
|
+
* @supported weapp, rn, tt
|
|
14
14
|
*/
|
|
15
15
|
disabled?: boolean
|
|
16
16
|
|
|
@@ -27,7 +27,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
27
27
|
color?: string
|
|
28
28
|
|
|
29
29
|
/** checked 改变时触发 change 事件
|
|
30
|
-
* @supported weapp, rn
|
|
30
|
+
* @supported weapp, rn, tt
|
|
31
31
|
*/
|
|
32
32
|
onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
|
|
33
33
|
|
|
@@ -51,7 +51,7 @@ declare namespace SwitchProps {
|
|
|
51
51
|
* constructor() {
|
|
52
52
|
* super(...arguments)
|
|
53
53
|
* }
|
|
54
|
-
*
|
|
54
|
+
*
|
|
55
55
|
* render() {
|
|
56
56
|
* return (
|
|
57
57
|
* <View className='components-page'>
|
package/types/Text.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare namespace TextProps {
|
|
|
94
94
|
* <button class="btn-max-w button_style" :plain="true" type="default" `@tap="add">add line</button>
|
|
95
95
|
* <button class="btn-max-w button_style" :plain="true" type="default" :disabled="contentsLen ? false : true" `@tap="remove">remove line</button>
|
|
96
96
|
* </template>
|
|
97
|
-
*
|
|
97
|
+
*
|
|
98
98
|
* <script>
|
|
99
99
|
* export default {
|
|
100
100
|
* data() {
|
|
@@ -110,7 +110,7 @@ declare namespace TextProps {
|
|
|
110
110
|
* this.contents = cot
|
|
111
111
|
* this.contentsLen = cot.length
|
|
112
112
|
* },
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
* remove () {
|
|
115
115
|
* const cot = this.contents.slice()
|
|
116
116
|
* cot.pop()
|
package/types/Textarea.d.ts
CHANGED
|
@@ -3,35 +3,35 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface TextareaProps extends StandardProps, FormItemProps {
|
|
5
5
|
/** 输入框的内容
|
|
6
|
-
* @supported weapp, h5, rn
|
|
6
|
+
* @supported weapp, h5, rn, tt
|
|
7
7
|
*/
|
|
8
8
|
value?: string
|
|
9
9
|
|
|
10
10
|
/** 输入框为空时占位符
|
|
11
|
-
* @supported weapp, h5, rn
|
|
11
|
+
* @supported weapp, h5, rn, tt
|
|
12
12
|
*/
|
|
13
13
|
placeholder?: string
|
|
14
14
|
|
|
15
15
|
/** 指定 placeholder 的样式
|
|
16
|
-
* @supported weapp
|
|
16
|
+
* @supported weapp, tt
|
|
17
17
|
*/
|
|
18
18
|
placeholderStyle?: string
|
|
19
19
|
|
|
20
20
|
/** 指定 placeholder 的样式类
|
|
21
21
|
* @default "textarea-placeholder"
|
|
22
|
-
* @supported weapp
|
|
22
|
+
* @supported weapp, tt
|
|
23
23
|
*/
|
|
24
24
|
placeholderClass?: string
|
|
25
25
|
|
|
26
26
|
/** 是否禁用
|
|
27
27
|
* @default false
|
|
28
|
-
* @supported weapp, h5, rn
|
|
28
|
+
* @supported weapp, h5, rn, tt
|
|
29
29
|
*/
|
|
30
30
|
disabled?: boolean
|
|
31
31
|
|
|
32
32
|
/** 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
33
33
|
* @default 140
|
|
34
|
-
* @supported weapp, h5, rn
|
|
34
|
+
* @supported weapp, h5, rn, tt
|
|
35
35
|
*/
|
|
36
36
|
maxlength?: number
|
|
37
37
|
|
|
@@ -43,13 +43,13 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
43
43
|
|
|
44
44
|
/** 获取焦点
|
|
45
45
|
* @default false
|
|
46
|
-
* @supported weapp, rn
|
|
46
|
+
* @supported weapp, rn, tt
|
|
47
47
|
*/
|
|
48
48
|
focus?: boolean
|
|
49
49
|
|
|
50
50
|
/** 是否自动增高,设置 autoHeight 时,style.height不生效
|
|
51
51
|
* @default false
|
|
52
|
-
* @supported weapp, rn
|
|
52
|
+
* @supported weapp, rn, tt
|
|
53
53
|
*/
|
|
54
54
|
autoHeight?: boolean
|
|
55
55
|
|
|
@@ -61,76 +61,76 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
61
61
|
|
|
62
62
|
/** 指定光标与键盘的距离,单位 px 。取 Textarea 距离底部的距离和 cursorSpacing 指定的距离的最小值作为光标与键盘的距离
|
|
63
63
|
* @default 0
|
|
64
|
-
* @supported weapp
|
|
64
|
+
* @supported weapp, tt
|
|
65
65
|
*/
|
|
66
66
|
cursorSpacing?: number
|
|
67
67
|
|
|
68
68
|
/** 指定 focus 时的光标位置
|
|
69
69
|
* @default -1
|
|
70
|
-
* @supported weapp
|
|
70
|
+
* @supported weapp, tt
|
|
71
71
|
*/
|
|
72
72
|
cursor?: number
|
|
73
73
|
|
|
74
74
|
/** 是否显示键盘上方带有”完成“按钮那一栏
|
|
75
75
|
* @default true
|
|
76
|
-
* @supported weapp
|
|
76
|
+
* @supported weapp, tt
|
|
77
77
|
*/
|
|
78
78
|
showConfirmBar?: boolean
|
|
79
79
|
|
|
80
80
|
/** 光标起始位置,自动聚集时有效,需与 selectionEnd 搭配使用
|
|
81
81
|
* @default -1
|
|
82
|
-
* @supported weapp, rn
|
|
82
|
+
* @supported weapp, rn, tt
|
|
83
83
|
*/
|
|
84
84
|
selectionStart?: number
|
|
85
85
|
|
|
86
86
|
/** 光标结束位置,自动聚集时有效,需与 selectionStart 搭配使用
|
|
87
87
|
* @default -1
|
|
88
|
-
* @supported weapp, rn
|
|
88
|
+
* @supported weapp, rn, tt
|
|
89
89
|
*/
|
|
90
90
|
selectionEnd?: number
|
|
91
91
|
|
|
92
92
|
/** 键盘弹起时,是否自动上推页面
|
|
93
93
|
* @default true
|
|
94
|
-
* @supported weapp
|
|
94
|
+
* @supported weapp, tt
|
|
95
95
|
*/
|
|
96
96
|
adjustPosition?: boolean
|
|
97
97
|
|
|
98
98
|
/** focus 时,点击页面的时候不收起键盘
|
|
99
99
|
* @default false
|
|
100
|
-
* @supported weapp
|
|
100
|
+
* @supported weapp, tt
|
|
101
101
|
*/
|
|
102
102
|
holdKeyboard?: boolean
|
|
103
103
|
|
|
104
104
|
/** 是否去掉 iOS 下的默认内边距
|
|
105
105
|
* @default false
|
|
106
|
-
* @supported weapp
|
|
106
|
+
* @supported weapp, tt
|
|
107
107
|
*/
|
|
108
108
|
disableDefaultPadding?: boolean
|
|
109
109
|
|
|
110
110
|
/** 输入框聚焦时触发
|
|
111
|
-
* @supported weapp, h5, rn
|
|
111
|
+
* @supported weapp, h5, rn, tt
|
|
112
112
|
*/
|
|
113
113
|
onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
|
|
114
114
|
|
|
115
115
|
/** 输入框失去焦点时触发
|
|
116
|
-
* @supported weapp, h5, rn
|
|
116
|
+
* @supported weapp, h5, rn, tt
|
|
117
117
|
*/
|
|
118
118
|
onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
|
|
119
119
|
|
|
120
120
|
/** 输入框行数变化时调用,event.detail = {height: 0, heightRpx: 0, lineCount: 0}
|
|
121
|
-
* @supported weapp, rn
|
|
121
|
+
* @supported weapp, rn, tt
|
|
122
122
|
*/
|
|
123
123
|
onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
|
|
124
124
|
|
|
125
125
|
/** 当键盘输入时,触发 input 事件,event.detail = {value, cursor, keyCode}
|
|
126
126
|
*
|
|
127
127
|
* **onInput 处理函数的返回值并不会反映到 textarea 上**
|
|
128
|
-
* @supported weapp, h5, rn
|
|
128
|
+
* @supported weapp, h5, rn, tt
|
|
129
129
|
*/
|
|
130
130
|
onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
|
|
131
131
|
|
|
132
132
|
/** 点击完成时, 触发 confirm 事件,event.detail = {value: value}
|
|
133
|
-
* @supported weapp, rn
|
|
133
|
+
* @supported weapp, rn, tt
|
|
134
134
|
*/
|
|
135
135
|
onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
|
|
136
136
|
|
package/types/Video.d.ts
CHANGED
|
@@ -76,21 +76,21 @@ interface VideoProps extends StandardProps {
|
|
|
76
76
|
|
|
77
77
|
/** 若不设置,宽度大于240时才会显示
|
|
78
78
|
* @default true
|
|
79
|
-
* @supported weapp, swan
|
|
79
|
+
* @supported weapp, swan, tt
|
|
80
80
|
* @h5 待定
|
|
81
81
|
*/
|
|
82
82
|
showProgress?: boolean
|
|
83
83
|
|
|
84
84
|
/** 是否显示全屏按钮
|
|
85
85
|
* @default true
|
|
86
|
-
* @supported weapp, swan, alipay
|
|
86
|
+
* @supported weapp, swan, alipay, tt
|
|
87
87
|
* @h5 待定
|
|
88
88
|
*/
|
|
89
89
|
showFullscreenBtn?: boolean
|
|
90
90
|
|
|
91
91
|
/** 是否显示视频底部控制栏的播放按钮
|
|
92
92
|
* @default true
|
|
93
|
-
* @supported weapp, swan, alipay
|
|
93
|
+
* @supported weapp, swan, alipay, tt
|
|
94
94
|
* @h5 待定
|
|
95
95
|
*/
|
|
96
96
|
showPlayBtn?: boolean
|
|
@@ -104,17 +104,17 @@ interface VideoProps extends StandardProps {
|
|
|
104
104
|
|
|
105
105
|
/** 是否开启控制进度的手势
|
|
106
106
|
* @default true
|
|
107
|
-
* @supported weapp, swan, alipay
|
|
107
|
+
* @supported weapp, swan, alipay, tt
|
|
108
108
|
* @h5 待定
|
|
109
109
|
*/
|
|
110
110
|
enableProgressGesture?: boolean
|
|
111
111
|
|
|
112
112
|
/** 当视频大小与 video 容器大小不一致时,视频的表现形式
|
|
113
113
|
* @default "contain"
|
|
114
|
-
* @supported weapp, swan, alipay
|
|
114
|
+
* @supported weapp, swan, alipay, tt
|
|
115
115
|
* @h5 待定
|
|
116
116
|
*/
|
|
117
|
-
objectFit?: keyof VideoProps.
|
|
117
|
+
objectFit?: keyof VideoProps.ObjectFit
|
|
118
118
|
|
|
119
119
|
/** 视频封面的图片网络资源地址,如果 controls 属性值为 false 则设置 poster 无效
|
|
120
120
|
* @supported weapp, h5, swan, alipay, tt, rn
|
|
@@ -123,7 +123,7 @@ interface VideoProps extends StandardProps {
|
|
|
123
123
|
|
|
124
124
|
/** 是否显示静音按钮
|
|
125
125
|
* @default false
|
|
126
|
-
* @supported weapp
|
|
126
|
+
* @supported weapp, tt
|
|
127
127
|
* @h5 待定
|
|
128
128
|
*/
|
|
129
129
|
showMuteBtn?: boolean
|
|
@@ -139,14 +139,14 @@ interface VideoProps extends StandardProps {
|
|
|
139
139
|
* - `center`: 视频中间
|
|
140
140
|
*
|
|
141
141
|
* @default 'bottom'
|
|
142
|
-
* @supported weapp
|
|
142
|
+
* @supported weapp, tt
|
|
143
143
|
* @h5 待定
|
|
144
144
|
*/
|
|
145
|
-
playBtnPosition?: keyof VideoProps.
|
|
145
|
+
playBtnPosition?: keyof VideoProps.PlayBtnPosition
|
|
146
146
|
|
|
147
147
|
/** 是否开启播放手势,即双击切换播放/暂停
|
|
148
148
|
* @default false
|
|
149
|
-
* @supported weapp
|
|
149
|
+
* @supported weapp, tt
|
|
150
150
|
* @h5 待定
|
|
151
151
|
*/
|
|
152
152
|
enablePlayGesture?: boolean
|
|
@@ -167,14 +167,14 @@ interface VideoProps extends StandardProps {
|
|
|
167
167
|
|
|
168
168
|
/** 在非全屏模式下,是否开启亮度与音量调节手势(同 `page-gesture`)
|
|
169
169
|
* @default false
|
|
170
|
-
* @supported weapp, swan
|
|
170
|
+
* @supported weapp, swan, tt
|
|
171
171
|
* @h5 待定
|
|
172
172
|
*/
|
|
173
173
|
vslideGesture?: boolean
|
|
174
174
|
|
|
175
175
|
/** 在全屏模式下,是否开启亮度与音量调节手势
|
|
176
176
|
* @default true
|
|
177
|
-
* @supported weapp
|
|
177
|
+
* @supported weapp, tt
|
|
178
178
|
* @h5 待定
|
|
179
179
|
*/
|
|
180
180
|
vslideGestureInFullscreen?: boolean
|
|
@@ -203,12 +203,12 @@ interface VideoProps extends StandardProps {
|
|
|
203
203
|
/**
|
|
204
204
|
* 是否在小窗模式下显示播放进度(目前有bug,先注释掉)
|
|
205
205
|
* @supported weapp
|
|
206
|
-
*
|
|
206
|
+
*
|
|
207
207
|
* 先注释掉,原因如下:
|
|
208
208
|
* 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
|
|
209
209
|
* 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
|
|
210
210
|
* 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
|
|
211
|
-
*
|
|
211
|
+
*
|
|
212
212
|
*/
|
|
213
213
|
// pictureInPictureShowProgress?: boolean
|
|
214
214
|
|
|
@@ -217,7 +217,7 @@ interface VideoProps extends StandardProps {
|
|
|
217
217
|
* @supported weapp
|
|
218
218
|
*/
|
|
219
219
|
enableAutoRotation?: boolean
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
/**
|
|
222
222
|
* 是否显示锁屏按钮,仅在全屏时显示,锁屏后控制栏的操作
|
|
223
223
|
* @supported weapp
|
|
@@ -249,7 +249,7 @@ interface VideoProps extends StandardProps {
|
|
|
249
249
|
/** 当视频进入和退出全屏时触发
|
|
250
250
|
*
|
|
251
251
|
* event.detail = {fullScreen, direction},direction取为 vertical 或 horizontal
|
|
252
|
-
* @supported weapp, swan, alipay, rn
|
|
252
|
+
* @supported weapp, swan, alipay, rn, tt
|
|
253
253
|
* @h5 待定
|
|
254
254
|
*/
|
|
255
255
|
onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
|
|
@@ -257,7 +257,7 @@ interface VideoProps extends StandardProps {
|
|
|
257
257
|
/** 当视频进入和退出全屏时触发
|
|
258
258
|
*
|
|
259
259
|
* event.detail = {fullScreen, direction},direction 取为 vertical 或 horizontal
|
|
260
|
-
* @supported weapp, swan
|
|
260
|
+
* @supported weapp, swan, tt
|
|
261
261
|
* @h5 待定
|
|
262
262
|
*/
|
|
263
263
|
onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
|
|
@@ -273,7 +273,7 @@ interface VideoProps extends StandardProps {
|
|
|
273
273
|
onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
|
|
274
274
|
|
|
275
275
|
/** 视频元数据加载完成时触发。event.detail = {width, height, duration}
|
|
276
|
-
* @supported weapp, rn
|
|
276
|
+
* @supported weapp, rn, tt
|
|
277
277
|
*/
|
|
278
278
|
onLoadedMetaData?: CommonEventFunction
|
|
279
279
|
|
|
@@ -318,7 +318,7 @@ declare namespace VideoProps {
|
|
|
318
318
|
'-90'
|
|
319
319
|
}
|
|
320
320
|
/** objectFit 的合法值 */
|
|
321
|
-
interface
|
|
321
|
+
interface ObjectFit {
|
|
322
322
|
/** 包含 */
|
|
323
323
|
contain
|
|
324
324
|
/** 填充 */
|
|
@@ -327,7 +327,7 @@ declare namespace VideoProps {
|
|
|
327
327
|
cover
|
|
328
328
|
}
|
|
329
329
|
/** playBtnPosition 的合法值 */
|
|
330
|
-
interface
|
|
330
|
+
interface PlayBtnPosition {
|
|
331
331
|
/** controls bar上 */
|
|
332
332
|
bottom
|
|
333
333
|
/** 视频中间 */
|
|
@@ -364,7 +364,7 @@ declare namespace VideoProps {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
/** 视频。相关api:Taro.createVideoContext
|
|
367
|
-
*
|
|
367
|
+
*
|
|
368
368
|
* 备注:h5上因为没有测试,所以暂时写了“待定”,需要`Video`来确认。
|
|
369
369
|
* @classification media
|
|
370
370
|
* @supported weapp, h5, swan, alipay, tt
|
|
@@ -374,7 +374,7 @@ declare namespace VideoProps {
|
|
|
374
374
|
* constructor() {
|
|
375
375
|
* super(...arguments)
|
|
376
376
|
* }
|
|
377
|
-
*
|
|
377
|
+
*
|
|
378
378
|
* render() {
|
|
379
379
|
* return (
|
|
380
380
|
* <View className='components-page'>
|
|
@@ -382,7 +382,7 @@ declare namespace VideoProps {
|
|
|
382
382
|
* id='video'
|
|
383
383
|
* src='https://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
|
|
384
384
|
* poster='https://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
|
|
385
|
-
* initialTime=
|
|
385
|
+
* initialTime={0}
|
|
386
386
|
* controls={true}
|
|
387
387
|
* autoplay={false}
|
|
388
388
|
* loop={false}
|
package/types/View.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps } from './common'
|
|
3
2
|
import { StyleProp, ViewStyle } from 'react-native'
|
|
3
|
+
import { StandardProps } from './common'
|
|
4
4
|
|
|
5
5
|
interface ViewProps extends StandardProps {
|
|
6
6
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
7
7
|
* @default none
|
|
8
8
|
* @supported weapp, swan, alipay, tt, h5
|
|
9
|
-
* @rn 由于 RN 不支持
|
|
9
|
+
* @rn 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
10
10
|
*/
|
|
11
11
|
hoverClass?: string
|
|
12
12
|
|
|
13
|
-
/** 由于 RN 不支持
|
|
13
|
+
/** 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
14
14
|
* @default none
|
|
15
15
|
* @supported rn
|
|
16
16
|
*/
|
|
@@ -86,7 +86,7 @@ interface ViewProps extends StandardProps {
|
|
|
86
86
|
* </view>
|
|
87
87
|
* </view>
|
|
88
88
|
* </template>
|
|
89
|
-
*
|
|
89
|
+
*
|
|
90
90
|
* <style>
|
|
91
91
|
* .flex-wrp { display: flex; }
|
|
92
92
|
* .flex-wrp-column{ flex-direction: column; }
|
package/types/VoipRoom.d.ts
CHANGED
|
@@ -12,13 +12,13 @@ interface VoipRoomProps extends StandardProps {
|
|
|
12
12
|
* @default camera
|
|
13
13
|
* @supported weapp
|
|
14
14
|
*/
|
|
15
|
-
mode?: keyof VoipRoomProps.
|
|
15
|
+
mode?: keyof VoipRoomProps.Mode
|
|
16
16
|
|
|
17
17
|
/** 仅在 mode 为 camera 时有效,前置或后置,值为front, back
|
|
18
18
|
* @default front
|
|
19
19
|
* @supported weapp
|
|
20
20
|
*/
|
|
21
|
-
devicePosition?: keyof VoipRoomProps.
|
|
21
|
+
devicePosition?: keyof VoipRoomProps.DevicePosition
|
|
22
22
|
|
|
23
23
|
/** 创建对话窗口失败时触发
|
|
24
24
|
* @supported weapp
|
|
@@ -28,13 +28,13 @@ interface VoipRoomProps extends StandardProps {
|
|
|
28
28
|
|
|
29
29
|
declare namespace VoipRoomProps {
|
|
30
30
|
/** 对话窗口类型 */
|
|
31
|
-
interface
|
|
31
|
+
interface Mode {
|
|
32
32
|
camera
|
|
33
33
|
video
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/** 摄像头类型 */
|
|
37
|
-
interface
|
|
37
|
+
interface DevicePosition {
|
|
38
38
|
front
|
|
39
39
|
back
|
|
40
40
|
}
|
|
@@ -42,7 +42,7 @@ declare namespace VoipRoomProps {
|
|
|
42
42
|
|
|
43
43
|
/** 多人音视频对话
|
|
44
44
|
*
|
|
45
|
-
* 需用户授权 `scope.camera`、`scope.record`。相关接口: [Taro.joinVoIPChat](
|
|
45
|
+
* 需用户授权 `scope.camera`、`scope.record`。相关接口: [Taro.joinVoIPChat](/docs/apis/media/voip/joinVoIPChat)
|
|
46
46
|
* 开通该组件权限后,开发者可在 joinVoIPChat 成功后,获取房间成员的 openid,传递给 voip-room 组件,以显示成员画面。
|
|
47
47
|
* @classification media
|
|
48
48
|
* @supported weapp
|
package/types/WebView.d.ts
CHANGED
|
@@ -3,22 +3,22 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface WebViewProps extends StandardProps {
|
|
5
5
|
/** webview 指向网页的链接。可打开关联的公众号的文章,其它网页需登录小程序管理后台配置业务域名。
|
|
6
|
-
* @supported weapp, h5
|
|
6
|
+
* @supported weapp, h5, rn, tt
|
|
7
7
|
*/
|
|
8
8
|
src: string
|
|
9
9
|
|
|
10
10
|
/** 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data }
|
|
11
|
-
* @supported weapp
|
|
11
|
+
* @supported weapp, tt
|
|
12
12
|
*/
|
|
13
13
|
onMessage?: CommonEventFunction<WebViewProps.onMessageEventDetail>
|
|
14
14
|
|
|
15
15
|
/** 网页加载成功时候触发此事件。e.detail = { src }
|
|
16
|
-
* @supported weapp, h5
|
|
16
|
+
* @supported weapp, h5, rn, tt
|
|
17
17
|
*/
|
|
18
18
|
onLoad?: CommonEventFunction<WebViewProps.onLoadEventDetail>
|
|
19
19
|
|
|
20
20
|
/** 网页加载失败的时候触发此事件。e.detail = { src }
|
|
21
|
-
* @supported weapp, h5
|
|
21
|
+
* @supported weapp, h5, rn, tt
|
|
22
22
|
*/
|
|
23
23
|
onError?: CommonEventFunction<WebViewProps.onErrorEventDetail>
|
|
24
24
|
}
|
|
@@ -40,12 +40,12 @@ declare namespace WebViewProps {
|
|
|
40
40
|
|
|
41
41
|
/** web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。
|
|
42
42
|
* @classification open
|
|
43
|
-
* @supported weapp, h5, rn
|
|
43
|
+
* @supported weapp, h5, rn, tt
|
|
44
44
|
* @example_react
|
|
45
45
|
* ```tsx
|
|
46
46
|
* class App extends Component {
|
|
47
47
|
* handleMessage () {}
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
* render () {
|
|
50
50
|
* return (
|
|
51
51
|
* <WebView src='https://mp.weixin.qq.com/' onMessage={this.handleMessage} />
|
package/types/common.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export interface StandardProps<T = any, TouchEvent extends BaseTouchEvent<any> =
|
|
|
7
7
|
className?: string
|
|
8
8
|
/** 组件的内联样式, 可以动态设置的内联样式 */
|
|
9
9
|
style?: string | CSSProperties
|
|
10
|
+
/** 子节点 */
|
|
11
|
+
children?: ReactNode
|
|
10
12
|
/** 如果列表中项目的位置会动态改变或者有新的项目添加到列表中,
|
|
11
13
|
* 需要使用 `wx:key` 来指定列表中项目的唯一的标识符。
|
|
12
14
|
*/
|
|
@@ -19,7 +21,7 @@ export interface StandardProps<T = any, TouchEvent extends BaseTouchEvent<any> =
|
|
|
19
21
|
ref?: LegacyRef<T>
|
|
20
22
|
/**
|
|
21
23
|
* 渲染 HTML
|
|
22
|
-
* @see
|
|
24
|
+
* @see /docs/html
|
|
23
25
|
*/
|
|
24
26
|
dangerouslySetInnerHTML?: {
|
|
25
27
|
__html: string
|
|
@@ -147,7 +149,7 @@ export interface Target {
|
|
|
147
149
|
export type currentTarget = Target
|
|
148
150
|
|
|
149
151
|
/** 网络状态数据 */
|
|
150
|
-
export interface
|
|
152
|
+
export interface NetStatus {
|
|
151
153
|
/* 当前视频编/码器输出的比特率,单位 kbps */
|
|
152
154
|
videoBitrate?: number
|
|
153
155
|
/* 当前音频编/码器输出的比特率,单位 kbps */
|