@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
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { h } from 'vue';
|
|
2
|
+
import { useForwardRef } from '../forwardRef';
|
|
2
3
|
export default {
|
|
3
4
|
emits: ['tap', 'scroll'],
|
|
4
5
|
setup: function setup(props, _ref) {
|
|
5
6
|
var slots = _ref.slots,
|
|
6
7
|
emit = _ref.emit,
|
|
7
8
|
attrs = _ref.attrs;
|
|
9
|
+
var forwardRef = useForwardRef();
|
|
8
10
|
return function () {
|
|
9
11
|
return h('taro-scroll-view-core', {
|
|
12
|
+
ref: forwardRef,
|
|
10
13
|
class: ['hydrated', {
|
|
11
14
|
'taro-scroll-view__scroll-x': attrs['scroll-x'] === '',
|
|
12
15
|
'taro-scroll-view__scroll-y': attrs['scroll-y'] === ''
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { h } from 'vue';
|
|
2
|
+
import { useForwardRef } from '../forwardRef';
|
|
2
3
|
export default {
|
|
3
4
|
emits: ['tap'],
|
|
4
5
|
setup: function setup(props, _ref) {
|
|
5
6
|
var slots = _ref.slots,
|
|
6
7
|
emit = _ref.emit,
|
|
7
8
|
attrs = _ref.attrs;
|
|
9
|
+
var forwardRef = useForwardRef();
|
|
8
10
|
return function () {
|
|
9
11
|
return h('taro-text-core', {
|
|
12
|
+
ref: forwardRef,
|
|
10
13
|
class: ['hydrated', {
|
|
11
14
|
'taro-text_selectable': attrs.selectable
|
|
12
15
|
}],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { h } from 'vue';
|
|
3
|
+
import { useForwardRef } from './forwardRef';
|
|
3
4
|
export default function createComponent(name) {
|
|
4
5
|
var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
5
6
|
return {
|
|
@@ -7,8 +8,10 @@ export default function createComponent(name) {
|
|
|
7
8
|
setup: function setup(props, _ref) {
|
|
8
9
|
var slots = _ref.slots,
|
|
9
10
|
emit = _ref.emit;
|
|
11
|
+
var forwardRef = useForwardRef();
|
|
10
12
|
return function () {
|
|
11
13
|
return h("".concat(name, "-core"), {
|
|
14
|
+
ref: forwardRef,
|
|
12
15
|
class: ['hydrated'].concat(_toConsumableArray(classNames)),
|
|
13
16
|
onClick: function onClick(e) {
|
|
14
17
|
emit('tap', e);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
|
-
import { h, toRefs
|
|
8
|
+
import { computed, h, toRefs } from 'vue';
|
|
9
|
+
import { useForwardRef } from './forwardRef';
|
|
9
10
|
export default function createFormsComponent(name, eventName) {
|
|
10
11
|
var modelValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'value';
|
|
11
12
|
var classNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
@@ -33,8 +34,10 @@ export default function createFormsComponent(name, eventName) {
|
|
|
33
34
|
|
|
34
35
|
return name === 'taro-input' ? (_ref2 = {}, _defineProperty(_ref2, modelValue, model.value), _defineProperty(_ref2, 'auto-focus', focus.value), _ref2) : _defineProperty({}, modelValue, model.value);
|
|
35
36
|
});
|
|
37
|
+
var forwardRef = useForwardRef();
|
|
36
38
|
return function () {
|
|
37
39
|
return h("".concat(name, "-core"), _objectSpread(_objectSpread({
|
|
40
|
+
ref: forwardRef,
|
|
38
41
|
class: ['hydrated'].concat(_toConsumableArray(classNames))
|
|
39
42
|
}, attrs.value), {}, _defineProperty({
|
|
40
43
|
onClick: function onClick(e) {
|
package/dist-h5/vue3/index.js
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import createFormsComponent from './createFormsComponent';
|
|
4
|
-
import Text from './components/text';
|
|
5
|
-
import Image from './components/image';
|
|
6
|
-
import Icon from './components/icon';
|
|
7
|
-
import ScrollView from './components/scroll-view';
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import * as components from './components';
|
|
8
3
|
export function initVue3Components(app) {
|
|
9
4
|
app.config.isCustomElement = function (tag) {
|
|
10
5
|
return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
|
|
11
6
|
};
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
Object.entries(components).forEach(function (_ref) {
|
|
9
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
10
|
+
name = _ref2[0],
|
|
11
|
+
component = _ref2[1];
|
|
12
|
+
|
|
13
|
+
if (component) {
|
|
14
|
+
var tagName = 'taro-' + name.replace(/(?<=[a-z])([A-Z])/g, '-$1').toLowerCase();
|
|
15
|
+
app.component(tagName, component);
|
|
20
16
|
}
|
|
21
17
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var Picker = createFormsComponent('taro-picker', 'change');
|
|
25
|
-
var Switch = createFormsComponent('taro-switch', 'change', 'checked');
|
|
26
|
-
var Slider = createFormsComponent('taro-slider', 'change', 'value', ['weui-slider-box']);
|
|
27
|
-
app.component('taro-input', Input);
|
|
28
|
-
app.component('taro-textarea', Textarea);
|
|
29
|
-
app.component('taro-picker', Picker);
|
|
30
|
-
app.component('taro-switch', Switch);
|
|
31
|
-
app.component('taro-slider', Slider);
|
|
32
|
-
app.component('taro-text', Text);
|
|
33
|
-
app.component('taro-image', Image);
|
|
34
|
-
app.component('taro-icon', Icon);
|
|
35
|
-
app.component('taro-scroll-view', ScrollView);
|
|
36
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.0
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"browser": "dist/index.js",
|
|
6
|
+
"main:h5": "dist/index.js",
|
|
6
7
|
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.
|
|
8
|
+
"module": "dist/index.cjs.js",
|
|
8
9
|
"types": "types/index.d.ts",
|
|
9
10
|
"sideEffects": [
|
|
10
11
|
"*.scss",
|
|
@@ -16,19 +17,11 @@
|
|
|
16
17
|
"mini",
|
|
17
18
|
"types",
|
|
18
19
|
"dist-h5",
|
|
19
|
-
"virtual-list"
|
|
20
|
+
"virtual-list",
|
|
21
|
+
"vue3.d.ts"
|
|
20
22
|
],
|
|
21
23
|
"collection": "dist/collection/collection-manifest.json",
|
|
22
24
|
"collection:main": "dist/collection/index.js",
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build-h5": "babel -d dist-h5 h5",
|
|
25
|
-
"build": "npm run build-h5 & stencil build --config stencil.config.ts",
|
|
26
|
-
"dev": "stencil build --config stencil.config.ts --watch",
|
|
27
|
-
"test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
28
|
-
"test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
29
|
-
"test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
30
|
-
"test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
|
|
31
|
-
},
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
34
27
|
"url": "git+https://github.com/NervJS/taro.git"
|
|
@@ -37,10 +30,13 @@
|
|
|
37
30
|
"author": "",
|
|
38
31
|
"license": "MIT",
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stencil/core": "2.
|
|
41
|
-
"@
|
|
33
|
+
"@stencil/core": "~2.13.0",
|
|
34
|
+
"@stencil/sass": "1.5.2",
|
|
35
|
+
"@tarojs/taro": "3.5.0",
|
|
36
|
+
"@tarojs/router": "3.5.0",
|
|
42
37
|
"better-scroll": "^1.14.1",
|
|
43
38
|
"classnames": "^2.2.5",
|
|
39
|
+
"hls.js": "^1.1.5",
|
|
44
40
|
"intersection-observer": "^0.7.0",
|
|
45
41
|
"omit.js": "^1.0.0",
|
|
46
42
|
"resolve-pathname": "^3.0.0",
|
|
@@ -48,12 +44,34 @@
|
|
|
48
44
|
"weui": "^1.1.2"
|
|
49
45
|
},
|
|
50
46
|
"devDependencies": {
|
|
51
|
-
"
|
|
52
|
-
"@types/react-native": "0.66.5",
|
|
47
|
+
"css-loader": "3.4.2",
|
|
53
48
|
"jquery": "^3.4.1",
|
|
54
49
|
"karmatic": "^2.1.0",
|
|
50
|
+
"react": "^17.0.2",
|
|
51
|
+
"react-dom": "^17.0.2",
|
|
55
52
|
"simulant": "^0.2.2",
|
|
53
|
+
"style-loader": "1.3.0",
|
|
54
|
+
"webpack": "4.46.0",
|
|
56
55
|
"workbox-build": "4.3.1"
|
|
57
56
|
},
|
|
58
|
-
"
|
|
59
|
-
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"@types/react": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"@types/react-native": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"vue": {
|
|
65
|
+
"optional": true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build-h5": "babel -d dist-h5 h5",
|
|
70
|
+
"build": "pnpm run build-h5 & stencil build --config stencil.config.ts",
|
|
71
|
+
"dev": "stencil build --config stencil.config.ts --watch",
|
|
72
|
+
"test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
73
|
+
"test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
74
|
+
"test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
75
|
+
"test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/types/Ad.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface AdProps extends StandardProps {
|
|
5
5
|
/** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
8
|
unitId: string
|
|
9
9
|
|
|
10
10
|
/** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新)
|
|
11
|
-
* @supported weapp
|
|
11
|
+
* @supported weapp, tt
|
|
12
12
|
*/
|
|
13
13
|
adIntervals?: number
|
|
14
14
|
|
|
@@ -23,17 +23,17 @@ interface AdProps extends StandardProps {
|
|
|
23
23
|
adTheme?: 'white' | 'black'
|
|
24
24
|
|
|
25
25
|
/** 广告加载成功的回调
|
|
26
|
-
* @supported weapp
|
|
26
|
+
* @supported weapp, tt
|
|
27
27
|
*/
|
|
28
28
|
onLoad?: CommonEventFunction
|
|
29
29
|
|
|
30
30
|
/** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
|
|
31
|
-
* @supported weapp
|
|
31
|
+
* @supported weapp, tt
|
|
32
32
|
*/
|
|
33
33
|
onError?: CommonEventFunction<AdProps.onErrorEventDetail>
|
|
34
34
|
|
|
35
35
|
/** 广告关闭的回调
|
|
36
|
-
* @supported weapp
|
|
36
|
+
* @supported weapp, tt
|
|
37
37
|
*/
|
|
38
38
|
onClose?: CommonEventFunction
|
|
39
39
|
}
|
|
@@ -50,55 +50,55 @@ declare namespace AdProps {
|
|
|
50
50
|
*/
|
|
51
51
|
interface AdErrCode {
|
|
52
52
|
/**
|
|
53
|
-
* @
|
|
53
|
+
* @illustrate 后端错误调用失败
|
|
54
54
|
* @reason 该项错误不是开发者的异常情况
|
|
55
55
|
* @solution 一般情况下忽略一段时间即可恢复。
|
|
56
56
|
*/
|
|
57
57
|
1000
|
|
58
58
|
/**
|
|
59
|
-
* @
|
|
59
|
+
* @illustrate 参数错误
|
|
60
60
|
* @reason 使用方法错误
|
|
61
61
|
* @solution 可以前往 developers.weixin.qq.com 确认具体教程(小程序和小游戏分别有各自的教程,可以在顶部选项中,“设计”一栏的右侧进行切换。
|
|
62
62
|
*/
|
|
63
63
|
1001
|
|
64
64
|
/**
|
|
65
|
-
* @
|
|
65
|
+
* @illustrate 广告单元无效
|
|
66
66
|
* @reason 可能是拼写错误、或者误用了其他APP的广告ID
|
|
67
67
|
* @solution 请重新前往 mp.weixin.qq.com 确认广告位ID。
|
|
68
68
|
*/
|
|
69
69
|
1002
|
|
70
70
|
/**
|
|
71
|
-
* @
|
|
71
|
+
* @illustrate 内部错误
|
|
72
72
|
* @reason 该项错误不是开发者的异常情况
|
|
73
73
|
* @solution 一般情况下忽略一段时间即可恢复。
|
|
74
74
|
*/
|
|
75
75
|
1003
|
|
76
76
|
/**
|
|
77
|
-
* @
|
|
77
|
+
* @illustrate 无合适的广告
|
|
78
78
|
* @reason 广告不是每一次都会出现,这次没有出现可能是由于该用户不适合浏览广告
|
|
79
79
|
* @solution 属于正常情况,且开发者需要针对这种情况做形态上的兼容。
|
|
80
80
|
*/
|
|
81
81
|
1004
|
|
82
82
|
/**
|
|
83
|
-
* @
|
|
83
|
+
* @illustrate 广告组件审核中
|
|
84
84
|
* @reason 你的广告正在被审核,无法展现广告
|
|
85
85
|
* @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
|
|
86
86
|
*/
|
|
87
87
|
1005
|
|
88
88
|
/**
|
|
89
|
-
* @
|
|
89
|
+
* @illustrate 广告组件被驳回
|
|
90
90
|
* @reason 你的广告审核失败,无法展现广告
|
|
91
91
|
* @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
|
|
92
92
|
*/
|
|
93
93
|
1006
|
|
94
94
|
/**
|
|
95
|
-
* @
|
|
95
|
+
* @illustrate 广告组件被封禁
|
|
96
96
|
* @reason 你的广告能力已经被封禁,封禁期间无法展现广告
|
|
97
97
|
* @solution 请前往 mp.weixin.qq.com 确认小程序广告封禁状态。
|
|
98
98
|
*/
|
|
99
99
|
1007
|
|
100
100
|
/**
|
|
101
|
-
* @
|
|
101
|
+
* @illustrate 广告单元已关闭
|
|
102
102
|
* @reason 该广告位的广告能力已经被关闭
|
|
103
103
|
* @solution 请前往 mp.weixin.qq.com 重新打开对应广告位的展现。
|
|
104
104
|
*/
|
|
@@ -109,7 +109,7 @@ declare namespace AdProps {
|
|
|
109
109
|
|
|
110
110
|
/** Banner 广告
|
|
111
111
|
* @classification open
|
|
112
|
-
* @supported weapp
|
|
112
|
+
* @supported weapp, tt
|
|
113
113
|
* @example_react
|
|
114
114
|
* ```tsx
|
|
115
115
|
* class App extends Component {
|
package/types/Audio.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ interface AudioProps extends StandardProps {
|
|
|
81
81
|
|
|
82
82
|
declare namespace AudioProps {
|
|
83
83
|
interface onErrorEventDetail {
|
|
84
|
-
errMsg: keyof MediaError.
|
|
84
|
+
errMsg: keyof MediaError.Code
|
|
85
85
|
}
|
|
86
86
|
interface onTimeUpdateEventDetail {
|
|
87
87
|
/** 当前时间 */
|
|
@@ -90,7 +90,7 @@ declare namespace AudioProps {
|
|
|
90
90
|
duration: number
|
|
91
91
|
}
|
|
92
92
|
namespace MediaError {
|
|
93
|
-
interface
|
|
93
|
+
interface Code {
|
|
94
94
|
/** 获取资源被用户禁止 */
|
|
95
95
|
1
|
|
96
96
|
/** 网络错误 */
|
|
@@ -113,7 +113,7 @@ declare namespace AudioProps {
|
|
|
113
113
|
* constructor() {
|
|
114
114
|
* super(...arguments)
|
|
115
115
|
* }
|
|
116
|
-
*
|
|
116
|
+
*
|
|
117
117
|
* render() {
|
|
118
118
|
* return (
|
|
119
119
|
* <View className='components-page'>
|
package/types/Block.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
type BlockProps = StandardProps
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* @ignore
|
|
5
8
|
*/
|
|
6
|
-
declare const Block: ComponentType
|
|
9
|
+
declare const Block: ComponentType<BlockProps>
|
|
7
10
|
|
|
8
|
-
export { Block }
|
|
11
|
+
export { Block, BlockProps }
|
package/types/Button.d.ts
CHANGED
|
@@ -4,16 +4,16 @@ import { StyleProp, ViewStyle } from 'react-native'
|
|
|
4
4
|
|
|
5
5
|
interface ButtonProps extends StandardProps {
|
|
6
6
|
/** 按钮的大小
|
|
7
|
-
* @supported weapp, h5, rn, alipay
|
|
7
|
+
* @supported weapp, h5, rn, alipay, tt
|
|
8
8
|
* @default default
|
|
9
9
|
*/
|
|
10
|
-
size?: keyof ButtonProps.
|
|
10
|
+
size?: keyof ButtonProps.Size
|
|
11
11
|
|
|
12
12
|
/** 按钮的样式类型
|
|
13
|
-
* @supported weapp, h5, rn, alipay
|
|
13
|
+
* @supported weapp, h5, rn, alipay, tt
|
|
14
14
|
* @default default
|
|
15
15
|
*/
|
|
16
|
-
type?: keyof ButtonProps.
|
|
16
|
+
type?: keyof ButtonProps.Type
|
|
17
17
|
|
|
18
18
|
/** 按钮是否镂空,背景色透明
|
|
19
19
|
* @supported weapp, h5, rn, alipay
|
|
@@ -22,35 +22,35 @@ interface ButtonProps extends StandardProps {
|
|
|
22
22
|
plain?: boolean
|
|
23
23
|
|
|
24
24
|
/** 是否禁用
|
|
25
|
-
* @supported weapp, h5, rn, alipay
|
|
25
|
+
* @supported weapp, h5, rn, alipay, tt
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
disabled?: boolean
|
|
29
29
|
|
|
30
30
|
/** 名称前是否带 loading 图标
|
|
31
|
-
* @supported weapp, h5, rn, alipay
|
|
31
|
+
* @supported weapp, h5, rn, alipay, tt
|
|
32
32
|
* @default false
|
|
33
33
|
*/
|
|
34
34
|
loading?: boolean
|
|
35
35
|
|
|
36
36
|
/** 用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件
|
|
37
|
-
* @supported weapp, alipay
|
|
37
|
+
* @supported weapp, alipay, tt
|
|
38
38
|
*/
|
|
39
|
-
formType?: keyof ButtonProps.
|
|
39
|
+
formType?: keyof ButtonProps.FormType
|
|
40
40
|
|
|
41
41
|
/** 微信开放能力
|
|
42
|
-
* @supported weapp, alipay, qq
|
|
42
|
+
* @supported weapp, alipay, qq, tt
|
|
43
43
|
*/
|
|
44
|
-
openType?: ButtonProps.
|
|
44
|
+
openType?: ButtonProps.OpenType
|
|
45
45
|
|
|
46
46
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
47
47
|
* @default button-hover
|
|
48
|
-
* @supported weapp, alipay, h5
|
|
48
|
+
* @supported weapp, alipay, h5, tt
|
|
49
49
|
* @rn 支持 hoverStyle 属性,但框架未支持 hoverClass
|
|
50
50
|
*/
|
|
51
51
|
hoverClass?: string
|
|
52
52
|
|
|
53
|
-
/** 由于 RN 不支持
|
|
53
|
+
/** 由于 RN 不支持 hoverClass,故 RN 端的 Button 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
54
54
|
* @default none
|
|
55
55
|
* @supported rn
|
|
56
56
|
*/
|
|
@@ -58,19 +58,19 @@ interface ButtonProps extends StandardProps {
|
|
|
58
58
|
|
|
59
59
|
/** 指定是否阻止本节点的祖先节点出现点击态
|
|
60
60
|
* @default false
|
|
61
|
-
* @supported weapp, alipay
|
|
61
|
+
* @supported weapp, alipay, tt
|
|
62
62
|
*/
|
|
63
63
|
hoverStopPropagation?: boolean
|
|
64
64
|
|
|
65
65
|
/** 按住后多久出现点击态,单位毫秒
|
|
66
66
|
* @default 20
|
|
67
|
-
* @supported weapp, alipay, h5, rn
|
|
67
|
+
* @supported weapp, alipay, h5, rn, tt
|
|
68
68
|
*/
|
|
69
69
|
hoverStartTime?: number
|
|
70
70
|
|
|
71
71
|
/** 手指松开后点击态保留时间,单位毫秒
|
|
72
72
|
* @default 70
|
|
73
|
-
* @supported weapp, alipay, h5, rn
|
|
73
|
+
* @supported weapp, alipay, h5, rn, tt
|
|
74
74
|
*/
|
|
75
75
|
hoverStayTime?: number
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ interface ButtonProps extends StandardProps {
|
|
|
79
79
|
* 生效时机: `open-type="getUserInfo"`
|
|
80
80
|
* @supported weapp
|
|
81
81
|
*/
|
|
82
|
-
lang?: keyof ButtonProps.
|
|
82
|
+
lang?: keyof ButtonProps.Lang
|
|
83
83
|
|
|
84
84
|
/** 会话来源
|
|
85
85
|
*
|
|
@@ -164,16 +164,17 @@ interface ButtonProps extends StandardProps {
|
|
|
164
164
|
/** 获取用户手机号回调
|
|
165
165
|
*
|
|
166
166
|
* 生效时机:`open-type="getphonenumber"`
|
|
167
|
-
* @supported weapp
|
|
167
|
+
* @supported weapp, tt
|
|
168
168
|
*/
|
|
169
169
|
onGetPhoneNumber?: CommonEventFunction<ButtonProps.onGetPhoneNumberEventDetail>
|
|
170
170
|
|
|
171
171
|
/** 获取用户实名
|
|
172
172
|
*
|
|
173
173
|
* 生效时机:`open-type="getRealnameAuthInfo"`
|
|
174
|
+
* @deprecated
|
|
174
175
|
* @supported weapp
|
|
175
176
|
*/
|
|
176
|
-
|
|
177
|
+
onGetRealNameAuthInfo?: CommonEventFunction
|
|
177
178
|
|
|
178
179
|
/** 当使用开放能力时,发生错误的回调
|
|
179
180
|
*
|
|
@@ -194,19 +195,26 @@ interface ButtonProps extends StandardProps {
|
|
|
194
195
|
* 生效时机:`open-type="launchApp"`
|
|
195
196
|
* @supported weapp
|
|
196
197
|
*/
|
|
197
|
-
|
|
198
|
+
onLaunchApp?: CommonEventFunction
|
|
199
|
+
|
|
200
|
+
/** 获取用户头像回调
|
|
201
|
+
*
|
|
202
|
+
* 生效时机:`open-type="chooseAvatar"`
|
|
203
|
+
* @supported weapp
|
|
204
|
+
*/
|
|
205
|
+
onChooseAvatar?: CommonEventFunction
|
|
198
206
|
}
|
|
199
207
|
|
|
200
208
|
declare namespace ButtonProps {
|
|
201
209
|
/** size 的合法值 */
|
|
202
|
-
interface
|
|
210
|
+
interface Size {
|
|
203
211
|
/** 默认大小 */
|
|
204
212
|
default
|
|
205
213
|
/** 小尺寸 */
|
|
206
214
|
mini
|
|
207
215
|
}
|
|
208
216
|
/** type 的合法值 */
|
|
209
|
-
interface
|
|
217
|
+
interface Type {
|
|
210
218
|
/** 绿色 */
|
|
211
219
|
primary
|
|
212
220
|
/** 白色 */
|
|
@@ -215,18 +223,18 @@ declare namespace ButtonProps {
|
|
|
215
223
|
warn
|
|
216
224
|
}
|
|
217
225
|
/** form-type 的合法值 */
|
|
218
|
-
interface
|
|
226
|
+
interface FormType {
|
|
219
227
|
/** 提交表单 */
|
|
220
228
|
submit
|
|
221
229
|
/** 重置表单 */
|
|
222
230
|
reset
|
|
223
231
|
}
|
|
224
232
|
/** open-type 的合法值 */
|
|
225
|
-
type
|
|
233
|
+
type OpenType = keyof openTypeKeys["weapp"] | keyof openTypeKeys["alipay"] | keyof openTypeKeys["qq"]
|
|
226
234
|
/** open-type 的合法值 */
|
|
227
235
|
interface openTypeKeys {
|
|
228
236
|
weapp: {
|
|
229
|
-
/**
|
|
237
|
+
/** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从回调中获得具体信息
|
|
230
238
|
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html
|
|
231
239
|
*/
|
|
232
240
|
contact
|
|
@@ -234,15 +242,17 @@ declare namespace ButtonProps {
|
|
|
234
242
|
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%BC%95
|
|
235
243
|
*/
|
|
236
244
|
share
|
|
237
|
-
/**
|
|
245
|
+
/** 获取用户手机号,可以从回调中获取到用户信息
|
|
238
246
|
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
|
|
239
247
|
*/
|
|
240
248
|
getPhoneNumber
|
|
241
|
-
/**
|
|
249
|
+
/** 获取用户信息,可以从回调中获取到用户信息 */
|
|
242
250
|
getUserInfo
|
|
243
|
-
/**
|
|
244
|
-
|
|
245
|
-
|
|
251
|
+
/** 用户实名信息授权
|
|
252
|
+
* @deprecated
|
|
253
|
+
*/
|
|
254
|
+
getRealNameAuthInfo
|
|
255
|
+
/** 打开APP,可以通过 app-parameter 属性设定向APP传的参数
|
|
246
256
|
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html
|
|
247
257
|
*/
|
|
248
258
|
launchApp
|
|
@@ -250,6 +260,8 @@ declare namespace ButtonProps {
|
|
|
250
260
|
openSetting
|
|
251
261
|
/** 打开“意见反馈”页面,用户可提交反馈内容并上传日志,开发者可以登录小程序管理后台后进入左侧菜单“客服反馈”页面获取到反馈内容 */
|
|
252
262
|
feedback
|
|
263
|
+
/** 获取用户头像,可以从回调中获得具体信息 */
|
|
264
|
+
chooseAvatar
|
|
253
265
|
}
|
|
254
266
|
/** 支付宝小程序专属的 open-type 合法值
|
|
255
267
|
* @see https://opendocs.alipay.com/mini/component/button
|
|
@@ -297,7 +309,7 @@ declare namespace ButtonProps {
|
|
|
297
309
|
}
|
|
298
310
|
}
|
|
299
311
|
/** lang 的合法值 */
|
|
300
|
-
interface
|
|
312
|
+
interface Lang {
|
|
301
313
|
/** 英文 */
|
|
302
314
|
en
|
|
303
315
|
/** 简体中文 */
|
|
@@ -313,7 +325,7 @@ declare namespace ButtonProps {
|
|
|
313
325
|
/** 头像 */
|
|
314
326
|
avatarUrl: string
|
|
315
327
|
/** 性别 */
|
|
316
|
-
gender: keyof
|
|
328
|
+
gender: keyof Gender
|
|
317
329
|
/** 省份,如:`Yunnan` */
|
|
318
330
|
province: string
|
|
319
331
|
/** 城市,如:`Dalian` */
|
|
@@ -336,7 +348,7 @@ declare namespace ButtonProps {
|
|
|
336
348
|
}
|
|
337
349
|
|
|
338
350
|
/** 性别的合法值 */
|
|
339
|
-
interface
|
|
351
|
+
interface Gender {
|
|
340
352
|
/** 未知 */
|
|
341
353
|
0
|
|
342
354
|
/** 男 */
|
|
@@ -361,6 +373,10 @@ declare namespace ButtonProps {
|
|
|
361
373
|
encryptedData: string
|
|
362
374
|
/** 加密算法的初始向量 */
|
|
363
375
|
iv: string
|
|
376
|
+
/** 动态令牌。可通过动态令牌换取用户手机号。
|
|
377
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%BC%95
|
|
378
|
+
*/
|
|
379
|
+
code?: string
|
|
364
380
|
}
|
|
365
381
|
|
|
366
382
|
interface onOpenSettingEventDetail {
|
|
@@ -373,7 +389,7 @@ declare namespace ButtonProps {
|
|
|
373
389
|
|
|
374
390
|
/** 按钮
|
|
375
391
|
* @classification forms
|
|
376
|
-
* @supported weapp, h5, rn
|
|
392
|
+
* @supported weapp, h5, rn, tt
|
|
377
393
|
* @example_react
|
|
378
394
|
* ```tsx
|
|
379
395
|
* export default class PageButton extends Component {
|
|
@@ -469,7 +485,7 @@ declare namespace ButtonProps {
|
|
|
469
485
|
* <button size="mini" type="warn">按钮</button>
|
|
470
486
|
* </view>
|
|
471
487
|
* </template>
|
|
472
|
-
*
|
|
488
|
+
*
|
|
473
489
|
* <script>
|
|
474
490
|
* export default {
|
|
475
491
|
* data() {
|