@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/Input.d.ts
CHANGED
|
@@ -3,52 +3,57 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface InputProps 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
|
/** input 的类型
|
|
11
11
|
* @default "text"
|
|
12
|
-
* @supported weapp, h5, rn
|
|
12
|
+
* @supported weapp, h5, rn, tt
|
|
13
13
|
* @rn 部分支持
|
|
14
14
|
*/
|
|
15
|
-
type?: 'text' | 'number' | 'idcard' | 'digit'
|
|
15
|
+
type?: 'text' | 'number' | 'idcard' | 'digit' | 'safe-password' | 'nickname'
|
|
16
16
|
|
|
17
17
|
/** 是否是密码类型
|
|
18
|
-
* @supported weapp, h5, rn
|
|
18
|
+
* @supported weapp, h5, rn, tt
|
|
19
19
|
*/
|
|
20
20
|
password?: boolean
|
|
21
21
|
|
|
22
22
|
/** 输入框为空时占位符
|
|
23
|
-
* @supported weapp, h5, rn
|
|
23
|
+
* @supported weapp, h5, rn, tt
|
|
24
24
|
*/
|
|
25
25
|
placeholder?: string
|
|
26
26
|
|
|
27
27
|
/** 指定 placeholder 的样式
|
|
28
|
-
* @supported weapp
|
|
28
|
+
* @supported weapp, rn, tt
|
|
29
29
|
*/
|
|
30
30
|
placeholderStyle?: string
|
|
31
31
|
|
|
32
32
|
/** 指定 placeholder 的样式类
|
|
33
33
|
* @default "input-placeholder"
|
|
34
|
-
* @supported weapp
|
|
34
|
+
* @supported weapp, tt
|
|
35
35
|
*/
|
|
36
36
|
placeholderClass?: string
|
|
37
37
|
|
|
38
|
+
/** 指定 placeholder 的文本颜色
|
|
39
|
+
* @supported rn
|
|
40
|
+
*/
|
|
41
|
+
placeholderTextColor?: string
|
|
42
|
+
|
|
38
43
|
/** 是否禁用
|
|
39
|
-
* @supported weapp, h5, rn
|
|
44
|
+
* @supported weapp, h5, rn, tt
|
|
40
45
|
*/
|
|
41
46
|
disabled?: boolean
|
|
42
47
|
|
|
43
48
|
/** 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
44
49
|
* @default 140
|
|
45
|
-
* @supported weapp, h5, rn
|
|
50
|
+
* @supported weapp, h5, rn, tt
|
|
46
51
|
*/
|
|
47
52
|
maxlength?: number
|
|
48
53
|
|
|
49
54
|
/** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
|
|
50
55
|
* @default 0
|
|
51
|
-
* @supported weapp
|
|
56
|
+
* @supported weapp, tt
|
|
52
57
|
*/
|
|
53
58
|
cursorSpacing?: number
|
|
54
59
|
|
|
@@ -59,14 +64,13 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
59
64
|
autoFocus?: boolean
|
|
60
65
|
|
|
61
66
|
/** 获取焦点
|
|
62
|
-
* @supported weapp, h5, rn
|
|
67
|
+
* @supported weapp, h5, rn, tt
|
|
63
68
|
*/
|
|
64
69
|
focus?: boolean
|
|
65
70
|
|
|
66
|
-
|
|
67
71
|
/** 设置键盘右下角按钮的文字
|
|
68
72
|
* @default done
|
|
69
|
-
* @supported weapp, rn
|
|
73
|
+
* @supported weapp, rn, tt
|
|
70
74
|
*/
|
|
71
75
|
confirmType?: 'send' | 'search' | 'next' | 'go' | 'done'
|
|
72
76
|
|
|
@@ -77,25 +81,25 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
77
81
|
confirmHold?: boolean
|
|
78
82
|
|
|
79
83
|
/** 指定focus时的光标位置
|
|
80
|
-
* @supported weapp, rn
|
|
84
|
+
* @supported weapp, rn, tt
|
|
81
85
|
*/
|
|
82
86
|
cursor?: number
|
|
83
87
|
|
|
84
88
|
/** 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
85
89
|
* @default -1
|
|
86
|
-
* @supported weapp, rn
|
|
90
|
+
* @supported weapp, rn, tt
|
|
87
91
|
*/
|
|
88
92
|
selectionStart?: number
|
|
89
93
|
|
|
90
94
|
/** 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
91
95
|
* @default -1
|
|
92
|
-
* @supported weapp, rn
|
|
96
|
+
* @supported weapp, rn, tt
|
|
93
97
|
*/
|
|
94
98
|
selectionEnd?: number
|
|
95
99
|
|
|
96
100
|
/** 键盘弹起时,是否自动上推页面
|
|
97
101
|
* @default false
|
|
98
|
-
* @supported weapp
|
|
102
|
+
* @supported weapp, tt
|
|
99
103
|
*/
|
|
100
104
|
adjustPosition?: boolean
|
|
101
105
|
|
|
@@ -112,6 +116,41 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
112
116
|
*/
|
|
113
117
|
alwaysEmbed?: boolean
|
|
114
118
|
|
|
119
|
+
/**
|
|
120
|
+
* 安全键盘加密公钥的路径,只支持包内路径
|
|
121
|
+
* @supported weapp
|
|
122
|
+
*/
|
|
123
|
+
safePasswordCertPath?: string
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 安全键盘输入密码长度
|
|
127
|
+
* @supported weapp
|
|
128
|
+
*/
|
|
129
|
+
safePasswordLength?: number
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 安全键盘加密时间戳
|
|
133
|
+
* @supported weapp
|
|
134
|
+
*/
|
|
135
|
+
safePasswordTimeStamp?: number
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* 安全键盘加密盐值
|
|
139
|
+
* @supported weapp
|
|
140
|
+
*/
|
|
141
|
+
safePasswordNonce?: string
|
|
142
|
+
/**
|
|
143
|
+
* 安全键盘计算hash盐值,若指定custom-hash 则无效
|
|
144
|
+
* @supported weapp
|
|
145
|
+
*/
|
|
146
|
+
safePasswordSalt?: string
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 安全键盘计算hash的算法表达式,如 `md5(sha1('foo' + sha256(sm3(password + 'bar'))))`
|
|
150
|
+
* @supported weapp
|
|
151
|
+
*/
|
|
152
|
+
safePasswordCustomHash?: string
|
|
153
|
+
|
|
115
154
|
/**
|
|
116
155
|
* 当 type 为 number, digit, idcard 数字键盘是否随机排列
|
|
117
156
|
* @default false
|
|
@@ -127,27 +166,27 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
127
166
|
controlled?: boolean
|
|
128
167
|
|
|
129
168
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
130
|
-
* @supported weapp, h5, rn
|
|
169
|
+
* @supported weapp, h5, rn, tt
|
|
131
170
|
*/
|
|
132
171
|
onInput?: CommonEventFunction<InputProps.inputEventDetail>
|
|
133
172
|
|
|
134
173
|
/** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
|
|
135
|
-
* @supported weapp, h5, rn
|
|
174
|
+
* @supported weapp, h5, rn, tt
|
|
136
175
|
*/
|
|
137
176
|
onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
|
|
138
177
|
|
|
139
178
|
/** 输入框失去焦点时触发
|
|
140
179
|
*
|
|
141
180
|
* event.detail = {value: value}
|
|
142
|
-
* @supported weapp, h5, rn
|
|
181
|
+
* @supported weapp, h5, rn, tt
|
|
143
182
|
*/
|
|
144
183
|
onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
145
184
|
|
|
146
185
|
/** 点击完成按钮时触发
|
|
147
186
|
*
|
|
148
187
|
* event.detail = {value: value}
|
|
149
|
-
* @supported weapp, rn
|
|
150
|
-
* @h5 借用[Form 组件](form
|
|
188
|
+
* @supported weapp, rn, tt
|
|
189
|
+
* @h5 借用[Form 组件](./form)的`onSubmit`事件来替代
|
|
151
190
|
*/
|
|
152
191
|
onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
153
192
|
|
|
@@ -157,9 +196,15 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
157
196
|
* @supported weapp
|
|
158
197
|
*/
|
|
159
198
|
onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
|
|
199
|
+
|
|
200
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
201
|
+
* @supported h5
|
|
202
|
+
*/
|
|
203
|
+
nativeProps?: Record<string, unknown>
|
|
160
204
|
}
|
|
161
205
|
|
|
162
206
|
declare namespace InputProps {
|
|
207
|
+
/** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
|
|
163
208
|
interface inputEventDetail {
|
|
164
209
|
/** 输入值 */
|
|
165
210
|
value: string
|
|
@@ -190,32 +235,52 @@ declare namespace InputProps {
|
|
|
190
235
|
/** 输入框。该组件是原生组件,使用时请注意相关限制
|
|
191
236
|
* @classification forms
|
|
192
237
|
* @supported weapp, h5, rn
|
|
193
|
-
* @
|
|
238
|
+
* @example_react
|
|
194
239
|
* ```tsx
|
|
195
240
|
* class App extends Component {
|
|
196
|
-
*
|
|
197
241
|
* render () {
|
|
198
242
|
* return (
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
243
|
+
* <View className='example-body'>
|
|
244
|
+
* <Text>可以自动聚焦的 input</Text>
|
|
245
|
+
* <Input type='text' placeholder='将会获取焦点' focus/>
|
|
246
|
+
* <Text>控制最大输入长度的 input</Text>
|
|
247
|
+
* <Input type='text' placeholder='最大输入长度为 10' maxLength='10'/>
|
|
248
|
+
* <Text>数字输入的 input</Text>
|
|
249
|
+
* <Input type='number' placeholder='这是一个数字输入框'/>
|
|
250
|
+
* <Text>密码输入的 input</Text>
|
|
251
|
+
* <Input type='password' password placeholder='这是一个密码输入框'/>
|
|
252
|
+
* <Text>带小数点的 input</Text>
|
|
253
|
+
* <Input type='digit' placeholder='带小数点的数字键盘'/>
|
|
254
|
+
* <Text>身份证输入的 input</Text>
|
|
255
|
+
* <Input type='idcard' placeholder='身份证输入键盘'/>
|
|
256
|
+
* <Text>控制占位符颜色的 input</Text>
|
|
257
|
+
* <Input type='text' placeholder='占位符字体是红色的' placeholderStyle='color:red'/>
|
|
258
|
+
* </View>
|
|
215
259
|
* )
|
|
216
260
|
* }
|
|
217
261
|
* }
|
|
218
262
|
* ```
|
|
263
|
+
* @example_vue
|
|
264
|
+
* ```html
|
|
265
|
+
* <template>
|
|
266
|
+
* <view class="example-body">
|
|
267
|
+
* <text>可以自动聚焦的 input</text>
|
|
268
|
+
* <input type="text" placeholder="将会获取焦点" :focus="true" />
|
|
269
|
+
* <text>控制最大输入长度的 input</text>
|
|
270
|
+
* <input type="text" placeholder="最大输入长度为 10" maxLength="10"/>
|
|
271
|
+
* <text>数字输入的 input</text>
|
|
272
|
+
* <input type="number" placeholder="这是一个数字输入框"/>
|
|
273
|
+
* <text>密码输入的 input</text>
|
|
274
|
+
* <input type="password" :password="true" placeholder="这是一个密码输入框"/>
|
|
275
|
+
* <text>带小数点的 input</text>
|
|
276
|
+
* <input type="digit" placeholder="带小数点的数字键盘"/>
|
|
277
|
+
* <text>身份证输入的 input</text>
|
|
278
|
+
* <input type="idcard" placeholder="身份证输入键盘"/>
|
|
279
|
+
* <text>控制占位符颜色的 input</text>
|
|
280
|
+
* <input type="text" placeholder="占位符字体是红色的" placeholder-style="color:red;"/>
|
|
281
|
+
* </view>
|
|
282
|
+
* </template>
|
|
283
|
+
* ```
|
|
219
284
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/input.html
|
|
220
285
|
*/
|
|
221
286
|
declare const Input: ComponentType<InputProps>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
/** @ignore */
|
|
5
|
+
type KeyboardAccessoryProps = StandardProps
|
|
6
|
+
|
|
7
|
+
/** 设置 Input / Textarea 聚焦时键盘上方 CoverView / CoverImage 工具栏视图。需要配置 Taro 插件 `@tarojs/plugin-platform-weapp` 的 `enablekeyboardAccessory` 参数为 `true` 后才能使用,请参考:[#9548](https://github.com/NervJS/taro/issues/9548#issuecomment-891682216)。
|
|
8
|
+
*
|
|
9
|
+
* @classification forms
|
|
10
|
+
* @supported weapp
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* // config/index.js
|
|
14
|
+
* {
|
|
15
|
+
* // ...
|
|
16
|
+
* plugins: [
|
|
17
|
+
* ['@tarojs/plugin-platform-weapp', {
|
|
18
|
+
* enablekeyboardAccessory: true
|
|
19
|
+
* }]
|
|
20
|
+
* ]
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ```tsx
|
|
25
|
+
* class App extends Component {
|
|
26
|
+
* render () {
|
|
27
|
+
* return (
|
|
28
|
+
* <Textarea holdKeyboard="{{true}}">
|
|
29
|
+
* <KeyboardAccessory className="container" style={{ height: 50 }} >
|
|
30
|
+
* <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'green' }}>1</CoverView>
|
|
31
|
+
* <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'red' }}>2</CoverView>
|
|
32
|
+
* </KeyboardAccessory>
|
|
33
|
+
* </Textarea>
|
|
34
|
+
* )
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
39
|
+
*/
|
|
40
|
+
declare const KeyboardAccessory: ComponentType<KeyboardAccessoryProps>
|
|
41
|
+
|
|
42
|
+
export { KeyboardAccessory, KeyboardAccessoryProps }
|
package/types/Label.d.ts
CHANGED
|
@@ -3,20 +3,19 @@ import { StandardProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface LabelProps extends StandardProps {
|
|
5
5
|
|
|
6
|
-
/** 绑定控件的 id
|
|
7
|
-
*/
|
|
6
|
+
/** 绑定控件的 id */
|
|
8
7
|
for?: string
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
/** 用来改进表单组件的可用性。
|
|
12
|
-
*
|
|
11
|
+
*
|
|
13
12
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
14
13
|
* @classification forms
|
|
15
|
-
* @supported weapp, swan, alipay, tt, h5
|
|
16
|
-
* @
|
|
14
|
+
* @supported weapp, swan, alipay, tt, h5, rn
|
|
15
|
+
* @example_react
|
|
17
16
|
* ```tsx
|
|
18
17
|
* class App extends Components {
|
|
19
|
-
*
|
|
18
|
+
*
|
|
20
19
|
* render () {
|
|
21
20
|
* return (
|
|
22
21
|
* <RadioGroup>
|
|
@@ -33,6 +32,21 @@ interface LabelProps extends StandardProps {
|
|
|
33
32
|
* }
|
|
34
33
|
* }
|
|
35
34
|
* ```
|
|
35
|
+
* @example_vue
|
|
36
|
+
* ```html
|
|
37
|
+
* <template>
|
|
38
|
+
* <radio-group>
|
|
39
|
+
* <label class="example-body__label" for="1" key="1">
|
|
40
|
+
* <radio id="1" value="USA" />
|
|
41
|
+
* USA
|
|
42
|
+
* </label>
|
|
43
|
+
* <label class="example-body__label" for="2" key="2">
|
|
44
|
+
* <radio id="2" value="CHN" :checked="true" />
|
|
45
|
+
* CHN
|
|
46
|
+
* </label>
|
|
47
|
+
* </radio-group>
|
|
48
|
+
* </template>
|
|
49
|
+
* ```
|
|
36
50
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/label.html
|
|
37
51
|
*/
|
|
38
52
|
declare const Label: ComponentType<LabelProps>
|
package/types/LivePlayer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction,
|
|
2
|
+
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
3
|
|
|
4
4
|
interface LivePlayerProps extends StandardProps {
|
|
5
5
|
/** 音视频地址。目前仅支持 flv, rtmp 格式
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
8
|
src?: string
|
|
9
9
|
|
|
@@ -11,29 +11,29 @@ interface LivePlayerProps extends StandardProps {
|
|
|
11
11
|
* @default "live"
|
|
12
12
|
* @supported weapp
|
|
13
13
|
*/
|
|
14
|
-
mode?: keyof LivePlayerProps.
|
|
14
|
+
mode?: keyof LivePlayerProps.Mode
|
|
15
15
|
|
|
16
16
|
/** 自动播放
|
|
17
17
|
* @default false
|
|
18
|
-
* @supported weapp
|
|
18
|
+
* @supported weapp, tt
|
|
19
19
|
*/
|
|
20
20
|
autoplay?: boolean
|
|
21
21
|
|
|
22
22
|
/** 是否静音
|
|
23
23
|
* @default false
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
muted?: boolean
|
|
27
27
|
|
|
28
28
|
/** 画面方向
|
|
29
29
|
* @default "vertical"
|
|
30
|
-
* @supported weapp
|
|
30
|
+
* @supported weapp, tt
|
|
31
31
|
*/
|
|
32
|
-
orientation?: keyof LivePlayerProps.
|
|
32
|
+
orientation?: keyof LivePlayerProps.Orientation
|
|
33
33
|
|
|
34
34
|
/** 填充模式
|
|
35
35
|
* @default "contain"
|
|
36
|
-
* @supported weapp
|
|
36
|
+
* @supported weapp, tt
|
|
37
37
|
*/
|
|
38
38
|
objectFit?: keyof LivePlayerProps.objectFit
|
|
39
39
|
|
|
@@ -44,13 +44,13 @@ interface LivePlayerProps extends StandardProps {
|
|
|
44
44
|
*/
|
|
45
45
|
backgroundMute?: boolean
|
|
46
46
|
|
|
47
|
-
/**
|
|
47
|
+
/** 最小缓冲区,单位s
|
|
48
48
|
* @default 1
|
|
49
49
|
* @supported weapp
|
|
50
50
|
*/
|
|
51
51
|
minCache?: number
|
|
52
52
|
|
|
53
|
-
/**
|
|
53
|
+
/** 最大缓冲区,单位s
|
|
54
54
|
* @default 3
|
|
55
55
|
* @supported weapp
|
|
56
56
|
*/
|
|
@@ -80,12 +80,12 @@ interface LivePlayerProps extends StandardProps {
|
|
|
80
80
|
pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
|
|
81
81
|
|
|
82
82
|
/** 播放状态变化事件,detail = {code}
|
|
83
|
-
* @supported weapp
|
|
83
|
+
* @supported weapp, tt
|
|
84
84
|
*/
|
|
85
85
|
onStateChange?: CommonEventFunction<LivePlayerProps.onStateChangeEventDetail>
|
|
86
86
|
|
|
87
87
|
/** 全屏变化事件,detail = {direction, fullScreen}
|
|
88
|
-
* @supported weapp
|
|
88
|
+
* @supported weapp, tt
|
|
89
89
|
*/
|
|
90
90
|
onFullScreenChange?: CommonEventFunction<LivePlayerProps.onFullScreenChangeEventDetail>
|
|
91
91
|
|
|
@@ -112,14 +112,14 @@ interface LivePlayerProps extends StandardProps {
|
|
|
112
112
|
|
|
113
113
|
declare namespace LivePlayerProps {
|
|
114
114
|
/** mode 的合法值 */
|
|
115
|
-
interface
|
|
115
|
+
interface Mode {
|
|
116
116
|
/** 直播 */
|
|
117
117
|
live
|
|
118
118
|
/** 实时通话,该模式时延更低 */
|
|
119
119
|
RTC
|
|
120
120
|
}
|
|
121
121
|
/** orientation 的合法值 */
|
|
122
|
-
interface
|
|
122
|
+
interface Orientation {
|
|
123
123
|
/** 竖直 */
|
|
124
124
|
vertical
|
|
125
125
|
/** 水平 */
|
|
@@ -151,10 +151,10 @@ declare namespace LivePlayerProps {
|
|
|
151
151
|
fullScreen: number | boolean
|
|
152
152
|
}
|
|
153
153
|
interface onNetStatusEventDetail {
|
|
154
|
-
info:
|
|
154
|
+
info: NetStatus
|
|
155
155
|
}
|
|
156
156
|
/** 状态码 */
|
|
157
|
-
interface
|
|
157
|
+
interface Status {
|
|
158
158
|
/** 已经连接服务器 */
|
|
159
159
|
2001
|
|
160
160
|
/** 已经连接 RTMP 服务器,开始拉流 */
|
|
@@ -205,11 +205,11 @@ declare namespace LivePlayerProps {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/** 实时音视频播放。相关api:Taro.createLivePlayerContext
|
|
208
|
-
*
|
|
208
|
+
*
|
|
209
209
|
* 需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
|
210
210
|
* @classification media
|
|
211
|
-
* @supported weapp
|
|
212
|
-
* @
|
|
211
|
+
* @supported weapp, tt
|
|
212
|
+
* @example_react
|
|
213
213
|
* ```tsx
|
|
214
214
|
* class App extends Components {
|
|
215
215
|
* render () {
|
|
@@ -219,6 +219,12 @@ declare namespace LivePlayerProps {
|
|
|
219
219
|
* }
|
|
220
220
|
* }
|
|
221
221
|
* ```
|
|
222
|
+
* @example_vue
|
|
223
|
+
* ```html
|
|
224
|
+
* <template>
|
|
225
|
+
* <live-player src="url" mode="live" :autoplay="true" />
|
|
226
|
+
* </template>
|
|
227
|
+
* ```
|
|
222
228
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/live-player.html
|
|
223
229
|
*/
|
|
224
230
|
declare const LivePlayer: ComponentType<LivePlayerProps>
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction,
|
|
2
|
+
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
3
|
|
|
4
4
|
/** 实时音视频录制。
|
|
5
5
|
* 需要用户授权 scope.camera、scope.record
|
|
@@ -46,7 +46,7 @@ interface LivePusherProps extends StandardProps {
|
|
|
46
46
|
* @default "vertical"
|
|
47
47
|
* @supported weapp
|
|
48
48
|
*/
|
|
49
|
-
orientation?: keyof LivePusherProps.
|
|
49
|
+
orientation?: keyof LivePusherProps.Orientation
|
|
50
50
|
|
|
51
51
|
/** 美颜,取值范围 0-9 ,0 表示关闭
|
|
52
52
|
* @default 0
|
|
@@ -131,13 +131,13 @@ interface LivePusherProps extends StandardProps {
|
|
|
131
131
|
* @default "auto"
|
|
132
132
|
* @supported weapp
|
|
133
133
|
*/
|
|
134
|
-
localMirror?: keyof LivePusherProps.
|
|
134
|
+
localMirror?: keyof LivePusherProps.LocalMirror
|
|
135
135
|
|
|
136
136
|
/** 音频混响类型
|
|
137
137
|
* @default 0
|
|
138
138
|
* @supported weapp
|
|
139
139
|
*/
|
|
140
|
-
audioReverbType?: keyof LivePusherProps.
|
|
140
|
+
audioReverbType?: keyof LivePusherProps.AudioReverbType
|
|
141
141
|
|
|
142
142
|
/** 开启或关闭麦克风
|
|
143
143
|
* @default true
|
|
@@ -161,7 +161,7 @@ interface LivePusherProps extends StandardProps {
|
|
|
161
161
|
* @default "voicecall"
|
|
162
162
|
* @supported weapp
|
|
163
163
|
*/
|
|
164
|
-
audioVolumeType?: keyof LivePusherProps.
|
|
164
|
+
audioVolumeType?: keyof LivePusherProps.AudioVolumeType
|
|
165
165
|
|
|
166
166
|
/** 上推的视频流的分辨率宽度
|
|
167
167
|
* @default 360
|
|
@@ -179,13 +179,13 @@ interface LivePusherProps extends StandardProps {
|
|
|
179
179
|
* @default smooth
|
|
180
180
|
* @supported weapp
|
|
181
181
|
*/
|
|
182
|
-
beautyStyle?: keyof LivePusherProps.
|
|
182
|
+
beautyStyle?: keyof LivePusherProps.BeautyStyleType
|
|
183
183
|
|
|
184
184
|
/** 设置色彩滤镜
|
|
185
185
|
* @default standard
|
|
186
186
|
* @supported weapp
|
|
187
187
|
*/
|
|
188
|
-
filter?: keyof LivePusherProps.
|
|
188
|
+
filter?: keyof LivePusherProps.FilterType
|
|
189
189
|
|
|
190
190
|
/** 状态变化事件,detail = {code}
|
|
191
191
|
* @supported weapp
|
|
@@ -225,14 +225,14 @@ interface LivePusherProps extends StandardProps {
|
|
|
225
225
|
|
|
226
226
|
declare namespace LivePusherProps {
|
|
227
227
|
/** orientation 的合法值 */
|
|
228
|
-
interface
|
|
228
|
+
interface Orientation {
|
|
229
229
|
/** 竖直 */
|
|
230
230
|
vertical
|
|
231
231
|
/** 水平 */
|
|
232
232
|
horizontal
|
|
233
233
|
}
|
|
234
234
|
/** localMirror 的合法值 */
|
|
235
|
-
interface
|
|
235
|
+
interface LocalMirror {
|
|
236
236
|
/** 前置摄像头镜像,后置摄像头不镜像 */
|
|
237
237
|
auto
|
|
238
238
|
/** 前后置摄像头均镜像 */
|
|
@@ -241,7 +241,7 @@ declare namespace LivePusherProps {
|
|
|
241
241
|
disable
|
|
242
242
|
}
|
|
243
243
|
/** audioReverbType 的合法值 */
|
|
244
|
-
interface
|
|
244
|
+
interface AudioReverbType {
|
|
245
245
|
/** 关闭 */
|
|
246
246
|
0
|
|
247
247
|
/** KTV */
|
|
@@ -260,21 +260,21 @@ declare namespace LivePusherProps {
|
|
|
260
260
|
7
|
|
261
261
|
}
|
|
262
262
|
/** audioVolumeType 的合法值 */
|
|
263
|
-
interface
|
|
263
|
+
interface AudioVolumeType {
|
|
264
264
|
/** 媒体音量 */
|
|
265
265
|
media
|
|
266
266
|
/** 通话音量 */
|
|
267
267
|
voicecall
|
|
268
268
|
}
|
|
269
269
|
/** beautyStyleType 的合法值 */
|
|
270
|
-
interface
|
|
270
|
+
interface BeautyStyleType {
|
|
271
271
|
/** 光滑美颜 */
|
|
272
272
|
smooth
|
|
273
273
|
/** 自然美颜 */
|
|
274
274
|
nature
|
|
275
275
|
}
|
|
276
276
|
/** filterType 的合法值 */
|
|
277
|
-
interface
|
|
277
|
+
interface FilterType {
|
|
278
278
|
/** 标准 */
|
|
279
279
|
standard
|
|
280
280
|
/** 粉嫩 */
|
|
@@ -304,7 +304,7 @@ declare namespace LivePusherProps {
|
|
|
304
304
|
}
|
|
305
305
|
interface onNetstatusEventDetail {
|
|
306
306
|
/** 网络状态 */
|
|
307
|
-
info:
|
|
307
|
+
info: NetStatus
|
|
308
308
|
}
|
|
309
309
|
interface onErrorEventDetail {
|
|
310
310
|
/** 错误信息 */
|
|
@@ -324,7 +324,7 @@ declare namespace LivePusherProps {
|
|
|
324
324
|
* 需要先通过类目审核,再在小程序管理后台,「开发」-「接口设置」中自助开通该组件权限。
|
|
325
325
|
* @classification media
|
|
326
326
|
* @supported weapp
|
|
327
|
-
* @
|
|
327
|
+
* @example_react
|
|
328
328
|
* ```tsx
|
|
329
329
|
* class App extends Components {
|
|
330
330
|
* render () {
|
|
@@ -334,6 +334,12 @@ declare namespace LivePusherProps {
|
|
|
334
334
|
* }
|
|
335
335
|
* }
|
|
336
336
|
* ```
|
|
337
|
+
* @example_vue
|
|
338
|
+
* ```html
|
|
339
|
+
* <template>
|
|
340
|
+
* <live-pusher url="url" mode="RTC" :autopush="true" />
|
|
341
|
+
* </template>
|
|
342
|
+
* ```
|
|
337
343
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/live-pusher.html
|
|
338
344
|
*/
|
|
339
345
|
declare const LivePusher: ComponentType<LivePusherProps>
|