@tarojs/components 3.5.0-canary.0 → 3.5.0-theta.1
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 +19 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
- 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 +19 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-input-core.cjs.entry.js +28 -20
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
- 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 +19 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +14 -10
- package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
- 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 +22 -8
- 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 +9 -17
- package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +23 -17
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +73 -67
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +8 -6
- 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 +19 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +22 -6
- package/dist/collection/components/ad/ad.js +11 -0
- package/dist/collection/components/{picker-view-column/picker-view-column.js → ad-custom/ad-custom.js} +3 -3
- 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/editor/editor.js +11 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
- package/dist/collection/components/image/image.js +2 -2
- package/dist/collection/components/image/style/index.css +8 -5
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +41 -24
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
- package/dist/collection/components/live-player/live-player.js +11 -0
- package/dist/collection/components/live-pusher/live-pusher.js +11 -0
- package/dist/collection/components/map/map.js +11 -0
- package/dist/collection/components/match-media/match-media.js +11 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
- package/dist/collection/components/navigator/navigator.js +3 -3
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/official-account/official-account.js +11 -0
- package/dist/collection/components/page-container/page-container.js +11 -0
- package/dist/collection/components/page-meta/page-meta.js +11 -0
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +225 -0
- 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-down-refresh → pull-to-refresh}/pull-to-refresh.js +14 -4
- package/dist/collection/components/{pull-down-refresh → 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 +6 -14
- package/dist/collection/components/share-element/share-element.js +11 -0
- package/dist/collection/components/slot/slot.js +11 -0
- package/dist/collection/components/swiper/swiper.js +20 -14
- package/dist/collection/components/tabbar/style/index.css +10 -7
- package/dist/collection/components/tabbar/tabbar.js +23 -17
- 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 +6 -4
- 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/voip-room/voip-room.js +11 -0
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +27 -101
- 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 +15 -0
- package/dist/esm/taro-ad-custom-core.entry.js +15 -0
- 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 +15 -0
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +4 -4
- package/dist/esm/taro-input-core.entry.js +28 -20
- package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +15 -0
- package/dist/esm/taro-live-pusher-core.entry.js +15 -0
- package/dist/esm/taro-map-core.entry.js +15 -0
- package/dist/esm/taro-match-media-core.entry.js +15 -0
- 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 +15 -0
- package/dist/esm/taro-navigator-core.entry.js +5 -5
- package/dist/esm/taro-official-account-core.entry.js +15 -0
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +15 -0
- package/dist/esm/taro-page-meta-core.entry.js +15 -0
- 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 +16 -6
- 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 +8 -16
- package/dist/esm/taro-share-element-core.entry.js +15 -0
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +15 -0
- package/dist/esm/taro-swiper-core_2.entry.js +21 -15
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +48 -46
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +8 -6
- 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 +15 -0
- 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 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -0
- 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 -0
- 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-0ca42006.entry.js +1 -0
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/p-0d1e0e91.system.entry.js +1 -0
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/p-12deba0b.system.entry.js +1 -0
- 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-16c1e564.entry.js +1 -0
- package/dist/taro-components/p-178a3adf.system.entry.js +1 -0
- 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-2887213d.system.entry.js +1 -0
- package/dist/taro-components/p-29b7c721.system.entry.js +1 -0
- 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-2e8a1479.system.entry.js +1 -0
- 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-3bb72c08.entry.js +1 -0
- package/dist/taro-components/p-3d3cd72f.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-45e6f8be.entry.js +1 -0
- 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-5ff0e954.system.entry.js +1 -0
- 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-62c64770.entry.js +1 -0
- 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-74013ace.entry.js +1 -0
- 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-828efe43.system.entry.js +1 -0
- package/dist/taro-components/p-831ebd02.system.entry.js +1 -0
- package/dist/taro-components/p-832cc63a.entry.js +1 -0
- 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-86205110.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-8f466248.system.entry.js +1 -0
- 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-9ce624a4.system.entry.js +1 -0
- package/dist/taro-components/p-a097985b.entry.js +1 -0
- package/dist/taro-components/p-a36bfe97.system.entry.js +1 -0
- 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-a90bfe9d.system.entry.js +1 -0
- package/dist/taro-components/p-a9ab6434.system.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-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-cfebd931.entry.js +1 -0
- 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-de573939.system.entry.js +1 -0
- 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-ec59899b.system.entry.js +1 -0
- package/dist/taro-components/p-f1da4ed7.system.entry.js +1 -0
- 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/ad/ad.d.ts +4 -0
- package/dist/types/components/{picker-view-column/picker-view-column.d.ts → ad-custom/ad-custom.d.ts} +1 -1
- package/dist/types/components/editor/editor.d.ts +4 -0
- package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +3 -3
- package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
- package/dist/types/components/live-player/live-player.d.ts +4 -0
- package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
- package/dist/types/components/map/map.d.ts +4 -0
- package/dist/types/components/match-media/match-media.d.ts +4 -0
- package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
- package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
- package/dist/types/components/official-account/official-account.d.ts +4 -0
- package/dist/types/components/page-container/page-container.d.ts +4 -0
- package/dist/types/components/page-meta/page-meta.d.ts +4 -0
- package/dist/types/components/picker-view/picker-view-column.d.ts +18 -0
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/share-element/share-element.d.ts +4 -0
- package/dist/types/components/slot/slot.d.ts +4 -0
- package/dist/types/components/swiper/swiper.d.ts +2 -1
- package/dist/types/components/tabbar/tabbar.d.ts +4 -3
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- 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/voip-room/voip-room.d.ts +4 -0
- package/dist/types/components.d.ts +231 -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 -0
- 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 -45
- 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 +4 -3
- 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 +35 -19
- package/types/Ad.d.ts +34 -22
- package/types/AdCustom.d.ts +50 -0
- package/types/Audio.d.ts +25 -5
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +123 -34
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +15 -2
- package/types/Checkbox.d.ts +69 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +50 -8
- package/types/CoverView.d.ts +51 -8
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +63 -6
- package/types/Form.d.ts +38 -7
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Icon.d.ts +17 -1
- package/types/Image.d.ts +32 -6
- package/types/Input.d.ts +105 -40
- package/types/KeyboardAccessory.d.ts +42 -0
- package/types/Label.d.ts +20 -6
- package/types/LivePlayer.d.ts +25 -19
- package/types/LivePusher.d.ts +21 -15
- package/types/Map.d.ts +87 -33
- package/types/MatchMedia.d.ts +24 -5
- package/types/MovableArea.d.ts +10 -4
- package/types/MovableView.d.ts +34 -20
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -13
- package/types/OpenData.d.ts +17 -11
- package/types/PageContainer.d.ts +121 -0
- package/types/Picker.d.ts +66 -3
- package/types/PickerView.d.ts +66 -2
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +13 -2
- package/types/Radio.d.ts +82 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +39 -2
- package/types/ScrollView.d.ts +94 -12
- package/types/ShareElement.d.ts +232 -0
- package/types/Slider.d.ts +15 -2
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +33 -8
- package/types/SwiperItem.d.ts +28 -3
- package/types/Switch.d.ts +22 -4
- package/types/Text.d.ts +38 -1
- package/types/Textarea.d.ts +38 -22
- package/types/Video.d.ts +61 -41
- package/types/View.d.ts +35 -3
- package/types/VoipRoom.d.ts +70 -0
- package/types/WebView.d.ts +13 -7
- package/types/common.d.ts +7 -10
- package/types/index.d.ts +49 -22
- 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 +5 -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-10a6c489.system.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-12638ebc.system.entry.js +0 -1
- package/dist/taro-components/p-12ae0a33.entry.js +0 -1
- package/dist/taro-components/p-13c1404f.system.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2438fcd4.system.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-3aac5746.system.entry.js +0 -1
- package/dist/taro-components/p-3eebeb1c.system.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-46cf6431.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-5c420456.entry.js +0 -1
- package/dist/taro-components/p-627a5064.system.entry.js +0 -1
- package/dist/taro-components/p-64993f48.entry.js +0 -1
- package/dist/taro-components/p-66237ac0.entry.js +0 -1
- package/dist/taro-components/p-6965567d.entry.js +0 -1
- package/dist/taro-components/p-71de9bd6.entry.js +0 -1
- package/dist/taro-components/p-7a64a3d2.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.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-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-b8e0ad7d.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-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-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-f98e0224.entry.js +0 -1
- package/dist/taro-components/p-fb2252b7.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/Map.d.ts
CHANGED
|
@@ -3,35 +3,35 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface MapProps extends StandardProps {
|
|
5
5
|
/** 中心经度
|
|
6
|
-
* @supported weapp, swan, alipay
|
|
6
|
+
* @supported weapp, swan, alipay, tt
|
|
7
7
|
*/
|
|
8
8
|
longitude: number
|
|
9
9
|
|
|
10
10
|
/** 中心纬度
|
|
11
|
-
* @supported weapp, swan, alipay
|
|
11
|
+
* @supported weapp, swan, alipay, tt
|
|
12
12
|
*/
|
|
13
13
|
latitude: number
|
|
14
14
|
|
|
15
15
|
/** 缩放级别,取值范围为3-20
|
|
16
16
|
* @default 16
|
|
17
|
-
* @supported weapp, swan, alipay
|
|
17
|
+
* @supported weapp, swan, alipay, tt
|
|
18
18
|
* @swan 取值范围为4-21
|
|
19
19
|
* @alipay 取值范围为5-18
|
|
20
20
|
*/
|
|
21
21
|
scale?: number
|
|
22
22
|
/** 最小缩放级别3-20
|
|
23
23
|
* @default 3
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
minScale?: number
|
|
27
27
|
/** 最大缩放级别3-20
|
|
28
28
|
* @default 20
|
|
29
|
-
* @supported weapp
|
|
29
|
+
* @supported weapp, tt
|
|
30
30
|
*/
|
|
31
31
|
maxScale?: number
|
|
32
32
|
|
|
33
33
|
/** 标记点
|
|
34
|
-
* @supported weapp, swan, alipay
|
|
34
|
+
* @supported weapp, swan, alipay, tt
|
|
35
35
|
*/
|
|
36
36
|
markers?: MapProps.marker[]
|
|
37
37
|
|
|
@@ -42,12 +42,12 @@ interface MapProps extends StandardProps {
|
|
|
42
42
|
covers?: any[]
|
|
43
43
|
|
|
44
44
|
/** 路线
|
|
45
|
-
* @supported weapp, swan, alipay
|
|
45
|
+
* @supported weapp, swan, alipay, tt
|
|
46
46
|
*/
|
|
47
47
|
polyline?: MapProps.polyline[]
|
|
48
48
|
|
|
49
49
|
/** 圆
|
|
50
|
-
* @supported weapp, swan, alipay
|
|
50
|
+
* @supported weapp, swan, alipay, tt
|
|
51
51
|
*/
|
|
52
52
|
circles?: MapProps.circle[]
|
|
53
53
|
|
|
@@ -58,18 +58,18 @@ interface MapProps extends StandardProps {
|
|
|
58
58
|
controls?: MapProps.control[]
|
|
59
59
|
|
|
60
60
|
/** 缩放视野以包含所有给定的坐标点
|
|
61
|
-
* @supported weapp, swan, alipay
|
|
61
|
+
* @supported weapp, swan, alipay, tt
|
|
62
62
|
*/
|
|
63
63
|
includePoints?: MapProps.point[]
|
|
64
64
|
|
|
65
65
|
/** 显示带有方向的当前定位点
|
|
66
66
|
* @default false
|
|
67
|
-
* @supported weapp, swan, alipay
|
|
67
|
+
* @supported weapp, swan, alipay, tt
|
|
68
68
|
*/
|
|
69
69
|
showLocation?: boolean
|
|
70
70
|
|
|
71
71
|
/** 多边形
|
|
72
|
-
* @supported weapp, swan, alipay
|
|
72
|
+
* @supported weapp, swan, alipay, tt
|
|
73
73
|
*/
|
|
74
74
|
polygons?: MapProps.polygon[]
|
|
75
75
|
|
|
@@ -86,67 +86,67 @@ interface MapProps extends StandardProps {
|
|
|
86
86
|
|
|
87
87
|
/** 旋转角度,范围 0 ~ 360, 地图正北和设备 y 轴角度的夹角
|
|
88
88
|
* @default 0
|
|
89
|
-
* @supported weapp
|
|
89
|
+
* @supported weapp, tt
|
|
90
90
|
*/
|
|
91
91
|
rotate?: number
|
|
92
92
|
|
|
93
93
|
/** 倾斜角度,范围 0 ~ 40 , 关于 z 轴的倾角
|
|
94
94
|
* @default 0
|
|
95
|
-
* @supported weapp
|
|
95
|
+
* @supported weapp, tt
|
|
96
96
|
*/
|
|
97
97
|
skew?: number
|
|
98
98
|
|
|
99
99
|
/** 展示 3D 楼块
|
|
100
100
|
* @default false
|
|
101
|
-
* @supported weapp, swan
|
|
101
|
+
* @supported weapp, swan, tt
|
|
102
102
|
*/
|
|
103
103
|
enable3D?: boolean
|
|
104
104
|
|
|
105
105
|
/** 显示指南针
|
|
106
106
|
* @default false
|
|
107
|
-
* @supported weapp, swan
|
|
107
|
+
* @supported weapp, swan, tt
|
|
108
108
|
*/
|
|
109
109
|
showCompass?: boolean
|
|
110
110
|
|
|
111
111
|
/** 显示比例尺
|
|
112
112
|
* @default false
|
|
113
|
-
* @supported weapp
|
|
113
|
+
* @supported weapp, tt
|
|
114
114
|
*/
|
|
115
115
|
showScale?: boolean
|
|
116
116
|
|
|
117
117
|
/** 开启俯视
|
|
118
118
|
* @default false
|
|
119
|
-
* @supported weapp, swan
|
|
119
|
+
* @supported weapp, swan, tt
|
|
120
120
|
*/
|
|
121
121
|
enableOverlooking?: boolean
|
|
122
122
|
|
|
123
123
|
/** 是否支持缩放
|
|
124
124
|
* @default true
|
|
125
|
-
* @supported weapp, swan
|
|
125
|
+
* @supported weapp, swan, tt
|
|
126
126
|
*/
|
|
127
127
|
enableZoom?: boolean
|
|
128
128
|
|
|
129
129
|
/** 是否支持拖动
|
|
130
130
|
* @default true
|
|
131
|
-
* @supported weapp, swan
|
|
131
|
+
* @supported weapp, swan, tt
|
|
132
132
|
*/
|
|
133
133
|
enableScroll?: boolean
|
|
134
134
|
|
|
135
135
|
/** 是否支持旋转
|
|
136
136
|
* @default false
|
|
137
|
-
* @supported weapp, swan
|
|
137
|
+
* @supported weapp, swan, tt
|
|
138
138
|
*/
|
|
139
139
|
enableRotate?: boolean
|
|
140
140
|
|
|
141
141
|
/** 是否开启卫星图
|
|
142
142
|
* @default false
|
|
143
|
-
* @supported weapp
|
|
143
|
+
* @supported weapp, tt
|
|
144
144
|
*/
|
|
145
145
|
enableSatellite?: boolean
|
|
146
146
|
|
|
147
147
|
/** 是否开启实时路况
|
|
148
148
|
* @default false
|
|
149
|
-
* @supported weapp
|
|
149
|
+
* @supported weapp, tt
|
|
150
150
|
*/
|
|
151
151
|
enableTraffic?: boolean
|
|
152
152
|
|
|
@@ -158,17 +158,17 @@ interface MapProps extends StandardProps {
|
|
|
158
158
|
setting?: MapProps | { [key: string]: number | string | any }
|
|
159
159
|
|
|
160
160
|
/** 点击地图时触发
|
|
161
|
-
* @supported weapp, swan, alipay
|
|
161
|
+
* @supported weapp, swan, alipay, tt
|
|
162
162
|
*/
|
|
163
163
|
onTap?: CommonEventFunction
|
|
164
164
|
|
|
165
165
|
/** 点击标记点时触发,e.detail = {markerId}
|
|
166
|
-
* @supported weapp, swan, alipay
|
|
166
|
+
* @supported weapp, swan, alipay, tt
|
|
167
167
|
*/
|
|
168
168
|
onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
|
|
169
169
|
|
|
170
170
|
/** 点击label时触发,e.detail = {markerId}
|
|
171
|
-
* @supported weapp
|
|
171
|
+
* @supported weapp, tt
|
|
172
172
|
*/
|
|
173
173
|
onLabelTap?: CommonEventFunction<MapProps.onLabelTapEventDetail>
|
|
174
174
|
|
|
@@ -178,17 +178,17 @@ interface MapProps extends StandardProps {
|
|
|
178
178
|
onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
|
|
179
179
|
|
|
180
180
|
/** 点击标记点对应的气泡时触发,e.detail = {markerId}
|
|
181
|
-
* @supported weapp, swan, alipay
|
|
181
|
+
* @supported weapp, swan, alipay, tt
|
|
182
182
|
*/
|
|
183
183
|
onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
|
|
184
184
|
|
|
185
185
|
/** 在地图渲染更新完成时触发
|
|
186
|
-
* @supported weapp, swan
|
|
186
|
+
* @supported weapp, swan, tt
|
|
187
187
|
*/
|
|
188
188
|
onUpdated?: CommonEventFunction
|
|
189
189
|
|
|
190
190
|
/** 视野发生变化时触发
|
|
191
|
-
* @supported weapp, swan, alipay
|
|
191
|
+
* @supported weapp, swan, alipay, tt
|
|
192
192
|
*/
|
|
193
193
|
onRegionChange?: CommonEventFunction<MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>>
|
|
194
194
|
|
|
@@ -499,14 +499,14 @@ declare namespace MapProps {
|
|
|
499
499
|
end
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
interface
|
|
502
|
+
interface CausedByBegin {
|
|
503
503
|
/** 手势触发 */
|
|
504
504
|
gesture
|
|
505
505
|
/** 接口触发 */
|
|
506
506
|
update
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
interface
|
|
509
|
+
interface CausedByEnd {
|
|
510
510
|
/** 拖动导致 */
|
|
511
511
|
drag
|
|
512
512
|
/** 缩放导致 */
|
|
@@ -523,7 +523,7 @@ declare namespace MapProps {
|
|
|
523
523
|
/** 导致视野变化的原因
|
|
524
524
|
* @remarks 有效值为 gesture(手势触发)、update(接口触发或调用更新接口导致)、drag(拖动导致)、scale(缩放导致)
|
|
525
525
|
*/
|
|
526
|
-
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.
|
|
526
|
+
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
|
|
527
527
|
/** 视野改变详情 */
|
|
528
528
|
detail: regionChangeDetail<RegionChangeDetail.type>
|
|
529
529
|
}
|
|
@@ -532,7 +532,7 @@ declare namespace MapProps {
|
|
|
532
532
|
rotate: number
|
|
533
533
|
/** 倾斜角度 */
|
|
534
534
|
skew: number
|
|
535
|
-
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.
|
|
535
|
+
causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
|
|
536
536
|
type: T | string
|
|
537
537
|
scale: number
|
|
538
538
|
centerLocation: point
|
|
@@ -551,7 +551,7 @@ declare namespace MapProps {
|
|
|
551
551
|
/** 地图。相关api Taro.createMapContext。
|
|
552
552
|
* @classification maps
|
|
553
553
|
* @supported weapp, alipay, swan
|
|
554
|
-
* @
|
|
554
|
+
* @example_react
|
|
555
555
|
* ```tsx
|
|
556
556
|
* class App extends Component {
|
|
557
557
|
* onTap () {}
|
|
@@ -562,6 +562,60 @@ declare namespace MapProps {
|
|
|
562
562
|
* }
|
|
563
563
|
* }
|
|
564
564
|
* ```
|
|
565
|
+
* @example_vue
|
|
566
|
+
* ```html
|
|
567
|
+
* <template>
|
|
568
|
+
* <map
|
|
569
|
+
* id="map"
|
|
570
|
+
* style="width: 100%; height: 300px;"
|
|
571
|
+
* longitude="113.324520"
|
|
572
|
+
* latitude="23.099994"
|
|
573
|
+
* scale="14"
|
|
574
|
+
* :markers="markers"
|
|
575
|
+
* :polyline="polyline"
|
|
576
|
+
* :show-location="true"
|
|
577
|
+
* `@regionchange="regionchange"
|
|
578
|
+
* `@markertap="markertap"
|
|
579
|
+
* />
|
|
580
|
+
* </template>
|
|
581
|
+
*
|
|
582
|
+
* <script>
|
|
583
|
+
* export default {
|
|
584
|
+
* data() {
|
|
585
|
+
* return {
|
|
586
|
+
* markers: [{
|
|
587
|
+
* iconPath: "https://avatars2.githubusercontent.com/u/1782542?s=460&u=d20514a52100ed1f82282bcfca6f49052793c889&v=4",
|
|
588
|
+
* id: 0,
|
|
589
|
+
* latitude: 23.099994,
|
|
590
|
+
* longitude: 113.324520,
|
|
591
|
+
* width: 50,
|
|
592
|
+
* height: 50
|
|
593
|
+
* }],
|
|
594
|
+
* polyline: [{
|
|
595
|
+
* points: [{
|
|
596
|
+
* longitude: 113.3245211,
|
|
597
|
+
* latitude: 23.10229
|
|
598
|
+
* }, {
|
|
599
|
+
* longitude: 113.324520,
|
|
600
|
+
* latitude: 23.21229
|
|
601
|
+
* }],
|
|
602
|
+
* color:"#FF0000DD",
|
|
603
|
+
* width: 2,
|
|
604
|
+
* dottedLine: true
|
|
605
|
+
* }]
|
|
606
|
+
* }
|
|
607
|
+
* },
|
|
608
|
+
* methods: {
|
|
609
|
+
* regionchange(e) {
|
|
610
|
+
* console.log(e.type)
|
|
611
|
+
* },
|
|
612
|
+
* markertap(e) {
|
|
613
|
+
* console.log("markertap:", e.detail.markerId)
|
|
614
|
+
* }
|
|
615
|
+
* }
|
|
616
|
+
* }
|
|
617
|
+
* </script>
|
|
618
|
+
* ```
|
|
565
619
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/map.html#map
|
|
566
620
|
*/
|
|
567
621
|
declare const Map: ComponentType<MapProps>
|
package/types/MatchMedia.d.ts
CHANGED
|
@@ -40,20 +40,39 @@ interface MatchMediaProps extends StandardProps {
|
|
|
40
40
|
|
|
41
41
|
/** media query 匹配检测节点。可以指定一组 media query 规则,满足时,这个节点才会被展示。
|
|
42
42
|
* 通过这个节点可以实现“页面宽高在某个范围时才展示某个区域”这样的效果。
|
|
43
|
-
* 基础库 2.11.1 开始支持。
|
|
44
43
|
* @supported weapp
|
|
45
|
-
* @
|
|
44
|
+
* @classification viewContainer
|
|
45
|
+
* @example_react
|
|
46
46
|
* ```tsx
|
|
47
47
|
* class App extends Components {
|
|
48
48
|
* render () {
|
|
49
49
|
* return (
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
* <View>
|
|
51
|
+
* <MatchMedia minWidth="300" maxWidth="600">
|
|
52
|
+
* <view>当页面宽度在 300 ~ 500 px 之间时展示这里</view>
|
|
53
|
+
* </MatchMedia>
|
|
54
|
+
* <MatchMedia minHeight="400" orientation="landscape">
|
|
55
|
+
* <view>当页面高度不小于 400 px 且屏幕方向为纵向时展示这里</view>
|
|
56
|
+
* </MatchMedia>
|
|
57
|
+
* </View>
|
|
53
58
|
* )
|
|
54
59
|
* }
|
|
55
60
|
* }
|
|
56
61
|
* ```
|
|
62
|
+
* @example_vue
|
|
63
|
+
* ```html
|
|
64
|
+
* <template>
|
|
65
|
+
* <view class="components-page">
|
|
66
|
+
* <match-media min-width="300" max-width="500">
|
|
67
|
+
* <view>当页面宽度在 300 ~ 500 px 之间时展示这里</view>
|
|
68
|
+
* </match-media>
|
|
69
|
+
* <match-media min-height="400" orientation="landscape">
|
|
70
|
+
* <view>当页面高度不小于 400 px 且屏幕方向为纵向时展示这里</view>
|
|
71
|
+
* </match-media>
|
|
72
|
+
* </view>
|
|
73
|
+
* </template>
|
|
74
|
+
* ```
|
|
75
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/match-media.html
|
|
57
76
|
*/
|
|
58
77
|
declare const MatchMedia: ComponentType<MatchMediaProps>
|
|
59
78
|
|
package/types/MovableArea.d.ts
CHANGED
|
@@ -4,26 +4,32 @@ import { StandardProps } from './common'
|
|
|
4
4
|
interface MovableAreaProps extends StandardProps {
|
|
5
5
|
/** 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个 movable-area
|
|
6
6
|
* @default false
|
|
7
|
-
* @supported weapp
|
|
7
|
+
* @supported weapp, tt
|
|
8
8
|
*/
|
|
9
9
|
scaleArea?: boolean
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/** movable-view 的可移动区域
|
|
13
13
|
* @classification viewContainer
|
|
14
|
-
* @supported weapp
|
|
15
|
-
* @
|
|
14
|
+
* @supported weapp, rn
|
|
15
|
+
* @example_react
|
|
16
16
|
* ```tsx
|
|
17
17
|
* class App extends Components {
|
|
18
18
|
* render () {
|
|
19
19
|
* return (
|
|
20
20
|
* <MovableArea style='height: 200px; width: 200px; background: red;'>
|
|
21
|
-
* <MovableView style='height: 50px; width: 50px; background: blue;' direction='all'
|
|
21
|
+
* <MovableView style='height: 50px; width: 50px; background: blue;' direction='all'>旅行的意义</MovableView>
|
|
22
22
|
* </MovableArea>
|
|
23
23
|
* )
|
|
24
24
|
* }
|
|
25
25
|
* }
|
|
26
26
|
* ```
|
|
27
|
+
* @example_vue
|
|
28
|
+
* ```html
|
|
29
|
+
* <movable-area style='height: 200px; width: 200px; background: red;'>
|
|
30
|
+
* <movable-view style='height: 50px; width: 50px; background: blue;' direction='all'>在路上</movable-view>
|
|
31
|
+
* </movable-area>
|
|
32
|
+
* ```
|
|
27
33
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/movable-area.html
|
|
28
34
|
*/
|
|
29
35
|
declare const MovableArea: ComponentType<MovableAreaProps>
|
package/types/MovableView.d.ts
CHANGED
|
@@ -1,102 +1,110 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import { StandardProps, CommonEventFunction, TouchEventFunction
|
|
2
|
+
import { StandardProps, CommonEventFunction, TouchEventFunction } from './common'
|
|
3
3
|
|
|
4
4
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
5
5
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
6
6
|
* @default none
|
|
7
|
-
* @supported weapp
|
|
7
|
+
* @supported weapp, rn, tt
|
|
8
8
|
*/
|
|
9
9
|
direction?: 'all' | 'vertical' | 'horizontal' | 'none'
|
|
10
10
|
|
|
11
11
|
/** movable-view 是否带有惯性
|
|
12
12
|
* @default false
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, tt
|
|
14
14
|
*/
|
|
15
15
|
inertia?: boolean
|
|
16
16
|
|
|
17
17
|
/** 超过可移动区域后,movable-view 是否还可以移动
|
|
18
18
|
* @default false
|
|
19
|
-
* @supported weapp
|
|
19
|
+
* @supported weapp, tt
|
|
20
20
|
*/
|
|
21
21
|
outOfBounds?: boolean
|
|
22
22
|
|
|
23
23
|
/** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
x?: number | string
|
|
27
27
|
|
|
28
28
|
/** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
|
|
29
|
-
* @supported weapp
|
|
29
|
+
* @supported weapp, rn, tt
|
|
30
30
|
*/
|
|
31
31
|
y?: number | string
|
|
32
32
|
|
|
33
33
|
/** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
34
34
|
* @default 20
|
|
35
|
-
* @supported weapp
|
|
35
|
+
* @supported weapp, tt
|
|
36
36
|
*/
|
|
37
37
|
damping?: number
|
|
38
38
|
|
|
39
39
|
/** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
|
|
40
40
|
* @default 2
|
|
41
|
-
* @supported weapp
|
|
41
|
+
* @supported weapp, tt
|
|
42
42
|
*/
|
|
43
43
|
friction?: number
|
|
44
44
|
|
|
45
45
|
/** 是否禁用
|
|
46
46
|
* @default false
|
|
47
|
-
* @supported weapp
|
|
47
|
+
* @supported weapp, rn, tt
|
|
48
48
|
*/
|
|
49
49
|
disabled?: boolean
|
|
50
50
|
|
|
51
51
|
/** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
|
|
52
52
|
* @default false
|
|
53
|
-
* @supported weapp
|
|
53
|
+
* @supported weapp, tt
|
|
54
54
|
*/
|
|
55
55
|
scale?: boolean
|
|
56
56
|
|
|
57
57
|
/** 定义缩放倍数最小值
|
|
58
58
|
* @default 0.5
|
|
59
|
-
* @supported weapp
|
|
59
|
+
* @supported weapp, tt
|
|
60
60
|
*/
|
|
61
61
|
scaleMin?: number
|
|
62
62
|
|
|
63
63
|
/** 定义缩放倍数最大值
|
|
64
64
|
* @default 10
|
|
65
|
-
* @supported weapp
|
|
65
|
+
* @supported weapp, tt
|
|
66
66
|
*/
|
|
67
67
|
scaleMax?: number
|
|
68
68
|
|
|
69
69
|
/** 定义缩放倍数,取值范围为 0.5 - 10
|
|
70
70
|
* @default 1
|
|
71
|
-
* @supported weapp
|
|
71
|
+
* @supported weapp, tt
|
|
72
72
|
*/
|
|
73
73
|
scaleValue?: number
|
|
74
74
|
|
|
75
75
|
/** 是否使用动画
|
|
76
76
|
* @default true
|
|
77
|
-
* @supported weapp
|
|
77
|
+
* @supported weapp, tt
|
|
78
78
|
*/
|
|
79
79
|
animation?: boolean
|
|
80
80
|
|
|
81
81
|
/** 拖动过程中触发的事件
|
|
82
|
-
* @supported weapp
|
|
82
|
+
* @supported weapp, tt
|
|
83
83
|
*/
|
|
84
84
|
onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
|
|
85
85
|
|
|
86
86
|
/** 缩放过程中触发的事件
|
|
87
|
-
* @supported weapp
|
|
87
|
+
* @supported weapp, tt
|
|
88
88
|
*/
|
|
89
89
|
onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
|
|
90
90
|
|
|
91
91
|
/** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
92
|
-
* @supported weapp
|
|
92
|
+
* @supported weapp, tt
|
|
93
93
|
*/
|
|
94
94
|
onHTouchMove?: TouchEventFunction
|
|
95
95
|
|
|
96
96
|
/** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
97
|
-
* @supported weapp
|
|
97
|
+
* @supported weapp, tt
|
|
98
98
|
*/
|
|
99
99
|
onVTouchMove?: TouchEventFunction
|
|
100
|
+
/** 开始拖动时触发
|
|
101
|
+
* @supported rn
|
|
102
|
+
*/
|
|
103
|
+
onDragStart?: CommonEventFunction
|
|
104
|
+
/** 拖动结束时触发
|
|
105
|
+
* @supported rn
|
|
106
|
+
*/
|
|
107
|
+
onDragEnd?: CommonEventFunction
|
|
100
108
|
}
|
|
101
109
|
|
|
102
110
|
declare namespace MovableViewProps {
|
|
@@ -135,8 +143,8 @@ declare namespace MovableViewProps {
|
|
|
135
143
|
|
|
136
144
|
/** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
|
|
137
145
|
* @classification viewContainer
|
|
138
|
-
* @supported weapp, swan, alipay
|
|
139
|
-
* @
|
|
146
|
+
* @supported weapp, swan, alipay, rn, tt
|
|
147
|
+
* @example_react
|
|
140
148
|
* ```tsx
|
|
141
149
|
* class App extends Components {
|
|
142
150
|
* render () {
|
|
@@ -148,6 +156,12 @@ declare namespace MovableViewProps {
|
|
|
148
156
|
* }
|
|
149
157
|
* }
|
|
150
158
|
* ```
|
|
159
|
+
* @example_vue
|
|
160
|
+
* ```html
|
|
161
|
+
* <movable-area style='height: 200px; width: 200px; background: red;'>
|
|
162
|
+
* <movable-view style='height: 50px; width: 50px; background: blue;' direction='all'>带我走</movable-view>
|
|
163
|
+
* </movable-area>
|
|
164
|
+
* ```
|
|
151
165
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
152
166
|
*/
|
|
153
167
|
declare const MovableView: ComponentType<MovableViewProps>
|
package/types/Navigator.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
6
6
|
* @default "self"
|
|
7
7
|
* @supported weapp, swan
|
|
8
8
|
*/
|
|
9
|
-
target?: keyof NavigatorProps.
|
|
9
|
+
target?: keyof NavigatorProps.Target
|
|
10
10
|
|
|
11
11
|
/** 当前小程序内的跳转链接
|
|
12
12
|
* @supported weapp, swan, alipay, tt
|
|
@@ -17,7 +17,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
17
17
|
* @default "navigate"
|
|
18
18
|
* @supported weapp, swan, alipay, tt
|
|
19
19
|
*/
|
|
20
|
-
openType?: keyof NavigatorProps.
|
|
20
|
+
openType?: keyof NavigatorProps.OpenType
|
|
21
21
|
|
|
22
22
|
/** 当 open-type 为 'navigateBack' 时有效,表示回退的层数
|
|
23
23
|
* @supported weapp, swan, tt
|
|
@@ -42,7 +42,7 @@ interface NavigatorProps extends StandardProps {
|
|
|
42
42
|
/** 当 `target="miniProgram"` 时有效,要打开的小程序版本
|
|
43
43
|
* @supported weapp, swan
|
|
44
44
|
*/
|
|
45
|
-
version?: keyof NavigatorProps.
|
|
45
|
+
version?: keyof NavigatorProps.Version
|
|
46
46
|
|
|
47
47
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
48
48
|
* @default "navigator-hover"
|
|
@@ -86,17 +86,17 @@ interface NavigatorProps extends StandardProps {
|
|
|
86
86
|
|
|
87
87
|
declare namespace NavigatorProps {
|
|
88
88
|
/** target 的合法值 */
|
|
89
|
-
interface
|
|
89
|
+
interface Target {
|
|
90
90
|
/** 当前小程序 */
|
|
91
91
|
self
|
|
92
92
|
/** 其它小程序 */
|
|
93
93
|
miniProgram
|
|
94
94
|
}
|
|
95
95
|
/** open-type 的合法值 */
|
|
96
|
-
interface
|
|
96
|
+
interface OpenType {
|
|
97
97
|
/** 对应 Taro.navigateTo 或 Taro.navigateToMiniProgram 的功能 */
|
|
98
98
|
navigate
|
|
99
|
-
/** 对应 Taro.redirectTo 的功能 */
|
|
99
|
+
/** 对应 Taro.redirectTo 的功能 */
|
|
100
100
|
redirect
|
|
101
101
|
/** 对应 Taro.switchTab 的功能 */
|
|
102
102
|
switchTab
|
|
@@ -108,7 +108,7 @@ declare namespace NavigatorProps {
|
|
|
108
108
|
exit
|
|
109
109
|
}
|
|
110
110
|
/** version 的合法值 */
|
|
111
|
-
interface
|
|
111
|
+
interface Version {
|
|
112
112
|
/** 开发版 */
|
|
113
113
|
develop
|
|
114
114
|
/** 体验版 */
|
|
@@ -5,24 +5,24 @@ interface OfficialAccountProps extends StandardProps {
|
|
|
5
5
|
/** 组件加载成功时触发
|
|
6
6
|
* @supported weapp
|
|
7
7
|
*/
|
|
8
|
-
onLoad?: CommonEventFunction<OfficialAccountProps.
|
|
8
|
+
onLoad?: CommonEventFunction<OfficialAccountProps.Detail>
|
|
9
9
|
|
|
10
10
|
/** 组件加载失败时触发
|
|
11
11
|
* @supported weapp
|
|
12
12
|
*/
|
|
13
|
-
onError?: CommonEventFunction<OfficialAccountProps.
|
|
13
|
+
onError?: CommonEventFunction<OfficialAccountProps.Detail>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare namespace OfficialAccountProps {
|
|
17
17
|
/** detail 对象 */
|
|
18
|
-
interface
|
|
18
|
+
interface Detail {
|
|
19
19
|
/** 状态码 */
|
|
20
20
|
status: number
|
|
21
21
|
/** 错误信息 */
|
|
22
22
|
errMsg: string
|
|
23
23
|
}
|
|
24
24
|
/** status 有效值 */
|
|
25
|
-
interface
|
|
25
|
+
interface Status {
|
|
26
26
|
/** 网络错误 */
|
|
27
27
|
'-2'
|
|
28
28
|
/** 数据解析错误 */
|
|
@@ -45,21 +45,15 @@ declare namespace OfficialAccountProps {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/** 公众号关注组件。当用户扫小程序码打开小程序时,开发者可在小程序内配置公众号关注组件,方便用户快捷关注公众号,可嵌套在原生组件内。
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
* Tips
|
|
50
50
|
* 使用组件前,需前往小程序后台,在“设置”->“关注公众号”中设置要展示的公众号。注:设置的公众号需与小程序主体一致。
|
|
51
|
-
*
|
|
51
|
+
*
|
|
52
52
|
* 在一个小程序的生命周期内,只有从以下场景进入小程序,才具有展示引导关注公众号组件的能力:
|
|
53
|
-
*
|
|
53
|
+
*
|
|
54
54
|
* 当小程序从扫小程序码场景(场景值1047,场景值1124)打开时
|
|
55
55
|
* 当小程序从聊天顶部场景(场景值1089)中的「最近使用」内打开时,若小程序之前未被销毁,则该组件保持上一次打开小程序时的状态
|
|
56
56
|
* 当从其他小程序返回小程序(场景值1038)时,若小程序之前未被销毁,则该组件保持上一次打开小程序时的状态
|
|
57
|
-
* 为便于开发者调试,基础库 2.7.3 版本起开发版小程序增加以下场景展示公众号组件:
|
|
58
|
-
*
|
|
59
|
-
* 开发版小程序从扫二维码(场景值 1011)打开 — 体验版小程序打开
|
|
60
|
-
* 组件限定最小宽度为 300px,高度为定值 84px。
|
|
61
|
-
*
|
|
62
|
-
* 每个页面只能配置一个该组件。
|
|
63
57
|
* @classification open
|
|
64
58
|
* @supported weapp
|
|
65
59
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html
|