@tarojs/components 3.5.0-canary.1 → 3.5.0-theta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
- package/dist/cjs/index-47a1959e.js +34 -0
- package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-input-core.cjs.entry.js +16 -19
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +15 -5
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +6 -14
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +14 -17
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +38 -38
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +5 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -23
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +7 -4
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +15 -23
- package/dist/collection/components/navigator/navigator.js +2 -2
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +218 -4
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +13 -3
- package/dist/collection/components/pull-to-refresh/style/index.css +53 -49
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +3 -11
- package/dist/collection/components/swiper/swiper.js +10 -13
- package/dist/collection/components/tabbar/style/index.css +9 -6
- package/dist/collection/components/tabbar/tabbar.js +13 -13
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -1
- package/dist/collection/components/video/style/index.css +88 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video-control.js +9 -9
- package/dist/collection/components/video/video.js +57 -9
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/view/view.js +2 -2
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +23 -83
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
- package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-input-core.entry.js +16 -19
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +4 -4
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +15 -5
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +5 -13
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +11 -14
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +38 -38
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +5 -3
- package/dist/esm/taro-video-control_3.entry.js +27867 -223
- package/dist/esm/taro-view-core.entry.js +5 -5
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-1d8e8acd.js +7 -0
- package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
- package/dist/esm-es5/index-cad8203e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-019591c8.system.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
- package/dist/taro-components/p-0996daee.entry.js +1 -0
- package/dist/taro-components/{p-94502fc3.entry.js → p-0ca42006.entry.js} +1 -1
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/{p-336f2b2a.system.entry.js → p-0d1e0e91.system.entry.js} +1 -1
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/{p-cdffee54.system.entry.js → p-12deba0b.system.entry.js} +1 -1
- package/dist/taro-components/p-133e3ac4.entry.js +1 -0
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
- package/dist/taro-components/{p-14dbbb42.entry.js → p-16c1e564.entry.js} +1 -1
- package/dist/taro-components/{p-0c2982fc.system.entry.js → p-178a3adf.system.entry.js} +1 -1
- package/dist/taro-components/p-1c0ebbd5.entry.js +1 -0
- package/dist/taro-components/p-1e0406ec.system.entry.js +1 -0
- package/dist/taro-components/p-1e516bd0.entry.js +1 -0
- package/dist/taro-components/p-2241b671.system.js +1 -0
- package/dist/taro-components/p-26e9ce75.entry.js +1 -0
- package/dist/taro-components/{p-98b47fc9.system.entry.js → p-2887213d.system.entry.js} +1 -1
- package/dist/taro-components/{p-3334ac67.system.entry.js → p-29b7c721.system.entry.js} +1 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
- package/dist/taro-components/{p-e03fa2d5.system.entry.js → p-2e8a1479.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
- package/dist/taro-components/p-38d7c2e8.system.entry.js +1 -0
- package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-3b801a38.system.entry.js} +1 -1
- package/dist/taro-components/p-3b85bb4b.system.entry.js +1 -0
- package/dist/taro-components/{p-59d38db0.entry.js → p-3bb72c08.entry.js} +1 -1
- package/dist/taro-components/{p-15bea37d.entry.js → p-3d3cd72f.entry.js} +1 -1
- package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
- package/dist/taro-components/p-44a199e4.entry.js +1 -0
- package/dist/taro-components/{p-cfbfeee8.entry.js → p-45e6f8be.entry.js} +1 -1
- package/dist/taro-components/p-46b7f84e.entry.js +1 -0
- package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
- package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
- package/dist/taro-components/p-53244eac.entry.js +1 -0
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-df5a19b0.system.entry.js → p-5ff0e954.system.entry.js} +1 -1
- package/dist/taro-components/p-61f225ef.system.js +7 -0
- package/dist/taro-components/p-62608b28.system.entry.js +1 -0
- package/dist/taro-components/{p-0303f9e0.entry.js → p-62c64770.entry.js} +1 -1
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
- package/dist/taro-components/p-671defcd.entry.js +1 -0
- package/dist/taro-components/p-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/{p-b87cf623.entry.js → p-74013ace.entry.js} +1 -1
- package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
- package/dist/taro-components/p-761d1085.entry.js +1 -0
- package/dist/taro-components/p-76724e58.js +7 -0
- package/dist/taro-components/{p-1e4f1702.system.entry.js → p-78676120.system.entry.js} +1 -1
- package/dist/taro-components/p-79b16736.system.entry.js +1 -0
- package/dist/taro-components/p-7b2049b7.entry.js +1 -0
- package/dist/taro-components/p-7dc268ee.entry.js +1 -0
- package/dist/taro-components/p-7f7aa688.entry.js +1 -0
- package/dist/taro-components/p-80abb865.entry.js +1 -0
- package/dist/taro-components/{p-55b0a30b.entry.js → p-81976128.entry.js} +1 -1
- package/dist/taro-components/p-81dc5b7b.entry.js +1 -0
- package/dist/taro-components/{p-99cb65a6.system.entry.js → p-828efe43.system.entry.js} +1 -1
- package/dist/taro-components/{p-7cdad34e.system.entry.js → p-831ebd02.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ee69803.entry.js → p-832cc63a.entry.js} +1 -1
- package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
- package/dist/taro-components/p-841a2031.system.entry.js +365 -0
- package/dist/taro-components/{p-b6d6c744.entry.js → p-86205110.entry.js} +1 -1
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
- package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
- package/dist/taro-components/p-8ead6b19.entry.js +1 -0
- package/dist/taro-components/{p-ebf5b2eb.system.entry.js → p-8f466248.system.entry.js} +1 -1
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
- package/dist/taro-components/p-917830b4.system.entry.js +1 -0
- package/dist/taro-components/p-95e51d62.entry.js +1 -0
- package/dist/taro-components/p-9961074d.entry.js +1 -0
- package/dist/taro-components/{p-3643d8f7.system.entry.js → p-9b90554b.system.entry.js} +1 -1
- package/dist/taro-components/{p-06af26db.system.entry.js → p-9ce624a4.system.entry.js} +1 -1
- package/dist/taro-components/p-a097985b.entry.js +1 -0
- package/dist/taro-components/{p-7423fc3b.system.entry.js → p-a36bfe97.system.entry.js} +1 -1
- package/dist/taro-components/p-a4721ae0.js +1 -0
- package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
- package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
- package/dist/taro-components/p-a84098b5.system.entry.js +1 -0
- package/dist/taro-components/{p-8b2bf902.system.entry.js → p-a90bfe9d.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2f6448d.system.entry.js → p-a9ab6434.system.entry.js} +1 -1
- package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-ac398961.system.entry.js} +1 -1
- package/dist/taro-components/{p-4dbed323.entry.js → p-ac56ffed.entry.js} +1 -1
- package/dist/taro-components/{p-fc4939c6.system.entry.js → p-baa5019a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fb0959c1.system.entry.js → p-c1458fbe.system.entry.js} +1 -1
- package/dist/taro-components/p-c7dd3c92.entry.js +1 -0
- package/dist/taro-components/p-c9b73495.entry.js +1 -0
- package/dist/taro-components/{p-8f90fca9.system.entry.js → p-ca7ad427.system.entry.js} +1 -1
- package/dist/taro-components/{p-8bc82aaa.entry.js → p-ce0489a6.entry.js} +1 -1
- package/dist/taro-components/{p-9d0ab7c4.entry.js → p-ce46f79d.entry.js} +1 -1
- package/dist/taro-components/{p-2d2f8064.entry.js → p-cfebd931.entry.js} +1 -1
- package/dist/taro-components/p-d2b6b891.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
- package/dist/taro-components/p-d7e13592.entry.js +365 -0
- package/dist/taro-components/{p-0472e474.system.entry.js → p-de573939.system.entry.js} +1 -1
- package/dist/taro-components/p-e01af6c8.entry.js +1 -0
- package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
- package/dist/taro-components/{p-527a38ee.system.entry.js → p-ec59899b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d1c2481c.system.entry.js → p-f1da4ed7.system.entry.js} +1 -1
- package/dist/taro-components/p-fc226017.entry.js +1 -0
- package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +0 -3
- package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/swiper/swiper.d.ts +2 -2
- package/dist/types/components/tabbar/tabbar.d.ts +3 -2
- package/dist/types/components/video/utils.d.ts +6 -0
- package/dist/types/components/video/video-control.d.ts +2 -2
- package/dist/types/components.d.ts +22 -0
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -8
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/components/input.js +2 -2
- package/dist-h5/react/index.js +1 -46
- package/dist-h5/react/utils/reactify-wc.js +8 -5
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/components/picker.js +2 -2
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/createFormsComponent.js +2 -2
- package/dist-h5/vue/index.js +23 -26
- package/dist-h5/vue/mixins/listeners.js +2 -2
- package/dist-h5/vue3/components/icon.js +3 -0
- package/dist-h5/vue3/components/image.js +3 -0
- package/dist-h5/vue3/components/index.js +64 -0
- package/dist-h5/vue3/components/scroll-view.js +3 -0
- package/dist-h5/vue3/components/text.js +3 -0
- package/dist-h5/vue3/createComponent.js +3 -0
- package/dist-h5/vue3/createFormsComponent.js +6 -3
- package/dist-h5/vue3/forwardRef.js +11 -0
- package/dist-h5/vue3/index.js +12 -29
- package/package.json +26 -10
- package/types/Ad.d.ts +15 -15
- package/types/Audio.d.ts +3 -3
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +49 -33
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +10 -10
- package/types/Form.d.ts +8 -8
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Image.d.ts +2 -2
- package/types/Input.d.ts +41 -37
- package/types/KeyboardAccessory.d.ts +21 -8
- package/types/Label.d.ts +2 -2
- package/types/LivePlayer.d.ts +18 -18
- package/types/LivePusher.d.ts +14 -14
- package/types/Map.d.ts +33 -33
- package/types/MovableArea.d.ts +1 -1
- package/types/MovableView.d.ts +18 -18
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -7
- package/types/OpenData.d.ts +10 -10
- package/types/PageContainer.d.ts +22 -22
- package/types/Picker.d.ts +5 -5
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +6 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +7 -2
- package/types/ScrollView.d.ts +9 -9
- package/types/ShareElement.d.ts +196 -3
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +7 -7
- package/types/Switch.d.ts +3 -3
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +21 -21
- package/types/Video.d.ts +23 -23
- package/types/View.d.ts +2 -2
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +6 -6
- package/types/common.d.ts +4 -2
- package/types/index.d.ts +53 -52
- package/types/index.vue3.d.ts +157 -0
- package/types/props.ts +72 -0
- package/virtual-list/memoize.js +1 -0
- package/virtual-list/react/createListComponent.js +4 -3
- package/virtual-list/react/index.js +2 -1
- package/virtual-list/timer.js +1 -1
- package/virtual-list/vue/index.js +1 -1
- package/vue3.d.ts +3 -0
- package/LICENSE +0 -21
- package/dist/esm-es5/index-3c78bcaf.js +0 -7
- package/dist/taro-components/p-04818461.system.entry.js +0 -1
- package/dist/taro-components/p-065ec61d.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2dc57c71.system.entry.js +0 -1
- package/dist/taro-components/p-32937866.entry.js +0 -1
- package/dist/taro-components/p-33ee636a.system.js +0 -1
- package/dist/taro-components/p-37cfdd8f.js +0 -7
- package/dist/taro-components/p-3c0230ba.entry.js +0 -1
- package/dist/taro-components/p-3dfb1807.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
- package/dist/taro-components/p-554e1039.entry.js +0 -1
- package/dist/taro-components/p-56618f09.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-63ff7fa7.entry.js +0 -1
- package/dist/taro-components/p-7721e046.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-92e95d3f.entry.js +0 -1
- package/dist/taro-components/p-94c20f60.system.js +0 -7
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-9dc9c615.system.entry.js +0 -1
- package/dist/taro-components/p-9eb7dfa8.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-abe415b4.system.entry.js +0 -1
- package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
- package/dist/taro-components/p-b55fedc1.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-cb395e7d.entry.js +0 -1
- package/dist/taro-components/p-cc818a13.entry.js +0 -1
- package/dist/taro-components/p-cf55a63c.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d567b95e.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-e1040131.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fcc1c676.system.entry.js +0 -1
- package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-26d8b479.js';
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
|
-
import { c as classnames } from './index-
|
|
3
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const indexCss = ".navigator-hover{background:#efefef}";
|
|
6
6
|
|
|
7
7
|
let Navigator = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -64,6 +64,6 @@ let Navigator = class {
|
|
|
64
64
|
}) }));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
Navigator.style =
|
|
67
|
+
Navigator.style = indexCss;
|
|
68
68
|
|
|
69
69
|
export { Navigator as taro_navigator_core };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { c as classnames } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
3
3
|
|
|
4
4
|
function getTimeRange(begin, end) {
|
|
5
5
|
const range = [];
|
|
@@ -1,15 +1,91 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-26d8b479.js';
|
|
2
|
+
import { d as debounce } from './index-cad8203e.js';
|
|
3
|
+
|
|
4
|
+
const columnCss = ".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";
|
|
2
5
|
|
|
3
6
|
let PickerViewColumn = class {
|
|
4
7
|
constructor(hostRef) {
|
|
5
8
|
registerInstance(this, hostRef);
|
|
9
|
+
this.onChange = createEvent(this, "onselect", 7);
|
|
10
|
+
this.onSelectStart = createEvent(this, "onselectstart", 7);
|
|
11
|
+
this.onSelectEnd = createEvent(this, "onselectend", 7);
|
|
12
|
+
// 初始化的选中位置
|
|
13
|
+
this.initialPosition = '0';
|
|
14
|
+
// 滑动距离上下留白区域-通过父视图和 indicator 计算而来
|
|
15
|
+
this.paddingVertical = 0;
|
|
16
|
+
this.isInit = false;
|
|
17
|
+
this.isMove = false;
|
|
18
|
+
// 滚动结束自动回到合适的位置
|
|
19
|
+
this.handleSelected = debounce(() => {
|
|
20
|
+
const childList = this.el.childNodes;
|
|
21
|
+
let sum = 0;
|
|
22
|
+
let selectedIndex = '0';
|
|
23
|
+
for (const index in childList) {
|
|
24
|
+
const item = childList[index];
|
|
25
|
+
const itemHeight = item.offsetHeight;
|
|
26
|
+
if (sum + itemHeight / 2.0 > this.el.scrollTop) {
|
|
27
|
+
selectedIndex = index;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
sum += itemHeight;
|
|
31
|
+
}
|
|
32
|
+
this.el.scrollTo({
|
|
33
|
+
top: sum,
|
|
34
|
+
behavior: 'smooth'
|
|
35
|
+
});
|
|
36
|
+
this.onChange.emit({
|
|
37
|
+
curIndex: this.col,
|
|
38
|
+
selectedIndex: selectedIndex
|
|
39
|
+
});
|
|
40
|
+
this.onSelectEnd.emit();
|
|
41
|
+
}, 500);
|
|
42
|
+
}
|
|
43
|
+
onScroll(_event) {
|
|
44
|
+
if (!this.isMove) {
|
|
45
|
+
this.isMove = true;
|
|
46
|
+
this.onSelectStart.emit();
|
|
47
|
+
}
|
|
48
|
+
this.handleSelected();
|
|
49
|
+
}
|
|
50
|
+
onMouseEnd() {
|
|
51
|
+
if (!this.isMove)
|
|
52
|
+
return;
|
|
53
|
+
this.isMove = false;
|
|
54
|
+
this.handleSelected();
|
|
55
|
+
}
|
|
56
|
+
onTouchEnd() {
|
|
57
|
+
this.isMove = false;
|
|
58
|
+
this.handleSelected();
|
|
6
59
|
}
|
|
7
|
-
|
|
8
|
-
|
|
60
|
+
componentDidUpdate() {
|
|
61
|
+
if (!this.isInit) {
|
|
62
|
+
this.isInit = true;
|
|
63
|
+
const childList = this.el.childNodes;
|
|
64
|
+
let idx = 0;
|
|
65
|
+
let sum = 0;
|
|
66
|
+
for (const index in childList) {
|
|
67
|
+
const item = childList[index];
|
|
68
|
+
if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
sum += item.offsetHeight;
|
|
72
|
+
idx++;
|
|
73
|
+
}
|
|
74
|
+
this.el.scrollTo({ top: sum });
|
|
75
|
+
if (idx >= childList.length) {
|
|
76
|
+
this.onChange.emit({
|
|
77
|
+
curIndex: this.col,
|
|
78
|
+
selectedIndex: idx - 1
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
9
82
|
}
|
|
10
83
|
render() {
|
|
11
|
-
|
|
84
|
+
const { paddingVertical = 0 } = this;
|
|
85
|
+
return (h(Host, { class: "taro-picker-view-column-container", style: { 'padding-top': `${paddingVertical}px`, 'padding-bottom': `${paddingVertical}px` } }));
|
|
12
86
|
}
|
|
87
|
+
get el() { return getElement(this); }
|
|
13
88
|
};
|
|
89
|
+
PickerViewColumn.style = columnCss;
|
|
14
90
|
|
|
15
91
|
export { PickerViewColumn as taro_picker_view_column_core };
|
|
@@ -1,15 +1,84 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
3
|
+
|
|
4
|
+
function convertStyle(style) {
|
|
5
|
+
if (style) {
|
|
6
|
+
const regex = /([\w-]*)\s*:\s*([^;]*)/g;
|
|
7
|
+
const properties = {};
|
|
8
|
+
let match;
|
|
9
|
+
while ((match = regex.exec(style)))
|
|
10
|
+
properties[`${match[1]}`] = match[2].trim();
|
|
11
|
+
return properties;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const indexCss = ".taro-picker-view-container{display:-ms-flexbox;display:flex;position:relative}.taro-picker-view-mask-container{display:-ms-flexbox;display:flex;position:absolute;left:0;right:0;top:0;bottom:0;-ms-flex-direction:column;flex-direction:column;pointer-events:none}.taro-picker-view-mask-indicator{display:-ms-flexbox;display:flex;border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:50px}.taro-picker-view-mask-top{-ms-flex:1;flex:1;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}.taro-picker-view-mask-bottom{-ms-flex:1;flex:1;background:-webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background:linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}";
|
|
2
16
|
|
|
3
17
|
let PickerView = class {
|
|
4
18
|
constructor(hostRef) {
|
|
5
19
|
registerInstance(this, hostRef);
|
|
20
|
+
this.onChange = createEvent(this, "change", 7);
|
|
21
|
+
this.onPickStart = createEvent(this, "pickstart", 7);
|
|
22
|
+
this.onPickEnd = createEvent(this, "pickend", 7);
|
|
23
|
+
}
|
|
24
|
+
onSelect(e) {
|
|
25
|
+
e.stopPropagation();
|
|
26
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
27
|
+
return;
|
|
28
|
+
let _curIndex = +e.detail.curIndex;
|
|
29
|
+
let _selectedIndex = +e.detail.selectedIndex;
|
|
30
|
+
this.value[_curIndex] = _selectedIndex;
|
|
31
|
+
this.onChange.emit({ value: this.value });
|
|
32
|
+
}
|
|
33
|
+
onSelectStart(e) {
|
|
34
|
+
e.stopPropagation();
|
|
35
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
36
|
+
return;
|
|
37
|
+
this.onPickStart.emit();
|
|
38
|
+
}
|
|
39
|
+
onPickerColEnd(e) {
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
42
|
+
return;
|
|
43
|
+
this.onPickEnd.emit();
|
|
6
44
|
}
|
|
7
45
|
componentDidLoad() {
|
|
8
|
-
|
|
46
|
+
const childList = this.el.querySelectorAll('taro-picker-view-column-core');
|
|
47
|
+
childList.forEach((element, index) => {
|
|
48
|
+
var _a;
|
|
49
|
+
element.setAttribute('col', `${index}`);
|
|
50
|
+
let selectIndex = '0';
|
|
51
|
+
if (!!this.value && this.value.length > index) {
|
|
52
|
+
selectIndex = `${this.value[index]}`;
|
|
53
|
+
}
|
|
54
|
+
const pickerHeight = this.el.getBoundingClientRect().height;
|
|
55
|
+
const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
56
|
+
const paddingVertical = (pickerHeight - indicatorHeight) / 2.0;
|
|
57
|
+
element.setAttribute('initial-position', `${selectIndex}`);
|
|
58
|
+
element.setAttribute('padding-vertical', `${paddingVertical}`);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// 过滤非 PickerViewColumn 组件
|
|
62
|
+
componentDidRender() {
|
|
63
|
+
this.el.childNodes.forEach(item => {
|
|
64
|
+
const childEle = item;
|
|
65
|
+
if ('TARO-PICKER-VIEW-COLUMN-CORE' !== childEle.tagName &&
|
|
66
|
+
childEle.className !== 'taro-picker-view-mask-container') {
|
|
67
|
+
this.el.removeChild(item);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
9
70
|
}
|
|
10
71
|
render() {
|
|
11
|
-
|
|
72
|
+
const indicatorCls = classnames('taro-picker-view-mask-indicator', this.indicatorClass);
|
|
73
|
+
const maskTopCls = classnames('taro-picker-view-mask-top', this.maskClass);
|
|
74
|
+
const maskBtmCls = classnames('taro-picker-view-mask-bottom', this.maskClass);
|
|
75
|
+
const indicatorStyle = convertStyle(this.indicatorStyle);
|
|
76
|
+
const maskTopStyle = convertStyle(this.maskStyle);
|
|
77
|
+
const maskBottomStyle = convertStyle(this.maskStyle);
|
|
78
|
+
return (h(Host, { class: "taro-picker-view-container" }, h("slot", null), h("div", { class: "taro-picker-view-mask-container" }, h("div", { class: maskTopCls, style: maskTopStyle }), h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }), h("div", { class: maskBtmCls, style: maskBottomStyle }))));
|
|
12
79
|
}
|
|
80
|
+
get el() { return getElement(this); }
|
|
13
81
|
};
|
|
82
|
+
PickerView.style = indexCss;
|
|
14
83
|
|
|
15
84
|
export { PickerView as taro_picker_view_core };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
|
-
import { c as classnames } from './index-
|
|
3
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
4
4
|
|
|
5
|
-
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top
|
|
5
|
+
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.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{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.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}";
|
|
6
6
|
|
|
7
7
|
function setTransform(nodeStyle, value) {
|
|
8
8
|
nodeStyle.transform = value;
|
|
@@ -60,6 +60,11 @@ let PullToRefresh = class {
|
|
|
60
60
|
};
|
|
61
61
|
this.init = () => {
|
|
62
62
|
const ele = this.scrollContainer;
|
|
63
|
+
const child = this.el.querySelector('rmc-pull-to-refresh-content');
|
|
64
|
+
this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
|
|
65
|
+
this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
|
|
66
|
+
this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
|
|
67
|
+
this.el.removeChild = child === null || child === void 0 ? void 0 : child.removeChild.bind(child);
|
|
63
68
|
this._to = {
|
|
64
69
|
touchstart: this.onTouchStart.bind(this, ele),
|
|
65
70
|
touchmove: this.onTouchMove.bind(this, ele),
|
|
@@ -164,7 +169,7 @@ let PullToRefresh = class {
|
|
|
164
169
|
this.setContentStyle(0);
|
|
165
170
|
};
|
|
166
171
|
this.setContentStyle = (ty) => {
|
|
167
|
-
//
|
|
172
|
+
// TODO: Why sometimes do not have `this.contentRef` ?
|
|
168
173
|
if (this.contentRef) {
|
|
169
174
|
// translate3d 不清理 会影响内部元素 定位
|
|
170
175
|
if (ty) {
|
|
@@ -177,7 +182,12 @@ let PullToRefresh = class {
|
|
|
177
182
|
};
|
|
178
183
|
}
|
|
179
184
|
get scrollContainer() {
|
|
180
|
-
return
|
|
185
|
+
return this.el.parentElement ||
|
|
186
|
+
document.querySelector('.taro_page_stationed') ||
|
|
187
|
+
document.querySelector('.taro_page') ||
|
|
188
|
+
document.querySelector('.taro_router') ||
|
|
189
|
+
document.querySelector('.taro-tabbar__panel') ||
|
|
190
|
+
document.body;
|
|
181
191
|
}
|
|
182
192
|
statusChange() {
|
|
183
193
|
if (this.currSt === 'release') {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-26d8b479.js';
|
|
2
2
|
|
|
3
3
|
let RichText = class {
|
|
4
4
|
constructor(hostRef) {
|
|
5
5
|
registerInstance(this, hostRef);
|
|
6
6
|
this.renderNode = (node) => {
|
|
7
7
|
if ('type' in node && node.type === 'text') {
|
|
8
|
-
//
|
|
8
|
+
// nonsupport Html Entries
|
|
9
9
|
const content = (node.text || '').replace(/ /g, '\u00A0');
|
|
10
10
|
return content;
|
|
11
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { c as classnames } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
3
|
+
import { d as debounce } from './index-cad8203e.js';
|
|
3
4
|
|
|
4
5
|
const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
|
|
5
6
|
|
|
@@ -25,15 +26,6 @@ function easeOutScroll(from, to, callback) {
|
|
|
25
26
|
}
|
|
26
27
|
step();
|
|
27
28
|
}
|
|
28
|
-
function debounce(fn, delay) {
|
|
29
|
-
let timer;
|
|
30
|
-
return function (...arrs) {
|
|
31
|
-
clearTimeout(timer);
|
|
32
|
-
timer = setTimeout(function () {
|
|
33
|
-
fn(...arrs);
|
|
34
|
-
}, delay);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
29
|
let ScrollView = class {
|
|
38
30
|
constructor(hostRef) {
|
|
39
31
|
registerInstance(this, hostRef);
|
|
@@ -51,7 +43,7 @@ let ScrollView = class {
|
|
|
51
43
|
const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
52
44
|
this._scrollLeft = scrollLeft;
|
|
53
45
|
this._scrollTop = scrollTop;
|
|
54
|
-
this.
|
|
46
|
+
this.upperAndLower();
|
|
55
47
|
this.onScroll.emit({
|
|
56
48
|
scrollLeft,
|
|
57
49
|
scrollTop,
|
|
@@ -59,7 +51,7 @@ let ScrollView = class {
|
|
|
59
51
|
scrollWidth
|
|
60
52
|
});
|
|
61
53
|
};
|
|
62
|
-
this.
|
|
54
|
+
this.upperAndLower = debounce(() => {
|
|
63
55
|
const { offsetWidth, offsetHeight, scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
64
56
|
const lowerThreshold = Number(this.lowerThreshold);
|
|
65
57
|
const upperThreshold = Number(this.upperThreshold);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { c as classnames } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
3
|
+
import { d as debounce } from './index-cad8203e.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* SSR Window 3.0.0
|
|
@@ -10049,7 +10050,7 @@ let Swiper = class {
|
|
|
10049
10050
|
(_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
10050
10051
|
}
|
|
10051
10052
|
handleInit() {
|
|
10052
|
-
const { autoplay, current,
|
|
10053
|
+
const { autoplay, circular, current, displayMultipleItems, duration, interval, vertical } = this;
|
|
10053
10054
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
10054
10055
|
const that = this;
|
|
10055
10056
|
const options = {
|
|
@@ -10067,7 +10068,7 @@ let Swiper = class {
|
|
|
10067
10068
|
},
|
|
10068
10069
|
// slideChange 事件在 swiper.slideTo 改写 current 时不触发,因此用 slideChangeTransitionEnd 事件代替
|
|
10069
10070
|
slideChangeTransitionEnd(_swiper) {
|
|
10070
|
-
if (circular) {
|
|
10071
|
+
if (that.circular) {
|
|
10071
10072
|
if (_swiper.isBeginning || _swiper.isEnd) {
|
|
10072
10073
|
_swiper.slideToLoop(this.realIndex, 0); // 更新下标
|
|
10073
10074
|
return;
|
|
@@ -10089,7 +10090,12 @@ let Swiper = class {
|
|
|
10089
10090
|
const className = target && typeof target.className === 'string' ? target.className : '';
|
|
10090
10091
|
if (className.includes('taro_page') && target.style.display !== 'none') {
|
|
10091
10092
|
if (that.autoplay && target.contains(_swiper.$el[0])) {
|
|
10092
|
-
|
|
10093
|
+
if (that.circular) {
|
|
10094
|
+
_swiper.slideToLoop(this.realIndex, 0); // 更新下标
|
|
10095
|
+
}
|
|
10096
|
+
else {
|
|
10097
|
+
_swiper.slideTo(this.realIndex);
|
|
10098
|
+
}
|
|
10093
10099
|
}
|
|
10094
10100
|
}
|
|
10095
10101
|
}
|
|
@@ -10143,15 +10149,6 @@ let Swiper = class {
|
|
|
10143
10149
|
"circular": ["watchCircular"]
|
|
10144
10150
|
}; }
|
|
10145
10151
|
};
|
|
10146
|
-
function debounce(fn, delay) {
|
|
10147
|
-
let timer;
|
|
10148
|
-
return function (...arrs) {
|
|
10149
|
-
clearTimeout(timer);
|
|
10150
|
-
timer = setTimeout(function () {
|
|
10151
|
-
fn(...arrs);
|
|
10152
|
-
}, delay);
|
|
10153
|
-
};
|
|
10154
|
-
}
|
|
10155
10152
|
Swiper.style = indexCss;
|
|
10156
10153
|
|
|
10157
10154
|
let SwiperItem = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-26d8b479.js';
|
|
2
2
|
|
|
3
3
|
const indexCss = "taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";
|
|
4
4
|
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-26d8b479.js';
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
|
-
import { c as classnames } from './index-
|
|
3
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
4
|
+
|
|
5
|
+
const splitUrl = _url => {
|
|
6
|
+
let url = _url || '';
|
|
7
|
+
let pos;
|
|
8
|
+
const res = {
|
|
9
|
+
path: null,
|
|
10
|
+
query: null,
|
|
11
|
+
fragment: null
|
|
12
|
+
};
|
|
13
|
+
pos = url.indexOf('#');
|
|
14
|
+
if (pos > -1) {
|
|
15
|
+
res.fragment = url.substring(pos + 1);
|
|
16
|
+
url = url.substring(0, pos);
|
|
17
|
+
}
|
|
18
|
+
pos = url.indexOf('?');
|
|
19
|
+
if (pos > -1) {
|
|
20
|
+
res.query = url.substring(pos + 1);
|
|
21
|
+
url = url.substring(0, pos);
|
|
22
|
+
}
|
|
23
|
+
res.path = url;
|
|
24
|
+
return res;
|
|
25
|
+
};
|
|
4
26
|
|
|
5
27
|
function isAbsolute(pathname) {
|
|
6
28
|
return pathname.charAt(0) === '/';
|
|
@@ -76,28 +98,6 @@ function resolvePathname(to, from) {
|
|
|
76
98
|
return result;
|
|
77
99
|
}
|
|
78
100
|
|
|
79
|
-
const splitUrl = _url => {
|
|
80
|
-
let url = _url || '';
|
|
81
|
-
let pos;
|
|
82
|
-
const res = {
|
|
83
|
-
path: null,
|
|
84
|
-
query: null,
|
|
85
|
-
fragment: null
|
|
86
|
-
};
|
|
87
|
-
pos = url.indexOf('#');
|
|
88
|
-
if (pos > -1) {
|
|
89
|
-
res.fragment = url.substring(pos + 1);
|
|
90
|
-
url = url.substring(0, pos);
|
|
91
|
-
}
|
|
92
|
-
pos = url.indexOf('?');
|
|
93
|
-
if (pos > -1) {
|
|
94
|
-
res.query = url.substring(pos + 1);
|
|
95
|
-
url = url.substring(0, pos);
|
|
96
|
-
}
|
|
97
|
-
res.path = url;
|
|
98
|
-
return res;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
101
|
const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, text, onSelect }) => {
|
|
102
102
|
const className = classnames('weui-tabbar__item', {
|
|
103
103
|
'weui-bar__item_on': isSelected
|
|
@@ -123,13 +123,14 @@ const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText,
|
|
|
123
123
|
h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;
|
|
126
|
+
const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
|
|
127
127
|
|
|
128
128
|
// const removeLeadingSlash = str => str.replace(/^\.?\//, '')
|
|
129
129
|
// const removeTrailingSearch = str => str.replace(/\?[\s\S]*$/, '')
|
|
130
|
-
const addLeadingSlash = str => str[0] === '/' ? str : `/${str}`;
|
|
131
|
-
const hasBasename = (path, prefix) => new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
|
|
132
|
-
const stripBasename = (path, prefix) => hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
130
|
+
const addLeadingSlash = (str = '') => str[0] === '/' ? str : `/${str}`;
|
|
131
|
+
const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
|
|
132
|
+
const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
133
|
+
const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;
|
|
133
134
|
const STATUS_SHOW = 0;
|
|
134
135
|
const STATUS_HIDE = 1;
|
|
135
136
|
const STATUS_SLIDEOUT = 2;
|
|
@@ -151,7 +152,7 @@ let Tabbar = class {
|
|
|
151
152
|
const pathB = splitUrl(url).path;
|
|
152
153
|
return pathA === pathB;
|
|
153
154
|
});
|
|
154
|
-
return customRoute.length ? customRoute[0][0] : url;
|
|
155
|
+
return stripSuffix(customRoute.length ? customRoute[0][0] : url, '.html');
|
|
155
156
|
};
|
|
156
157
|
this.getSelectedIndex = (url) => {
|
|
157
158
|
let foundIndex = -1;
|
|
@@ -187,14 +188,12 @@ let Tabbar = class {
|
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
190
|
this.routerChangeHandler = (options) => {
|
|
190
|
-
|
|
191
|
+
var _a;
|
|
192
|
+
const to = (_a = options === null || options === void 0 ? void 0 : options.toLocation) === null || _a === void 0 ? void 0 : _a.path;
|
|
191
193
|
let currentPage;
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (toLocation && toLocation.path) {
|
|
196
|
-
const tmpPath = addLeadingSlash(toLocation.path);
|
|
197
|
-
currentPage = stripBasename(tmpPath === '/' ? this.homePage : tmpPath, this.conf.basename || '/');
|
|
194
|
+
if (typeof to === 'string') {
|
|
195
|
+
const routerBasename = this.conf.basename || '/';
|
|
196
|
+
currentPage = stripBasename(addLeadingSlash(to || this.homePage), routerBasename) || '/';
|
|
198
197
|
}
|
|
199
198
|
else {
|
|
200
199
|
currentPage = this.getCurrentUrl();
|
|
@@ -353,7 +352,7 @@ let Tabbar = class {
|
|
|
353
352
|
url = location.pathname;
|
|
354
353
|
}
|
|
355
354
|
const processedUrl = addLeadingSlash(stripBasename(url, routerBasename));
|
|
356
|
-
return processedUrl === '/' ? this.homePage : processedUrl;
|
|
355
|
+
return decodeURI(processedUrl === '/' ? this.homePage : processedUrl);
|
|
357
356
|
}
|
|
358
357
|
bindEvent() {
|
|
359
358
|
Taro.eventCenter.on('__taroRouterChange', this.routerChangeHandler);
|
|
@@ -399,7 +398,8 @@ let Tabbar = class {
|
|
|
399
398
|
[hideTabBarClassName]: shouldHideTabBar,
|
|
400
399
|
[hideTabBarWithAnimationClassName]: shouldSlideout
|
|
401
400
|
}) }, h("div", { class: containerCls, style: {
|
|
402
|
-
backgroundColor: this.backgroundColor || ''
|
|
401
|
+
backgroundColor: this.backgroundColor || '',
|
|
402
|
+
height: 'inherit'
|
|
403
403
|
} }, this.list.map((item, index) => {
|
|
404
404
|
const isSelected = this.selectedIndex === index;
|
|
405
405
|
let textColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { c as classnames } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-26d8b479.js';
|
|
2
|
+
import { c as classnames } from './index-1d8e8acd.js';
|
|
3
3
|
|
|
4
|
-
const indexCss = "taro-text-core{display:inline;-
|
|
4
|
+
const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";
|
|
5
5
|
|
|
6
6
|
let Text = class {
|
|
7
7
|
constructor(hostRef) {
|