@tarojs/components 3.5.0-canary.0 → 3.5.0-theta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +19 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +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 +19 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-input-core.cjs.entry.js +28 -20
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +14 -10
- package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +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 +22 -8
- 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 +9 -17
- package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +23 -17
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +73 -67
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +8 -6
- 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 +19 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +22 -6
- package/dist/collection/components/ad/ad.js +11 -0
- package/dist/collection/components/{picker-view-column/picker-view-column.js → ad-custom/ad-custom.js} +3 -3
- 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/editor/editor.js +11 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
- package/dist/collection/components/image/image.js +2 -2
- package/dist/collection/components/image/style/index.css +8 -5
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +41 -24
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
- package/dist/collection/components/live-player/live-player.js +11 -0
- package/dist/collection/components/live-pusher/live-pusher.js +11 -0
- package/dist/collection/components/map/map.js +11 -0
- package/dist/collection/components/match-media/match-media.js +11 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
- package/dist/collection/components/navigator/navigator.js +3 -3
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/official-account/official-account.js +11 -0
- package/dist/collection/components/page-container/page-container.js +11 -0
- package/dist/collection/components/page-meta/page-meta.js +11 -0
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +225 -0
- 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-down-refresh → pull-to-refresh}/pull-to-refresh.js +14 -4
- package/dist/collection/components/{pull-down-refresh → 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 +6 -14
- package/dist/collection/components/share-element/share-element.js +11 -0
- package/dist/collection/components/slot/slot.js +11 -0
- package/dist/collection/components/swiper/swiper.js +20 -14
- package/dist/collection/components/tabbar/style/index.css +10 -7
- package/dist/collection/components/tabbar/tabbar.js +23 -17
- 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 +6 -4
- 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/voip-room/voip-room.js +11 -0
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +27 -101
- 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 +15 -0
- package/dist/esm/taro-ad-custom-core.entry.js +15 -0
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +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 +15 -0
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +4 -4
- package/dist/esm/taro-input-core.entry.js +28 -20
- package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +15 -0
- package/dist/esm/taro-live-pusher-core.entry.js +15 -0
- package/dist/esm/taro-map-core.entry.js +15 -0
- package/dist/esm/taro-match-media-core.entry.js +15 -0
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
- package/dist/esm/taro-navigator-core.entry.js +5 -5
- package/dist/esm/taro-official-account-core.entry.js +15 -0
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +15 -0
- package/dist/esm/taro-page-meta-core.entry.js +15 -0
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +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 +16 -6
- 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 +8 -16
- package/dist/esm/taro-share-element-core.entry.js +15 -0
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +15 -0
- package/dist/esm/taro-swiper-core_2.entry.js +21 -15
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +48 -46
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +8 -6
- 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 +15 -0
- 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 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -0
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -0
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-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-0ca42006.entry.js +1 -0
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/p-0d1e0e91.system.entry.js +1 -0
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/p-12deba0b.system.entry.js +1 -0
- 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-16c1e564.entry.js +1 -0
- package/dist/taro-components/p-178a3adf.system.entry.js +1 -0
- package/dist/taro-components/p-1c0ebbd5.entry.js +1 -0
- 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-2887213d.system.entry.js +1 -0
- package/dist/taro-components/p-29b7c721.system.entry.js +1 -0
- 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-2e8a1479.system.entry.js +1 -0
- 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-38d7c2e8.system.entry.js +1 -0
- 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-3bb72c08.entry.js +1 -0
- package/dist/taro-components/p-3d3cd72f.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-45e6f8be.entry.js +1 -0
- 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-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-5ff0e954.system.entry.js +1 -0
- 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-62c64770.entry.js +1 -0
- 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-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/p-74013ace.entry.js +1 -0
- 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-761d1085.entry.js +1 -0
- 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-79b16736.system.entry.js +1 -0
- 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-828efe43.system.entry.js +1 -0
- package/dist/taro-components/p-831ebd02.system.entry.js +1 -0
- package/dist/taro-components/p-832cc63a.entry.js +1 -0
- 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-86205110.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-8f466248.system.entry.js +1 -0
- 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-917830b4.system.entry.js +1 -0
- 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-9ce624a4.system.entry.js +1 -0
- package/dist/taro-components/p-a097985b.entry.js +1 -0
- package/dist/taro-components/p-a36bfe97.system.entry.js +1 -0
- 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-a84098b5.system.entry.js +1 -0
- package/dist/taro-components/p-a90bfe9d.system.entry.js +1 -0
- package/dist/taro-components/p-a9ab6434.system.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-c7dd3c92.entry.js +1 -0
- 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-cfebd931.entry.js +1 -0
- 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-de573939.system.entry.js +1 -0
- 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-ec59899b.system.entry.js +1 -0
- package/dist/taro-components/p-f1da4ed7.system.entry.js +1 -0
- 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/ad/ad.d.ts +4 -0
- package/dist/types/components/{picker-view-column/picker-view-column.d.ts → ad-custom/ad-custom.d.ts} +1 -1
- package/dist/types/components/editor/editor.d.ts +4 -0
- package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +3 -3
- package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
- package/dist/types/components/live-player/live-player.d.ts +4 -0
- package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
- package/dist/types/components/map/map.d.ts +4 -0
- package/dist/types/components/match-media/match-media.d.ts +4 -0
- package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
- package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
- package/dist/types/components/official-account/official-account.d.ts +4 -0
- package/dist/types/components/page-container/page-container.d.ts +4 -0
- package/dist/types/components/page-meta/page-meta.d.ts +4 -0
- package/dist/types/components/picker-view/picker-view-column.d.ts +18 -0
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/share-element/share-element.d.ts +4 -0
- package/dist/types/components/slot/slot.d.ts +4 -0
- package/dist/types/components/swiper/swiper.d.ts +2 -1
- package/dist/types/components/tabbar/tabbar.d.ts +4 -3
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- 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/voip-room/voip-room.d.ts +4 -0
- package/dist/types/components.d.ts +231 -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 -0
- 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 -45
- 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 +4 -3
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/createFormsComponent.js +2 -2
- 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 +35 -19
- package/types/Ad.d.ts +34 -22
- package/types/AdCustom.d.ts +50 -0
- package/types/Audio.d.ts +25 -5
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +123 -34
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +15 -2
- package/types/Checkbox.d.ts +69 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +50 -8
- package/types/CoverView.d.ts +51 -8
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +63 -6
- package/types/Form.d.ts +38 -7
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Icon.d.ts +17 -1
- package/types/Image.d.ts +32 -6
- package/types/Input.d.ts +105 -40
- package/types/KeyboardAccessory.d.ts +42 -0
- package/types/Label.d.ts +20 -6
- package/types/LivePlayer.d.ts +25 -19
- package/types/LivePusher.d.ts +21 -15
- package/types/Map.d.ts +87 -33
- package/types/MatchMedia.d.ts +24 -5
- package/types/MovableArea.d.ts +10 -4
- package/types/MovableView.d.ts +34 -20
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -13
- package/types/OpenData.d.ts +17 -11
- package/types/PageContainer.d.ts +121 -0
- package/types/Picker.d.ts +66 -3
- package/types/PickerView.d.ts +66 -2
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +13 -2
- package/types/Radio.d.ts +82 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +39 -2
- package/types/ScrollView.d.ts +94 -12
- package/types/ShareElement.d.ts +232 -0
- package/types/Slider.d.ts +15 -2
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +33 -8
- package/types/SwiperItem.d.ts +28 -3
- package/types/Switch.d.ts +22 -4
- package/types/Text.d.ts +38 -1
- package/types/Textarea.d.ts +38 -22
- package/types/Video.d.ts +61 -41
- package/types/View.d.ts +35 -3
- package/types/VoipRoom.d.ts +70 -0
- package/types/WebView.d.ts +13 -7
- package/types/common.d.ts +7 -10
- package/types/index.d.ts +49 -22
- 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 +5 -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-10a6c489.system.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-12638ebc.system.entry.js +0 -1
- package/dist/taro-components/p-12ae0a33.entry.js +0 -1
- package/dist/taro-components/p-13c1404f.system.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2438fcd4.system.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-3aac5746.system.entry.js +0 -1
- package/dist/taro-components/p-3eebeb1c.system.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-46cf6431.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-5c420456.entry.js +0 -1
- package/dist/taro-components/p-627a5064.system.entry.js +0 -1
- package/dist/taro-components/p-64993f48.entry.js +0 -1
- package/dist/taro-components/p-66237ac0.entry.js +0 -1
- package/dist/taro-components/p-6965567d.entry.js +0 -1
- package/dist/taro-components/p-71de9bd6.entry.js +0 -1
- package/dist/taro-components/p-7a64a3d2.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.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-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-b8e0ad7d.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-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-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-f98e0224.entry.js +0 -1
- package/dist/taro-components/p-fb2252b7.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/Text.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare namespace TextProps {
|
|
|
41
41
|
/** 文本
|
|
42
42
|
* @classification base
|
|
43
43
|
* @supported weapp, swan, alipay, tt, h5, rn
|
|
44
|
-
* @
|
|
44
|
+
* @example_react
|
|
45
45
|
* ```tsx
|
|
46
46
|
* export default class PageView extends Component {
|
|
47
47
|
* state = {
|
|
@@ -84,6 +84,43 @@ declare namespace TextProps {
|
|
|
84
84
|
* }
|
|
85
85
|
* }
|
|
86
86
|
* ```
|
|
87
|
+
* @example_vue
|
|
88
|
+
* ``` html
|
|
89
|
+
* <template>
|
|
90
|
+
* <view class="container">
|
|
91
|
+
* <view v-for="(item, index) in contents">
|
|
92
|
+
* <text>{{item.text}} line {{index + 1}}</text>
|
|
93
|
+
* </view>
|
|
94
|
+
* <button class="btn-max-w button_style" :plain="true" type="default" `@tap="add">add line</button>
|
|
95
|
+
* <button class="btn-max-w button_style" :plain="true" type="default" :disabled="contentsLen ? false : true" `@tap="remove">remove line</button>
|
|
96
|
+
* </template>
|
|
97
|
+
*
|
|
98
|
+
* <script>
|
|
99
|
+
* export default {
|
|
100
|
+
* data() {
|
|
101
|
+
* return {
|
|
102
|
+
* contents: [],
|
|
103
|
+
* contentsLen: 0
|
|
104
|
+
* }
|
|
105
|
+
* },
|
|
106
|
+
* methods: {
|
|
107
|
+
* add () {
|
|
108
|
+
* const cot = this.contents.slice()
|
|
109
|
+
* cot.push({ text: 'hello world' })
|
|
110
|
+
* this.contents = cot
|
|
111
|
+
* this.contentsLen = cot.length
|
|
112
|
+
* },
|
|
113
|
+
*
|
|
114
|
+
* remove () {
|
|
115
|
+
* const cot = this.contents.slice()
|
|
116
|
+
* cot.pop()
|
|
117
|
+
* this.contents = cot
|
|
118
|
+
* this.contentsLen = cot.length
|
|
119
|
+
* }
|
|
120
|
+
* }
|
|
121
|
+
* }
|
|
122
|
+
* </script>
|
|
123
|
+
* ```
|
|
87
124
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/text.html
|
|
88
125
|
*/
|
|
89
126
|
declare const Text: ComponentType<TextProps>
|
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
|
|
|
@@ -138,6 +138,11 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
138
138
|
* @supported weapp
|
|
139
139
|
*/
|
|
140
140
|
onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
|
|
141
|
+
|
|
142
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
143
|
+
* @supported h5
|
|
144
|
+
*/
|
|
145
|
+
nativeProps?: Record<string, unknown>
|
|
141
146
|
}
|
|
142
147
|
|
|
143
148
|
declare namespace TextareaProps {
|
|
@@ -181,7 +186,7 @@ declare namespace TextareaProps {
|
|
|
181
186
|
/** 多行输入框。该组件是原生组件,使用时请注意相关限制
|
|
182
187
|
* @classification forms
|
|
183
188
|
* @supported weapp, h5, rn
|
|
184
|
-
* @
|
|
189
|
+
* @example_react
|
|
185
190
|
* ```tsx
|
|
186
191
|
* export default class PageView extends Component {
|
|
187
192
|
* constructor() {
|
|
@@ -200,6 +205,17 @@ declare namespace TextareaProps {
|
|
|
200
205
|
* }
|
|
201
206
|
* }
|
|
202
207
|
* ```
|
|
208
|
+
* @example_vue
|
|
209
|
+
* ```html
|
|
210
|
+
* <template>
|
|
211
|
+
* <view class="components-page">
|
|
212
|
+
* <text>输入区域高度自适应,不会出现滚动条</text>
|
|
213
|
+
* <textarea style="background:#efefef;width:100%;min-height:80px;padding:0 30rpx;" :auto-height="true" />
|
|
214
|
+
* <text>这是一个可以自动聚焦的 textarea</text>
|
|
215
|
+
* <textarea style="background:#efefef;width:100%;height:80px;padding:0 30rpx;" :auto-focusd="true" />
|
|
216
|
+
* </view>
|
|
217
|
+
* </template>
|
|
218
|
+
* ```
|
|
203
219
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html
|
|
204
220
|
*/
|
|
205
221
|
declare const Textarea: ComponentType<TextareaProps>
|
package/types/Video.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface VideoProps extends StandardProps {
|
|
5
5
|
/** 要播放视频的资源地址
|
|
6
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
6
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
7
7
|
*/
|
|
8
8
|
src: string
|
|
9
9
|
|
|
10
10
|
/** 指定视频时长
|
|
11
|
-
* @supported weapp, swan, alipay
|
|
11
|
+
* @supported weapp, swan, alipay, rn
|
|
12
12
|
* @h5 待定
|
|
13
13
|
*/
|
|
14
14
|
duration?: number
|
|
15
15
|
|
|
16
16
|
/** 是否显示默认播放控件(播放/暂停按钮、播放进度、时间)
|
|
17
17
|
* @default true
|
|
18
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
18
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
19
19
|
*/
|
|
20
20
|
controls?: boolean
|
|
21
21
|
|
|
@@ -41,24 +41,24 @@ interface VideoProps extends StandardProps {
|
|
|
41
41
|
|
|
42
42
|
/** 是否自动播放
|
|
43
43
|
* @default false
|
|
44
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
44
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
45
45
|
*/
|
|
46
46
|
autoplay?: boolean
|
|
47
47
|
|
|
48
48
|
/** 是否循环播放
|
|
49
49
|
* @default false
|
|
50
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
50
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
51
51
|
*/
|
|
52
52
|
loop?: boolean
|
|
53
53
|
|
|
54
54
|
/** 是否静音播放
|
|
55
55
|
* @default false
|
|
56
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
56
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
57
57
|
*/
|
|
58
58
|
muted?: boolean
|
|
59
59
|
|
|
60
60
|
/** 指定视频初始播放位置
|
|
61
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
61
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
62
62
|
*/
|
|
63
63
|
initialTime?: number
|
|
64
64
|
|
|
@@ -76,54 +76,54 @@ 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
|
|
97
97
|
|
|
98
98
|
/** 是否显示视频中间的播放按钮
|
|
99
99
|
* @default true
|
|
100
|
-
* @supported weapp, swan, alipay
|
|
100
|
+
* @supported weapp, swan, alipay, rn
|
|
101
101
|
* @h5 待定
|
|
102
102
|
*/
|
|
103
103
|
showCenterPlayBtn?: boolean
|
|
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
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
120
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
121
121
|
*/
|
|
122
122
|
poster?: string
|
|
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
|
|
@@ -225,31 +225,31 @@ interface VideoProps extends StandardProps {
|
|
|
225
225
|
showScreenLockButton?: boolean
|
|
226
226
|
|
|
227
227
|
/** 当开始/继续播放时触发 play 事件
|
|
228
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
228
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
229
229
|
*/
|
|
230
230
|
onPlay?: CommonEventFunction
|
|
231
231
|
|
|
232
232
|
/** 当暂停播放时触发 pause 事件
|
|
233
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
233
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
234
234
|
*/
|
|
235
235
|
onPause?: CommonEventFunction
|
|
236
236
|
|
|
237
237
|
/** 当播放到末尾时触发 ended 事件
|
|
238
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
238
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
239
239
|
*/
|
|
240
240
|
onEnded?: CommonEventFunction
|
|
241
241
|
|
|
242
242
|
/** 播放进度变化时触发, 触发频率 250ms 一次
|
|
243
243
|
*
|
|
244
244
|
* event.detail = {currentTime, duration}
|
|
245
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
245
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
246
246
|
*/
|
|
247
247
|
onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
|
|
248
248
|
|
|
249
249
|
/** 当视频进入和退出全屏时触发
|
|
250
250
|
*
|
|
251
251
|
* event.detail = {fullScreen, direction},direction取为 vertical 或 horizontal
|
|
252
|
-
* @supported weapp, swan, alipay
|
|
252
|
+
* @supported weapp, swan, alipay, rn, tt
|
|
253
253
|
* @h5 待定
|
|
254
254
|
*/
|
|
255
255
|
onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
|
|
@@ -257,13 +257,13 @@ 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>
|
|
264
264
|
|
|
265
265
|
/** 视频播放出错时触发
|
|
266
|
-
* @supported weapp, h5, swan, alipay, tt
|
|
266
|
+
* @supported weapp, h5, swan, alipay, tt, rn
|
|
267
267
|
*/
|
|
268
268
|
onError?: CommonEventFunction
|
|
269
269
|
/** 加载进度变化时触发,只支持一段加载
|
|
@@ -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
|
|
276
|
+
* @supported weapp, rn, tt
|
|
277
277
|
*/
|
|
278
278
|
onLoadedMetaData?: CommonEventFunction
|
|
279
279
|
|
|
@@ -300,6 +300,11 @@ interface VideoProps extends StandardProps {
|
|
|
300
300
|
* @supported weapp
|
|
301
301
|
*/
|
|
302
302
|
onSeekComplete?: CommonEventFunction
|
|
303
|
+
|
|
304
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
305
|
+
* @supported h5
|
|
306
|
+
*/
|
|
307
|
+
nativeProps?: Record<string, unknown>
|
|
303
308
|
}
|
|
304
309
|
|
|
305
310
|
declare namespace VideoProps {
|
|
@@ -313,7 +318,7 @@ declare namespace VideoProps {
|
|
|
313
318
|
'-90'
|
|
314
319
|
}
|
|
315
320
|
/** objectFit 的合法值 */
|
|
316
|
-
interface
|
|
321
|
+
interface ObjectFit {
|
|
317
322
|
/** 包含 */
|
|
318
323
|
contain
|
|
319
324
|
/** 填充 */
|
|
@@ -322,7 +327,7 @@ declare namespace VideoProps {
|
|
|
322
327
|
cover
|
|
323
328
|
}
|
|
324
329
|
/** playBtnPosition 的合法值 */
|
|
325
|
-
interface
|
|
330
|
+
interface PlayBtnPosition {
|
|
326
331
|
/** controls bar上 */
|
|
327
332
|
bottom
|
|
328
333
|
/** 视频中间 */
|
|
@@ -359,27 +364,27 @@ declare namespace VideoProps {
|
|
|
359
364
|
}
|
|
360
365
|
|
|
361
366
|
/** 视频。相关api:Taro.createVideoContext
|
|
362
|
-
*
|
|
367
|
+
*
|
|
363
368
|
* 备注:h5上因为没有测试,所以暂时写了“待定”,需要`Video`来确认。
|
|
364
369
|
* @classification media
|
|
365
370
|
* @supported weapp, h5, swan, alipay, tt
|
|
366
|
-
* @
|
|
371
|
+
* @example_react
|
|
367
372
|
* ```tsx
|
|
368
373
|
* export default class PageView extends Component {
|
|
369
374
|
* constructor() {
|
|
370
375
|
* super(...arguments)
|
|
371
376
|
* }
|
|
372
|
-
*
|
|
377
|
+
*
|
|
373
378
|
* render() {
|
|
374
379
|
* return (
|
|
375
380
|
* <View className='components-page'>
|
|
376
381
|
* <Video
|
|
377
|
-
*
|
|
382
|
+
* id='video'
|
|
383
|
+
* src='https://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
|
|
384
|
+
* poster='https://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
|
|
385
|
+
* initialTime={0}
|
|
378
386
|
* controls={true}
|
|
379
387
|
* autoplay={false}
|
|
380
|
-
* poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
|
|
381
|
-
* initialTime='0'
|
|
382
|
-
* id='video'
|
|
383
388
|
* loop={false}
|
|
384
389
|
* muted={false}
|
|
385
390
|
* />
|
|
@@ -388,6 +393,21 @@ declare namespace VideoProps {
|
|
|
388
393
|
* }
|
|
389
394
|
* }
|
|
390
395
|
* ```
|
|
396
|
+
* @example_vue
|
|
397
|
+
* ```html
|
|
398
|
+
* <template>
|
|
399
|
+
* <video
|
|
400
|
+
* id="video"
|
|
401
|
+
* src="https://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
|
|
402
|
+
* poster="https://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg"
|
|
403
|
+
* initial-time="0"
|
|
404
|
+
* :controls="true"
|
|
405
|
+
* :autoplay="false"
|
|
406
|
+
* :loop="false"
|
|
407
|
+
* :muted="false"
|
|
408
|
+
* />
|
|
409
|
+
* </template>
|
|
410
|
+
* ```
|
|
391
411
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/video.html
|
|
392
412
|
*/
|
|
393
413
|
declare const Video: ComponentType<VideoProps>
|
package/types/View.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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"` 时,没有点击态效果
|
|
@@ -17,7 +17,7 @@ interface ViewProps extends StandardProps {
|
|
|
17
17
|
hoverStyle?: StyleProp<ViewStyle>
|
|
18
18
|
|
|
19
19
|
/** 指定是否阻止本节点的祖先节点出现点击态
|
|
20
|
-
* @default
|
|
20
|
+
* @default false
|
|
21
21
|
* @supported weapp, swan, alipay, tt
|
|
22
22
|
*/
|
|
23
23
|
hoverStopPropagation?: boolean
|
|
@@ -41,7 +41,7 @@ interface ViewProps extends StandardProps {
|
|
|
41
41
|
/** 视图容器
|
|
42
42
|
* @classification viewContainer
|
|
43
43
|
* @supported weapp, swan, alipay, tt, h5, rn
|
|
44
|
-
* @
|
|
44
|
+
* @example_react
|
|
45
45
|
* ```tsx
|
|
46
46
|
* export default class PageView extends Component {
|
|
47
47
|
* constructor() {
|
|
@@ -68,6 +68,38 @@ interface ViewProps extends StandardProps {
|
|
|
68
68
|
* }
|
|
69
69
|
* }
|
|
70
70
|
* ```
|
|
71
|
+
* @example_vue
|
|
72
|
+
* ```html
|
|
73
|
+
* <template>
|
|
74
|
+
* <view class="components-page">
|
|
75
|
+
* <text>flex-direction: row 横向布局</text>
|
|
76
|
+
* <view class="flex-wrp flex-wrp-row" hover-class="hover" >
|
|
77
|
+
* <view class="flex-item demo-text-1" :hover-stop-propagation="true" />
|
|
78
|
+
* <view class="flex-item demo-text-2" hover-start-time="1000" hover-class="hover" />
|
|
79
|
+
* <view class="flex-item demo-text-3" hover-stayTime="1000" hover-class="hover" />
|
|
80
|
+
* </view>
|
|
81
|
+
* <text>flex-direction: column 纵向布局</text>
|
|
82
|
+
* <view class="flex-wrp flex-wrp-column">
|
|
83
|
+
* <view class="flex-item flex-item-V demo-text-1" />
|
|
84
|
+
* <view class="flex-item flex-item-V demo-text-2" />
|
|
85
|
+
* <view class="flex-item flex-item-V demo-text-3" />
|
|
86
|
+
* </view>
|
|
87
|
+
* </view>
|
|
88
|
+
* </template>
|
|
89
|
+
*
|
|
90
|
+
* <style>
|
|
91
|
+
* .flex-wrp { display: flex; }
|
|
92
|
+
* .flex-wrp-column{ flex-direction: column; }
|
|
93
|
+
* .flex-wrp-row { flex-direction:row; padding: 20px; background: #f1f1f1; }
|
|
94
|
+
* .flex-item { width: 180px; height: 90px; }
|
|
95
|
+
* .demo-text-1 { background: #ccc; }
|
|
96
|
+
* .demo-text-2 { background: #999; }
|
|
97
|
+
* .demo-text-3 { background: #666; }
|
|
98
|
+
* .hover {
|
|
99
|
+
* background: #000;
|
|
100
|
+
* }
|
|
101
|
+
* </style>
|
|
102
|
+
* ```
|
|
71
103
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/view.html
|
|
72
104
|
*/
|
|
73
105
|
declare const View: ComponentType<ViewProps>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { CommonEventFunction, StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
interface VoipRoomProps extends StandardProps {
|
|
5
|
+
/** 进入房间用户的 openid
|
|
6
|
+
* @default none
|
|
7
|
+
* @supported weapp
|
|
8
|
+
*/
|
|
9
|
+
openId?: string
|
|
10
|
+
|
|
11
|
+
/** 对话窗口类型,自身传入 camera,其它用户传入 video
|
|
12
|
+
* @default camera
|
|
13
|
+
* @supported weapp
|
|
14
|
+
*/
|
|
15
|
+
mode?: keyof VoipRoomProps.Mode
|
|
16
|
+
|
|
17
|
+
/** 仅在 mode 为 camera 时有效,前置或后置,值为front, back
|
|
18
|
+
* @default front
|
|
19
|
+
* @supported weapp
|
|
20
|
+
*/
|
|
21
|
+
devicePosition?: keyof VoipRoomProps.DevicePosition
|
|
22
|
+
|
|
23
|
+
/** 创建对话窗口失败时触发
|
|
24
|
+
* @supported weapp
|
|
25
|
+
*/
|
|
26
|
+
onError?: CommonEventFunction
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare namespace VoipRoomProps {
|
|
30
|
+
/** 对话窗口类型 */
|
|
31
|
+
interface Mode {
|
|
32
|
+
camera
|
|
33
|
+
video
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** 摄像头类型 */
|
|
37
|
+
interface DevicePosition {
|
|
38
|
+
front
|
|
39
|
+
back
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 多人音视频对话
|
|
44
|
+
*
|
|
45
|
+
* 需用户授权 `scope.camera`、`scope.record`。相关接口: [Taro.joinVoIPChat](/docs/apis/media/voip/joinVoIPChat)
|
|
46
|
+
* 开通该组件权限后,开发者可在 joinVoIPChat 成功后,获取房间成员的 openid,传递给 voip-room 组件,以显示成员画面。
|
|
47
|
+
* @classification media
|
|
48
|
+
* @supported weapp
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* export default class PageView extends Component {
|
|
52
|
+
* constructor() {
|
|
53
|
+
* super(...arguments)
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* render() {
|
|
57
|
+
* return (
|
|
58
|
+
* <VoipRoom
|
|
59
|
+
* openId="{{item}}"
|
|
60
|
+
* mode="{{selfOpenId === item ? 'camera' : 'video'}}">
|
|
61
|
+
* </VoipRoom>
|
|
62
|
+
* )
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
|
|
67
|
+
*/
|
|
68
|
+
declare const VoipRoom: ComponentType<VoipRoomProps>
|
|
69
|
+
|
|
70
|
+
export { VoipRoom, VoipRoomProps }
|