@tarojs/components 3.5.0-canary.1 → 3.5.0-theta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
- package/dist/cjs/index-47a1959e.js +34 -0
- package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-input-core.cjs.entry.js +16 -19
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +15 -5
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +6 -14
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +14 -17
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +38 -38
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +5 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -23
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +7 -4
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +15 -23
- package/dist/collection/components/navigator/navigator.js +2 -2
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +218 -4
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +13 -3
- package/dist/collection/components/pull-to-refresh/style/index.css +53 -49
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +3 -11
- package/dist/collection/components/swiper/swiper.js +10 -13
- package/dist/collection/components/tabbar/style/index.css +9 -6
- package/dist/collection/components/tabbar/tabbar.js +13 -13
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -1
- package/dist/collection/components/video/style/index.css +88 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video-control.js +9 -9
- package/dist/collection/components/video/video.js +57 -9
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/view/view.js +2 -2
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +23 -83
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
- package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-input-core.entry.js +16 -19
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +4 -4
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +15 -5
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +5 -13
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +11 -14
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +38 -38
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +5 -3
- package/dist/esm/taro-video-control_3.entry.js +27867 -223
- package/dist/esm/taro-view-core.entry.js +5 -5
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-1d8e8acd.js +7 -0
- package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
- package/dist/esm-es5/index-cad8203e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-019591c8.system.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
- package/dist/taro-components/p-0996daee.entry.js +1 -0
- package/dist/taro-components/{p-94502fc3.entry.js → p-0ca42006.entry.js} +1 -1
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/{p-336f2b2a.system.entry.js → p-0d1e0e91.system.entry.js} +1 -1
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/{p-cdffee54.system.entry.js → p-12deba0b.system.entry.js} +1 -1
- package/dist/taro-components/p-133e3ac4.entry.js +1 -0
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
- package/dist/taro-components/{p-14dbbb42.entry.js → p-16c1e564.entry.js} +1 -1
- package/dist/taro-components/{p-0c2982fc.system.entry.js → p-178a3adf.system.entry.js} +1 -1
- package/dist/taro-components/p-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-98b47fc9.system.entry.js → p-2887213d.system.entry.js} +1 -1
- package/dist/taro-components/{p-3334ac67.system.entry.js → p-29b7c721.system.entry.js} +1 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
- package/dist/taro-components/{p-e03fa2d5.system.entry.js → p-2e8a1479.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
- package/dist/taro-components/p-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-59d38db0.entry.js → p-3bb72c08.entry.js} +1 -1
- package/dist/taro-components/{p-15bea37d.entry.js → p-3d3cd72f.entry.js} +1 -1
- package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
- package/dist/taro-components/p-44a199e4.entry.js +1 -0
- package/dist/taro-components/{p-cfbfeee8.entry.js → p-45e6f8be.entry.js} +1 -1
- package/dist/taro-components/p-46b7f84e.entry.js +1 -0
- package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
- package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
- package/dist/taro-components/p-53244eac.entry.js +1 -0
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-df5a19b0.system.entry.js → p-5ff0e954.system.entry.js} +1 -1
- package/dist/taro-components/p-61f225ef.system.js +7 -0
- package/dist/taro-components/p-62608b28.system.entry.js +1 -0
- package/dist/taro-components/{p-0303f9e0.entry.js → p-62c64770.entry.js} +1 -1
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
- package/dist/taro-components/p-671defcd.entry.js +1 -0
- package/dist/taro-components/p-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/{p-b87cf623.entry.js → p-74013ace.entry.js} +1 -1
- package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
- package/dist/taro-components/p-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-99cb65a6.system.entry.js → p-828efe43.system.entry.js} +1 -1
- package/dist/taro-components/{p-7cdad34e.system.entry.js → p-831ebd02.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ee69803.entry.js → p-832cc63a.entry.js} +1 -1
- package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
- package/dist/taro-components/p-841a2031.system.entry.js +365 -0
- package/dist/taro-components/{p-b6d6c744.entry.js → p-86205110.entry.js} +1 -1
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
- package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
- package/dist/taro-components/p-8ead6b19.entry.js +1 -0
- package/dist/taro-components/{p-ebf5b2eb.system.entry.js → p-8f466248.system.entry.js} +1 -1
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
- package/dist/taro-components/p-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-06af26db.system.entry.js → p-9ce624a4.system.entry.js} +1 -1
- package/dist/taro-components/p-a097985b.entry.js +1 -0
- package/dist/taro-components/{p-7423fc3b.system.entry.js → p-a36bfe97.system.entry.js} +1 -1
- package/dist/taro-components/p-a4721ae0.js +1 -0
- package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
- package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
- package/dist/taro-components/p-a84098b5.system.entry.js +1 -0
- package/dist/taro-components/{p-8b2bf902.system.entry.js → p-a90bfe9d.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2f6448d.system.entry.js → p-a9ab6434.system.entry.js} +1 -1
- package/dist/taro-components/{p-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-2d2f8064.entry.js → p-cfebd931.entry.js} +1 -1
- package/dist/taro-components/p-d2b6b891.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
- package/dist/taro-components/p-d7e13592.entry.js +365 -0
- package/dist/taro-components/{p-0472e474.system.entry.js → p-de573939.system.entry.js} +1 -1
- package/dist/taro-components/p-e01af6c8.entry.js +1 -0
- package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
- package/dist/taro-components/{p-527a38ee.system.entry.js → p-ec59899b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d1c2481c.system.entry.js → p-f1da4ed7.system.entry.js} +1 -1
- package/dist/taro-components/p-fc226017.entry.js +1 -0
- package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +0 -3
- package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/swiper/swiper.d.ts +2 -2
- package/dist/types/components/tabbar/tabbar.d.ts +3 -2
- package/dist/types/components/video/utils.d.ts +6 -0
- package/dist/types/components/video/video-control.d.ts +2 -2
- package/dist/types/components.d.ts +22 -0
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -8
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/components/input.js +2 -2
- package/dist-h5/react/index.js +1 -46
- package/dist-h5/react/utils/reactify-wc.js +8 -5
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/components/picker.js +2 -2
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/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 +26 -10
- package/types/Ad.d.ts +15 -15
- package/types/Audio.d.ts +3 -3
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +49 -33
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +10 -10
- package/types/Form.d.ts +8 -8
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Image.d.ts +2 -2
- package/types/Input.d.ts +41 -37
- package/types/KeyboardAccessory.d.ts +21 -8
- package/types/Label.d.ts +2 -2
- package/types/LivePlayer.d.ts +18 -18
- package/types/LivePusher.d.ts +14 -14
- package/types/Map.d.ts +33 -33
- package/types/MovableArea.d.ts +1 -1
- package/types/MovableView.d.ts +18 -18
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -7
- package/types/OpenData.d.ts +10 -10
- package/types/PageContainer.d.ts +22 -22
- package/types/Picker.d.ts +5 -5
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +6 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +7 -2
- package/types/ScrollView.d.ts +9 -9
- package/types/ShareElement.d.ts +196 -3
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +7 -7
- package/types/Switch.d.ts +3 -3
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +21 -21
- package/types/Video.d.ts +23 -23
- package/types/View.d.ts +2 -2
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +6 -6
- package/types/common.d.ts +4 -2
- package/types/index.d.ts +53 -52
- package/types/index.vue3.d.ts +157 -0
- package/types/props.ts +72 -0
- package/virtual-list/memoize.js +1 -0
- package/virtual-list/react/createListComponent.js +4 -3
- package/virtual-list/react/index.js +2 -1
- package/virtual-list/timer.js +1 -1
- package/virtual-list/vue/index.js +1 -1
- package/vue3.d.ts +3 -0
- package/LICENSE +0 -21
- package/dist/esm-es5/index-3c78bcaf.js +0 -7
- package/dist/taro-components/p-04818461.system.entry.js +0 -1
- package/dist/taro-components/p-065ec61d.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2dc57c71.system.entry.js +0 -1
- package/dist/taro-components/p-32937866.entry.js +0 -1
- package/dist/taro-components/p-33ee636a.system.js +0 -1
- package/dist/taro-components/p-37cfdd8f.js +0 -7
- package/dist/taro-components/p-3c0230ba.entry.js +0 -1
- package/dist/taro-components/p-3dfb1807.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
- package/dist/taro-components/p-554e1039.entry.js +0 -1
- package/dist/taro-components/p-56618f09.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-63ff7fa7.entry.js +0 -1
- package/dist/taro-components/p-7721e046.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-92e95d3f.entry.js +0 -1
- package/dist/taro-components/p-94c20f60.system.js +0 -7
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-9dc9c615.system.entry.js +0 -1
- package/dist/taro-components/p-9eb7dfa8.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-abe415b4.system.entry.js +0 -1
- package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
- package/dist/taro-components/p-b55fedc1.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-cb395e7d.entry.js +0 -1
- package/dist/taro-components/p-cc818a13.entry.js +0 -1
- package/dist/taro-components/p-cf55a63c.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d567b95e.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-e1040131.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fcc1c676.system.entry.js +0 -1
- package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
package/types/Camera.d.ts
CHANGED
|
@@ -4,33 +4,33 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
4
4
|
interface CameraProps extends StandardProps {
|
|
5
5
|
/** 模式,有效值为normal, scanCode
|
|
6
6
|
* @default "normal"
|
|
7
|
-
* @supported weapp, rn
|
|
7
|
+
* @supported weapp, rn, tt
|
|
8
8
|
*/
|
|
9
|
-
mode?: keyof CameraProps.
|
|
9
|
+
mode?: keyof CameraProps.Mode
|
|
10
10
|
|
|
11
11
|
/** 分辨率,不支持动态修改
|
|
12
12
|
* @default "medium"
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, tt
|
|
14
14
|
*/
|
|
15
|
-
resolution?: keyof CameraProps.
|
|
15
|
+
resolution?: keyof CameraProps.Resolution
|
|
16
16
|
|
|
17
17
|
/** 摄像头朝向
|
|
18
18
|
* @default "back"
|
|
19
|
-
* @supported weapp, rn
|
|
19
|
+
* @supported weapp, rn, tt
|
|
20
20
|
*/
|
|
21
|
-
devicePosition?: keyof CameraProps.
|
|
21
|
+
devicePosition?: keyof CameraProps.DevicePosition
|
|
22
22
|
|
|
23
23
|
/** 闪光灯
|
|
24
24
|
* @default "auto"
|
|
25
|
-
* @supported weapp, rn
|
|
25
|
+
* @supported weapp, rn, tt
|
|
26
26
|
*/
|
|
27
|
-
flash?: keyof CameraProps.
|
|
27
|
+
flash?: keyof CameraProps.Flash
|
|
28
28
|
|
|
29
29
|
/** 指定期望的相机帧数据尺寸
|
|
30
30
|
* @default "medium"
|
|
31
|
-
* @supported weapp
|
|
31
|
+
* @supported weapp, tt
|
|
32
32
|
*/
|
|
33
|
-
frameSize?: keyof CameraProps.
|
|
33
|
+
frameSize?: keyof CameraProps.FrameSize
|
|
34
34
|
|
|
35
35
|
/** 扫码识别区域,格式为[x, y, w, h],
|
|
36
36
|
* x,y是相对于camera显示区域的左上角,
|
|
@@ -41,37 +41,37 @@ interface CameraProps extends StandardProps {
|
|
|
41
41
|
|
|
42
42
|
/** 摄像头在非正常终止时触发,
|
|
43
43
|
* 如退出后台等情况
|
|
44
|
-
* @supported weapp, rn
|
|
44
|
+
* @supported weapp, rn, tt
|
|
45
45
|
*/
|
|
46
46
|
onStop?: CommonEventFunction
|
|
47
47
|
|
|
48
48
|
/** 用户不允许使用摄像头时触发
|
|
49
|
-
* @supported weapp, rn
|
|
49
|
+
* @supported weapp, rn, tt
|
|
50
50
|
*/
|
|
51
51
|
onError?: CommonEventFunction
|
|
52
52
|
|
|
53
53
|
/** 相机初始化完成时触发
|
|
54
|
-
* @supported weapp, rn
|
|
54
|
+
* @supported weapp, rn, tt
|
|
55
55
|
*/
|
|
56
56
|
onInitDone?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
|
|
57
57
|
|
|
58
58
|
/** 在成功识别到一维码时触发,
|
|
59
59
|
* 仅在 mode="scanCode" 时生效
|
|
60
|
-
* @supported weapp, rn
|
|
60
|
+
* @supported weapp, rn, tt
|
|
61
61
|
*/
|
|
62
62
|
onScanCode?: CommonEventFunction
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
declare namespace CameraProps {
|
|
66
66
|
/** mode 的合法值 */
|
|
67
|
-
interface
|
|
67
|
+
interface Mode {
|
|
68
68
|
/** 相机模式 */
|
|
69
69
|
normal
|
|
70
70
|
/** 扫码模式 */
|
|
71
71
|
scanCode
|
|
72
72
|
}
|
|
73
73
|
/** resolution 的合法值 */
|
|
74
|
-
interface
|
|
74
|
+
interface Resolution {
|
|
75
75
|
/** 低 */
|
|
76
76
|
low
|
|
77
77
|
/** 中 */
|
|
@@ -80,14 +80,14 @@ declare namespace CameraProps {
|
|
|
80
80
|
high
|
|
81
81
|
}
|
|
82
82
|
/** device-position 的合法值 */
|
|
83
|
-
interface
|
|
83
|
+
interface DevicePosition {
|
|
84
84
|
/** 前置 */
|
|
85
85
|
front
|
|
86
86
|
/** 后置 */
|
|
87
87
|
back
|
|
88
88
|
}
|
|
89
89
|
/** flash 的合法值 */
|
|
90
|
-
interface
|
|
90
|
+
interface Flash {
|
|
91
91
|
/** 自动 */
|
|
92
92
|
auto
|
|
93
93
|
/** 打开 */
|
|
@@ -98,7 +98,7 @@ declare namespace CameraProps {
|
|
|
98
98
|
torch
|
|
99
99
|
}
|
|
100
100
|
/** frame-size 的合法值 */
|
|
101
|
-
interface
|
|
101
|
+
interface FrameSize {
|
|
102
102
|
/** 小尺寸帧数据 */
|
|
103
103
|
small
|
|
104
104
|
/** 中尺寸帧数据 */
|
|
@@ -115,7 +115,7 @@ declare namespace CameraProps {
|
|
|
115
115
|
|
|
116
116
|
/** 系统相机
|
|
117
117
|
* @classification media
|
|
118
|
-
* @supported weapp, rn
|
|
118
|
+
* @supported weapp, rn, tt
|
|
119
119
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
120
120
|
*/
|
|
121
121
|
declare const Camera: ComponentType<CameraProps>
|
package/types/Canvas.d.ts
CHANGED
package/types/Checkbox.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
4
4
|
interface CheckboxProps extends StandardProps {
|
|
5
5
|
|
|
6
6
|
/** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
|
|
7
|
-
* @supported weapp, rn
|
|
7
|
+
* @supported weapp, rn, tt
|
|
8
8
|
*/
|
|
9
9
|
value: string
|
|
10
10
|
|
|
11
11
|
/** 是否禁用
|
|
12
|
-
* @supported weapp, h5, rn
|
|
12
|
+
* @supported weapp, h5, rn, tt
|
|
13
13
|
* @default false
|
|
14
14
|
*/
|
|
15
15
|
disabled?: boolean
|
|
16
16
|
|
|
17
17
|
/** 当前是否选中,可用来设置默认选中
|
|
18
|
-
* @supported weapp, h5, rn
|
|
18
|
+
* @supported weapp, h5, rn, tt
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
checked?: boolean
|
|
22
22
|
|
|
23
23
|
/** checkbox的颜色,同 css 的 color
|
|
24
|
-
* @supported weapp, h5, rn
|
|
24
|
+
* @supported weapp, h5, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
color?: string
|
|
27
27
|
|
|
@@ -116,7 +116,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
116
116
|
* </view>
|
|
117
117
|
* </view>
|
|
118
118
|
* </template>
|
|
119
|
-
*
|
|
119
|
+
*
|
|
120
120
|
* <script>
|
|
121
121
|
* export default {
|
|
122
122
|
* data() {
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
5
5
|
/** 表单组件中加上 name 来作为 key
|
|
6
|
-
* @supported h5
|
|
6
|
+
* @supported h5, tt
|
|
7
7
|
*/
|
|
8
8
|
name?: string
|
|
9
9
|
|
|
10
10
|
/** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
* event.detail = { value: [选中的checkbox的 value 的数组] }
|
|
13
|
-
* @supported weapp, h5, rn
|
|
13
|
+
* @supported weapp, h5, rn, tt
|
|
14
14
|
*/
|
|
15
15
|
onChange?: CommonEventFunction<{ value: string[] }>
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/** 多项选择器,内部由多个checkbox组成
|
|
19
19
|
* @classification forms
|
|
20
|
-
* @supported weapp, h5, rn
|
|
20
|
+
* @supported weapp, h5, rn, tt
|
|
21
21
|
* @example
|
|
22
22
|
* ```tsx
|
|
23
23
|
* export default class PageCheckbox extends Component {
|
package/types/CoverImage.d.ts
CHANGED
package/types/CoverView.d.ts
CHANGED
package/types/CustomWrapper.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface CustomWrapperProps extends StandardProps {
|
|
|
11
11
|
* ```tsx
|
|
12
12
|
* import { Component } from 'react'
|
|
13
13
|
* import { CustomWrapper, View, Text } from '@tarojs/components'
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* export default class C extends Component {
|
|
16
16
|
* render () {
|
|
17
17
|
* return (
|
|
@@ -27,4 +27,4 @@ interface CustomWrapperProps extends StandardProps {
|
|
|
27
27
|
*/
|
|
28
28
|
declare const CustomWrapper: ComponentType<CustomWrapperProps>
|
|
29
29
|
|
|
30
|
-
export { CustomWrapper, CustomWrapperProps }
|
|
30
|
+
export { CustomWrapper, CustomWrapperProps }
|
package/types/Editor.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface EditorProps extends StandardProps {
|
|
|
28
28
|
/** 点击图片时显示修改尺寸控件
|
|
29
29
|
* @default false
|
|
30
30
|
* @supported weapp
|
|
31
|
-
*/
|
|
31
|
+
*/
|
|
32
32
|
showImgResize?: boolean
|
|
33
33
|
|
|
34
34
|
/** 编辑器初始化完成时触发
|
|
@@ -67,15 +67,15 @@ declare namespace EditorProps {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/** 富文本编辑器,可以对图片、文字进行编辑。
|
|
70
|
-
*
|
|
70
|
+
*
|
|
71
71
|
* 编辑器导出内容支持带标签的 html和纯文本的 text,编辑器内部采用 delta 格式进行存储。
|
|
72
|
-
*
|
|
72
|
+
*
|
|
73
73
|
* 通过 setContents 接口设置内容时,解析插入的 html 可能会由于一些非法标签导致解析错误,建议开发者在小程序内使用时通过 delta 进行插入。
|
|
74
|
-
*
|
|
74
|
+
*
|
|
75
75
|
* 富文本组件内部引入了一些基本的样式使得内容可以正确的展示,开发时可以进行覆盖。需要注意的是,在其它组件或环境中使用富文本组件导出的 html 时,需要额外引入 这段样式,并维护 `<ql-container><ql-editor></ql-editor></ql-container>` 的结构。
|
|
76
|
-
*
|
|
76
|
+
*
|
|
77
77
|
* 图片控件仅初始化时设置有效。
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
79
|
* *编辑器内支持部分 HTML 标签和内联样式,不支持 **class** 和 **id***
|
|
80
80
|
* @classification forms
|
|
81
81
|
* @supported weapp
|
|
@@ -85,17 +85,17 @@ declare namespace EditorProps {
|
|
|
85
85
|
* state = {
|
|
86
86
|
* placeholder: '来,输入隔壁的名字试试...'
|
|
87
87
|
* }
|
|
88
|
-
*
|
|
88
|
+
*
|
|
89
89
|
* editorReady = e => {
|
|
90
90
|
* Taro.createSelectorQuery().select('#editor').context((res) => {
|
|
91
91
|
* this.editorCtx = res.context
|
|
92
92
|
* }).exec()
|
|
93
93
|
* }
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* undo = e => {
|
|
96
96
|
* this.editorCtx.undo()
|
|
97
97
|
* }
|
|
98
|
-
*
|
|
98
|
+
*
|
|
99
99
|
* render () {
|
|
100
100
|
* return (
|
|
101
101
|
* <View>
|
|
@@ -114,7 +114,7 @@ declare namespace EditorProps {
|
|
|
114
114
|
* <button type="warn" `@tap="undo">撤销</button>
|
|
115
115
|
* </view>
|
|
116
116
|
* </template>
|
|
117
|
-
*
|
|
117
|
+
*
|
|
118
118
|
* <script>
|
|
119
119
|
* import Taro from '@tarojs/taro'
|
|
120
120
|
* export default {
|
package/types/Form.d.ts
CHANGED
|
@@ -20,12 +20,12 @@ interface FormProps extends StandardProps {
|
|
|
20
20
|
|
|
21
21
|
/** 携带 form 中的数据触发 submit 事件
|
|
22
22
|
* event.detail = { value : {'name': 'value'} , formId: '' }
|
|
23
|
-
* @supported weapp, rn
|
|
23
|
+
* @supported weapp, rn, tt
|
|
24
24
|
*/
|
|
25
25
|
onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
|
|
26
26
|
|
|
27
27
|
/** 表单重置时会触发 reset 事件
|
|
28
|
-
* @supported weapp, h5, rn
|
|
28
|
+
* @supported weapp, h5, rn, tt
|
|
29
29
|
*/
|
|
30
30
|
onReset?: CommonEventFunction
|
|
31
31
|
}
|
|
@@ -46,22 +46,22 @@ declare namespace FormProps {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/** 表单。将组件内的用户输入的 switch input checkbox slider radio picker 提交。
|
|
49
|
-
*
|
|
49
|
+
*
|
|
50
50
|
* 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
|
|
51
51
|
* @classification forms
|
|
52
52
|
* @supported weapp, h5, rn
|
|
53
53
|
* @example_react
|
|
54
54
|
* ```tsx
|
|
55
55
|
* class App extends Component {
|
|
56
|
-
*
|
|
56
|
+
*
|
|
57
57
|
* formSubmit = e => {
|
|
58
58
|
* console.log(e)
|
|
59
59
|
* }
|
|
60
|
-
*
|
|
60
|
+
*
|
|
61
61
|
* formReset = e => {
|
|
62
62
|
* console.log(e)
|
|
63
63
|
* }
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* render () {
|
|
66
66
|
* return (
|
|
67
67
|
* <Form onSubmit={this.formSubmit} onReset={this.formReset} >
|
|
@@ -86,7 +86,7 @@ declare namespace FormProps {
|
|
|
86
86
|
* </view>
|
|
87
87
|
* </form>
|
|
88
88
|
* </template>
|
|
89
|
-
*
|
|
89
|
+
*
|
|
90
90
|
* <script>
|
|
91
91
|
* export default {
|
|
92
92
|
* data() {
|
|
@@ -96,7 +96,7 @@ declare namespace FormProps {
|
|
|
96
96
|
* formSubmit (e) {
|
|
97
97
|
* console.log(e)
|
|
98
98
|
* },
|
|
99
|
-
*
|
|
99
|
+
*
|
|
100
100
|
* formReset (e) {
|
|
101
101
|
* console.log(e)
|
|
102
102
|
* }
|
|
@@ -6,12 +6,12 @@ interface FunctionalPageNavigatorProps extends StandardProps {
|
|
|
6
6
|
* @default "release"
|
|
7
7
|
* @supported weapp
|
|
8
8
|
*/
|
|
9
|
-
version?: keyof FunctionalPageNavigatorProps.
|
|
9
|
+
version?: keyof FunctionalPageNavigatorProps.Version
|
|
10
10
|
|
|
11
11
|
/** 要跳转到的功能页
|
|
12
12
|
* @supported weapp
|
|
13
13
|
*/
|
|
14
|
-
name?: keyof FunctionalPageNavigatorProps.
|
|
14
|
+
name?: keyof FunctionalPageNavigatorProps.Name
|
|
15
15
|
|
|
16
16
|
/** 功能页参数,参数格式与具体功能页相关
|
|
17
17
|
* @supported weapp
|
|
@@ -36,7 +36,7 @@ interface FunctionalPageNavigatorProps extends StandardProps {
|
|
|
36
36
|
|
|
37
37
|
declare namespace FunctionalPageNavigatorProps {
|
|
38
38
|
/** version 的合法值 */
|
|
39
|
-
interface
|
|
39
|
+
interface Version {
|
|
40
40
|
/** 开发版 */
|
|
41
41
|
develop
|
|
42
42
|
/** 体验版 */
|
|
@@ -45,7 +45,7 @@ declare namespace FunctionalPageNavigatorProps {
|
|
|
45
45
|
release
|
|
46
46
|
}
|
|
47
47
|
/** name 的合法值 */
|
|
48
|
-
interface
|
|
48
|
+
interface Name {
|
|
49
49
|
/** [用户信息功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/user-info.html) */
|
|
50
50
|
loginAndGetUserInfo
|
|
51
51
|
/** [支付功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/request-payment.html) */
|
package/types/Image.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface ImageProps extends StandardProps {
|
|
|
12
12
|
* @supported weapp, h5, rn, swan, alipay, tt
|
|
13
13
|
* @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
|
|
14
14
|
*/
|
|
15
|
-
mode?: keyof ImageProps.
|
|
15
|
+
mode?: keyof ImageProps.Mode
|
|
16
16
|
|
|
17
17
|
/** 默认不解析 webP 格式,只支持网络资源
|
|
18
18
|
* @default false
|
|
@@ -62,7 +62,7 @@ interface ImageProps extends StandardProps {
|
|
|
62
62
|
|
|
63
63
|
declare namespace ImageProps {
|
|
64
64
|
/** mode 的合法值 */
|
|
65
|
-
interface
|
|
65
|
+
interface Mode {
|
|
66
66
|
/** 缩放模式,不保持纵横比缩放图片,使图片的宽高完全拉伸至填满 image 元素 */
|
|
67
67
|
scaleToFill
|
|
68
68
|
/** 缩放模式,保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整地将图片显示出来。 */
|
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
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,13 +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
71
|
/** 设置键盘右下角按钮的文字
|
|
67
72
|
* @default done
|
|
68
|
-
* @supported weapp, rn
|
|
73
|
+
* @supported weapp, rn, tt
|
|
69
74
|
*/
|
|
70
75
|
confirmType?: 'send' | 'search' | 'next' | 'go' | 'done'
|
|
71
76
|
|
|
@@ -76,25 +81,25 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
76
81
|
confirmHold?: boolean
|
|
77
82
|
|
|
78
83
|
/** 指定focus时的光标位置
|
|
79
|
-
* @supported weapp, rn
|
|
84
|
+
* @supported weapp, rn, tt
|
|
80
85
|
*/
|
|
81
86
|
cursor?: number
|
|
82
87
|
|
|
83
88
|
/** 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
84
89
|
* @default -1
|
|
85
|
-
* @supported weapp, rn
|
|
90
|
+
* @supported weapp, rn, tt
|
|
86
91
|
*/
|
|
87
92
|
selectionStart?: number
|
|
88
93
|
|
|
89
94
|
/** 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
90
95
|
* @default -1
|
|
91
|
-
* @supported weapp, rn
|
|
96
|
+
* @supported weapp, rn, tt
|
|
92
97
|
*/
|
|
93
98
|
selectionEnd?: number
|
|
94
99
|
|
|
95
100
|
/** 键盘弹起时,是否自动上推页面
|
|
96
101
|
* @default false
|
|
97
|
-
* @supported weapp
|
|
102
|
+
* @supported weapp, tt
|
|
98
103
|
*/
|
|
99
104
|
adjustPosition?: boolean
|
|
100
105
|
|
|
@@ -161,26 +166,26 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
161
166
|
controlled?: boolean
|
|
162
167
|
|
|
163
168
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
164
|
-
* @supported weapp, h5, rn
|
|
169
|
+
* @supported weapp, h5, rn, tt
|
|
165
170
|
*/
|
|
166
171
|
onInput?: CommonEventFunction<InputProps.inputEventDetail>
|
|
167
172
|
|
|
168
173
|
/** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
|
|
169
|
-
* @supported weapp, h5, rn
|
|
174
|
+
* @supported weapp, h5, rn, tt
|
|
170
175
|
*/
|
|
171
176
|
onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
|
|
172
177
|
|
|
173
178
|
/** 输入框失去焦点时触发
|
|
174
179
|
*
|
|
175
180
|
* event.detail = {value: value}
|
|
176
|
-
* @supported weapp, h5, rn
|
|
181
|
+
* @supported weapp, h5, rn, tt
|
|
177
182
|
*/
|
|
178
183
|
onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
179
184
|
|
|
180
185
|
/** 点击完成按钮时触发
|
|
181
186
|
*
|
|
182
187
|
* event.detail = {value: value}
|
|
183
|
-
* @supported weapp, rn
|
|
188
|
+
* @supported weapp, rn, tt
|
|
184
189
|
* @h5 借用[Form 组件](./form)的`onSubmit`事件来替代
|
|
185
190
|
*/
|
|
186
191
|
onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
@@ -233,25 +238,24 @@ declare namespace InputProps {
|
|
|
233
238
|
* @example_react
|
|
234
239
|
* ```tsx
|
|
235
240
|
* class App extends Component {
|
|
236
|
-
*
|
|
237
241
|
* render () {
|
|
238
242
|
* return (
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
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>
|
|
255
259
|
* )
|
|
256
260
|
* }
|
|
257
261
|
* }
|
|
@@ -263,7 +267,7 @@ declare namespace InputProps {
|
|
|
263
267
|
* <text>可以自动聚焦的 input</text>
|
|
264
268
|
* <input type="text" placeholder="将会获取焦点" :focus="true" />
|
|
265
269
|
* <text>控制最大输入长度的 input</text>
|
|
266
|
-
* <input type="text" placeholder="最大输入长度为 10"
|
|
270
|
+
* <input type="text" placeholder="最大输入长度为 10" maxLength="10"/>
|
|
267
271
|
* <text>数字输入的 input</text>
|
|
268
272
|
* <input type="number" placeholder="这是一个数字输入框"/>
|
|
269
273
|
* <text>密码输入的 input</text>
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
3
|
|
|
4
|
+
/** @ignore */
|
|
4
5
|
type KeyboardAccessoryProps = StandardProps
|
|
5
6
|
|
|
6
|
-
/** 设置
|
|
7
|
+
/** 设置 Input / Textarea 聚焦时键盘上方 CoverView / CoverImage 工具栏视图。需要配置 Taro 插件 `@tarojs/plugin-platform-weapp` 的 `enablekeyboardAccessory` 参数为 `true` 后才能使用,请参考:[#9548](https://github.com/NervJS/taro/issues/9548#issuecomment-891682216)。
|
|
7
8
|
*
|
|
8
9
|
* @classification forms
|
|
9
10
|
* @supported weapp
|
|
10
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
|
+
*
|
|
11
24
|
* ```tsx
|
|
12
25
|
* class App extends Component {
|
|
13
26
|
* render () {
|
|
14
27
|
* return (
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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>
|
|
21
34
|
* )
|
|
22
35
|
* }
|
|
23
36
|
* }
|
package/types/Label.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ interface LabelProps extends StandardProps {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/** 用来改进表单组件的可用性。
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
13
13
|
* @classification forms
|
|
14
14
|
* @supported weapp, swan, alipay, tt, h5, rn
|
|
15
15
|
* @example_react
|
|
16
16
|
* ```tsx
|
|
17
17
|
* class App extends Components {
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* render () {
|
|
20
20
|
* return (
|
|
21
21
|
* <RadioGroup>
|