@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
|
-
import { h, toRefs
|
|
8
|
+
import { computed, h, toRefs } from 'vue';
|
|
9
|
+
import { useForwardRef } from './forwardRef';
|
|
9
10
|
export default function createFormsComponent(name, eventName) {
|
|
10
11
|
var modelValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'value';
|
|
11
12
|
var classNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
@@ -33,8 +34,10 @@ export default function createFormsComponent(name, eventName) {
|
|
|
33
34
|
|
|
34
35
|
return name === 'taro-input' ? (_ref2 = {}, _defineProperty(_ref2, modelValue, model.value), _defineProperty(_ref2, 'auto-focus', focus.value), _ref2) : _defineProperty({}, modelValue, model.value);
|
|
35
36
|
});
|
|
37
|
+
var forwardRef = useForwardRef();
|
|
36
38
|
return function () {
|
|
37
39
|
return h("".concat(name, "-core"), _objectSpread(_objectSpread({
|
|
40
|
+
ref: forwardRef,
|
|
38
41
|
class: ['hydrated'].concat(_toConsumableArray(classNames))
|
|
39
42
|
}, attrs.value), {}, _defineProperty({
|
|
40
43
|
onClick: function onClick(e) {
|
package/dist-h5/vue3/index.js
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import createFormsComponent from './createFormsComponent';
|
|
4
|
-
import Text from './components/text';
|
|
5
|
-
import Image from './components/image';
|
|
6
|
-
import Icon from './components/icon';
|
|
7
|
-
import ScrollView from './components/scroll-view';
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import * as components from './components';
|
|
8
3
|
export function initVue3Components(app) {
|
|
9
4
|
app.config.isCustomElement = function (tag) {
|
|
10
5
|
return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
|
|
11
6
|
};
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
Object.entries(components).forEach(function (_ref) {
|
|
9
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
10
|
+
name = _ref2[0],
|
|
11
|
+
component = _ref2[1];
|
|
12
|
+
|
|
13
|
+
if (component) {
|
|
14
|
+
var tagName = 'taro-' + name.replace(/(?<=[a-z])([A-Z])/g, '-$1').toLowerCase();
|
|
15
|
+
app.component(tagName, component);
|
|
20
16
|
}
|
|
21
17
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var Picker = createFormsComponent('taro-picker', 'change');
|
|
25
|
-
var Switch = createFormsComponent('taro-switch', 'change', 'checked');
|
|
26
|
-
var Slider = createFormsComponent('taro-slider', 'change', 'value', ['weui-slider-box']);
|
|
27
|
-
app.component('taro-input', Input);
|
|
28
|
-
app.component('taro-textarea', Textarea);
|
|
29
|
-
app.component('taro-picker', Picker);
|
|
30
|
-
app.component('taro-switch', Switch);
|
|
31
|
-
app.component('taro-slider', Slider);
|
|
32
|
-
app.component('taro-text', Text);
|
|
33
|
-
app.component('taro-image', Image);
|
|
34
|
-
app.component('taro-icon', Icon);
|
|
35
|
-
app.component('taro-scroll-view', ScrollView);
|
|
36
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.0-
|
|
3
|
+
"version": "3.5.0-theta.1",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"browser": "dist/index.js",
|
|
6
|
+
"main:h5": "dist/index.js",
|
|
6
7
|
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.
|
|
8
|
+
"module": "dist/index.cjs.js",
|
|
8
9
|
"types": "types/index.d.ts",
|
|
9
10
|
"sideEffects": [
|
|
10
11
|
"*.scss",
|
|
@@ -16,19 +17,11 @@
|
|
|
16
17
|
"mini",
|
|
17
18
|
"types",
|
|
18
19
|
"dist-h5",
|
|
19
|
-
"virtual-list"
|
|
20
|
+
"virtual-list",
|
|
21
|
+
"vue3.d.ts"
|
|
20
22
|
],
|
|
21
23
|
"collection": "dist/collection/collection-manifest.json",
|
|
22
24
|
"collection:main": "dist/collection/index.js",
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build-h5": "babel -d dist-h5 h5",
|
|
25
|
-
"build": "npm run build-h5 & stencil build --config stencil.config.ts",
|
|
26
|
-
"dev": "stencil build --config stencil.config.ts --watch",
|
|
27
|
-
"test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
28
|
-
"test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
29
|
-
"test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
30
|
-
"test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
|
|
31
|
-
},
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
34
27
|
"url": "git+https://github.com/NervJS/taro.git"
|
|
@@ -37,10 +30,12 @@
|
|
|
37
30
|
"author": "",
|
|
38
31
|
"license": "MIT",
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stencil/core": "2.
|
|
41
|
-
"@
|
|
33
|
+
"@stencil/core": "~2.13.0",
|
|
34
|
+
"@stencil/sass": "1.5.2",
|
|
35
|
+
"@tarojs/taro": "3.5.0-theta.1",
|
|
42
36
|
"better-scroll": "^1.14.1",
|
|
43
37
|
"classnames": "^2.2.5",
|
|
38
|
+
"hls.js": "^1.1.5",
|
|
44
39
|
"intersection-observer": "^0.7.0",
|
|
45
40
|
"omit.js": "^1.0.0",
|
|
46
41
|
"resolve-pathname": "^3.0.0",
|
|
@@ -48,12 +43,33 @@
|
|
|
48
43
|
"weui": "^1.1.2"
|
|
49
44
|
},
|
|
50
45
|
"devDependencies": {
|
|
51
|
-
"@stencil/sass": "1.4.1",
|
|
52
|
-
"@types/react-native": "0.66.5",
|
|
53
46
|
"jquery": "^3.4.1",
|
|
54
47
|
"karmatic": "^2.1.0",
|
|
48
|
+
"react": "^17.0.2",
|
|
49
|
+
"react-dom": "^17.0.2",
|
|
55
50
|
"simulant": "^0.2.2",
|
|
51
|
+
"style-loader": "1.3.0",
|
|
52
|
+
"webpack": "4.46.0",
|
|
56
53
|
"workbox-build": "4.3.1"
|
|
57
54
|
},
|
|
58
|
-
"
|
|
59
|
-
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@types/react": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@types/react-native": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"vue": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build-h5": "babel -d dist-h5 h5",
|
|
68
|
+
"build": "pnpm run build-h5 & stencil build --config stencil.config.ts",
|
|
69
|
+
"dev": "stencil build --config stencil.config.ts --watch",
|
|
70
|
+
"test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
71
|
+
"test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
72
|
+
"test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
|
|
73
|
+
"test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
|
|
74
|
+
}
|
|
75
|
+
}
|
package/types/Ad.d.ts
CHANGED
|
@@ -3,37 +3,37 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface AdProps extends StandardProps {
|
|
5
5
|
/** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
8
|
unitId: string
|
|
9
9
|
|
|
10
10
|
/** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新)
|
|
11
|
-
* @supported weapp
|
|
11
|
+
* @supported weapp, tt
|
|
12
12
|
*/
|
|
13
13
|
adIntervals?: number
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
/** 广告类型,默认为展示`banner`,可通过设置该属性为`video`展示视频广告, `grid`为格子广告
|
|
16
16
|
* @supported weapp
|
|
17
17
|
*/
|
|
18
18
|
adType?: 'banner' | 'video' | 'grid'
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
/** 广告主题样式设置
|
|
21
21
|
* @supported weapp
|
|
22
22
|
*/
|
|
23
23
|
adTheme?: 'white' | 'black'
|
|
24
24
|
|
|
25
25
|
/** 广告加载成功的回调
|
|
26
|
-
* @supported weapp
|
|
26
|
+
* @supported weapp, tt
|
|
27
27
|
*/
|
|
28
28
|
onLoad?: CommonEventFunction
|
|
29
29
|
|
|
30
30
|
/** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
|
|
31
|
-
* @supported weapp
|
|
31
|
+
* @supported weapp, tt
|
|
32
32
|
*/
|
|
33
33
|
onError?: CommonEventFunction<AdProps.onErrorEventDetail>
|
|
34
34
|
|
|
35
35
|
/** 广告关闭的回调
|
|
36
|
-
* @supported weapp
|
|
36
|
+
* @supported weapp, tt
|
|
37
37
|
*/
|
|
38
38
|
onClose?: CommonEventFunction
|
|
39
39
|
}
|
|
@@ -42,63 +42,63 @@ declare namespace AdProps {
|
|
|
42
42
|
interface onErrorEventDetail {
|
|
43
43
|
errCode: keyof AdErrCode
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
45
|
+
/**
|
|
46
46
|
* 广告错误码
|
|
47
|
-
*
|
|
47
|
+
*
|
|
48
48
|
* 错误码是通过onError获取到的错误信息。调试期间,可以通过异常返回来捕获信息。
|
|
49
49
|
* 在小程序发布上线之后,如果遇到异常问题,可以在[“运维中心“](https://mp.weixin.qq.com/)里面搜寻错误日志,还可以针对异常返回加上适当的监控信息。
|
|
50
50
|
*/
|
|
51
51
|
interface AdErrCode {
|
|
52
52
|
/**
|
|
53
|
-
* @
|
|
53
|
+
* @illustrate 后端错误调用失败
|
|
54
54
|
* @reason 该项错误不是开发者的异常情况
|
|
55
55
|
* @solution 一般情况下忽略一段时间即可恢复。
|
|
56
56
|
*/
|
|
57
57
|
1000
|
|
58
58
|
/**
|
|
59
|
-
* @
|
|
59
|
+
* @illustrate 参数错误
|
|
60
60
|
* @reason 使用方法错误
|
|
61
61
|
* @solution 可以前往 developers.weixin.qq.com 确认具体教程(小程序和小游戏分别有各自的教程,可以在顶部选项中,“设计”一栏的右侧进行切换。
|
|
62
62
|
*/
|
|
63
63
|
1001
|
|
64
64
|
/**
|
|
65
|
-
* @
|
|
65
|
+
* @illustrate 广告单元无效
|
|
66
66
|
* @reason 可能是拼写错误、或者误用了其他APP的广告ID
|
|
67
67
|
* @solution 请重新前往 mp.weixin.qq.com 确认广告位ID。
|
|
68
68
|
*/
|
|
69
69
|
1002
|
|
70
70
|
/**
|
|
71
|
-
* @
|
|
71
|
+
* @illustrate 内部错误
|
|
72
72
|
* @reason 该项错误不是开发者的异常情况
|
|
73
73
|
* @solution 一般情况下忽略一段时间即可恢复。
|
|
74
74
|
*/
|
|
75
75
|
1003
|
|
76
76
|
/**
|
|
77
|
-
* @
|
|
77
|
+
* @illustrate 无合适的广告
|
|
78
78
|
* @reason 广告不是每一次都会出现,这次没有出现可能是由于该用户不适合浏览广告
|
|
79
79
|
* @solution 属于正常情况,且开发者需要针对这种情况做形态上的兼容。
|
|
80
80
|
*/
|
|
81
81
|
1004
|
|
82
82
|
/**
|
|
83
|
-
* @
|
|
83
|
+
* @illustrate 广告组件审核中
|
|
84
84
|
* @reason 你的广告正在被审核,无法展现广告
|
|
85
85
|
* @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
|
|
86
86
|
*/
|
|
87
87
|
1005
|
|
88
88
|
/**
|
|
89
|
-
* @
|
|
89
|
+
* @illustrate 广告组件被驳回
|
|
90
90
|
* @reason 你的广告审核失败,无法展现广告
|
|
91
91
|
* @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
|
|
92
92
|
*/
|
|
93
93
|
1006
|
|
94
94
|
/**
|
|
95
|
-
* @
|
|
95
|
+
* @illustrate 广告组件被封禁
|
|
96
96
|
* @reason 你的广告能力已经被封禁,封禁期间无法展现广告
|
|
97
97
|
* @solution 请前往 mp.weixin.qq.com 确认小程序广告封禁状态。
|
|
98
98
|
*/
|
|
99
99
|
1007
|
|
100
100
|
/**
|
|
101
|
-
* @
|
|
101
|
+
* @illustrate 广告单元已关闭
|
|
102
102
|
* @reason 该广告位的广告能力已经被关闭
|
|
103
103
|
* @solution 请前往 mp.weixin.qq.com 重新打开对应广告位的展现。
|
|
104
104
|
*/
|
|
@@ -109,15 +109,15 @@ declare namespace AdProps {
|
|
|
109
109
|
|
|
110
110
|
/** Banner 广告
|
|
111
111
|
* @classification open
|
|
112
|
-
* @supported weapp
|
|
113
|
-
* @
|
|
112
|
+
* @supported weapp, tt
|
|
113
|
+
* @example_react
|
|
114
114
|
* ```tsx
|
|
115
115
|
* class App extends Component {
|
|
116
116
|
* render () {
|
|
117
117
|
* return (
|
|
118
118
|
* <Ad
|
|
119
|
-
*
|
|
120
|
-
*
|
|
119
|
+
* unitId=''
|
|
120
|
+
* adIntervals={60}
|
|
121
121
|
* onLoad={() => console.log('ad onLoad')}
|
|
122
122
|
* onError={() => console.log('ad onError')}
|
|
123
123
|
* onClose={() => console.log('ad onClose')}
|
|
@@ -126,6 +126,18 @@ declare namespace AdProps {
|
|
|
126
126
|
* }
|
|
127
127
|
* }
|
|
128
128
|
* ```
|
|
129
|
+
* @example_vue
|
|
130
|
+
* ```html
|
|
131
|
+
* <template>
|
|
132
|
+
* <ad
|
|
133
|
+
* unit-id=""
|
|
134
|
+
* ad-intervals="60"
|
|
135
|
+
* `@load="onLoad"
|
|
136
|
+
* `@error="onError"
|
|
137
|
+
* `@close="onClose"
|
|
138
|
+
* />
|
|
139
|
+
* </template>
|
|
140
|
+
* ```
|
|
129
141
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
|
|
130
142
|
*/
|
|
131
143
|
declare const Ad: ComponentType<AdProps>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps, CommonEventFunction } from './common'
|
|
3
|
+
import { AdProps } from './Ad'
|
|
4
|
+
|
|
5
|
+
interface AdCustomProps extends StandardProps {
|
|
6
|
+
/** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
|
|
7
|
+
* @supported weapp
|
|
8
|
+
*/
|
|
9
|
+
unitId: string
|
|
10
|
+
|
|
11
|
+
/** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新)
|
|
12
|
+
* @supported weapp
|
|
13
|
+
*/
|
|
14
|
+
adIntervals?: number
|
|
15
|
+
|
|
16
|
+
/** 广告加载成功的回调
|
|
17
|
+
* @supported weapp
|
|
18
|
+
*/
|
|
19
|
+
onLoad?: CommonEventFunction
|
|
20
|
+
|
|
21
|
+
/** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
|
|
22
|
+
* @supported weapp
|
|
23
|
+
*/
|
|
24
|
+
onError?: CommonEventFunction<AdProps.onErrorEventDetail>
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Banner 广告
|
|
28
|
+
* @classification open
|
|
29
|
+
* @supported weapp
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* class App extends Component {
|
|
33
|
+
* render () {
|
|
34
|
+
* return (
|
|
35
|
+
* <AdCustom
|
|
36
|
+
* unitId=''
|
|
37
|
+
* adIntervals={60}
|
|
38
|
+
* onLoad={() => console.log('ad onLoad')}
|
|
39
|
+
* onError={() => console.log('ad onError')}
|
|
40
|
+
* onClose={() => console.log('ad onClose')}
|
|
41
|
+
* />
|
|
42
|
+
* )
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
|
|
47
|
+
*/
|
|
48
|
+
declare const AdCustom: ComponentType<AdCustomProps>
|
|
49
|
+
|
|
50
|
+
export { AdCustom, AdCustomProps }
|
package/types/Audio.d.ts
CHANGED
|
@@ -72,11 +72,16 @@ interface AudioProps extends StandardProps {
|
|
|
72
72
|
* @supported weapp, h5, swan
|
|
73
73
|
*/
|
|
74
74
|
onEnded?: CommonEventFunction
|
|
75
|
+
|
|
76
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
77
|
+
* @supported h5
|
|
78
|
+
*/
|
|
79
|
+
nativeProps?: Record<string, unknown>
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
declare namespace AudioProps {
|
|
78
83
|
interface onErrorEventDetail {
|
|
79
|
-
errMsg: keyof MediaError.
|
|
84
|
+
errMsg: keyof MediaError.Code
|
|
80
85
|
}
|
|
81
86
|
interface onTimeUpdateEventDetail {
|
|
82
87
|
/** 当前时间 */
|
|
@@ -85,7 +90,7 @@ declare namespace AudioProps {
|
|
|
85
90
|
duration: number
|
|
86
91
|
}
|
|
87
92
|
namespace MediaError {
|
|
88
|
-
interface
|
|
93
|
+
interface Code {
|
|
89
94
|
/** 获取资源被用户禁止 */
|
|
90
95
|
1
|
|
91
96
|
/** 网络错误 */
|
|
@@ -102,18 +107,18 @@ declare namespace AudioProps {
|
|
|
102
107
|
* @classification media
|
|
103
108
|
* @deprecated
|
|
104
109
|
* @supported weapp, h5, swan
|
|
105
|
-
* @
|
|
110
|
+
* @example_react
|
|
106
111
|
* ```tsx
|
|
107
112
|
* export default class PageView extends Component {
|
|
108
113
|
* constructor() {
|
|
109
114
|
* super(...arguments)
|
|
110
115
|
* }
|
|
111
|
-
*
|
|
116
|
+
*
|
|
112
117
|
* render() {
|
|
113
118
|
* return (
|
|
114
119
|
* <View className='components-page'>
|
|
115
120
|
* <Audio
|
|
116
|
-
* src='
|
|
121
|
+
* src='https://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb.mp3?guid=ffffffff82def4af4b12b3cd9337d5e7&uin=346897220&vkey=6292F51E1E384E06DCBDC9AB7C49FD713D632D313AC4858BACB8DDD29067D3C601481D36E62053BF8DFEAF74C0A5CCFADD6471160CAF3E6A&fromtag=46'
|
|
117
122
|
* controls={true}
|
|
118
123
|
* autoplay={false}
|
|
119
124
|
* loop={false}
|
|
@@ -126,6 +131,21 @@ declare namespace AudioProps {
|
|
|
126
131
|
* }
|
|
127
132
|
* }
|
|
128
133
|
* ```
|
|
134
|
+
* @example_vue
|
|
135
|
+
* ```html
|
|
136
|
+
* <template>
|
|
137
|
+
* <view class="components-page">
|
|
138
|
+
* <audio
|
|
139
|
+
* id="video"
|
|
140
|
+
* src="https://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb.mp3?guid=ffffffff82def4af4b12b3cd9337d5e7&uin=346897220&vkey=6292F51E1E384E06DCBDC9AB7C49FD713D632D313AC4858BACB8DDD29067D3C601481D36E62053BF8DFEAF74C0A5CCFADD6471160CAF3E6A&fromtag=46"
|
|
141
|
+
* :controls="true"
|
|
142
|
+
* :autoplay="false"
|
|
143
|
+
* :loop="false"
|
|
144
|
+
* :muted="true"
|
|
145
|
+
* />
|
|
146
|
+
* </view>
|
|
147
|
+
* </template>
|
|
148
|
+
* ```
|
|
129
149
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/audio.html
|
|
130
150
|
*/
|
|
131
151
|
declare const Audio: ComponentType<AudioProps>
|
package/types/Block.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
type BlockProps = StandardProps
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* @ignore
|
|
5
8
|
*/
|
|
6
|
-
declare const Block: ComponentType
|
|
9
|
+
declare const Block: ComponentType<BlockProps>
|
|
7
10
|
|
|
8
|
-
export { Block }
|
|
11
|
+
export { Block, BlockProps }
|