@tarojs/components 3.5.0-canary.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
- package/dist/cjs/index-47a1959e.js +34 -0
- package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-input-core.cjs.entry.js +23 -19
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +24 -10
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +6 -14
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +15 -18
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +41 -40
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +5 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -23
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +7 -4
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +23 -22
- package/dist/collection/components/navigator/navigator.js +2 -2
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +218 -4
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +22 -8
- package/dist/collection/components/pull-to-refresh/style/index.css +53 -49
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +3 -11
- package/dist/collection/components/swiper/style/index.css +21 -9
- package/dist/collection/components/swiper/swiper.js +10 -13
- package/dist/collection/components/tabbar/style/index.css +9 -6
- package/dist/collection/components/tabbar/tabbar.js +10 -15
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -1
- package/dist/collection/components/video/style/index.css +88 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video-control.js +9 -9
- package/dist/collection/components/video/video.js +57 -9
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/view/view.js +2 -2
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +23 -83
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
- package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-input-core.entry.js +23 -19
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +4 -4
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +24 -10
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +5 -13
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +12 -15
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +41 -40
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +5 -3
- package/dist/esm/taro-video-control_3.entry.js +27867 -223
- package/dist/esm/taro-view-core.entry.js +5 -5
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-1d8e8acd.js +7 -0
- package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
- package/dist/esm-es5/index-cad8203e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-019591c8.system.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
- package/dist/taro-components/p-0996daee.entry.js +1 -0
- package/dist/taro-components/{p-94502fc3.entry.js → p-0ca42006.entry.js} +1 -1
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/{p-336f2b2a.system.entry.js → p-0d1e0e91.system.entry.js} +1 -1
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/p-0f42b8a4.entry.js +1 -0
- package/dist/taro-components/{p-cdffee54.system.entry.js → p-12deba0b.system.entry.js} +1 -1
- package/dist/taro-components/p-133e3ac4.entry.js +1 -0
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
- package/dist/taro-components/{p-14dbbb42.entry.js → p-16c1e564.entry.js} +1 -1
- package/dist/taro-components/{p-0c2982fc.system.entry.js → p-178a3adf.system.entry.js} +1 -1
- package/dist/taro-components/p-1e0406ec.system.entry.js +1 -0
- package/dist/taro-components/p-1e516bd0.entry.js +1 -0
- package/dist/taro-components/p-2241b671.system.js +1 -0
- package/dist/taro-components/p-26e9ce75.entry.js +1 -0
- package/dist/taro-components/{p-98b47fc9.system.entry.js → p-2887213d.system.entry.js} +1 -1
- package/dist/taro-components/{p-3334ac67.system.entry.js → p-29b7c721.system.entry.js} +1 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
- package/dist/taro-components/{p-e03fa2d5.system.entry.js → p-2e8a1479.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
- package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-3b801a38.system.entry.js} +1 -1
- package/dist/taro-components/p-3b85bb4b.system.entry.js +1 -0
- package/dist/taro-components/{p-59d38db0.entry.js → p-3bb72c08.entry.js} +1 -1
- package/dist/taro-components/{p-15bea37d.entry.js → p-3d3cd72f.entry.js} +1 -1
- package/dist/taro-components/p-3e223f2f.system.entry.js +1 -0
- package/dist/taro-components/p-430d72e8.entry.js +1 -0
- package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
- package/dist/taro-components/p-44a199e4.entry.js +1 -0
- package/dist/taro-components/{p-cfbfeee8.entry.js → p-45e6f8be.entry.js} +1 -1
- package/dist/taro-components/p-46b7f84e.entry.js +1 -0
- package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
- package/dist/taro-components/p-49954245.system.entry.js +1 -0
- package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
- package/dist/taro-components/p-53244eac.entry.js +1 -0
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-df5a19b0.system.entry.js → p-5ff0e954.system.entry.js} +1 -1
- package/dist/taro-components/p-61f225ef.system.js +7 -0
- package/dist/taro-components/p-62608b28.system.entry.js +1 -0
- package/dist/taro-components/{p-0303f9e0.entry.js → p-62c64770.entry.js} +1 -1
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
- package/dist/taro-components/p-671defcd.entry.js +1 -0
- package/dist/taro-components/p-69334f7c.entry.js +1 -0
- package/dist/taro-components/p-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/{p-b87cf623.entry.js → p-74013ace.entry.js} +1 -1
- package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
- package/dist/taro-components/p-76724e58.js +7 -0
- package/dist/taro-components/{p-1e4f1702.system.entry.js → p-78676120.system.entry.js} +1 -1
- package/dist/taro-components/p-7b2049b7.entry.js +1 -0
- package/dist/taro-components/p-7dc268ee.entry.js +1 -0
- package/dist/taro-components/p-7f7aa688.entry.js +1 -0
- package/dist/taro-components/p-80abb865.entry.js +1 -0
- package/dist/taro-components/{p-55b0a30b.entry.js → p-81976128.entry.js} +1 -1
- package/dist/taro-components/p-81dc5b7b.entry.js +1 -0
- package/dist/taro-components/{p-99cb65a6.system.entry.js → p-828efe43.system.entry.js} +1 -1
- package/dist/taro-components/{p-7cdad34e.system.entry.js → p-831ebd02.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ee69803.entry.js → p-832cc63a.entry.js} +1 -1
- package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
- package/dist/taro-components/p-841a2031.system.entry.js +365 -0
- package/dist/taro-components/{p-b6d6c744.entry.js → p-86205110.entry.js} +1 -1
- package/dist/taro-components/p-88063d40.system.entry.js +1 -0
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
- package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
- package/dist/taro-components/p-8ead6b19.entry.js +1 -0
- package/dist/taro-components/{p-ebf5b2eb.system.entry.js → p-8f466248.system.entry.js} +1 -1
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
- package/dist/taro-components/p-95e51d62.entry.js +1 -0
- package/dist/taro-components/p-9961074d.entry.js +1 -0
- package/dist/taro-components/{p-3643d8f7.system.entry.js → p-9b90554b.system.entry.js} +1 -1
- package/dist/taro-components/{p-06af26db.system.entry.js → p-9ce624a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-7423fc3b.system.entry.js → p-a36bfe97.system.entry.js} +1 -1
- package/dist/taro-components/p-a4721ae0.js +1 -0
- package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
- package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
- package/dist/taro-components/p-a900b437.system.entry.js +1 -0
- package/dist/taro-components/{p-8b2bf902.system.entry.js → p-a90bfe9d.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2f6448d.system.entry.js → p-a9ab6434.system.entry.js} +1 -1
- package/dist/taro-components/p-abb9c7d0.entry.js +1 -0
- package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-ac398961.system.entry.js} +1 -1
- package/dist/taro-components/{p-4dbed323.entry.js → p-ac56ffed.entry.js} +1 -1
- package/dist/taro-components/{p-fc4939c6.system.entry.js → p-baa5019a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fb0959c1.system.entry.js → p-c1458fbe.system.entry.js} +1 -1
- package/dist/taro-components/p-c9b73495.entry.js +1 -0
- package/dist/taro-components/{p-8f90fca9.system.entry.js → p-ca7ad427.system.entry.js} +1 -1
- package/dist/taro-components/{p-8bc82aaa.entry.js → p-ce0489a6.entry.js} +1 -1
- package/dist/taro-components/{p-9d0ab7c4.entry.js → p-ce46f79d.entry.js} +1 -1
- package/dist/taro-components/{p-2d2f8064.entry.js → p-cfebd931.entry.js} +1 -1
- package/dist/taro-components/p-d2b6b891.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
- package/dist/taro-components/p-d7e13592.entry.js +365 -0
- package/dist/taro-components/{p-0472e474.system.entry.js → p-de573939.system.entry.js} +1 -1
- package/dist/taro-components/p-e01af6c8.entry.js +1 -0
- package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
- package/dist/taro-components/{p-527a38ee.system.entry.js → p-ec59899b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d1c2481c.system.entry.js → p-f1da4ed7.system.entry.js} +1 -1
- package/dist/taro-components/p-fc226017.entry.js +1 -0
- package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +1 -3
- package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/swiper/swiper.d.ts +2 -2
- package/dist/types/components/tabbar/tabbar.d.ts +3 -2
- package/dist/types/components/video/utils.d.ts +6 -0
- package/dist/types/components/video/video-control.d.ts +2 -2
- package/dist/types/components.d.ts +22 -0
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -8
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/components/input.js +2 -2
- package/dist-h5/react/index.js +1 -46
- package/dist-h5/react/utils/reactify-wc.js +8 -5
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/components/picker.js +2 -2
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/createComponent.js +1 -0
- package/dist-h5/vue/createFormsComponent.js +3 -3
- package/dist-h5/vue/index.js +23 -26
- package/dist-h5/vue/mixins/listeners.js +2 -2
- package/dist-h5/vue3/components/icon.js +3 -0
- package/dist-h5/vue3/components/image.js +3 -0
- package/dist-h5/vue3/components/index.js +64 -0
- package/dist-h5/vue3/components/scroll-view.js +3 -0
- package/dist-h5/vue3/components/text.js +3 -0
- package/dist-h5/vue3/createComponent.js +3 -0
- package/dist-h5/vue3/createFormsComponent.js +6 -3
- package/dist-h5/vue3/forwardRef.js +11 -0
- package/dist-h5/vue3/index.js +12 -29
- package/package.json +37 -19
- package/types/Ad.d.ts +15 -15
- package/types/Audio.d.ts +3 -3
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +50 -34
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +10 -10
- package/types/Form.d.ts +8 -8
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Image.d.ts +2 -2
- package/types/Input.d.ts +41 -37
- package/types/KeyboardAccessory.d.ts +21 -8
- package/types/Label.d.ts +2 -2
- package/types/LivePlayer.d.ts +18 -18
- package/types/LivePusher.d.ts +14 -14
- package/types/Map.d.ts +33 -33
- package/types/MovableArea.d.ts +1 -1
- package/types/MovableView.d.ts +18 -18
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -7
- package/types/OpenData.d.ts +10 -10
- package/types/PageContainer.d.ts +22 -22
- package/types/Picker.d.ts +5 -5
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +6 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +7 -2
- package/types/ScrollView.d.ts +9 -9
- package/types/ShareElement.d.ts +196 -3
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +7 -7
- package/types/Switch.d.ts +3 -3
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +21 -21
- package/types/Video.d.ts +23 -23
- package/types/View.d.ts +4 -4
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +6 -6
- package/types/common.d.ts +4 -2
- package/types/index.d.ts +53 -52
- package/types/index.vue3.d.ts +157 -0
- package/types/props.ts +72 -0
- package/virtual-list/memoize.js +1 -0
- package/virtual-list/react/createListComponent.js +4 -3
- package/virtual-list/react/index.js +2 -1
- package/virtual-list/timer.js +1 -1
- package/virtual-list/vue/index.js +1 -1
- package/vue3.d.ts +3 -0
- package/dist/esm-es5/index-3c78bcaf.js +0 -7
- package/dist/taro-components/p-04818461.system.entry.js +0 -1
- package/dist/taro-components/p-065ec61d.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2dc57c71.system.entry.js +0 -1
- package/dist/taro-components/p-32937866.entry.js +0 -1
- package/dist/taro-components/p-33ee636a.system.js +0 -1
- package/dist/taro-components/p-37cfdd8f.js +0 -7
- package/dist/taro-components/p-3c0230ba.entry.js +0 -1
- package/dist/taro-components/p-3dfb1807.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
- package/dist/taro-components/p-554e1039.entry.js +0 -1
- package/dist/taro-components/p-56618f09.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-63ff7fa7.entry.js +0 -1
- package/dist/taro-components/p-7721e046.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-92e95d3f.entry.js +0 -1
- package/dist/taro-components/p-94c20f60.system.js +0 -7
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-9dc9c615.system.entry.js +0 -1
- package/dist/taro-components/p-9eb7dfa8.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-abe415b4.system.entry.js +0 -1
- package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
- package/dist/taro-components/p-b55fedc1.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-cb395e7d.entry.js +0 -1
- package/dist/taro-components/p-cc818a13.entry.js +0 -1
- package/dist/taro-components/p-cf55a63c.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d567b95e.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-e1040131.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fcc1c676.system.entry.js +0 -1
- package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
|
@@ -5,24 +5,24 @@ interface OfficialAccountProps extends StandardProps {
|
|
|
5
5
|
/** 组件加载成功时触发
|
|
6
6
|
* @supported weapp
|
|
7
7
|
*/
|
|
8
|
-
onLoad?: CommonEventFunction<OfficialAccountProps.
|
|
8
|
+
onLoad?: CommonEventFunction<OfficialAccountProps.Detail>
|
|
9
9
|
|
|
10
10
|
/** 组件加载失败时触发
|
|
11
11
|
* @supported weapp
|
|
12
12
|
*/
|
|
13
|
-
onError?: CommonEventFunction<OfficialAccountProps.
|
|
13
|
+
onError?: CommonEventFunction<OfficialAccountProps.Detail>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare namespace OfficialAccountProps {
|
|
17
17
|
/** detail 对象 */
|
|
18
|
-
interface
|
|
18
|
+
interface Detail {
|
|
19
19
|
/** 状态码 */
|
|
20
20
|
status: number
|
|
21
21
|
/** 错误信息 */
|
|
22
22
|
errMsg: string
|
|
23
23
|
}
|
|
24
24
|
/** status 有效值 */
|
|
25
|
-
interface
|
|
25
|
+
interface Status {
|
|
26
26
|
/** 网络错误 */
|
|
27
27
|
'-2'
|
|
28
28
|
/** 数据解析错误 */
|
|
@@ -45,12 +45,12 @@ declare namespace OfficialAccountProps {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/** 公众号关注组件。当用户扫小程序码打开小程序时,开发者可在小程序内配置公众号关注组件,方便用户快捷关注公众号,可嵌套在原生组件内。
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
* Tips
|
|
50
50
|
* 使用组件前,需前往小程序后台,在“设置”->“关注公众号”中设置要展示的公众号。注:设置的公众号需与小程序主体一致。
|
|
51
|
-
*
|
|
51
|
+
*
|
|
52
52
|
* 在一个小程序的生命周期内,只有从以下场景进入小程序,才具有展示引导关注公众号组件的能力:
|
|
53
|
-
*
|
|
53
|
+
*
|
|
54
54
|
* 当小程序从扫小程序码场景(场景值1047,场景值1124)打开时
|
|
55
55
|
* 当小程序从聊天顶部场景(场景值1089)中的「最近使用」内打开时,若小程序之前未被销毁,则该组件保持上一次打开小程序时的状态
|
|
56
56
|
* 当从其他小程序返回小程序(场景值1038)时,若小程序之前未被销毁,则该组件保持上一次打开小程序时的状态
|
package/types/OpenData.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface OpenDataProps extends StandardProps {
|
|
5
5
|
/** 开放数据类型
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
|
-
type: keyof OpenDataProps.
|
|
8
|
+
type: keyof OpenDataProps.Type
|
|
9
9
|
/** 当 type="groupName" 时生效, 群id
|
|
10
10
|
* @supported weapp
|
|
11
11
|
*/
|
|
@@ -14,27 +14,27 @@ interface OpenDataProps extends StandardProps {
|
|
|
14
14
|
* @default "en"
|
|
15
15
|
* @supported weapp
|
|
16
16
|
*/
|
|
17
|
-
lang?: keyof OpenDataProps.
|
|
17
|
+
lang?: keyof OpenDataProps.Lang
|
|
18
18
|
|
|
19
19
|
/** 数据为空时的默认文案
|
|
20
|
-
* @supported weapp
|
|
20
|
+
* @supported weapp, tt
|
|
21
21
|
*/
|
|
22
22
|
defaultText?: string
|
|
23
23
|
|
|
24
24
|
/** 用户头像为空时的默认图片,支持相对路径和网络图片路径
|
|
25
|
-
* @supported weapp
|
|
25
|
+
* @supported weapp, tt
|
|
26
26
|
*/
|
|
27
27
|
defaultAvatar?: string
|
|
28
28
|
|
|
29
29
|
/** 群名称或用户信息为空时触发
|
|
30
|
-
* @supported weapp
|
|
30
|
+
* @supported weapp, tt
|
|
31
31
|
*/
|
|
32
32
|
onError?: CommonEventFunction
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare namespace OpenDataProps {
|
|
36
36
|
/** type 的合法值 */
|
|
37
|
-
interface
|
|
37
|
+
interface Type {
|
|
38
38
|
/** 拉取群名称 */
|
|
39
39
|
groupName
|
|
40
40
|
/** 用户昵称 */
|
|
@@ -53,7 +53,7 @@ declare namespace OpenDataProps {
|
|
|
53
53
|
userLanguage
|
|
54
54
|
}
|
|
55
55
|
/** lang 的合法值 */
|
|
56
|
-
interface
|
|
56
|
+
interface Lang {
|
|
57
57
|
/** 英文 */
|
|
58
58
|
en
|
|
59
59
|
/** 简体中文 */
|
|
@@ -63,9 +63,9 @@ declare namespace OpenDataProps {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/**
|
|
66
|
+
/** 用于展示平台开放的数据
|
|
67
67
|
* @classification open
|
|
68
|
-
* @supported weapp
|
|
68
|
+
* @supported weapp, tt
|
|
69
69
|
* @example_react
|
|
70
70
|
* ```tsx
|
|
71
71
|
* class App extends Component {
|
package/types/PageContainer.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import { StandardProps, CommonEventFunction, BaseEventOrigFunction } from './com
|
|
|
4
4
|
interface PageContainerProps extends StandardProps {
|
|
5
5
|
/** 是否显示容器组件
|
|
6
6
|
* @default false
|
|
7
|
-
* @supported weapp
|
|
7
|
+
* @supported weapp, rn
|
|
8
8
|
*/
|
|
9
9
|
show?: boolean
|
|
10
10
|
|
|
11
11
|
/** 动画时长,单位毫秒
|
|
12
12
|
* @default 300
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, rn
|
|
14
14
|
*/
|
|
15
15
|
duration?: number
|
|
16
16
|
|
|
@@ -22,65 +22,65 @@ interface PageContainerProps extends StandardProps {
|
|
|
22
22
|
|
|
23
23
|
/** 是否显示遮罩层
|
|
24
24
|
* @default true
|
|
25
|
-
* @supported weapp
|
|
25
|
+
* @supported weapp, rn
|
|
26
26
|
*/
|
|
27
27
|
overlay?: boolean
|
|
28
28
|
|
|
29
29
|
/** 弹出位置,可选值为 top bottom right center
|
|
30
30
|
* @default bottom
|
|
31
|
-
* @supported weapp
|
|
31
|
+
* @supported weapp, rn
|
|
32
32
|
*/
|
|
33
|
-
position?: keyof PageContainerProps.
|
|
33
|
+
position?: keyof PageContainerProps.Position
|
|
34
34
|
|
|
35
35
|
/** 是否显示圆角
|
|
36
36
|
* @default false
|
|
37
|
-
* @supported weapp
|
|
37
|
+
* @supported weapp, rn
|
|
38
38
|
*/
|
|
39
39
|
round?: boolean
|
|
40
40
|
|
|
41
|
-
/**
|
|
41
|
+
/** 是否在下滑一段距离后关闭
|
|
42
42
|
* @default false
|
|
43
43
|
* @supported weapp
|
|
44
44
|
*/
|
|
45
45
|
closeOnSlideDown?: boolean
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
* @supported weapp
|
|
47
|
+
/** 自定义遮罩层样式
|
|
48
|
+
* @supported weapp, rn
|
|
49
49
|
*/
|
|
50
|
-
overlayStyle?:
|
|
50
|
+
overlayStyle?: string
|
|
51
51
|
|
|
52
52
|
/** 自定义弹出层样式
|
|
53
|
-
* @supported weapp
|
|
53
|
+
* @supported weapp, rn
|
|
54
54
|
*/
|
|
55
|
-
customStyle?:
|
|
55
|
+
customStyle?: string
|
|
56
56
|
|
|
57
57
|
/** 进入前触发
|
|
58
|
-
* @supported weapp
|
|
58
|
+
* @supported weapp, rn
|
|
59
59
|
*/
|
|
60
60
|
onBeforeEnter?: CommonEventFunction
|
|
61
61
|
|
|
62
62
|
/** 进入中触发
|
|
63
|
-
* @supported weapp
|
|
63
|
+
* @supported weapp, rn
|
|
64
64
|
*/
|
|
65
65
|
onEnter?: CommonEventFunction
|
|
66
66
|
|
|
67
67
|
/** 进入后触发
|
|
68
|
-
* @supported weapp
|
|
68
|
+
* @supported weapp, rn
|
|
69
69
|
*/
|
|
70
70
|
onAfterEnter?: CommonEventFunction
|
|
71
71
|
|
|
72
72
|
/** 离开前触发
|
|
73
|
-
* @supported weapp
|
|
73
|
+
* @supported weapp, rn
|
|
74
74
|
*/
|
|
75
75
|
onBeforeLeave?: CommonEventFunction
|
|
76
76
|
|
|
77
77
|
/** 离开中触发
|
|
78
|
-
* @supported weapp
|
|
78
|
+
* @supported weapp, rn
|
|
79
79
|
*/
|
|
80
80
|
onLeave?: CommonEventFunction
|
|
81
81
|
|
|
82
82
|
/** 离开后触发
|
|
83
|
-
* @supported weapp
|
|
83
|
+
* @supported weapp, rn
|
|
84
84
|
*/
|
|
85
85
|
onAfterLeave?: CommonEventFunction
|
|
86
86
|
|
|
@@ -92,15 +92,15 @@ interface PageContainerProps extends StandardProps {
|
|
|
92
92
|
|
|
93
93
|
declare namespace PageContainerProps {
|
|
94
94
|
/** 弹出位置 */
|
|
95
|
-
interface
|
|
95
|
+
interface Position {
|
|
96
96
|
/** 上方弹出 */
|
|
97
97
|
top
|
|
98
98
|
/** 下方弹出 */
|
|
99
99
|
bottom
|
|
100
|
-
/** 左边弹出 */
|
|
101
|
-
left
|
|
102
100
|
/** 右边弹出 */
|
|
103
101
|
right
|
|
102
|
+
/** 中央弹出 */
|
|
103
|
+
center
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -113,7 +113,7 @@ declare namespace PageContainerProps {
|
|
|
113
113
|
* 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
|
|
114
114
|
* 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面
|
|
115
115
|
* @classification viewContainer
|
|
116
|
-
* @supported weapp
|
|
116
|
+
* @supported weapp, rn
|
|
117
117
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
|
|
118
118
|
*/
|
|
119
119
|
declare const PageContainer: ComponentType<PageContainerProps>
|
package/types/Picker.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
|
103
103
|
* 列改变时触发
|
|
104
104
|
* @supported weapp, h5, rn
|
|
105
105
|
*/
|
|
106
|
-
onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.
|
|
106
|
+
onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
declare namespace PickerMultiSelectorProps {
|
|
@@ -111,7 +111,7 @@ declare namespace PickerMultiSelectorProps {
|
|
|
111
111
|
/** 表示变更值的下标 */
|
|
112
112
|
value: number[]
|
|
113
113
|
}
|
|
114
|
-
interface
|
|
114
|
+
interface ColumnChangeEventDetail {
|
|
115
115
|
/** 表示改变了第几列(下标从0开始) */
|
|
116
116
|
column: number
|
|
117
117
|
/** 表示变更值的下标 */
|
|
@@ -350,7 +350,7 @@ declare namespace PickerRegionProps {
|
|
|
350
350
|
* </view>
|
|
351
351
|
* </view>
|
|
352
352
|
* </template>
|
|
353
|
-
*
|
|
353
|
+
*
|
|
354
354
|
* <script>
|
|
355
355
|
* export default {
|
|
356
356
|
* data() {
|
|
@@ -365,11 +365,11 @@ declare namespace PickerRegionProps {
|
|
|
365
365
|
* onChange: function(e) {
|
|
366
366
|
* this.selectorChecked = this.selector[e.detail.value]
|
|
367
367
|
* },
|
|
368
|
-
*
|
|
368
|
+
*
|
|
369
369
|
* onTimeChange: function(e) {
|
|
370
370
|
* this.timeSel = e.detail.value
|
|
371
371
|
* },
|
|
372
|
-
*
|
|
372
|
+
*
|
|
373
373
|
* onDateChange: function(e) {
|
|
374
374
|
* this.dateSel = e.detail.value
|
|
375
375
|
* }
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
type PickerViewColumnProps = StandardProps
|
|
3
5
|
|
|
4
6
|
/** 滚动选择器子项
|
|
5
7
|
* 仅可放置于 `<PickerView />` 中,其孩子节点的高度会自动设置成与 picker-view 的选中框的高度一致
|
|
6
8
|
* @classification forms
|
|
7
|
-
* @supported weapp, swan, alipay, tt, rn
|
|
9
|
+
* @supported weapp, swan, alipay, tt, h5, rn
|
|
8
10
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
|
|
9
11
|
*/
|
|
10
12
|
declare const PickerViewColumn: ComponentType<StandardProps>
|
|
11
13
|
|
|
12
|
-
export { PickerViewColumn }
|
|
14
|
+
export { PickerViewColumn, PickerViewColumnProps }
|
package/types/Progress.d.ts
CHANGED
package/types/Radio.d.ts
CHANGED
|
@@ -3,25 +3,25 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface RadioProps extends StandardProps {
|
|
5
5
|
/** `<Radio/>` 标识。当该`<Radio/>` 选中时,`<RadioGroup/>`的 change 事件会携带`<Radio/>`的 value
|
|
6
|
-
* @supported weapp, rn
|
|
6
|
+
* @supported weapp, rn, tt
|
|
7
7
|
*/
|
|
8
8
|
value?: string
|
|
9
9
|
|
|
10
10
|
/** 当前是否选中
|
|
11
11
|
* @default false
|
|
12
|
-
* @supported weapp, h5, rn
|
|
12
|
+
* @supported weapp, h5, rn, tt
|
|
13
13
|
*/
|
|
14
14
|
checked?: boolean
|
|
15
15
|
|
|
16
16
|
/** 是否禁用
|
|
17
17
|
* @default false
|
|
18
|
-
* @supported weapp, h5, rn
|
|
18
|
+
* @supported weapp, h5, rn, tt
|
|
19
19
|
*/
|
|
20
20
|
disabled?: boolean
|
|
21
21
|
|
|
22
22
|
/** Radio 的颜色,同 css 的 color
|
|
23
23
|
* @default "#09BB07"
|
|
24
|
-
* @supported weapp, rn
|
|
24
|
+
* @supported weapp, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
color?: string
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@ interface RadioProps extends StandardProps {
|
|
|
33
33
|
|
|
34
34
|
/** 单选项目
|
|
35
35
|
* @classification forms
|
|
36
|
-
* @supported weapp, h5, rn
|
|
36
|
+
* @supported weapp, h5, rn, tt
|
|
37
37
|
* @example_react
|
|
38
38
|
* ```tsx
|
|
39
39
|
* export default class PageRadio extends Component {
|
|
@@ -120,7 +120,7 @@ interface RadioProps extends StandardProps {
|
|
|
120
120
|
* </view>
|
|
121
121
|
* </view>
|
|
122
122
|
* </template>
|
|
123
|
-
*
|
|
123
|
+
*
|
|
124
124
|
* <script>
|
|
125
125
|
* export default {
|
|
126
126
|
* data() {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface RadioGroupProps extends StandardProps, FormItemProps {
|
|
5
5
|
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
6
|
-
* @supported weapp, h5
|
|
6
|
+
* @supported weapp, h5, tt
|
|
7
7
|
*/
|
|
8
8
|
onChange?: CommonEventFunction
|
|
9
9
|
}
|
|
@@ -16,7 +16,7 @@ declare namespace RadioGroupProps {
|
|
|
16
16
|
|
|
17
17
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
18
18
|
* @classification forms
|
|
19
|
-
* @supported weapp, h5, rn
|
|
19
|
+
* @supported weapp, h5, rn, tt
|
|
20
20
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
21
21
|
*/
|
|
22
22
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -2,10 +2,15 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
|
|
4
4
|
interface RichTextProps extends StandardProps {
|
|
5
|
+
/** 文本是否可选,该属性会使节点显示为 block
|
|
6
|
+
* @default false
|
|
7
|
+
* @supported weapp
|
|
8
|
+
*/
|
|
9
|
+
userSelect?: boolean
|
|
5
10
|
/** 节点列表/ HTML String */
|
|
6
11
|
nodes?: Nodes
|
|
7
12
|
/** 显示连续空格
|
|
8
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, rn
|
|
9
14
|
*/
|
|
10
15
|
space?: keyof RichTextProps.TSpace
|
|
11
16
|
}
|
|
@@ -95,7 +100,7 @@ declare namespace RichTextProps {
|
|
|
95
100
|
* <rich-text :nodes="nodes"></rich-text>
|
|
96
101
|
* </view>
|
|
97
102
|
* </template>
|
|
98
|
-
*
|
|
103
|
+
*
|
|
99
104
|
* <script>
|
|
100
105
|
* export default {
|
|
101
106
|
* name: 'Index',
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -225,15 +225,15 @@ declare namespace ScrollViewProps {
|
|
|
225
225
|
* const Threshold = 20
|
|
226
226
|
* const vStyleA = {
|
|
227
227
|
* height: '150px',
|
|
228
|
-
* '
|
|
228
|
+
* 'backgroundColor': 'rgb(26, 173, 25)'
|
|
229
229
|
* }
|
|
230
230
|
* const vStyleB = {
|
|
231
231
|
* height: '150px',
|
|
232
|
-
* '
|
|
232
|
+
* 'backgroundColor': 'rgb(39,130,215)'
|
|
233
233
|
* }
|
|
234
234
|
* const vStyleC = {
|
|
235
235
|
* height: '150px',
|
|
236
|
-
* '
|
|
236
|
+
* 'backgroundColor': 'rgb(241,241,241)',
|
|
237
237
|
* color: '#333'
|
|
238
238
|
* }
|
|
239
239
|
* return (
|
|
@@ -288,7 +288,7 @@ declare namespace ScrollViewProps {
|
|
|
288
288
|
* </view>
|
|
289
289
|
* </view>
|
|
290
290
|
* </template>
|
|
291
|
-
*
|
|
291
|
+
*
|
|
292
292
|
* <script>
|
|
293
293
|
* const order = ['demo1', 'demo2', 'demo3']
|
|
294
294
|
* export default {
|
|
@@ -299,23 +299,23 @@ declare namespace ScrollViewProps {
|
|
|
299
299
|
* toView: 'demo2'
|
|
300
300
|
* }
|
|
301
301
|
* },
|
|
302
|
-
*
|
|
302
|
+
*
|
|
303
303
|
* methods: {
|
|
304
304
|
* upper(e) {
|
|
305
305
|
* console.log('upper:', e)
|
|
306
306
|
* },
|
|
307
|
-
*
|
|
307
|
+
*
|
|
308
308
|
* lower(e) {
|
|
309
309
|
* console.log('lower:', e)
|
|
310
310
|
* },
|
|
311
|
-
*
|
|
311
|
+
*
|
|
312
312
|
* scroll(e) {
|
|
313
313
|
* console.log('scroll:', e)
|
|
314
314
|
* }
|
|
315
315
|
* }
|
|
316
316
|
* }
|
|
317
317
|
* </script>
|
|
318
|
-
*
|
|
318
|
+
*
|
|
319
319
|
* <style>
|
|
320
320
|
* .page-section-spacing{
|
|
321
321
|
* margin-top: 60rpx;
|
|
@@ -331,7 +331,7 @@ declare namespace ScrollViewProps {
|
|
|
331
331
|
* width: 100%;
|
|
332
332
|
* height: 300rpx;
|
|
333
333
|
* }
|
|
334
|
-
*
|
|
334
|
+
*
|
|
335
335
|
* .demo-text-1 { background: #ccc; }
|
|
336
336
|
* .demo-text-2 { background: #999; }
|
|
337
337
|
* .demo-text-3 { background: #666; }
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface ShareElementProps extends StandardProps {
|
|
|
5
5
|
/** 映射标记
|
|
6
6
|
* @supported weapp
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
mapkey: string
|
|
9
9
|
|
|
10
10
|
/** 是否进行动画
|
|
11
11
|
* @default false
|
|
@@ -28,10 +28,203 @@ interface ShareElementProps extends StandardProps {
|
|
|
28
28
|
|
|
29
29
|
/** 共享元素
|
|
30
30
|
*
|
|
31
|
-
* 共享元素是一种动画形式,类似于 [`flutter Hero`](https://flutterchina.club/animations/hero-animations/) 动画,表现为元素像是在页面间穿越一样。该组件需与 [`
|
|
32
|
-
* 使用时需在当前页放置 `
|
|
31
|
+
* 共享元素是一种动画形式,类似于 [`flutter Hero`](https://flutterchina.club/animations/hero-animations/) 动画,表现为元素像是在页面间穿越一样。该组件需与 [`PageContainer`](/docs/components/viewContainer/page-container) 组件结合使用。
|
|
32
|
+
* 使用时需在当前页放置 `ShareElement` 组件,同时在 `PageContainer` 容器中放置对应的 `ShareElement` 组件,对应关系通过属性值 key 映射。当设置 `PageContainer` `显示时,transform` 属性为 `true` 的共享元素会产生动画。当前页面容器退出时,会产生返回动画。
|
|
33
33
|
* @classification viewContainer
|
|
34
34
|
* @supported weapp
|
|
35
|
+
* @example_react
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // index.js
|
|
38
|
+
* import { useState, useCallback } from 'react'
|
|
39
|
+
* import { View, Button, PageContainer, ShareElement } from '@tarojs/components'
|
|
40
|
+
*
|
|
41
|
+
* import './index.scss'
|
|
42
|
+
*
|
|
43
|
+
* const contacts = [
|
|
44
|
+
* { id: 1, name: 'Frank', img: 'frank.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
45
|
+
* { id: 2, name: 'Susan', img: 'susan.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
46
|
+
* { id: 3, name: 'Emma', img: 'emma.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
47
|
+
* { id: 4, name: 'Scott', img: 'scott.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
48
|
+
* { id: 5, name: 'Bob', img: 'bob.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
49
|
+
* { id: 6, name: 'Olivia', img: 'olivia.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
50
|
+
* { id: 7, name: 'Anne', img: 'anne.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' },
|
|
51
|
+
* { id: 8, name: 'sunny', img: 'olivia.png', phone: '0101 123456', mobile: '0770 123456', email: 'frank@emailionicsorter.com' }
|
|
52
|
+
* ]
|
|
53
|
+
*
|
|
54
|
+
* export default function () {
|
|
55
|
+
* const [show, setShow] = useState(false)
|
|
56
|
+
* const [contact, setContact] = useState(contacts[0])
|
|
57
|
+
* const [transformIdx, setTransformIdx] = useState(0)
|
|
58
|
+
*
|
|
59
|
+
* const onBeforeEnter = useCallback((res) => {
|
|
60
|
+
* console.log('onBeforeEnter: ', res)
|
|
61
|
+
* }, [])
|
|
62
|
+
* const onEnter = useCallback((res) => {
|
|
63
|
+
* console.log('onEnter: ', res)
|
|
64
|
+
* }, [])
|
|
65
|
+
* const onAfterEnter = useCallback((res) => {
|
|
66
|
+
* console.log('onAfterEnter: ', res)
|
|
67
|
+
* }, [])
|
|
68
|
+
* const onBeforeLeave = useCallback((res) => {
|
|
69
|
+
* console.log('onBeforeLeave: ', res)
|
|
70
|
+
* }, [])
|
|
71
|
+
* const onLeave = useCallback((res) => {
|
|
72
|
+
* console.log('onLeave: ', res)
|
|
73
|
+
* }, [])
|
|
74
|
+
* const onAfterLeave = useCallback((res) => {
|
|
75
|
+
* console.log('onAfterLeave: ', res)
|
|
76
|
+
* }, [])
|
|
77
|
+
*
|
|
78
|
+
* const showNext = (e, index) => {
|
|
79
|
+
* setShow(true)
|
|
80
|
+
* setContact(contacts[index])
|
|
81
|
+
* setTransformIdx(index)
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* const showPrev = useCallback(() => {
|
|
85
|
+
* setShow(false)
|
|
86
|
+
* }, [])
|
|
87
|
+
*
|
|
88
|
+
* return (
|
|
89
|
+
* <View>
|
|
90
|
+
* <View className="screen screen1">
|
|
91
|
+
* {
|
|
92
|
+
* contacts.map((item, index) => (
|
|
93
|
+
* <View key={item.id} className="contact" onClick={e => showNext(e, index)}>
|
|
94
|
+
* <ShareElement duration={300} className="name" mapkey="name" transform={transformIdx === index}>
|
|
95
|
+
* {item.name}
|
|
96
|
+
* </ShareElement>
|
|
97
|
+
* <View className="list">
|
|
98
|
+
* <View>Phone: {item.phone}</View>
|
|
99
|
+
* <View>Mobile: {item.mobile}</View>
|
|
100
|
+
* <View>Email: {item.email}</View>
|
|
101
|
+
* </View>
|
|
102
|
+
* </View>
|
|
103
|
+
* ))
|
|
104
|
+
* }
|
|
105
|
+
* </View>
|
|
106
|
+
* <PageContainer
|
|
107
|
+
* show={show}
|
|
108
|
+
* overlay={false}
|
|
109
|
+
* closeOnSlideDown
|
|
110
|
+
* duration={300}
|
|
111
|
+
* position='center'
|
|
112
|
+
* onBeforeEnter={onBeforeEnter}
|
|
113
|
+
* onEnter={onEnter}
|
|
114
|
+
* onAfterEnter={onAfterEnter}
|
|
115
|
+
* onBeforeLeave={onBeforeLeave}
|
|
116
|
+
* onLeave={onLeave}
|
|
117
|
+
* onAfterLeave={onAfterLeave}
|
|
118
|
+
* >
|
|
119
|
+
* <View className="screen screen2">
|
|
120
|
+
* <View className="contact">
|
|
121
|
+
* <ShareElement className="name" mapkey="name" duration={300} transform>
|
|
122
|
+
* {contact.name}
|
|
123
|
+
* </ShareElement>
|
|
124
|
+
* <View className={`paragraph ${show ? 'enter' : ''}`}>
|
|
125
|
+
* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nisl enim, sodales non augue efficitur, sagittis
|
|
126
|
+
* varius neque. Fusce dolor turpis, maximus eu volutpat quis, pellentesque et ligula. Ut vehicula metus in nibh
|
|
127
|
+
* mollis ornare. Etiam aliquam lacinia malesuada. Vestibulum dignissim mollis quam a tristique. Maecenas neque
|
|
128
|
+
* mauris, malesuada vitae magna eu, congue consectetur risus. Etiam vitae pulvinar ex. Maecenas suscipit mi ac
|
|
129
|
+
* imperdiet pretium. Aliquam velit mauris, euismod quis elementum sed, malesuada non dui. Nunc rutrum sagittis
|
|
130
|
+
* ligula in dapibus. Cras suscipit ut augue eget mollis. Donec auctor feugiat ipsum id viverra. Vestibulum eu nisi
|
|
131
|
+
* risus. Vestibulum eleifend dignissim.
|
|
132
|
+
*
|
|
133
|
+
* </View>
|
|
134
|
+
* <Button className="screen2-button" onClick={showPrev} hidden={!show} hoverClass="none">Click Me</Button>
|
|
135
|
+
* </View>
|
|
136
|
+
* </View>
|
|
137
|
+
* </PageContainer>
|
|
138
|
+
* </View>
|
|
139
|
+
* )
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
142
|
+
* ```scss
|
|
143
|
+
* \/** index.scss *\/
|
|
144
|
+
* page {
|
|
145
|
+
* color: #333;
|
|
146
|
+
* background-color: #ddd;
|
|
147
|
+
* overflow: hidden;
|
|
148
|
+
* }
|
|
149
|
+
*
|
|
150
|
+
* button {
|
|
151
|
+
* border: 0 solid #0010ae;
|
|
152
|
+
* background-color: #1f2afe;
|
|
153
|
+
* color: #fff;
|
|
154
|
+
* font-size: 120%;
|
|
155
|
+
* padding: 8px 16px;
|
|
156
|
+
* outline-width: 0;
|
|
157
|
+
* -webkit-appearance: none;
|
|
158
|
+
* box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2);
|
|
159
|
+
* }
|
|
160
|
+
*
|
|
161
|
+
* .screen {
|
|
162
|
+
* position: absolute;
|
|
163
|
+
* top: 0;
|
|
164
|
+
* bottom: 0;
|
|
165
|
+
* left: 0;
|
|
166
|
+
* right: 0;
|
|
167
|
+
* padding: 16px;
|
|
168
|
+
* -webkit-overflow-scrolling: touch;
|
|
169
|
+
* }
|
|
170
|
+
*
|
|
171
|
+
* .contact {
|
|
172
|
+
* position: relative;
|
|
173
|
+
* padding: 16px;
|
|
174
|
+
* background-color: #fff;
|
|
175
|
+
* width: 100%;
|
|
176
|
+
* height: 100%;
|
|
177
|
+
* box-sizing: border-box;
|
|
178
|
+
* }
|
|
179
|
+
*
|
|
180
|
+
* .avatar {
|
|
181
|
+
* position: absolute;
|
|
182
|
+
* top: 16px;
|
|
183
|
+
* left: 16px;
|
|
184
|
+
* font-size: 0;
|
|
185
|
+
* }
|
|
186
|
+
*
|
|
187
|
+
* .name {
|
|
188
|
+
* height: 65px;
|
|
189
|
+
* font-size: 2em;
|
|
190
|
+
* font-weight: bold;
|
|
191
|
+
* text-align: center;
|
|
192
|
+
* margin: 10px 0;
|
|
193
|
+
* }
|
|
194
|
+
*
|
|
195
|
+
* .list {
|
|
196
|
+
* padding-top: 8px;
|
|
197
|
+
* padding-left: 32px;
|
|
198
|
+
* }
|
|
199
|
+
*
|
|
200
|
+
* .screen1 {
|
|
201
|
+
* overflow-y: scroll;
|
|
202
|
+
* padding: 0;
|
|
203
|
+
* }
|
|
204
|
+
*
|
|
205
|
+
* .screen1 .contact {
|
|
206
|
+
* margin: 16px;
|
|
207
|
+
* height: auto;
|
|
208
|
+
* width: auto;
|
|
209
|
+
* box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
|
|
210
|
+
* }
|
|
211
|
+
*
|
|
212
|
+
* .screen2-button {
|
|
213
|
+
* display: block;
|
|
214
|
+
* margin: 24px auto;
|
|
215
|
+
* }
|
|
216
|
+
*
|
|
217
|
+
* .paragraph {
|
|
218
|
+
* -webkit-transition: transform ease-in-out 300ms;
|
|
219
|
+
* transition: transform ease-in-out 300ms;
|
|
220
|
+
* -webkit-transform: scale(0.6);
|
|
221
|
+
* transform: scale(0.6);
|
|
222
|
+
* }
|
|
223
|
+
*
|
|
224
|
+
* .enter.paragraph {
|
|
225
|
+
* transform: none;
|
|
226
|
+
* }
|
|
227
|
+
* ```
|
|
35
228
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/share-element.html
|
|
36
229
|
*/
|
|
37
230
|
declare const ShareElement: ComponentType<ShareElementProps>
|