@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
package/types/index.d.ts
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
1
|
export * from './common'
|
|
2
2
|
export * from './event'
|
|
3
|
+
export * from './props'
|
|
3
4
|
|
|
4
5
|
/** 视图容器 */
|
|
5
6
|
export { Block } from './Block'
|
|
6
|
-
export { CoverImage
|
|
7
|
-
export { CoverView
|
|
8
|
-
export { MatchMedia
|
|
9
|
-
export { MovableArea
|
|
10
|
-
export { MovableView
|
|
11
|
-
export { PageContainer
|
|
12
|
-
export { ScrollView
|
|
13
|
-
export { ShareElement
|
|
14
|
-
export { Swiper
|
|
15
|
-
export { SwiperItem
|
|
16
|
-
export { View
|
|
7
|
+
export { CoverImage } from './CoverImage'
|
|
8
|
+
export { CoverView } from './CoverView'
|
|
9
|
+
export { MatchMedia } from './MatchMedia'
|
|
10
|
+
export { MovableArea } from './MovableArea'
|
|
11
|
+
export { MovableView } from './MovableView'
|
|
12
|
+
export { PageContainer } from './PageContainer'
|
|
13
|
+
export { ScrollView } from './ScrollView'
|
|
14
|
+
export { ShareElement } from './ShareElement'
|
|
15
|
+
export { Swiper } from './Swiper'
|
|
16
|
+
export { SwiperItem } from './SwiperItem'
|
|
17
|
+
export { View } from './View'
|
|
17
18
|
|
|
18
19
|
/** 基础内容 */
|
|
19
|
-
export { Icon
|
|
20
|
-
export { Progress
|
|
21
|
-
export { RichText
|
|
22
|
-
export { Text
|
|
20
|
+
export { Icon } from './Icon'
|
|
21
|
+
export { Progress } from './Progress'
|
|
22
|
+
export { RichText } from './RichText'
|
|
23
|
+
export { Text } from './Text'
|
|
23
24
|
|
|
24
25
|
/** 表单组件 */
|
|
25
|
-
export { Button
|
|
26
|
-
export { Checkbox
|
|
27
|
-
export { CheckboxGroup
|
|
28
|
-
export { Editor
|
|
29
|
-
export { Form
|
|
30
|
-
export { Input
|
|
31
|
-
export { KeyboardAccessory
|
|
32
|
-
export { Label
|
|
33
|
-
export { Picker
|
|
34
|
-
export { PickerView
|
|
26
|
+
export { Button } from './Button'
|
|
27
|
+
export { Checkbox } from './Checkbox'
|
|
28
|
+
export { CheckboxGroup } from './CheckboxGroup'
|
|
29
|
+
export { Editor } from './Editor'
|
|
30
|
+
export { Form } from './Form'
|
|
31
|
+
export { Input } from './Input'
|
|
32
|
+
export { KeyboardAccessory } from './KeyboardAccessory'
|
|
33
|
+
export { Label } from './Label'
|
|
34
|
+
export { Picker } from './Picker'
|
|
35
|
+
export { PickerView } from './PickerView'
|
|
35
36
|
export { PickerViewColumn } from './PickerViewColumn'
|
|
36
|
-
export { Radio
|
|
37
|
-
export { RadioGroup
|
|
38
|
-
export { Slider
|
|
39
|
-
export { Switch
|
|
40
|
-
export { Textarea
|
|
37
|
+
export { Radio } from './Radio'
|
|
38
|
+
export { RadioGroup } from './RadioGroup'
|
|
39
|
+
export { Slider } from './Slider'
|
|
40
|
+
export { Switch } from './Switch'
|
|
41
|
+
export { Textarea } from './Textarea'
|
|
41
42
|
|
|
42
43
|
/** 导航 */
|
|
43
|
-
export { FunctionalPageNavigator
|
|
44
|
-
export { Navigator
|
|
45
|
-
export { NavigationBar
|
|
46
|
-
// export { Tabbar
|
|
47
|
-
// export { TabbarItem
|
|
44
|
+
export { FunctionalPageNavigator } from './FunctionalPageNavigator'
|
|
45
|
+
export { Navigator } from './Navigator'
|
|
46
|
+
export { NavigationBar } from './NavigationBar'
|
|
47
|
+
// export { Tabbar } from './Tabbar'
|
|
48
|
+
// export { TabbarItem } from './TabbarItem'
|
|
48
49
|
|
|
49
50
|
/** 媒体组件 */
|
|
50
|
-
export { Audio
|
|
51
|
-
export { Camera
|
|
52
|
-
export { Image
|
|
53
|
-
export { LivePlayer
|
|
54
|
-
export { LivePusher
|
|
55
|
-
export { Video
|
|
56
|
-
export { VoipRoom
|
|
51
|
+
export { Audio } from './Audio'
|
|
52
|
+
export { Camera } from './Camera'
|
|
53
|
+
export { Image } from './Image'
|
|
54
|
+
export { LivePlayer } from './LivePlayer'
|
|
55
|
+
export { LivePusher } from './LivePusher'
|
|
56
|
+
export { Video } from './Video'
|
|
57
|
+
export { VoipRoom } from './VoipRoom'
|
|
57
58
|
|
|
58
59
|
/** 地图 */
|
|
59
|
-
export { Map
|
|
60
|
+
export { Map } from './Map'
|
|
60
61
|
|
|
61
62
|
/** 画布 */
|
|
62
|
-
export { Canvas
|
|
63
|
+
export { Canvas } from './Canvas'
|
|
63
64
|
|
|
64
65
|
/** 开放能力 */
|
|
65
|
-
export { Ad
|
|
66
|
-
export { AdCustom
|
|
67
|
-
export { OfficialAccount
|
|
68
|
-
export { OpenData
|
|
69
|
-
export { WebView
|
|
66
|
+
export { Ad } from './Ad'
|
|
67
|
+
export { AdCustom } from './AdCustom'
|
|
68
|
+
export { OfficialAccount } from './OfficialAccount'
|
|
69
|
+
export { OpenData } from './OpenData'
|
|
70
|
+
export { WebView } from './WebView'
|
|
70
71
|
|
|
71
72
|
/** 配置节点 */
|
|
72
|
-
export { PageMeta
|
|
73
|
+
export { PageMeta } from './PageMeta'
|
|
73
74
|
|
|
74
|
-
export { CustomWrapper
|
|
75
|
-
export { Slot
|
|
75
|
+
export { CustomWrapper } from './CustomWrapper'
|
|
76
|
+
export { Slot } from './Slot'
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue tsx @tarojs/components 类型提示文件
|
|
3
|
+
*
|
|
4
|
+
* ## 如何使用?
|
|
5
|
+
|
|
6
|
+
* 请在醒目全局的类型文件中写入以下代码,覆盖默认的组件类型提示
|
|
7
|
+
* ```typescript
|
|
8
|
+
* export declare module '@tarojs/components' {
|
|
9
|
+
* export * from '@tarojs/components/types/index.vue3'
|
|
10
|
+
* }
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import * as CSS from 'csstype'
|
|
14
|
+
import { Component } from 'vue'
|
|
15
|
+
|
|
16
|
+
import { StandardProps } from './common'
|
|
17
|
+
/** 视图容器 */
|
|
18
|
+
import { CoverImageProps } from './CoverImage'
|
|
19
|
+
import { CoverViewProps } from './CoverView'
|
|
20
|
+
import { MatchMediaProps } from './MatchMedia'
|
|
21
|
+
import { MovableAreaProps } from './MovableArea'
|
|
22
|
+
import { MovableViewProps } from './MovableView'
|
|
23
|
+
import { PageContainerProps } from './PageContainer'
|
|
24
|
+
import { ScrollViewProps } from './ScrollView'
|
|
25
|
+
import { ShareElementProps } from './ShareElement'
|
|
26
|
+
import { SwiperProps } from './Swiper'
|
|
27
|
+
import { SwiperItemProps } from './SwiperItem'
|
|
28
|
+
import { ViewProps } from './View'
|
|
29
|
+
/** 基础内容 */
|
|
30
|
+
import { IconProps } from './Icon'
|
|
31
|
+
import { ProgressProps } from './Progress'
|
|
32
|
+
import { RichTextProps } from './RichText'
|
|
33
|
+
import { TextProps } from './Text'
|
|
34
|
+
/** 表单组件 */
|
|
35
|
+
import { ButtonProps } from './Button'
|
|
36
|
+
import { CheckboxProps } from './Checkbox'
|
|
37
|
+
import { CheckboxGroupProps } from './CheckboxGroup'
|
|
38
|
+
import { EditorProps } from './Editor'
|
|
39
|
+
import { FormProps } from './Form'
|
|
40
|
+
import { InputProps } from './Input'
|
|
41
|
+
import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
42
|
+
import { LabelProps } from './Label'
|
|
43
|
+
import { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker'
|
|
44
|
+
import { PickerViewProps } from './PickerView'
|
|
45
|
+
import { RadioProps } from './Radio'
|
|
46
|
+
import { RadioGroupProps } from './RadioGroup'
|
|
47
|
+
import { SliderProps } from './Slider'
|
|
48
|
+
import { SwitchProps } from './Switch'
|
|
49
|
+
import { TextareaProps } from './Textarea'
|
|
50
|
+
/** 导航 */
|
|
51
|
+
import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
52
|
+
import { NavigatorProps } from './Navigator'
|
|
53
|
+
import { NavigationBarProps } from './NavigationBar'
|
|
54
|
+
/** 媒体组件 */
|
|
55
|
+
import { AudioProps } from './Audio'
|
|
56
|
+
import { CameraProps } from './Camera'
|
|
57
|
+
import { ImageProps } from './Image'
|
|
58
|
+
import { LivePlayerProps } from './LivePlayer'
|
|
59
|
+
import { LivePusherProps } from './LivePusher'
|
|
60
|
+
import { VideoProps } from './Video'
|
|
61
|
+
import { VoipRoomProps } from './VoipRoom'
|
|
62
|
+
/** 地图 */
|
|
63
|
+
import { MapProps } from './Map'
|
|
64
|
+
/** 画布 */
|
|
65
|
+
import { CanvasProps } from './Canvas'
|
|
66
|
+
/** 开放能力 */
|
|
67
|
+
import { AdProps } from './Ad'
|
|
68
|
+
import { AdCustomProps } from './AdCustom'
|
|
69
|
+
import { OfficialAccountProps } from './OfficialAccount'
|
|
70
|
+
import { OpenDataProps } from './OpenData'
|
|
71
|
+
import { WebViewProps } from './WebView'
|
|
72
|
+
/** 配置节点 */
|
|
73
|
+
import { PageMetaProps } from './PageMeta'
|
|
74
|
+
|
|
75
|
+
import { CustomWrapperProps } from './CustomWrapper'
|
|
76
|
+
import { SlotProps } from './Slot'
|
|
77
|
+
|
|
78
|
+
/** 联合类型不能用omit(比如picker) */
|
|
79
|
+
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never
|
|
80
|
+
|
|
81
|
+
interface SlimProps {
|
|
82
|
+
class?: any
|
|
83
|
+
style?: CSS.Properties<string | number>
|
|
84
|
+
innerHTML?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** 转换 react 的类型到 vue */
|
|
88
|
+
type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
|
|
89
|
+
type TransformReact2VueType<P extends StandardProps = Record<string, never>> = DistributiveOmit<P, RemoveReactAttribute> & SlimProps
|
|
90
|
+
export type VueComponentType<P = Record<string, never>> = Component<TransformReact2VueType<P>>
|
|
91
|
+
|
|
92
|
+
export * from './common'
|
|
93
|
+
export * from './event'
|
|
94
|
+
export * from './props'
|
|
95
|
+
|
|
96
|
+
/** 视图容器 */
|
|
97
|
+
export declare const Block: VueComponentType<StandardProps>
|
|
98
|
+
export declare const CoverImage: VueComponentType<CoverImageProps>
|
|
99
|
+
export declare const CoverView: VueComponentType<CoverViewProps>
|
|
100
|
+
export declare const MatchMedia: VueComponentType<MatchMediaProps>
|
|
101
|
+
export declare const MovableArea: VueComponentType<MovableAreaProps>
|
|
102
|
+
export declare const MovableView: VueComponentType<MovableViewProps>
|
|
103
|
+
export declare const PageContainer: VueComponentType<PageContainerProps>
|
|
104
|
+
export declare const ScrollView: VueComponentType<ScrollViewProps>
|
|
105
|
+
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
106
|
+
export declare const Swiper: VueComponentType<SwiperProps>
|
|
107
|
+
export declare const SwiperItem: VueComponentType<SwiperItemProps>
|
|
108
|
+
export declare const View: VueComponentType<ViewProps>
|
|
109
|
+
/** 基础内容 */
|
|
110
|
+
export declare const Icon: VueComponentType<IconProps>
|
|
111
|
+
export declare const Progress: VueComponentType<ProgressProps>
|
|
112
|
+
export declare const RichText: VueComponentType<RichTextProps>
|
|
113
|
+
export declare const Text: VueComponentType<TextProps>
|
|
114
|
+
/** 表单组件 */
|
|
115
|
+
export declare const Button: VueComponentType<ButtonProps>
|
|
116
|
+
export declare const Checkbox: VueComponentType<CheckboxProps>
|
|
117
|
+
export declare const CheckboxGroup: VueComponentType<CheckboxGroupProps>
|
|
118
|
+
export declare const Editor: VueComponentType<EditorProps>
|
|
119
|
+
export declare const Form: VueComponentType<FormProps>
|
|
120
|
+
export declare const Input: VueComponentType<InputProps>
|
|
121
|
+
export declare const KeyboardAccessory: VueComponentType<KeyboardAccessoryProps>
|
|
122
|
+
export declare const Label: VueComponentType<LabelProps>
|
|
123
|
+
export declare const Picker: VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
124
|
+
export declare const PickerView: VueComponentType<PickerViewProps>
|
|
125
|
+
export declare const PickerViewColumn: VueComponentType
|
|
126
|
+
export declare const Radio: VueComponentType<RadioProps>
|
|
127
|
+
export declare const RadioGroup: VueComponentType<RadioGroupProps>
|
|
128
|
+
export declare const Slider: VueComponentType<SliderProps>
|
|
129
|
+
export declare const Switch: VueComponentType<SwitchProps>
|
|
130
|
+
export declare const Textarea: VueComponentType<TextareaProps>
|
|
131
|
+
/** 导航 */
|
|
132
|
+
export declare const FunctionalPageNavigator: VueComponentType<FunctionalPageNavigatorProps>
|
|
133
|
+
export declare const Navigator: VueComponentType<NavigatorProps>
|
|
134
|
+
export declare const NavigationBar: VueComponentType<NavigationBarProps>
|
|
135
|
+
/** 媒体组件 */
|
|
136
|
+
export declare const Audio: VueComponentType<AudioProps>
|
|
137
|
+
export declare const Camera: VueComponentType<CameraProps>
|
|
138
|
+
export declare const Image: VueComponentType<ImageProps>
|
|
139
|
+
export declare const LivePlayer: VueComponentType<LivePlayerProps>
|
|
140
|
+
export declare const LivePusher: VueComponentType<LivePusherProps>
|
|
141
|
+
export declare const Video: VueComponentType<VideoProps>
|
|
142
|
+
export declare const VoipRoom: VueComponentType<VoipRoomProps>
|
|
143
|
+
/** 地图 */
|
|
144
|
+
export declare const Map: VueComponentType<MapProps>
|
|
145
|
+
/** 画布 */
|
|
146
|
+
export declare const Canvas: VueComponentType<CanvasProps>
|
|
147
|
+
/** 开放能力 */
|
|
148
|
+
export declare const Ad: VueComponentType<AdProps>
|
|
149
|
+
export declare const AdCustom: VueComponentType<AdCustomProps>
|
|
150
|
+
export declare const OfficialAccount: VueComponentType<OfficialAccountProps>
|
|
151
|
+
export declare const OpenData: VueComponentType<OpenDataProps>
|
|
152
|
+
export declare const WebView: VueComponentType<WebViewProps>
|
|
153
|
+
/** 配置节点 */
|
|
154
|
+
export declare const PageMeta: VueComponentType<PageMetaProps>
|
|
155
|
+
|
|
156
|
+
export declare const CustomWrapper: VueComponentType<CustomWrapperProps>
|
|
157
|
+
export declare const Slot: VueComponentType<SlotProps>
|
package/types/props.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export { StandardProps } from './common'
|
|
2
|
+
/** 视图容器 */
|
|
3
|
+
export { BlockProps } from './Block'
|
|
4
|
+
export { CoverImageProps } from './CoverImage'
|
|
5
|
+
export { CoverViewProps } from './CoverView'
|
|
6
|
+
export { MatchMediaProps } from './MatchMedia'
|
|
7
|
+
export { MovableAreaProps } from './MovableArea'
|
|
8
|
+
export { MovableViewProps } from './MovableView'
|
|
9
|
+
export { PageContainerProps } from './PageContainer'
|
|
10
|
+
export { ScrollViewProps } from './ScrollView'
|
|
11
|
+
export { ShareElementProps } from './ShareElement'
|
|
12
|
+
export { SwiperProps } from './Swiper'
|
|
13
|
+
export { SwiperItemProps } from './SwiperItem'
|
|
14
|
+
export { ViewProps } from './View'
|
|
15
|
+
|
|
16
|
+
/** 基础内容 */
|
|
17
|
+
export { IconProps } from './Icon'
|
|
18
|
+
export { ProgressProps } from './Progress'
|
|
19
|
+
export { RichTextProps } from './RichText'
|
|
20
|
+
export { TextProps } from './Text'
|
|
21
|
+
|
|
22
|
+
/** 表单组件 */
|
|
23
|
+
export { ButtonProps } from './Button'
|
|
24
|
+
export { CheckboxProps } from './Checkbox'
|
|
25
|
+
export { CheckboxGroupProps } from './CheckboxGroup'
|
|
26
|
+
export { EditorProps } from './Editor'
|
|
27
|
+
export { FormProps } from './Form'
|
|
28
|
+
export { InputProps } from './Input'
|
|
29
|
+
export { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
30
|
+
export { LabelProps } from './Label'
|
|
31
|
+
export { PickerDateProps, PickerMultiSelectorProps, PickerRegionProps, PickerSelectorProps, PickerTimeProps } from './Picker'
|
|
32
|
+
export { PickerViewProps } from './PickerView'
|
|
33
|
+
export { PickerViewColumnProps } from './PickerViewColumn'
|
|
34
|
+
export { RadioProps } from './Radio'
|
|
35
|
+
export { RadioGroupProps } from './RadioGroup'
|
|
36
|
+
export { SliderProps } from './Slider'
|
|
37
|
+
export { SwitchProps } from './Switch'
|
|
38
|
+
export { TextareaProps } from './Textarea'
|
|
39
|
+
|
|
40
|
+
/** 导航 */
|
|
41
|
+
export { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
42
|
+
export { NavigationBarProps } from './NavigationBar'
|
|
43
|
+
export { NavigatorProps } from './Navigator'
|
|
44
|
+
// export { TabbarProps } from './Tabbar'
|
|
45
|
+
// export { TabbarItemProps } from './TabbarItem'
|
|
46
|
+
|
|
47
|
+
/** 媒体组件 */
|
|
48
|
+
export { AudioProps } from './Audio'
|
|
49
|
+
export { CameraProps } from './Camera'
|
|
50
|
+
export { ImageProps } from './Image'
|
|
51
|
+
export { LivePlayerProps } from './LivePlayer'
|
|
52
|
+
export { LivePusherProps } from './LivePusher'
|
|
53
|
+
export { VideoProps } from './Video'
|
|
54
|
+
export { VoipRoomProps } from './VoipRoom'
|
|
55
|
+
|
|
56
|
+
/** 地图 */
|
|
57
|
+
export { MapProps } from './Map'
|
|
58
|
+
|
|
59
|
+
/** 画布 */
|
|
60
|
+
export { CanvasProps } from './Canvas'
|
|
61
|
+
|
|
62
|
+
/** 开放能力 */
|
|
63
|
+
export { AdProps } from './Ad'
|
|
64
|
+
export { AdCustomProps } from './AdCustom'
|
|
65
|
+
export { OfficialAccountProps } from './OfficialAccount'
|
|
66
|
+
export { OpenDataProps } from './OpenData'
|
|
67
|
+
export { WebViewProps } from './WebView'
|
|
68
|
+
|
|
69
|
+
/** 配置节点 */
|
|
70
|
+
export { CustomWrapperProps } from './CustomWrapper'
|
|
71
|
+
export { PageMetaProps } from './PageMeta'
|
|
72
|
+
export { SlotProps } from './Slot'
|
package/virtual-list/memoize.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
/* eslint-disable no-case-declarations */
|
|
3
3
|
/* eslint-disable no-void */
|
|
4
4
|
/* eslint-disable no-return-assign */
|
|
5
|
-
import
|
|
5
|
+
import { createSelectorQuery } from '@tarojs/taro'
|
|
6
|
+
import { createElement, PureComponent } from 'react'
|
|
7
|
+
|
|
6
8
|
import { getRTLOffsetType } from '../domHelpers'
|
|
7
9
|
import { memoizeOne } from '../memoize'
|
|
8
|
-
import { createElement, PureComponent } from 'react'
|
|
9
10
|
import { cancelTimeout, requestTimeout } from '../timer'
|
|
10
11
|
|
|
11
12
|
const IS_SCROLLING_DEBOUNCE_INTERVAL = 200
|
|
@@ -22,7 +23,7 @@ export function isRtlFunc ({ direction }) {
|
|
|
22
23
|
return direction === 'rtl'
|
|
23
24
|
}
|
|
24
25
|
export function getRectSize (id, success = () => {}, fail = () => {}) {
|
|
25
|
-
const query =
|
|
26
|
+
const query = createSelectorQuery()
|
|
26
27
|
query.select(id).boundingClientRect((res) => {
|
|
27
28
|
if (res) {
|
|
28
29
|
success(res)
|
package/virtual-list/timer.js
CHANGED
package/vue3.d.ts
ADDED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
function createCommonjsModule(r,e,o){return o={path:e,exports:{},require:function(r,e){return commonjsRequire()}},r(o,o.exports),o.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var classnames=createCommonjsModule((function(r){
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
|
4
|
-
Licensed under the MIT License (MIT), see
|
|
5
|
-
http://jedwatson.github.io/classnames
|
|
6
|
-
*/
|
|
7
|
-
(function(){var e={}.hasOwnProperty;function o(){var r=[];for(var n=0;n<arguments.length;n++){var t=arguments[n];if(!t)continue;var s=typeof t;if(s==="string"||s==="number"){r.push(t)}else if(Array.isArray(t)){if(t.length){var i=o.apply(null,t);if(i){r.push(i)}}}else if(s==="object"){if(t.toString===Object.prototype.toString){for(var u in t){if(e.call(t,u)&&t[u]){r.push(u)}}}else{r.push(t.toString())}}}return r.join(" ")}if(r.exports){o.default=o;r.exports=o}else{window.classNames=o}})()}));export{classnames as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-b2d01686.system.js","@tarojs/taro","./p-94c20f60.system.js"],(function(e){"use strict";var t,r,n,i,o,s,a;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.H;o=e.g},function(e){s=e.default},function(e){a=e.c}],execute:function(){var c=".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0px;transform-origin:left top 0px}.rmc-pull-to-refresh-content-wrapper{overflow:hidden}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:grey;width:6px;height:6px;border-radius:100%;margin:3px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";function l(e,t){e.transform=t;e.webkitTransform=t;e.MozTransform=t}var f=typeof navigator!=="undefined"&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);var u={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};var d=false;try{var h=Object.defineProperty({},"passive",{get:function(){d=true}});window.addEventListener("cancel",(function(){return{}}),h)}catch(e){}var p=d?{passive:false}:false;var m=e("taro_pull_to_refresh",function(){function e(e){var n=this;t(this,e);this.onRefresh=r(this,"refresh",7);this.prefixCls="rmc-pull-to-refresh";this.distanceToRefresh=50;this.damping=100;this.indicator=u;this.currSt="deactivate";this.dragOnEdge=false;this._ScreenY=0;this._startScreenY=0;this._lastScreenY=0;this._isMounted=false;this.triggerPullDownRefresh=function(e){if(!n.dragOnEdge&&n._isMounted){if(e){n._lastScreenY=n.distanceToRefresh+1;n.currSt="release";n.setContentStyle(n._lastScreenY)}else{n.currSt="finish";n.reset()}}};this.init=function(){var e=n.scrollContainer;n._to={touchstart:n.onTouchStart.bind(n,e),touchmove:n.onTouchMove.bind(n,e),touchend:n.onTouchEnd.bind(n,e),touchcancel:n.onTouchEnd.bind(n,e)};Object.keys(n._to).forEach((function(t){e.addEventListener(t,n._to[t],p)}))};this.destroy=function(){var e=n.scrollContainer;Object.keys(n._to).forEach((function(t){e.removeEventListener(t,n._to[t])}))};this.onTouchStart=function(e,t){n._ScreenY=n._startScreenY=t.touches[0].screenY;n._lastScreenY=n._lastScreenY||0};this.isEdge=function(e){var t=n.scrollContainer;if(t&&t===document.body){var r=document.scrollingElement?document.scrollingElement:document.body;return r.scrollTop<=0}return e.scrollTop<=0};this.damp=function(e){if(Math.abs(n._lastScreenY)>n.damping){return 0}var t=Math.abs(n._ScreenY-n._startScreenY)/window.screen.height;e*=(1-t)*.6;return e};this.onTouchMove=function(e,t){var r=t.touches[0].screenY;if(n._startScreenY>r){return}if(n.isEdge(e)){if(!n.dragOnEdge){n._ScreenY=n._startScreenY=t.touches[0].screenY;n.dragOnEdge=true}if(t.cancelable){t.preventDefault()}var i=Math.round(r-n._ScreenY);n._ScreenY=r;n._lastScreenY+=n.damp(i);n.setContentStyle(n._lastScreenY);if(Math.abs(n._lastScreenY)<n.distanceToRefresh){if(n.currSt!=="deactivate"){n.currSt="deactivate"}}else{if(n.currSt==="deactivate"){n.currSt="activate"}}if(f&&t.changedTouches[0].clientY<0){n.onTouchEnd()}}};this.onTouchEnd=function(){if(n.dragOnEdge){n.dragOnEdge=false}if(n.currSt==="activate"){n.currSt="release";n.onRefresh.emit(n);n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else if(n.currSt==="release"){n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else{n.reset()}};this.reset=function(){n._lastScreenY=0;n.setContentStyle(0)};this.setContentStyle=function(e){if(n.contentRef){if(e){l(n.contentRef.style,"translate3d(0px,"+e+"px,0)")}else{l(n.contentRef.style,"")}}}}Object.defineProperty(e.prototype,"scrollContainer",{get:function(){return document.querySelector(".taro-tabbar__panel")||document.body},enumerable:false,configurable:true});e.prototype.statusChange=function(){if(this.currSt==="release"){var e=this.el.closest(".taro_page");if(e&&e.__page){e.__page.onPullDownRefresh()}}};e.prototype.disconnectedCallback=function(){this.destroy()};e.prototype.componentDidLoad=function(){var e=this;this.init();this._isMounted=true;s.eventCenter.on("__taroStartPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(true);r({errMsg:"startPullDownRefresh: ok"})}catch(e){n({errMsg:"startPullDownRefresh: fail"})}}));s.eventCenter.on("__taroStopPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(false);r({errMsg:"stopPullDownRefresh: ok"})}catch(e){n({errMsg:"stopPullDownRefresh: fail"})}}))};e.prototype.render=function(){var e=this;var t=function(t){var r=e,i=r.currSt,o=r.dragOnEdge,s=r.prefixCls;var c=a(t,!o&&s+"-transition");var l=i==="activate"||i==="release";return n("div",{class:s+"-content-wrapper"},n("div",{class:c,ref:function(t){e.contentRef=t}},l&&n("div",{class:s+"-indicator"},n("div",null),n("div",null),n("div",null)),n("slot",null)))};if(this.scrollContainer){return t(this.prefixCls+"-content "+this.prefixCls+"-down")}return n(i,{class:a(this.prefixCls,this.prefixCls+"-down")},t(this.prefixCls+"-content"))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currSt:["statusChange"]}},enumerable:false,configurable:true});return e}());m.style=c}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as r,H as a}from"./p-f05e1558.js";let t=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 NavigationBar 组件!")}render(){return r(a,null)}};export{t as taro_navigation_bar_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as s,H as r}from"./p-f05e1558.js";import{c as t}from"./p-37cfdd8f.js";let c=class{constructor(s){o(this,s),this.size="23"}render(){const{type:o,size:c,color:e}=this,i=null==o?void 0:o.replace(/_/g,"-"),l=t({[`weui-icon-${i}`]:!0});return s(r,{class:l,style:{"font-size":`${c}px`,color:e}})}};export{c as taro_icon_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,g as o}from"./p-f05e1558.js";import{c as h}from"./p-37cfdd8f.js";let r=class{constructor(e){t(this,e),this.onLongPress=s(this,"longpress",7),this.hoverStartTime=50,this.hoverStayTime=400,this.hover=!1,this.touch=!1,this.startTime=0}onTouchStart(){this.hoverClass&&(this.touch=!0,setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime)),this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350),this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){Date.now()-this.startTime<350&&clearTimeout(this.timeoutEvent),this.hoverClass&&(this.touch=!1,setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime))}componentDidRender(){const t=this.el;t.childNodes.forEach((s=>{s.nodeType===document.COMMENT_NODE&&t.removeChild(s)}))}render(){const t=h({[`${this.hoverClass}`]:this.hover});let s={};return this.animation&&(s.animation=this.animation,s["data-animation"]=this.animation),e(i,Object.assign({class:t},s),e("slot",null))}get el(){return o(this)}};r.style="body,html{-webkit-tap-highlight-color:rgba(0, 0, 0, 0);user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}taro-view-core{display:block}";export{r as taro_view_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-b2d01686.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.g}],execute:function(){var o="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{-webkit-appearance:none;cursor:auto;width:100%;height:150px;border:0;display:block;position:relative;line-height:1.5}.taro-textarea:focus{outline:none}";function r(e){return e!==null&&e!==void 0?e:""}var h=e("taro_textarea_core",function(){function e(e){var i=this;t(this,e);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onChange=n(this,"change",7);this.onLineChange=n(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();i.handleLineChange();i.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){i.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){i.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=i.getNumberOfLines();if(e!==i.line){i.line=e;i.onLineChange.emit({height:i.textareaRef.clientHeight,lineCount:i.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,i=e.offsetHeight,a=e.scrollHeight,o=e.style.overflow;if(i>=a){e.style.height=i+t+"px";e.style.overflow="hidden";if(a<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(i-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=i+++"px"}e.style.height=n;e.style.overflow=o;return i}}else{return a}};this.getNumberOfLines=function(){var e=i.textareaRef,t=window.getComputedStyle?window.getComputedStyle(e):e.style,n=parseInt(t.lineHeight,10),a=i.calculateContentHeight(e,n),o=Math.floor(a/n);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,o=t.disabled,h=t.maxlength,l=t.autoFocus,s=t.autoHeight,u=t.name,c=t.nativeProps,g=t.handleInput,f=t.handleFocus,p=t.handleBlur,d=t.handleChange;var v={};if(s){v.rows=this.line}return i("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(s?"auto-height":""),value:r(n),placeholder:a,name:u,disabled:o,maxlength:h,autofocus:l,onInput:g,onFocus:f,onBlur:p,onChange:d},c,v))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());h.style=o}}}));
|