@tarojs/components 3.5.7 → 3.6.0-canary.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 +1 -1
- package/dist/cjs/helper-db78e01a.js +2 -0
- package/dist/cjs/helper-db78e01a.js.map +1 -0
- package/dist/cjs/hls-67cbc62d.js +27624 -0
- package/dist/cjs/hls-67cbc62d.js.map +1 -0
- package/dist/cjs/index-47a1959e.js +2 -0
- package/dist/cjs/index-47a1959e.js.map +1 -0
- package/dist/cjs/{index-7c61bee9.js → index-9174e0b1.js} +477 -234
- package/dist/cjs/index-9174e0b1.js.map +1 -0
- package/dist/cjs/index-f9d21cc5.js +2 -0
- package/dist/cjs/index-f9d21cc5.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/intersection-observer-dc4cfcef.js +2 -0
- package/dist/cjs/intersection-observer-dc4cfcef.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/taro-ad-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-audio-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-audio-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-block-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-block-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-button-core.cjs.entry.js +7 -2
- package/dist/cjs/taro-button-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-camera-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-camera-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-canvas-core.cjs.entry.js +6 -3
- package/dist/cjs/taro-canvas-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +15 -9
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-components.cjs.js +5 -3
- package/dist/cjs/taro-components.cjs.js.map +1 -0
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +7 -4
- package/dist/cjs/taro-cover-image-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +7 -3
- package/dist/cjs/taro-cover-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-editor-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-editor-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +34 -39
- package/dist/cjs/taro-form-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-icon-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-image-core.cjs.entry.js +7 -4
- package/dist/cjs/taro-image-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-input-core.cjs.entry.js +29 -14
- package/dist/cjs/taro-input-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-label-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-live-player-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-live-player-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-map-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-match-media-core.cjs.entry.js.map +1 -0
- package/dist/cjs/{taro-movable-view-core.cjs.entry.js → taro-movable-area-core_2.cjs.entry.js} +187 -97
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-navigator-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-official-account-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-official-account-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-open-data-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-page-container-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-page-container-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-page-meta-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +31 -15
- package/dist/cjs/taro-picker-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{taro-picker-view-core.cjs.entry.js → taro-picker-view-column-core_2.cjs.entry.js} +101 -6
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-progress-core.cjs.entry.js +7 -5
- package/dist/cjs/taro-progress-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +10 -8
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +15 -9
- package/dist/cjs/taro-radio-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-rich-text-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-root-portal-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +28 -22
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-share-element-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-share-element-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +37 -40
- package/dist/cjs/taro-slider-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-slot-core.cjs.entry.js +4 -7
- package/dist/cjs/taro-slot-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +46 -72
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-switch-core.cjs.entry.js +12 -8
- package/dist/cjs/taro-switch-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-tabbar.cjs.entry.js +12 -4
- package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-text-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-text-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-textarea-core.cjs.entry.js +21 -10
- package/dist/cjs/taro-textarea-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-video-control_3.cjs.entry.js +218 -27943
- package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-view-core.cjs.entry.js +7 -3
- package/dist/cjs/taro-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-voip-room-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-web-view-core.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +16 -4
- package/dist/collection/components/ad/ad.js +2 -1
- package/dist/collection/components/ad/ad.js.map +1 -0
- package/dist/collection/components/ad-custom/ad-custom.js +2 -1
- package/dist/collection/components/ad-custom/ad-custom.js.map +1 -0
- package/dist/collection/components/audio/audio.js +199 -190
- package/dist/collection/components/audio/audio.js.map +1 -0
- package/dist/collection/components/block/block.js +2 -2
- package/dist/collection/components/block/block.js.map +1 -0
- package/dist/collection/components/button/button.js +224 -211
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/camera/camera.js +2 -1
- package/dist/collection/components/camera/camera.js.map +1 -0
- package/dist/collection/components/canvas/canvas.js +67 -58
- package/dist/collection/components/canvas/canvas.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox-group.js +50 -42
- package/dist/collection/components/checkbox/checkbox-group.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +175 -162
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/cover-image/cover-image.js +83 -74
- package/dist/collection/components/cover-image/cover-image.js.map +1 -0
- package/dist/collection/components/cover-view/cover-view.js +131 -118
- package/dist/collection/components/cover-view/cover-view.js.map +1 -0
- package/dist/collection/components/custom-wrapper/custom-wrapper.js +2 -2
- package/dist/collection/components/custom-wrapper/custom-wrapper.js.map +1 -0
- package/dist/collection/components/editor/editor.js +2 -1
- package/dist/collection/components/editor/editor.js.map +1 -0
- package/dist/collection/components/form/form.js +66 -74
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -1
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js.map +1 -0
- package/dist/collection/components/icon/icon.js +61 -56
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/image/image.js +125 -113
- package/dist/collection/components/image/image.js.map +1 -0
- package/dist/collection/components/input/input.js +336 -296
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -1
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js.map +1 -0
- package/dist/collection/components/label/label.js +27 -22
- package/dist/collection/components/label/label.js.map +1 -0
- package/dist/collection/components/live-player/live-player.js +2 -1
- package/dist/collection/components/live-player/live-player.js.map +1 -0
- package/dist/collection/components/live-pusher/live-pusher.js +2 -1
- package/dist/collection/components/live-pusher/live-pusher.js.map +1 -0
- package/dist/collection/components/map/map.js +2 -1
- package/dist/collection/components/map/map.js.map +1 -0
- package/dist/collection/components/match-media/match-media.js +2 -1
- package/dist/collection/components/match-media/match-media.js.map +1 -0
- package/dist/collection/components/movable-area/area.css +2 -2
- package/dist/collection/components/movable-area/movable-area.js +34 -26
- package/dist/collection/components/movable-area/movable-area.js.map +1 -0
- package/dist/collection/components/movable-area/movable-view.js +415 -457
- package/dist/collection/components/movable-area/movable-view.js.map +1 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +2 -1
- package/dist/collection/components/navigation-bar/navigation-bar.js.map +1 -0
- package/dist/collection/components/navigator/navigator.js +158 -145
- package/dist/collection/components/navigator/navigator.js.map +1 -0
- package/dist/collection/components/official-account/official-account.js +2 -1
- package/dist/collection/components/official-account/official-account.js.map +1 -0
- package/dist/collection/components/open-data/open-data.js +2 -1
- package/dist/collection/components/open-data/open-data.js.map +1 -0
- package/dist/collection/components/page-container/page-container.js +2 -1
- package/dist/collection/components/page-container/page-container.js.map +1 -0
- package/dist/collection/components/page-meta/page-meta.js +2 -1
- package/dist/collection/components/page-meta/page-meta.js.map +1 -0
- package/dist/collection/components/picker/constant.js +1 -0
- package/dist/collection/components/picker/constant.js.map +1 -0
- package/dist/collection/components/picker/picker-group.js +240 -176
- package/dist/collection/components/picker/picker-group.js.map +1 -0
- package/dist/collection/components/picker/picker.js +261 -257
- package/dist/collection/components/picker/picker.js.map +1 -0
- package/dist/collection/components/picker/utils.js +1 -0
- package/dist/collection/components/picker/utils.js.map +1 -0
- package/dist/collection/components/picker-view/picker-view-column.js +158 -147
- package/dist/collection/components/picker-view/picker-view-column.js.map +1 -0
- package/dist/collection/components/picker-view/picker-view.js +171 -159
- package/dist/collection/components/picker-view/picker-view.js.map +1 -0
- package/dist/collection/components/progress/progress.js +153 -157
- package/dist/collection/components/progress/progress.js.map +1 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +121 -114
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js.map +1 -0
- package/dist/collection/components/radio/radio-group.js +50 -43
- package/dist/collection/components/radio/radio-group.js.map +1 -0
- package/dist/collection/components/radio/radio.js +152 -144
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/rich-text/rich-text.js +27 -23
- package/dist/collection/components/rich-text/rich-text.js.map +1 -0
- package/dist/collection/components/root-portal/root-portal.js +2 -1
- package/dist/collection/components/root-portal/root-portal.js.map +1 -0
- package/dist/collection/components/scroll-view/scroll-view.js +242 -220
- package/dist/collection/components/scroll-view/scroll-view.js.map +1 -0
- package/dist/collection/components/share-element/share-element.js +2 -1
- package/dist/collection/components/share-element/share-element.js.map +1 -0
- package/dist/collection/components/slider/slider.js +279 -283
- package/dist/collection/components/slider/slider.js.map +1 -0
- package/dist/collection/components/slot/slot.js +2 -5
- package/dist/collection/components/slot/slot.js.map +1 -0
- package/dist/collection/components/swiper/swiper-item.js +26 -21
- package/dist/collection/components/swiper/swiper-item.js.map +1 -0
- package/dist/collection/components/swiper/swiper.js +346 -368
- package/dist/collection/components/swiper/swiper.js.map +1 -0
- package/dist/collection/components/switch/switch.js +153 -139
- package/dist/collection/components/switch/switch.js.map +1 -0
- package/dist/collection/components/tabbar/tabbar-item.js +2 -6
- package/dist/collection/components/tabbar/tabbar-item.js.map +1 -0
- package/dist/collection/components/tabbar/tabbar.js +86 -70
- package/dist/collection/components/tabbar/tabbar.js.map +1 -0
- package/dist/collection/components/text/text.js +35 -30
- package/dist/collection/components/text/text.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +262 -227
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/video/utils.js +1 -0
- package/dist/collection/components/video/utils.js.map +1 -0
- package/dist/collection/components/video/video-control.js +274 -286
- package/dist/collection/components/video/video-control.js.map +1 -0
- package/dist/collection/components/video/video-danmu.js +111 -118
- package/dist/collection/components/video/video-danmu.js.map +1 -0
- package/dist/collection/components/video/video.js +769 -834
- package/dist/collection/components/video/video.js.map +1 -0
- package/dist/collection/components/view/view.js +131 -118
- package/dist/collection/components/view/view.js.map +1 -0
- package/dist/collection/components/voip-room/voip-room.js +2 -1
- package/dist/collection/components/voip-room/voip-room.js.map +1 -0
- package/dist/collection/components/web-view/web-view.js +68 -57
- package/dist/collection/components/web-view/web-view.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/helper.js +1 -0
- package/dist/collection/utils/helper.js.map +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/style.js +1 -0
- package/dist/collection/utils/style.js.map +1 -0
- package/dist/collection/utils/url.js +1 -0
- package/dist/collection/utils/url.js.map +1 -0
- package/dist/esm/helper-3d0ecf0f.js +2 -0
- package/dist/esm/helper-3d0ecf0f.js.map +1 -0
- package/dist/esm/hls-221423a1.js +27622 -0
- package/dist/esm/hls-221423a1.js.map +1 -0
- package/dist/esm/index-1d8e8acd.js +2 -0
- package/dist/esm/index-1d8e8acd.js.map +1 -0
- package/dist/esm/{index-8809c729.js → index-5d881caf.js} +477 -234
- package/dist/esm/index-5d881caf.js.map +1 -0
- package/dist/esm/index-cad8203e.js +2 -0
- package/dist/esm/index-cad8203e.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/intersection-observer-8e4c7135.js +2 -0
- package/dist/esm/intersection-observer-8e4c7135.js.map +1 -0
- package/dist/esm/loader.js +5 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/taro-ad-core.entry.js +4 -2
- package/dist/esm/taro-ad-core.entry.js.map +1 -0
- package/dist/esm/taro-ad-custom-core.entry.js +4 -2
- package/dist/esm/taro-ad-custom-core.entry.js.map +1 -0
- package/dist/esm/taro-audio-core.entry.js +5 -2
- package/dist/esm/taro-audio-core.entry.js.map +1 -0
- package/dist/esm/taro-block-core.entry.js +4 -2
- package/dist/esm/taro-block-core.entry.js.map +1 -0
- package/dist/esm/taro-button-core.entry.js +7 -2
- package/dist/esm/taro-button-core.entry.js.map +1 -0
- package/dist/esm/taro-camera-core.entry.js +4 -2
- package/dist/esm/taro-camera-core.entry.js.map +1 -0
- package/dist/esm/taro-canvas-core.entry.js +6 -3
- package/dist/esm/taro-canvas-core.entry.js.map +1 -0
- package/dist/esm/taro-checkbox-core_2.entry.js +15 -9
- package/dist/esm/taro-checkbox-core_2.entry.js.map +1 -0
- package/dist/esm/taro-components.js +5 -3
- package/dist/esm/taro-components.js.map +1 -0
- package/dist/esm/taro-cover-image-core.entry.js +7 -4
- package/dist/esm/taro-cover-image-core.entry.js.map +1 -0
- package/dist/esm/taro-cover-view-core.entry.js +7 -3
- package/dist/esm/taro-cover-view-core.entry.js.map +1 -0
- package/dist/esm/taro-custom-wrapper-core.entry.js +4 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js.map +1 -0
- package/dist/esm/taro-editor-core.entry.js +4 -2
- package/dist/esm/taro-editor-core.entry.js.map +1 -0
- package/dist/esm/taro-form-core.entry.js +34 -39
- package/dist/esm/taro-form-core.entry.js.map +1 -0
- package/dist/esm/taro-functional-page-navigator-core.entry.js +4 -2
- package/dist/esm/taro-functional-page-navigator-core.entry.js.map +1 -0
- package/dist/esm/taro-icon-core.entry.js +6 -2
- package/dist/esm/taro-icon-core.entry.js.map +1 -0
- package/dist/esm/taro-image-core.entry.js +7 -4
- package/dist/esm/taro-image-core.entry.js.map +1 -0
- package/dist/esm/taro-input-core.entry.js +29 -14
- package/dist/esm/taro-input-core.entry.js.map +1 -0
- package/dist/esm/taro-keyboard-accessory-core.entry.js +4 -2
- package/dist/esm/taro-keyboard-accessory-core.entry.js.map +1 -0
- package/dist/esm/taro-label-core.entry.js +5 -2
- package/dist/esm/taro-label-core.entry.js.map +1 -0
- package/dist/esm/taro-live-player-core.entry.js +4 -2
- package/dist/esm/taro-live-player-core.entry.js.map +1 -0
- package/dist/esm/taro-live-pusher-core.entry.js +4 -2
- package/dist/esm/taro-live-pusher-core.entry.js.map +1 -0
- package/dist/esm/taro-map-core.entry.js +4 -2
- package/dist/esm/taro-map-core.entry.js.map +1 -0
- package/dist/esm/taro-match-media-core.entry.js +4 -2
- package/dist/esm/taro-match-media-core.entry.js.map +1 -0
- package/dist/esm/{taro-movable-view-core.entry.js → taro-movable-area-core_2.entry.js} +187 -98
- package/dist/esm/taro-movable-area-core_2.entry.js.map +1 -0
- package/dist/esm/taro-navigation-bar-core.entry.js +4 -2
- package/dist/esm/taro-navigation-bar-core.entry.js.map +1 -0
- package/dist/esm/taro-navigator-core.entry.js +6 -2
- package/dist/esm/taro-navigator-core.entry.js.map +1 -0
- package/dist/esm/taro-official-account-core.entry.js +4 -2
- package/dist/esm/taro-official-account-core.entry.js.map +1 -0
- package/dist/esm/taro-open-data-core.entry.js +4 -2
- package/dist/esm/taro-open-data-core.entry.js.map +1 -0
- package/dist/esm/taro-page-container-core.entry.js +4 -2
- package/dist/esm/taro-page-container-core.entry.js.map +1 -0
- package/dist/esm/taro-page-meta-core.entry.js +4 -2
- package/dist/esm/taro-page-meta-core.entry.js.map +1 -0
- package/dist/esm/taro-picker-core_2.entry.js +31 -15
- package/dist/esm/taro-picker-core_2.entry.js.map +1 -0
- package/dist/esm/{taro-picker-view-core.entry.js → taro-picker-view-column-core_2.entry.js} +97 -3
- package/dist/esm/taro-picker-view-column-core_2.entry.js.map +1 -0
- package/dist/esm/taro-progress-core.entry.js +7 -5
- package/dist/esm/taro-progress-core.entry.js.map +1 -0
- package/dist/esm/taro-pull-to-refresh.entry.js +10 -8
- package/dist/esm/taro-pull-to-refresh.entry.js.map +1 -0
- package/dist/esm/taro-radio-core_2.entry.js +15 -9
- package/dist/esm/taro-radio-core_2.entry.js.map +1 -0
- package/dist/esm/taro-rich-text-core.entry.js +5 -2
- package/dist/esm/taro-rich-text-core.entry.js.map +1 -0
- package/dist/esm/taro-root-portal-core.entry.js +4 -2
- package/dist/esm/taro-root-portal-core.entry.js.map +1 -0
- package/dist/esm/taro-scroll-view-core.entry.js +28 -22
- package/dist/esm/taro-scroll-view-core.entry.js.map +1 -0
- package/dist/esm/taro-share-element-core.entry.js +4 -2
- package/dist/esm/taro-share-element-core.entry.js.map +1 -0
- package/dist/esm/taro-slider-core.entry.js +37 -40
- package/dist/esm/taro-slider-core.entry.js.map +1 -0
- package/dist/esm/taro-slot-core.entry.js +4 -7
- package/dist/esm/taro-slot-core.entry.js.map +1 -0
- package/dist/esm/taro-swiper-core_2.entry.js +46 -72
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -0
- package/dist/esm/taro-switch-core.entry.js +12 -8
- package/dist/esm/taro-switch-core.entry.js.map +1 -0
- package/dist/esm/taro-tabbar.entry.js +12 -4
- package/dist/esm/taro-tabbar.entry.js.map +1 -0
- package/dist/esm/taro-text-core.entry.js +4 -2
- package/dist/esm/taro-text-core.entry.js.map +1 -0
- package/dist/esm/taro-textarea-core.entry.js +21 -10
- package/dist/esm/taro-textarea-core.entry.js.map +1 -0
- package/dist/esm/taro-video-control_3.entry.js +213 -27938
- package/dist/esm/taro-video-control_3.entry.js.map +1 -0
- package/dist/esm/taro-view-core.entry.js +7 -3
- package/dist/esm/taro-view-core.entry.js.map +1 -0
- package/dist/esm/taro-voip-room-core.entry.js +4 -2
- package/dist/esm/taro-voip-room-core.entry.js.map +1 -0
- package/dist/esm/taro-web-view-core.entry.js +5 -2
- package/dist/esm/taro-web-view-core.entry.js.map +1 -0
- package/dist/esm-es5/helper-3d0ecf0f.js +2 -1
- package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -0
- package/dist/esm-es5/hls-221423a1.js +366 -0
- package/dist/esm-es5/hls-221423a1.js.map +1 -0
- package/dist/esm-es5/index-1d8e8acd.js +2 -1
- package/dist/esm-es5/index-1d8e8acd.js.map +1 -0
- package/dist/esm-es5/index-5d881caf.js +3 -0
- package/dist/esm-es5/index-5d881caf.js.map +1 -0
- package/dist/esm-es5/index-cad8203e.js +2 -1
- package/dist/esm-es5/index-cad8203e.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/intersection-observer-8e4c7135.js +2 -1
- package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/taro-ad-core.entry.js +2 -1
- package/dist/esm-es5/taro-ad-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +2 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-audio-core.entry.js +2 -1
- package/dist/esm-es5/taro-audio-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-block-core.entry.js +2 -1
- package/dist/esm-es5/taro-block-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-button-core.entry.js +2 -1
- package/dist/esm-es5/taro-button-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-camera-core.entry.js +2 -1
- package/dist/esm-es5/taro-camera-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-canvas-core.entry.js +2 -1
- package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-components.js +2 -1
- package/dist/esm-es5/taro-components.js.map +1 -0
- package/dist/esm-es5/taro-cover-image-core.entry.js +2 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-cover-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +2 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-editor-core.entry.js +2 -1
- package/dist/esm-es5/taro-editor-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-form-core.entry.js +2 -1
- package/dist/esm-es5/taro-form-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +2 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-icon-core.entry.js +2 -1
- package/dist/esm-es5/taro-icon-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-image-core.entry.js +2 -1
- package/dist/esm-es5/taro-image-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-input-core.entry.js +2 -1
- package/dist/esm-es5/taro-input-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +2 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-label-core.entry.js +2 -1
- package/dist/esm-es5/taro-label-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-live-player-core.entry.js +2 -1
- package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +2 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +2 -1
- package/dist/esm-es5/taro-map-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +2 -1
- package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +2 -0
- package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +2 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +2 -1
- package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-official-account-core.entry.js +2 -1
- package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +2 -1
- package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-page-container-core.entry.js +2 -1
- package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +2 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +2 -0
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-progress-core.entry.js +2 -1
- package/dist/esm-es5/taro-progress-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +2 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -0
- package/dist/esm-es5/taro-radio-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-rich-text-core.entry.js +2 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-root-portal-core.entry.js +2 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-scroll-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-share-element-core.entry.js +2 -1
- package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-slider-core.entry.js +2 -1
- package/dist/esm-es5/taro-slider-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-slot-core.entry.js +2 -1
- package/dist/esm-es5/taro-slot-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-switch-core.entry.js +2 -1
- package/dist/esm-es5/taro-switch-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-tabbar.entry.js +2 -1
- package/dist/esm-es5/taro-tabbar.entry.js.map +1 -0
- package/dist/esm-es5/taro-text-core.entry.js +2 -1
- package/dist/esm-es5/taro-text-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-textarea-core.entry.js +2 -1
- package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-video-control_3.entry.js +2 -365
- package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -0
- package/dist/esm-es5/taro-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-voip-room-core.entry.js +2 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-web-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -0
- package/{dist-h5/react/components → dist/react/component-lib}/index.js +1 -1
- package/{dist-h5/react/components → dist/react/component-lib}/input.js +5 -5
- package/{dist-h5/react/utils → dist/react/component-lib}/reactify-wc.js +10 -20
- package/dist/react/components.js +65 -0
- package/dist/react/helper.js +13 -0
- package/{dist-h5 → dist}/react/index.js +0 -0
- package/dist/react/react-component-lib/index.js +2 -0
- package/dist/react/react-component-lib/interfaces.js +1 -0
- package/dist/react/react-component-lib/utils/attachProps.js +107 -0
- package/dist/react/react-component-lib/utils/case.js +10 -0
- package/dist/react/react-component-lib/utils/dev.js +12 -0
- package/dist/taro-components/index.esm.js +2 -0
- package/dist/taro-components/index.esm.js.map +1 -0
- package/dist/taro-components/p-001ef419.system.entry.js +2 -0
- package/dist/taro-components/p-001ef419.system.entry.js.map +1 -0
- package/dist/taro-components/p-01dc54a5.entry.js +2 -0
- package/dist/taro-components/p-01dc54a5.entry.js.map +1 -0
- package/dist/taro-components/p-0382d7d0.system.entry.js +2 -0
- package/dist/taro-components/p-0382d7d0.system.entry.js.map +1 -0
- package/dist/taro-components/{p-a94524c9.system.entry.js → p-057159bc.system.entry.js} +2 -1
- package/dist/taro-components/p-057159bc.system.entry.js.map +1 -0
- package/dist/taro-components/p-0a896bc7.entry.js +2 -0
- package/dist/taro-components/p-0a896bc7.entry.js.map +1 -0
- package/dist/taro-components/p-0b38e6c7.system.entry.js +2 -0
- package/dist/taro-components/p-0b38e6c7.system.entry.js.map +1 -0
- package/dist/taro-components/p-0d36ef6b.entry.js +2 -0
- package/dist/taro-components/p-0d36ef6b.entry.js.map +1 -0
- package/dist/taro-components/p-0ee6a068.entry.js +2 -0
- package/dist/taro-components/p-0ee6a068.entry.js.map +1 -0
- package/dist/taro-components/p-12e4b019.entry.js +2 -0
- package/dist/taro-components/p-12e4b019.entry.js.map +1 -0
- package/dist/taro-components/p-15dced71.system.entry.js +2 -0
- package/dist/taro-components/p-15dced71.system.entry.js.map +1 -0
- package/dist/taro-components/p-15e45ed6.system.js +2 -1
- package/dist/taro-components/p-15e45ed6.system.js.map +1 -0
- package/dist/taro-components/{p-f81a74bb.system.entry.js → p-1743a04b.system.js} +82 -81
- package/dist/taro-components/p-1743a04b.system.js.map +1 -0
- package/dist/taro-components/p-17657dca.entry.js +2 -0
- package/dist/taro-components/p-17657dca.entry.js.map +1 -0
- package/dist/taro-components/p-1b2556e2.system.entry.js +2 -0
- package/dist/taro-components/p-1b2556e2.system.entry.js.map +1 -0
- package/dist/taro-components/p-1b64d2a2.entry.js +2 -0
- package/dist/taro-components/p-1b64d2a2.entry.js.map +1 -0
- package/dist/taro-components/p-1bd3d09b.system.entry.js +2 -0
- package/dist/taro-components/p-1bd3d09b.system.entry.js.map +1 -0
- package/dist/taro-components/p-1cb76199.entry.js +2 -0
- package/dist/taro-components/p-1cb76199.entry.js.map +1 -0
- package/dist/taro-components/{p-13f0b11f.system.entry.js → p-1cd1c507.system.entry.js} +2 -1
- package/dist/taro-components/p-1cd1c507.system.entry.js.map +1 -0
- package/dist/taro-components/p-1e436d5b.entry.js +2 -0
- package/dist/taro-components/p-1e436d5b.entry.js.map +1 -0
- package/dist/taro-components/p-2096bc5f.entry.js +2 -0
- package/dist/taro-components/p-2096bc5f.entry.js.map +1 -0
- package/dist/taro-components/p-20ec6387.entry.js +2 -0
- package/dist/taro-components/p-20ec6387.entry.js.map +1 -0
- package/dist/taro-components/{p-c5fd5c7f.system.entry.js → p-21b77a13.system.entry.js} +2 -1
- package/dist/taro-components/p-21b77a13.system.entry.js.map +1 -0
- package/dist/taro-components/p-2243a376.entry.js +2 -0
- package/dist/taro-components/p-2243a376.entry.js.map +1 -0
- package/dist/taro-components/p-22f9f9fa.entry.js +2 -0
- package/dist/taro-components/p-22f9f9fa.entry.js.map +1 -0
- package/dist/taro-components/p-29f04296.entry.js +2 -0
- package/dist/taro-components/p-29f04296.entry.js.map +1 -0
- package/dist/taro-components/{p-3e11c8cc.system.entry.js → p-301a8b85.system.entry.js} +2 -1
- package/dist/taro-components/p-301a8b85.system.entry.js.map +1 -0
- package/dist/taro-components/p-3b1d2d37.system.js +2 -1
- package/dist/taro-components/p-3b1d2d37.system.js.map +1 -0
- package/dist/taro-components/p-3b9a1125.entry.js +2 -0
- package/dist/taro-components/p-3b9a1125.entry.js.map +1 -0
- package/dist/taro-components/p-3c256e0e.entry.js +2 -0
- package/dist/taro-components/p-3c256e0e.entry.js.map +1 -0
- package/dist/taro-components/p-3e6b29c6.entry.js +2 -0
- package/dist/taro-components/p-3e6b29c6.entry.js.map +1 -0
- package/dist/taro-components/{p-a63fbc50.system.entry.js → p-439a3349.system.entry.js} +2 -1
- package/dist/taro-components/p-439a3349.system.entry.js.map +1 -0
- package/dist/taro-components/p-447386b2.system.entry.js +2 -0
- package/dist/taro-components/p-447386b2.system.entry.js.map +1 -0
- package/dist/taro-components/{p-d075934f.system.entry.js → p-45b6ea0c.system.entry.js} +2 -1
- package/dist/taro-components/p-45b6ea0c.system.entry.js.map +1 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js +2 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js.map +1 -0
- package/dist/taro-components/p-4b05e003.entry.js +2 -0
- package/dist/taro-components/p-4b05e003.entry.js.map +1 -0
- package/dist/taro-components/{p-692d986d.system.entry.js → p-4b27df71.system.entry.js} +2 -1
- package/dist/taro-components/p-4b27df71.system.entry.js.map +1 -0
- package/dist/taro-components/p-4b71c926.entry.js +2 -0
- package/dist/taro-components/p-4b71c926.entry.js.map +1 -0
- package/dist/taro-components/{p-f7c80795.system.entry.js → p-4fbb8b4c.system.entry.js} +2 -1
- package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +1 -0
- package/dist/taro-components/p-50ea2036.system.js +2 -1
- package/dist/taro-components/p-50ea2036.system.js.map +1 -0
- package/dist/taro-components/p-55519002.entry.js +2 -0
- package/dist/taro-components/p-55519002.entry.js.map +1 -0
- package/dist/taro-components/p-570222e2.entry.js +2 -0
- package/dist/taro-components/p-570222e2.entry.js.map +1 -0
- package/dist/taro-components/p-5746d7ce.js +2 -1
- package/dist/taro-components/p-5746d7ce.js.map +1 -0
- package/dist/taro-components/{p-6ad59489.system.entry.js → p-580a72d1.system.entry.js} +2 -1
- package/dist/taro-components/p-580a72d1.system.entry.js.map +1 -0
- package/dist/taro-components/{p-93eed5d7.system.entry.js → p-59418be7.system.entry.js} +2 -1
- package/dist/taro-components/p-59418be7.system.entry.js.map +1 -0
- package/dist/taro-components/p-59e02aca.system.entry.js +2 -0
- package/dist/taro-components/p-59e02aca.system.entry.js.map +1 -0
- package/dist/taro-components/p-5b552407.entry.js +2 -0
- package/dist/taro-components/p-5b552407.entry.js.map +1 -0
- package/dist/taro-components/p-5bfefd19.js +3 -0
- package/dist/taro-components/p-5bfefd19.js.map +1 -0
- package/dist/taro-components/p-61f225ef.system.js +2 -1
- package/dist/taro-components/p-61f225ef.system.js.map +1 -0
- package/dist/taro-components/p-663d1bb9.system.js +2 -1
- package/dist/taro-components/p-663d1bb9.system.js.map +1 -0
- package/dist/taro-components/p-6a96da58.js +2 -1
- package/dist/taro-components/p-6a96da58.js.map +1 -0
- package/dist/taro-components/p-6af8be19.entry.js +2 -0
- package/dist/taro-components/p-6af8be19.entry.js.map +1 -0
- package/dist/taro-components/p-6ea2995b.entry.js +2 -0
- package/dist/taro-components/p-6ea2995b.entry.js.map +1 -0
- package/dist/taro-components/p-6f8af69f.entry.js +2 -0
- package/dist/taro-components/p-6f8af69f.entry.js.map +1 -0
- package/dist/taro-components/{p-f4ea8a56.system.entry.js → p-701b0286.system.entry.js} +2 -1
- package/dist/taro-components/p-701b0286.system.entry.js.map +1 -0
- package/dist/taro-components/p-72f327e1.js +2 -1
- package/dist/taro-components/p-72f327e1.js.map +1 -0
- package/dist/taro-components/p-72f626ab.system.entry.js +2 -0
- package/dist/taro-components/p-72f626ab.system.entry.js.map +1 -0
- package/dist/taro-components/p-755be847.system.entry.js +2 -0
- package/dist/taro-components/p-755be847.system.entry.js.map +1 -0
- package/dist/taro-components/p-76724e58.js +3 -2
- package/dist/taro-components/p-76724e58.js.map +1 -0
- package/dist/taro-components/p-7baff0b4.entry.js +2 -0
- package/dist/taro-components/p-7baff0b4.entry.js.map +1 -0
- package/dist/taro-components/p-8231e748.entry.js +2 -0
- package/dist/taro-components/p-8231e748.entry.js.map +1 -0
- package/dist/taro-components/{p-07294134.system.entry.js → p-8a3620a6.system.entry.js} +2 -1
- package/dist/taro-components/p-8a3620a6.system.entry.js.map +1 -0
- package/dist/taro-components/p-8a8f286f.system.js +3 -0
- package/dist/taro-components/p-8a8f286f.system.js.map +1 -0
- package/dist/taro-components/{p-7e960ac3.system.entry.js → p-8bec95d4.system.entry.js} +2 -1
- package/dist/taro-components/p-8bec95d4.system.entry.js.map +1 -0
- package/dist/taro-components/{p-e671c8c5.system.entry.js → p-8c8fe164.system.entry.js} +2 -1
- package/dist/taro-components/p-8c8fe164.system.entry.js.map +1 -0
- package/dist/taro-components/p-93cc7adc.entry.js +2 -0
- package/dist/taro-components/p-93cc7adc.entry.js.map +1 -0
- package/dist/taro-components/p-946c0799.system.entry.js +2 -0
- package/dist/taro-components/p-946c0799.system.entry.js.map +1 -0
- package/dist/taro-components/p-96a784f1.entry.js +2 -0
- package/dist/taro-components/p-96a784f1.entry.js.map +1 -0
- package/dist/taro-components/p-99bbe34a.system.entry.js +2 -0
- package/dist/taro-components/p-99bbe34a.system.entry.js.map +1 -0
- package/dist/taro-components/p-9e20c25c.entry.js +2 -0
- package/dist/taro-components/p-9e20c25c.entry.js.map +1 -0
- package/dist/taro-components/{p-075458e5.system.entry.js → p-9f1ca602.system.entry.js} +2 -1
- package/dist/taro-components/p-9f1ca602.system.entry.js.map +1 -0
- package/dist/taro-components/p-a1ace8c7.system.entry.js +2 -0
- package/dist/taro-components/p-a1ace8c7.system.entry.js.map +1 -0
- package/dist/taro-components/p-a29509fa.system.entry.js +2 -0
- package/dist/taro-components/p-a29509fa.system.entry.js.map +1 -0
- package/dist/taro-components/p-a2aab820.entry.js +2 -0
- package/dist/taro-components/p-a2aab820.entry.js.map +1 -0
- package/dist/taro-components/{p-d4da725f.system.entry.js → p-a6f2dc54.system.entry.js} +2 -1
- package/dist/taro-components/p-a6f2dc54.system.entry.js.map +1 -0
- package/dist/taro-components/p-ab105c26.entry.js +2 -0
- package/dist/taro-components/p-ab105c26.entry.js.map +1 -0
- package/dist/taro-components/{p-c93bb915.system.entry.js → p-b04a56bd.system.entry.js} +2 -1
- package/dist/taro-components/p-b04a56bd.system.entry.js.map +1 -0
- package/dist/taro-components/p-b10cb428.entry.js +2 -0
- package/dist/taro-components/p-b10cb428.entry.js.map +1 -0
- package/dist/taro-components/p-b4ec48c3.entry.js +2 -0
- package/dist/taro-components/p-b4ec48c3.entry.js.map +1 -0
- package/dist/taro-components/{p-d6662ab3.system.entry.js → p-b500c116.system.entry.js} +2 -1
- package/dist/taro-components/p-b500c116.system.entry.js.map +1 -0
- package/dist/taro-components/p-b832f4e8.entry.js +2 -0
- package/dist/taro-components/p-b832f4e8.entry.js.map +1 -0
- package/dist/taro-components/p-b88a55b4.system.entry.js +2 -0
- package/dist/taro-components/p-b88a55b4.system.entry.js.map +1 -0
- package/dist/taro-components/p-b90926cc.entry.js +2 -0
- package/dist/taro-components/p-b90926cc.entry.js.map +1 -0
- package/dist/taro-components/p-ba743573.entry.js +2 -0
- package/dist/taro-components/p-ba743573.entry.js.map +1 -0
- package/dist/taro-components/p-be3f5ac0.entry.js +2 -0
- package/dist/taro-components/p-be3f5ac0.entry.js.map +1 -0
- package/dist/taro-components/p-beea63a7.entry.js +2 -0
- package/dist/taro-components/p-beea63a7.entry.js.map +1 -0
- package/dist/taro-components/{p-b7681c76.system.entry.js → p-c0e3c822.system.entry.js} +2 -1
- package/dist/taro-components/p-c0e3c822.system.entry.js.map +1 -0
- package/dist/taro-components/p-c3acf0ea.system.entry.js +2 -0
- package/dist/taro-components/p-c3acf0ea.system.entry.js.map +1 -0
- package/dist/taro-components/p-c3bb8fa6.entry.js +2 -0
- package/dist/taro-components/p-c3bb8fa6.entry.js.map +1 -0
- package/dist/taro-components/{p-733cc64a.system.entry.js → p-c4cf58af.system.entry.js} +2 -1
- package/dist/taro-components/p-c4cf58af.system.entry.js.map +1 -0
- package/dist/taro-components/{p-b11aaf69.system.entry.js → p-c5c331bf.system.entry.js} +2 -1
- package/dist/taro-components/p-c5c331bf.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +2 -0
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -0
- package/dist/taro-components/{p-fc9f4fd7.system.entry.js → p-cbe2436d.system.entry.js} +2 -1
- package/dist/taro-components/p-cbe2436d.system.entry.js.map +1 -0
- package/dist/taro-components/p-cd6a7eea.entry.js +2 -0
- package/dist/taro-components/p-cd6a7eea.entry.js.map +1 -0
- package/dist/taro-components/p-d4b6f19e.system.entry.js +2 -0
- package/dist/taro-components/p-d4b6f19e.system.entry.js.map +1 -0
- package/dist/taro-components/p-d5234e7e.js +366 -0
- package/dist/taro-components/p-d5234e7e.js.map +1 -0
- package/dist/taro-components/p-d5579efa.system.entry.js +2 -0
- package/dist/taro-components/p-d5579efa.system.entry.js.map +1 -0
- package/dist/taro-components/p-d619f198.system.entry.js +2 -0
- package/dist/taro-components/p-d619f198.system.entry.js.map +1 -0
- package/dist/taro-components/p-d7ab3e23.system.entry.js +2 -0
- package/dist/taro-components/p-d7ab3e23.system.entry.js.map +1 -0
- package/dist/taro-components/p-d7f4b10f.entry.js +2 -0
- package/dist/taro-components/p-d7f4b10f.entry.js.map +1 -0
- package/dist/taro-components/p-d85b216d.entry.js +2 -0
- package/dist/taro-components/p-d85b216d.entry.js.map +1 -0
- package/dist/taro-components/p-dcb48fd9.system.entry.js +2 -0
- package/dist/taro-components/p-dcb48fd9.system.entry.js.map +1 -0
- package/dist/taro-components/p-de762042.entry.js +2 -0
- package/dist/taro-components/p-de762042.entry.js.map +1 -0
- package/dist/taro-components/p-df862d0c.entry.js +2 -0
- package/dist/taro-components/p-df862d0c.entry.js.map +1 -0
- package/dist/taro-components/p-e0d6b00b.entry.js +2 -0
- package/dist/taro-components/p-e0d6b00b.entry.js.map +1 -0
- package/dist/taro-components/p-e4f1cc50.entry.js +2 -0
- package/dist/taro-components/p-e4f1cc50.entry.js.map +1 -0
- package/dist/taro-components/p-e59f999e.entry.js +2 -0
- package/dist/taro-components/p-e59f999e.entry.js.map +1 -0
- package/dist/taro-components/p-e7239faa.system.entry.js +2 -0
- package/dist/taro-components/p-e7239faa.system.entry.js.map +1 -0
- package/dist/taro-components/p-e98c07c3.system.entry.js +2 -0
- package/dist/taro-components/p-e98c07c3.system.entry.js.map +1 -0
- package/dist/taro-components/p-e9abe3e2.entry.js +2 -0
- package/dist/taro-components/p-e9abe3e2.entry.js.map +1 -0
- package/dist/taro-components/p-eddd00e9.system.entry.js +2 -0
- package/dist/taro-components/p-eddd00e9.system.entry.js.map +1 -0
- package/dist/taro-components/p-ef029c30.system.entry.js +2 -0
- package/dist/taro-components/p-ef029c30.system.entry.js.map +1 -0
- package/dist/taro-components/{p-8e2b048e.system.entry.js → p-f0d0160d.system.entry.js} +2 -1
- package/dist/taro-components/p-f0d0160d.system.entry.js.map +1 -0
- package/dist/taro-components/{p-f2803c2e.system.entry.js → p-f2c75971.system.entry.js} +2 -1
- package/dist/taro-components/p-f2c75971.system.entry.js.map +1 -0
- package/dist/taro-components/p-ffc44634.entry.js +2 -0
- package/dist/taro-components/p-ffc44634.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +2 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -0
- package/dist/taro-components/taro-components.js +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- package/dist/types/components/cover-image/cover-image.d.ts +1 -1
- package/dist/types/components/form/form.d.ts +4 -7
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +4 -3
- package/dist/types/components/movable-area/movable-view.d.ts +3 -3
- package/dist/types/components/progress/progress.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +2 -2
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/slider/slider.d.ts +3 -4
- package/dist/types/components/slot/slot.d.ts +0 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components/video/utils.d.ts +1 -1
- package/dist/types/components.d.ts +183 -70
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/{dist-h5/vue/components/index.js → dist/vue2/component-lib/components.js} +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/createComponent.js +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/createFormsComponent.js +0 -0
- package/{dist-h5/vue/components → dist/vue2/component-lib}/icon.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/image.js +2 -2
- package/{dist-h5/vue → dist/vue2/component-lib}/index.js +4 -3
- package/{dist-h5/vue → dist/vue2/component-lib}/mixins/listeners.js +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/mixins/refs.js +0 -0
- package/{dist-h5/vue/components → dist/vue2/component-lib}/picker.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/scroll-view.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/text.js +2 -2
- package/dist/vue2/components.js +490 -0
- package/dist/vue2/index.js +26 -0
- package/dist/vue2/vue-component-lib/utils.js +45 -0
- package/{dist-h5/vue3 → dist/vue3/component-lib}/createComponent.js +1 -1
- package/{dist-h5/vue3 → dist/vue3/component-lib}/createFormsComponent.js +0 -0
- package/{dist-h5/vue3 → dist/vue3/component-lib}/forwardRef.js +0 -0
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/icon.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/image.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/index.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/scroll-view.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/text.js +2 -2
- package/dist/vue3/components.js +64 -0
- package/{dist-h5 → dist}/vue3/index.js +0 -0
- package/dist/vue3/vue-component-lib/utils.js +201 -0
- package/loader/package.json +1 -0
- package/package.json +23 -23
- package/types/Ad.d.ts +20 -21
- package/types/Audio.d.ts +5 -5
- package/types/Button.d.ts +67 -70
- package/types/Camera.d.ts +15 -16
- package/types/Canvas.d.ts +22 -27
- package/types/Checkbox.d.ts +7 -7
- package/types/CoverImage.d.ts +15 -15
- package/types/CoverView.d.ts +5 -5
- package/types/Form.d.ts +10 -10
- package/types/Image.d.ts +20 -20
- package/types/Input.d.ts +26 -24
- package/types/LivePlayer.d.ts +31 -25
- package/types/LivePusher.d.ts +5 -5
- package/types/Map.d.ts +66 -71
- package/types/MovableView.d.ts +5 -14
- package/types/Navigator.d.ts +10 -10
- package/types/OpenData.d.ts +5 -5
- package/types/PageContainer.d.ts +7 -10
- package/types/PageMeta.d.ts +14 -14
- package/types/Picker.d.ts +1 -5
- package/types/PickerView.d.ts +11 -21
- package/types/Progress.d.ts +5 -5
- package/types/RadioGroup.d.ts +5 -5
- package/types/RichText.d.ts +17 -17
- package/types/ScrollView.d.ts +46 -30
- package/types/Slider.d.ts +10 -10
- package/types/Swiper.d.ts +20 -20
- package/types/Switch.d.ts +5 -5
- package/types/Textarea.d.ts +32 -32
- package/types/Video.d.ts +119 -108
- package/types/View.d.ts +21 -15
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +11 -5
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +0 -157
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +0 -95
- package/dist/esm/taro-movable-area-core.entry.js +0 -153
- package/dist/esm/taro-picker-view-column-core.entry.js +0 -91
- package/dist/esm-es5/index-8809c729.js +0 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +0 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +0 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +0 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +0 -1
- package/dist/taro-components/p-028e2728.entry.js +0 -1
- package/dist/taro-components/p-0380841f.system.js +0 -1
- package/dist/taro-components/p-059912fd.js +0 -1
- package/dist/taro-components/p-06178a0c.entry.js +0 -1
- package/dist/taro-components/p-06e6864b.system.entry.js +0 -1
- package/dist/taro-components/p-10c47df8.system.entry.js +0 -1
- package/dist/taro-components/p-1c775a11.system.entry.js +0 -1
- package/dist/taro-components/p-232ebfae.system.entry.js +0 -1
- package/dist/taro-components/p-25df0ce9.entry.js +0 -1
- package/dist/taro-components/p-27126803.system.entry.js +0 -1
- package/dist/taro-components/p-275d883f.system.entry.js +0 -1
- package/dist/taro-components/p-27c80869.system.entry.js +0 -1
- package/dist/taro-components/p-2ec47545.entry.js +0 -1
- package/dist/taro-components/p-3255f11f.system.entry.js +0 -1
- package/dist/taro-components/p-362998cf.entry.js +0 -1
- package/dist/taro-components/p-3744e978.entry.js +0 -365
- package/dist/taro-components/p-3c6090fd.entry.js +0 -1
- package/dist/taro-components/p-44398c17.system.entry.js +0 -1
- package/dist/taro-components/p-44cbb351.system.js +0 -1
- package/dist/taro-components/p-4ada10aa.entry.js +0 -1
- package/dist/taro-components/p-4cf436f9.entry.js +0 -1
- package/dist/taro-components/p-4d826fb7.entry.js +0 -1
- package/dist/taro-components/p-55266a1f.entry.js +0 -1
- package/dist/taro-components/p-56c86512.entry.js +0 -1
- package/dist/taro-components/p-5733124c.entry.js +0 -1
- package/dist/taro-components/p-57a2a441.entry.js +0 -1
- package/dist/taro-components/p-59d93770.entry.js +0 -1
- package/dist/taro-components/p-5a2305e7.entry.js +0 -1
- package/dist/taro-components/p-5a374cb9.entry.js +0 -1
- package/dist/taro-components/p-5c87902f.system.entry.js +0 -1
- package/dist/taro-components/p-5e223bab.system.entry.js +0 -1
- package/dist/taro-components/p-5f18259d.system.entry.js +0 -1
- package/dist/taro-components/p-62fc514e.entry.js +0 -1
- package/dist/taro-components/p-63a0c6b0.entry.js +0 -1
- package/dist/taro-components/p-64447f5a.system.entry.js +0 -1
- package/dist/taro-components/p-67222d90.system.entry.js +0 -1
- package/dist/taro-components/p-6800ac6f.entry.js +0 -1
- package/dist/taro-components/p-6aa557f0.entry.js +0 -1
- package/dist/taro-components/p-72f858e4.entry.js +0 -1
- package/dist/taro-components/p-7374537f.entry.js +0 -1
- package/dist/taro-components/p-7407013d.entry.js +0 -1
- package/dist/taro-components/p-7d329ab0.entry.js +0 -1
- package/dist/taro-components/p-7f93fa08.entry.js +0 -1
- package/dist/taro-components/p-82661d45.system.entry.js +0 -1
- package/dist/taro-components/p-8475421b.system.entry.js +0 -1
- package/dist/taro-components/p-8788dc46.system.entry.js +0 -1
- package/dist/taro-components/p-886571e5.entry.js +0 -1
- package/dist/taro-components/p-888fac99.entry.js +0 -1
- package/dist/taro-components/p-8aea3de3.entry.js +0 -1
- package/dist/taro-components/p-8c8be53b.entry.js +0 -1
- package/dist/taro-components/p-8cf86f31.system.entry.js +0 -1
- package/dist/taro-components/p-9234cc1d.entry.js +0 -1
- package/dist/taro-components/p-92699438.entry.js +0 -1
- package/dist/taro-components/p-9a0e70b1.entry.js +0 -1
- package/dist/taro-components/p-9afbb423.system.entry.js +0 -1
- package/dist/taro-components/p-9b39a940.entry.js +0 -1
- package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
- package/dist/taro-components/p-ab1256fe.entry.js +0 -1
- package/dist/taro-components/p-ad6ad7e3.system.entry.js +0 -1
- package/dist/taro-components/p-afbcd093.entry.js +0 -1
- package/dist/taro-components/p-b1ae9401.entry.js +0 -1
- package/dist/taro-components/p-b2800ccd.entry.js +0 -1
- package/dist/taro-components/p-b3b677fc.entry.js +0 -1
- package/dist/taro-components/p-b3d961f9.system.entry.js +0 -1
- package/dist/taro-components/p-b60820b4.entry.js +0 -1
- package/dist/taro-components/p-b7639674.entry.js +0 -1
- package/dist/taro-components/p-b7ac0b7f.system.entry.js +0 -1
- package/dist/taro-components/p-b9903f15.system.entry.js +0 -1
- package/dist/taro-components/p-bd706d39.entry.js +0 -1
- package/dist/taro-components/p-c92bafb6.system.entry.js +0 -1
- package/dist/taro-components/p-cf048af9.entry.js +0 -1
- package/dist/taro-components/p-d5f3080c.entry.js +0 -1
- package/dist/taro-components/p-df3b544a.system.entry.js +0 -1
- package/dist/taro-components/p-dff55efd.entry.js +0 -1
- package/dist/taro-components/p-eec00033.entry.js +0 -1
- package/dist/taro-components/p-eeed74e3.system.entry.js +0 -1
- package/dist/taro-components/p-ef006b23.entry.js +0 -1
- package/dist/taro-components/p-f8b9c4b0.entry.js +0 -1
- package/dist/taro-components/p-fa2a9bab.entry.js +0 -1
- package/dist/taro-components/p-fec6ac36.entry.js +0 -1
- package/dist/taro-components/p-ff84986d.entry.js +0 -1
- package/dist/taro-components/p-ffefd74f.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-components.cjs.js","mappings":";;;;AAAA;AACA;AACA;AAIA,MAAM,YAAY,GAAG,MAAM;AA6B3B,IAAI,MAAM,UAAU,GAAG,iNAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAyD,EAAE,CAAC;AAe1E,IAAI,IAAuB,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAWK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AC/DD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;","names":["promiseResolve","bootstrapLazy"],"sources":["../../node_modules/.pnpm/registry.npmjs.org+@stencil+core@2.19.2/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.19.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
|
|
7
7
|
const indexCss = "taro-cover-image-core{overflow:hidden;width:320px;height:240px}";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const CoverImage = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.onLoad = index.createEvent(this, "load", 7);
|
|
13
13
|
this.onError = index.createEvent(this, "error", 7);
|
|
14
|
+
this.src = undefined;
|
|
14
15
|
this.nativeProps = {};
|
|
15
16
|
}
|
|
16
17
|
imageOnLoad() {
|
|
@@ -20,8 +21,8 @@ let CoverImage = class {
|
|
|
20
21
|
height
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
imageOnError() {
|
|
24
|
-
this.onError.emit();
|
|
24
|
+
imageOnError(e) {
|
|
25
|
+
this.onError.emit(e);
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
const { src, imageOnLoad, imageOnError, nativeProps } = this;
|
|
@@ -31,3 +32,5 @@ let CoverImage = class {
|
|
|
31
32
|
CoverImage.style = indexCss;
|
|
32
33
|
|
|
33
34
|
exports.taro_cover_image_core = CoverImage;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=taro-cover-image-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-cover-image-core.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,iEAAiE;;MCMrE,UAAU;;;;;;uBAEC,EAAE;;EAWxB,WAAW;IACT,MAAM,EACJ,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC,MAAM,CAAA;IAEf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;MACf,KAAK;MACL,MAAM;KACP,CAAC,CAAA;GACH;EAED,YAAY,CAAE,CAAQ;IACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;GACrB;EAED,MAAM;IACJ,MAAM,EACJ,GAAG,EACH,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,GAAG,IAAI,CAAA;IACR,QACEA,+BACE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,GAAI,CAAC,EAChC,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAC5B,WAAW,EACf,EACH;GACF;;;;;;","names":["h"],"sources":["./src/components/cover-image/style/index.scss?tag=taro-cover-image-core","./src/components/cover-image/cover-image.tsx"],"sourcesContent":["taro-cover-image-core {\n overflow: hidden;\n width: 320px;\n height: 240px;\n}\n","import { Component, Prop, Event, h, ComponentInterface, EventEmitter } from '@stencil/core'\n\n@Component({\n tag: 'taro-cover-image-core',\n styleUrl: './style/index.scss'\n})\nexport class CoverImage implements ComponentInterface {\n @Prop() src: string\n @Prop() nativeProps = {}\n @Event({\n eventName: 'load'\n }) onLoad: EventEmitter\n\n @Event({\n eventName: 'error'\n }) onError: EventEmitter\n\n private imgRef: HTMLImageElement\n\n imageOnLoad () {\n const {\n width,\n height,\n } = this.imgRef\n\n this.onLoad.emit({\n width,\n height\n })\n }\n\n imageOnError (e: Event) {\n this.onError.emit(e)\n }\n\n render () {\n const {\n src,\n imageOnLoad,\n imageOnError,\n nativeProps\n } = this\n return (\n <img\n ref={img => (this.imgRef = img!)}\n src={src}\n onLoad={imageOnLoad.bind(this)}\n onError={imageOnError.bind(this)}\n {...nativeProps}\n />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,20 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const index$1 = require('./index-f9d21cc5.js');
|
|
7
7
|
|
|
8
8
|
const coverViewCss = "taro-cover-view-core{display:block}";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const CoverView = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.onLongPress = index.createEvent(this, "longpress", 7);
|
|
14
|
+
this.startTime = 0;
|
|
15
|
+
this.animation = undefined;
|
|
16
|
+
this.hoverClass = undefined;
|
|
14
17
|
this.hoverStartTime = 50;
|
|
15
18
|
this.hoverStayTime = 400;
|
|
16
19
|
this.hover = false;
|
|
17
20
|
this.touch = false;
|
|
18
|
-
this.startTime = 0;
|
|
19
21
|
}
|
|
20
22
|
onTouchStart() {
|
|
21
23
|
if (this.hoverClass) {
|
|
@@ -63,3 +65,5 @@ let CoverView = class {
|
|
|
63
65
|
CoverView.style = coverViewCss;
|
|
64
66
|
|
|
65
67
|
exports.taro_cover_view_core = CoverView;
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=taro-cover-view-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-cover-view-core.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,qCAAqC;;MCO7C,SAAS;;;;IAaZ,cAAS,GAAG,CAAC,CAAA;;;0BAVI,EAAE;yBACH,GAAG;iBACV,KAAK;iBACL,KAAK;;EAUtB,YAAY;IACV,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;MACjB,UAAU,CAAC;QACT,IAAI,IAAI,CAAC,KAAK,EAAE;UACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;SAClB;OACF,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;KACxB;IAED,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC;MAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAA;KACxB,EAAE,GAAG,CAAC,CAAA;IACP,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;GAC5B;EAGD,WAAW;IACT,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;GAChC;EAGD,UAAU;IACR,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAA;IAC5C,IAAI,QAAQ,GAAG,GAAG,EAAE;MAClB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;KAChC;IACD,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;MAClB,UAAU,CAAC;QACT,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;UACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;SACnB;OACF,EAAE,IAAI,CAAC,aAAa,CAAC,CAAA;KACvB;GACF;EAED,MAAM;IACJ,MAAM,GAAG,GAAGA,kBAAU,CAAC;MACrB,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK;KACnC,CAAC,CAAA;IACF,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAA;MAClC,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAA;KACxC;IACD,QACEC,QAACC,UAAI,kBAAC,KAAK,EAAE,GAAG,IAAM,IAAI,GACxBD,qBAAa,CACR,EACR;GACF;;;;;;","names":["classNames","h","Host"],"sources":["./src/components/cover-view/style/cover-view.scss?tag=taro-cover-view-core","./src/components/cover-view/cover-view.tsx"],"sourcesContent":["taro-cover-view-core {\n display: block;\n}\n","import { Component, Prop, h, ComponentInterface, Host, Listen, State, Event, EventEmitter } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-cover-view-core',\n styleUrl: './style/cover-view.scss'\n})\nexport class CoverView implements ComponentInterface {\n @Prop() animation: string\n @Prop() hoverClass: string\n @Prop() hoverStartTime = 50\n @Prop() hoverStayTime = 400\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n private timeoutEvent: ReturnType<typeof setTimeout>\n private startTime = 0\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.hoverClass) {\n this.touch = true\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n\n this.timeoutEvent = setTimeout(() => {\n this.onLongPress.emit()\n }, 350)\n this.startTime = Date.now()\n }\n\n @Listen('touchmove')\n onTouchMove () {\n clearTimeout(this.timeoutEvent)\n }\n\n @Listen('touchend')\n onTouchEnd () {\n const spanTime = Date.now() - this.startTime\n if (spanTime < 350) {\n clearTimeout(this.timeoutEvent)\n }\n if (this.hoverClass) {\n this.touch = false\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n }\n\n render() {\n const cls = classNames({\n [`${this.hoverClass}`]: this.hover\n })\n let attr = {}\n if (!!this.animation) {\n attr['animation'] = this.animation\n attr['data-animation'] = this.animation\n }\n return (\n <Host class={cls} {...attr}>\n <slot></slot>\n </Host>\n )\n }\n}\n"],"version":3}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const CustomWrapper = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
@@ -14,3 +14,5 @@ let CustomWrapper = class {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.taro_custom_wrapper_core = CustomWrapper;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=taro-custom-wrapper-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-custom-wrapper-core.entry.cjs.js","mappings":";;;;;;MAKa,aAAa;;;;EACxB,MAAM;IACJ,QACEA,QAACC,UAAI,OAAG,EACT;GACF;;;;;","names":["h","Host"],"sources":["./src/components/custom-wrapper/custom-wrapper.tsx"],"sourcesContent":["import { Component, h, Host, ComponentInterface } from '@stencil/core'\n\n@Component({\n tag: 'taro-custom-wrapper-core'\n})\nexport class CustomWrapper implements ComponentInterface {\n render () {\n return (\n <Host />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const helper = require('./helper-db78e01a.js');
|
|
7
7
|
require('@tarojs/taro');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const Editor = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
@@ -19,3 +19,5 @@ let Editor = class {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.taro_editor_core = Editor;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=taro-editor-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-editor-core.entry.cjs.js","mappings":";;;;;;;;MAOa,MAAM;;;;EACjB,gBAAgB;IACdA,iBAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;GAC3B;EAED,MAAM;IACJ,QACEC,QAACC,UAAI,OAAG,EACT;GACF;;;;;","names":["notSupport","h","Host"],"sources":["./src/components/editor/editor.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-editor-core'\n})\nexport class Editor implements ComponentInterface {\n componentDidLoad () {\n notSupport('Editor', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,41 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const Form = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.onSubmit = index.createEvent(this, "submit", 7);
|
|
11
11
|
this.value = {};
|
|
12
12
|
}
|
|
13
|
-
watchSlotParent(newParent) {
|
|
14
|
-
if (!this.orginalAppendChild) {
|
|
15
|
-
this.orginalAppendChild = this.el.appendChild;
|
|
16
|
-
this.orginalInsertBefore = this.el.insertBefore;
|
|
17
|
-
this.orginalReplaceChild = this.el.replaceChild;
|
|
18
|
-
this.orginalRemoveChild = this.el.removeChild;
|
|
19
|
-
}
|
|
20
|
-
if (!newParent) {
|
|
21
|
-
this.el.appendChild = this.orginalAppendChild;
|
|
22
|
-
this.el.insertBefore = this.orginalInsertBefore;
|
|
23
|
-
this.el.replaceChild = this.orginalReplaceChild;
|
|
24
|
-
this.el.removeChild = this.orginalRemoveChild;
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
this.el.appendChild = (newChild) => {
|
|
28
|
-
return newParent.appendChild(newChild);
|
|
29
|
-
};
|
|
30
|
-
this.el.insertBefore = (newChild, refChild) => {
|
|
31
|
-
return newParent.insertBefore(newChild, refChild);
|
|
32
|
-
};
|
|
33
|
-
this.el.replaceChild = (newChild, oldChild) => {
|
|
34
|
-
return newParent.replaceChild(newChild, oldChild);
|
|
35
|
-
};
|
|
36
|
-
this.el.removeChild = (oldChild) => {
|
|
37
|
-
return newParent.removeChild(oldChild);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
13
|
onButtonSubmit(e) {
|
|
41
14
|
e.stopPropagation();
|
|
42
15
|
this.value = this.getFormValue();
|
|
@@ -56,7 +29,31 @@ let Form = class {
|
|
|
56
29
|
});
|
|
57
30
|
}
|
|
58
31
|
componentDidRender() {
|
|
59
|
-
|
|
32
|
+
if (!this.originalAppendChild) {
|
|
33
|
+
this.originalAppendChild = this.el.appendChild;
|
|
34
|
+
this.originalInsertBefore = this.el.insertBefore;
|
|
35
|
+
this.originalReplaceChild = this.el.replaceChild;
|
|
36
|
+
this.originalRemoveChild = this.el.removeChild;
|
|
37
|
+
}
|
|
38
|
+
if (!this.form) {
|
|
39
|
+
this.el.appendChild = this.originalAppendChild;
|
|
40
|
+
this.el.insertBefore = this.originalInsertBefore;
|
|
41
|
+
this.el.replaceChild = this.originalReplaceChild;
|
|
42
|
+
this.el.removeChild = this.originalRemoveChild;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.el.appendChild = (newChild) => {
|
|
46
|
+
return this.form.appendChild(newChild);
|
|
47
|
+
};
|
|
48
|
+
this.el.insertBefore = (newChild, refChild) => {
|
|
49
|
+
return this.form.insertBefore(newChild, refChild);
|
|
50
|
+
};
|
|
51
|
+
this.el.replaceChild = (newChild, oldChild) => {
|
|
52
|
+
return this.form.replaceChild(newChild, oldChild);
|
|
53
|
+
};
|
|
54
|
+
this.el.removeChild = (oldChild) => {
|
|
55
|
+
return this.form.removeChild(oldChild);
|
|
56
|
+
};
|
|
60
57
|
}
|
|
61
58
|
getFormValue() {
|
|
62
59
|
const el = this.el;
|
|
@@ -68,6 +65,8 @@ let Form = class {
|
|
|
68
65
|
const formItem = {};
|
|
69
66
|
const hash = {};
|
|
70
67
|
elements.forEach(item => {
|
|
68
|
+
if (typeof item.name !== 'string')
|
|
69
|
+
return;
|
|
71
70
|
if (item.className.indexOf('weui-switch') !== -1) {
|
|
72
71
|
formItem[item.name] = item.checked;
|
|
73
72
|
return;
|
|
@@ -109,24 +108,20 @@ let Form = class {
|
|
|
109
108
|
textareaEleArr.push(textareaElements[i]);
|
|
110
109
|
}
|
|
111
110
|
textareaEleArr.forEach(v => {
|
|
111
|
+
if (typeof v.name !== 'string')
|
|
112
|
+
return;
|
|
112
113
|
formItem[v.name] = v.value;
|
|
113
114
|
});
|
|
114
115
|
return formItem;
|
|
115
116
|
}
|
|
116
|
-
setSlotParent(el) {
|
|
117
|
-
this.slotParent = el;
|
|
118
|
-
}
|
|
119
117
|
render() {
|
|
120
118
|
return (index.h("form", { ref: dom => {
|
|
121
|
-
|
|
122
|
-
this.form = dom;
|
|
123
|
-
}
|
|
119
|
+
this.form = dom;
|
|
124
120
|
} }, index.h("slot", null)));
|
|
125
121
|
}
|
|
126
122
|
get el() { return index.getElement(this); }
|
|
127
|
-
static get watchers() { return {
|
|
128
|
-
"slotParent": ["watchSlotParent"]
|
|
129
|
-
}; }
|
|
130
123
|
};
|
|
131
124
|
|
|
132
125
|
exports.taro_form_core = Form;
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=taro-form-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-form-core.entry.cjs.js","mappings":";;;;;;MAKa,IAAI;EAHjB;;;IAKU,UAAK,GAA8B,EAAE,CAAA;GAuI9C;EA1HC,cAAc,CAAE,CAAQ;IACtB,CAAC,CAAC,eAAe,EAAE,CAAA;IAEnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;IAEhC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;MACjB,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,CAAA;GACH;EAGD,aAAa,CAAE,CAAQ;IACrB,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA;GAClB;EAED,gBAAgB;IACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;IAEhC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;MACtC,GAAG,EAAE,MAAM,IAAI,CAAC,KAAK;MACrB,YAAY,EAAE,IAAI;KAC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AAI,CAAC,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;WACrC;eAAM;YACL,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;WACnC;SACF;aAAM;UACL,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAA;WACzB;SACF;QACD,OAAM;OACP;MACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAA;KACjC,CAAC,CAAA;IAEF,MAAM,gBAAgB,GAAG,EAAE,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC5D,MAAM,cAAc,GAA0B,EAAE,CAAA;IAEhD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,gBAAgB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;MAChD,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;KACzC;IACD,cAAc,CAAC,OAAO,CAAC,CAAC;MACtB,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAM;MACtC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAA;KAC3B,CAAC,CAAA;IACF,OAAO,QAAQ,CAAA;GAChB;EAED,MAAM;IACJ,QACEA,kBACE,GAAG,EAAE,GAAG;QACN,IAAI,CAAC,IAAI,GAAG,GAAI,CAAA;OACjB,IAEDA,qBAAQ,CACH,EACR;GACF;;;;;;","names":["h"],"sources":["./src/components/form/form.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Event, EventEmitter, Element, Listen } from '@stencil/core'\n\n@Component({\n tag: 'taro-form-core'\n})\nexport class Form implements ComponentInterface {\n private form: HTMLFormElement\n private value: {[propName: string]: any} = {}\n private originalAppendChild: <T extends Node>(newChild: T) => T\n private originalInsertBefore: <T extends Node>(newChild: T, refChild: Node | null) => T\n private originalReplaceChild: <T extends Node>(newChild: Node, oldChild: T) => T\n private originalRemoveChild: <T extends Node>(oldChild: T) => T\n\n @Element() el: HTMLElement\n\n @Event({\n eventName: 'submit'\n }) onSubmit: EventEmitter\n\n @Listen('tarobuttonsubmit')\n onButtonSubmit (e: Event) {\n e.stopPropagation()\n\n this.value = this.getFormValue()\n\n this.onSubmit.emit({\n value: this.value\n })\n }\n\n @Listen('tarobuttonreset')\n onButtonReset (e: Event) {\n e.stopPropagation()\n this.form.reset()\n }\n\n componentDidLoad () {\n this.value = this.getFormValue()\n\n Object.defineProperty(this.el, 'value', {\n get: () => this.value,\n configurable: true\n })\n }\n\n componentDidRender () {\n if (!this.originalAppendChild) {\n this.originalAppendChild = this.el.appendChild\n this.originalInsertBefore = this.el.insertBefore\n this.originalReplaceChild = this.el.replaceChild\n this.originalRemoveChild = this.el.removeChild\n }\n if (!this.form) {\n this.el.appendChild = this.originalAppendChild\n this.el.insertBefore = this.originalInsertBefore\n this.el.replaceChild = this.originalReplaceChild\n this.el.removeChild = this.originalRemoveChild\n return\n }\n this.el.appendChild = <T extends Node>(newChild: T): T => {\n return this.form.appendChild(newChild)\n }\n this.el.insertBefore = <T extends Node>(newChild: T, refChild: Node | null): T => {\n return this.form.insertBefore(newChild, refChild)\n }\n this.el.replaceChild = <T extends Node>(newChild: Node, oldChild: T): T => {\n return this.form.replaceChild(newChild, oldChild)\n }\n this.el.removeChild = <T extends Node>(oldChild: T): T => {\n return this.form.removeChild(oldChild)\n }\n }\n\n getFormValue () {\n const el = this.el\n const elements: HTMLInputElement[] = []\n const tagElements = el.getElementsByTagName('input')\n for (let j = 0; j < tagElements.length; j++) {\n elements.push(tagElements[j])\n }\n const formItem = {}\n const hash = {}\n elements.forEach(item => {\n if (typeof item.name !== 'string') return\n if (item.className.indexOf('weui-switch') !== -1) {\n formItem[item.name] = item.checked\n return\n }\n if (item.type === 'radio') {\n if (item.checked) {\n hash[item.name] = true\n formItem[item.name] = item.value\n } else {\n if (!hash[item.name]) {\n formItem[item.name] = ''\n }\n }\n return\n }\n\n if (item.type === 'checkbox') {\n if (item.checked) {\n if (hash[item.name]) {\n formItem[item.name].push(item.value)\n } else {\n hash[item.name] = true\n formItem[item.name] = [item.value]\n }\n } else {\n if (!hash[item.name]) {\n formItem[item.name] = []\n }\n }\n return\n }\n formItem[item.name] = item.value\n })\n\n const textareaElements = el.getElementsByTagName('textarea')\n const textareaEleArr: HTMLTextAreaElement[] = []\n\n for (let i = 0; i < textareaElements.length; i++) {\n textareaEleArr.push(textareaElements[i])\n }\n textareaEleArr.forEach(v => {\n if (typeof v.name !== 'string') return\n formItem[v.name] = v.value\n })\n return formItem\n }\n\n render () {\n return (\n <form\n ref={dom => {\n this.form = dom!\n }}\n >\n <slot />\n </form>\n )\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const helper = require('./helper-db78e01a.js');
|
|
7
7
|
require('@tarojs/taro');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const FunctionalPageNavigator = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
@@ -19,3 +19,5 @@ let FunctionalPageNavigator = class {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.taro_functional_page_navigator_core = FunctionalPageNavigator;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=taro-functional-page-navigator-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-functional-page-navigator-core.entry.cjs.js","mappings":";;;;;;;;MAOa,uBAAuB;;;;EAClC,gBAAgB;IACdA,iBAAU,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAA;GAC5C;EAED,MAAM;IACJ,QACEC,QAACC,UAAI,OAAG,EACT;GACF;;;;;","names":["notSupport","h","Host"],"sources":["./src/components/functional-page-navigator/functional-page-navigator.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-functional-page-navigator-core'\n})\nexport class FunctionalPageNavigator implements ComponentInterface {\n componentDidLoad () {\n notSupport('FunctionalPageNavigator', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const index$1 = require('./index-f9d21cc5.js');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const Icon = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
+
this.type = undefined;
|
|
11
12
|
this.size = '23';
|
|
13
|
+
this.color = undefined;
|
|
12
14
|
}
|
|
13
15
|
render() {
|
|
14
16
|
const { type, size, color } = this;
|
|
@@ -25,3 +27,5 @@ let Icon = class {
|
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
exports.taro_icon_core = Icon;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=taro-icon-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-icon-core.entry.cjs.js","mappings":";;;;;;;MASa,IAAI;;;;gBAEiB,IAAI;;;EAGpC,MAAM;IACJ,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACN,GAAG,IAAI,CAAA;IAER,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC,IAAI,EAAE,GAAG,CAAa,CAAA;IAErD,MAAM,GAAG,GAAGA,kBAAU,CAAC;MACrB,CAAC,aAAa,QAAQ,EAAE,GAAG,IAAI;KAChC,CAAC,CAAA;IAEF,MAAM,KAAK,GAAG;MACZ,WAAW,EAAE,GAAG,IAAI,IAAI;MACxB,KAAK;KACN,CAAA;IAED,QACEC,QAACC,UAAI,IAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI,EACnC;GACF;;;;;","names":["classNames","h","Host"],"sources":["./src/components/icon/icon.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\nexport type Type = 'success' | 'success_no_circle' | 'info'| 'warn'| 'waiting'| 'cancel'| 'download'| 'search'| 'clear'\ntype IconType = Exclude<Type, 'success_no_circle'> | 'success-no-circle'\n\n@Component({\n tag: 'taro-icon-core'\n})\nexport class Icon implements ComponentInterface {\n @Prop() type: Type\n @Prop() size: string | number = '23'\n @Prop() color: string\n\n render () {\n const {\n type,\n size,\n color\n } = this\n\n const iconType = type?.replace(/_/g, '-') as IconType\n\n const cls = classNames({\n [`weui-icon-${iconType}`]: true\n })\n\n const style = {\n 'font-size': `${size}px`,\n color\n }\n\n return (\n <Host class={cls} style={style} />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const index$1 = require('./index-f9d21cc5.js');
|
|
7
7
|
|
|
8
8
|
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:auto;height:auto;font-size:0}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{position:absolute;bottom:0;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;right:0;height:100%}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}";
|
|
9
9
|
|
|
10
10
|
Promise.resolve().then(function () { return require('./intersection-observer-dc4cfcef.js'); });
|
|
11
|
-
|
|
11
|
+
const Image = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.onLoad = index.createEvent(this, "load", 7);
|
|
15
15
|
this.onError = index.createEvent(this, "error", 7);
|
|
16
|
+
this.src = undefined;
|
|
16
17
|
this.mode = 'scaleToFill';
|
|
17
18
|
this.lazyLoad = false;
|
|
18
19
|
this.nativeProps = {};
|
|
@@ -40,8 +41,8 @@ let Image = class {
|
|
|
40
41
|
});
|
|
41
42
|
this.aspectFillMode = naturalWidth > naturalHeight ? 'width' : 'height';
|
|
42
43
|
}
|
|
43
|
-
imageOnError() {
|
|
44
|
-
this.onError.emit();
|
|
44
|
+
imageOnError(e) {
|
|
45
|
+
this.onError.emit(e);
|
|
45
46
|
}
|
|
46
47
|
render() {
|
|
47
48
|
const { src, mode = 'scaleToFill', lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps } = this;
|
|
@@ -57,3 +58,5 @@ let Image = class {
|
|
|
57
58
|
Image.style = indexCss;
|
|
58
59
|
|
|
59
60
|
exports.taro_image_core = Image;
|
|
61
|
+
|
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I,CAAA;IAER,MAAM,GAAG,GAAGA,kBAAU,CAAC;MACrB,oBAAoB,EAAE,IAAI,KAAK,UAAU;KAC1C,CAAC,CAAA;IACF,MAAM,MAAM,GAAGA,kBAAU,CACvB,kBAAkB,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,EACzD;MACE,CAAC,8BAA8B,cAAc,EAAE,GAAG,IAAI,KAAK,YAAY;KACxE,CACF,CAAA;IAED,QACEC,QAACC,UAAI,IAAC,KAAK,EAAE,GAAG,IACb,QAAQ,IACPD,+BACE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,GAAI,CAAC,EAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAC5B,WAAW,EACf,KAEFA,+BACE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,GAAI,CAAC,EAChC,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAC5B,WAAW,EACf,CACH,CACI,EACR;GACF;;;;;;","names":["classNames","h","Host"],"sources":["./src/components/image/style/index.scss?tag=taro-image-core","./src/components/image/image.tsx"],"sourcesContent":["img[src=\"\"] {\n opacity: 0;\n}\n\ntaro-image-core {\n display: inline-block;\n overflow: hidden;\n position: relative;\n width: auto;\n height: auto;\n font-size: 0;\n}\n\n.taro-img {\n &.taro-img__widthfix {\n height: 100%;\n }\n\n &__mode {\n &-scaletofill {\n width: 100%;\n height: 100%;\n }\n\n &-aspectfit {\n max-width: 100%;\n max-height: 100%;\n }\n\n &-aspectfill {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n &--width {\n min-width: 100%;\n height: 100%;\n }\n\n &--height {\n width: 100%;\n min-height: 100%;\n }\n }\n\n &-widthfix {\n width: 100%;\n }\n\n &-heightfix {\n height: 100%;\n }\n\n &-top {\n width: 100%;\n }\n\n &-bottom {\n position: absolute;\n bottom: 0;\n width: 100%;\n }\n\n &-left {\n height: 100%;\n }\n\n &-right {\n position: absolute;\n right: 0;\n height: 100%;\n }\n\n // &-topleft {\n // }\n\n &-topright {\n position: absolute;\n right: 0;\n }\n\n &-bottomleft {\n position: absolute;\n bottom: 0;\n }\n\n &-bottomright {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n }\n}\n","import { Component, Prop, h, ComponentInterface, Host, State, Event, EventEmitter } from '@stencil/core'\nimport classNames from 'classnames'\n\nimport('intersection-observer')\n\nexport type Mode =\n 'scaleToFill'\n | 'aspectFit'\n | 'aspectFill'\n | 'widthFix'\n | 'heightFix'\n | 'top'\n | 'bottom'\n | 'center'\n | 'left'\n | 'right'\n | 'top left'\n | 'top right'\n | 'bottom left'\n | 'bottom right'\n\n@Component({\n tag: 'taro-image-core',\n styleUrl: './style/index.scss'\n})\nexport class Image implements ComponentInterface {\n @Prop() src: string\n @Prop() mode: Mode = 'scaleToFill'\n @Prop() lazyLoad = false\n @Prop() nativeProps = {}\n\n @State() aspectFillMode = 'width'\n\n @Event({\n eventName: 'load'\n }) onLoad: EventEmitter\n\n @Event({\n eventName: 'error'\n }) onError: EventEmitter\n\n private imgRef: HTMLImageElement\n\n componentDidLoad () {\n if (!this.lazyLoad) return\n\n const lazyImg = new IntersectionObserver(entries => {\n // 异步 api 关系\n if (entries[entries.length - 1].isIntersecting) {\n lazyImg.unobserve(this.imgRef)\n this.imgRef.src = this.src\n }\n }, {\n rootMargin: '300px 0px'\n })\n\n lazyImg.observe(this.imgRef)\n }\n\n imageOnLoad () {\n const {\n width,\n height,\n naturalWidth,\n naturalHeight\n } = this.imgRef\n\n this.onLoad.emit({\n width,\n height\n })\n\n this.aspectFillMode = naturalWidth > naturalHeight ? 'width' : 'height'\n }\n\n imageOnError (e: Event) {\n this.onError.emit(e)\n }\n\n render () {\n const {\n src,\n mode = 'scaleToFill',\n lazyLoad = false,\n aspectFillMode = 'width',\n imageOnLoad,\n imageOnError,\n nativeProps\n } = this\n\n const cls = classNames({\n 'taro-img__widthfix': mode === 'widthFix'\n })\n const imgCls = classNames(\n `taro-img__mode-${mode.toLowerCase().replace(/\\s/g, '')}`,\n {\n [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'\n }\n )\n\n return (\n <Host class={cls}>\n {lazyLoad ? (\n <img\n ref={img => (this.imgRef = img!)}\n class={imgCls}\n onLoad={imageOnLoad.bind(this)}\n onError={imageOnError.bind(this)}\n {...nativeProps}\n />\n ) : (\n <img\n ref={img => (this.imgRef = img!)}\n class={imgCls}\n src={src}\n onLoad={imageOnLoad.bind(this)}\n onError={imageOnError.bind(this)}\n {...nativeProps}\n />\n )}\n </Host>\n )\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
|
|
7
7
|
const indexCss = "taro-input-core{display:block}input{display:block;overflow:hidden;height:1.4rem;text-overflow:clip;text-align:inherit;white-space:nowrap}";
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ function getTrueType(type, confirmType, password) {
|
|
|
24
24
|
function fixControlledValue(value) {
|
|
25
25
|
return value !== null && value !== void 0 ? value : '';
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
const Input = class {
|
|
28
28
|
constructor(hostRef) {
|
|
29
29
|
index.registerInstance(this, hostRef);
|
|
30
30
|
this.onInput = index.createEvent(this, "input", 7);
|
|
@@ -37,12 +37,6 @@ let Input = class {
|
|
|
37
37
|
this.isOnComposition = false;
|
|
38
38
|
this.isOnPaste = false;
|
|
39
39
|
this.onInputExcuted = false;
|
|
40
|
-
this.password = false;
|
|
41
|
-
this.disabled = false;
|
|
42
|
-
this.maxlength = 140;
|
|
43
|
-
this.autoFocus = false;
|
|
44
|
-
this.confirmType = 'done';
|
|
45
|
-
this.nativeProps = {};
|
|
46
40
|
this.handleInput = (e) => {
|
|
47
41
|
e.stopPropagation();
|
|
48
42
|
const { type, maxlength, confirmType, password } = this;
|
|
@@ -74,18 +68,21 @@ let Input = class {
|
|
|
74
68
|
}
|
|
75
69
|
};
|
|
76
70
|
this.handlePaste = (e) => {
|
|
71
|
+
e.stopPropagation();
|
|
77
72
|
this.isOnPaste = true;
|
|
78
73
|
this.onPaste.emit({
|
|
79
74
|
value: e.target.value
|
|
80
75
|
});
|
|
81
76
|
};
|
|
82
77
|
this.handleFocus = (e) => {
|
|
78
|
+
e.stopPropagation();
|
|
83
79
|
this.onInputExcuted = false;
|
|
84
80
|
this.onFocus.emit({
|
|
85
81
|
value: e.target.value
|
|
86
82
|
});
|
|
87
83
|
};
|
|
88
84
|
this.handleBlur = (e) => {
|
|
85
|
+
e.stopPropagation();
|
|
89
86
|
this.onBlur.emit({
|
|
90
87
|
value: e.target.value
|
|
91
88
|
});
|
|
@@ -105,10 +102,10 @@ let Input = class {
|
|
|
105
102
|
}
|
|
106
103
|
};
|
|
107
104
|
this.handleKeyDown = (e) => {
|
|
105
|
+
e.stopPropagation();
|
|
108
106
|
const { value } = e.target;
|
|
109
107
|
const keyCode = e.keyCode || e.code;
|
|
110
108
|
this.onInputExcuted = false;
|
|
111
|
-
e.stopPropagation();
|
|
112
109
|
this.onKeyDown.emit({
|
|
113
110
|
value,
|
|
114
111
|
cursor: value.length,
|
|
@@ -117,6 +114,7 @@ let Input = class {
|
|
|
117
114
|
keyCode === 13 && this.onConfirm.emit({ value });
|
|
118
115
|
};
|
|
119
116
|
this.handleComposition = (e) => {
|
|
117
|
+
e.stopPropagation();
|
|
120
118
|
if (!(e.target instanceof HTMLInputElement))
|
|
121
119
|
return;
|
|
122
120
|
if (e.type === 'compositionend') {
|
|
@@ -144,8 +142,21 @@ let Input = class {
|
|
|
144
142
|
}
|
|
145
143
|
}
|
|
146
144
|
};
|
|
145
|
+
this.value = undefined;
|
|
146
|
+
this.type = undefined;
|
|
147
|
+
this.password = false;
|
|
148
|
+
this.placeholder = undefined;
|
|
149
|
+
this.disabled = false;
|
|
150
|
+
this.maxlength = 140;
|
|
151
|
+
this.autoFocus = false;
|
|
152
|
+
this.confirmType = 'done';
|
|
153
|
+
this.name = undefined;
|
|
154
|
+
this.nativeProps = {};
|
|
147
155
|
}
|
|
148
|
-
|
|
156
|
+
focus() {
|
|
157
|
+
this.inputRef.focus();
|
|
158
|
+
}
|
|
159
|
+
watchAutoFocus(newValue, oldValue) {
|
|
149
160
|
var _a;
|
|
150
161
|
if (!oldValue && newValue) {
|
|
151
162
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -153,7 +164,7 @@ let Input = class {
|
|
|
153
164
|
}
|
|
154
165
|
watchValue(newValue) {
|
|
155
166
|
const value = fixControlledValue(newValue);
|
|
156
|
-
if (this.inputRef
|
|
167
|
+
if (this.inputRef.value !== value) {
|
|
157
168
|
this.inputRef.value = value;
|
|
158
169
|
}
|
|
159
170
|
}
|
|
@@ -172,7 +183,7 @@ let Input = class {
|
|
|
172
183
|
(_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.addEventListener('textInput', this.handleBeforeinput);
|
|
173
184
|
}
|
|
174
185
|
Object.defineProperty(this.el, 'value', {
|
|
175
|
-
get: () =>
|
|
186
|
+
get: () => this.inputRef.value,
|
|
176
187
|
set: value => (this.value = value),
|
|
177
188
|
configurable: true
|
|
178
189
|
});
|
|
@@ -193,14 +204,18 @@ let Input = class {
|
|
|
193
204
|
const { value, type, password, placeholder, autoFocus, disabled, maxlength, confirmType, name, nativeProps } = this;
|
|
194
205
|
return (index.h("input", Object.assign({ ref: input => {
|
|
195
206
|
this.inputRef = input;
|
|
196
|
-
|
|
207
|
+
if (autoFocus && input)
|
|
208
|
+
input.focus();
|
|
209
|
+
}, class: 'weui-input', type: getTrueType(type, confirmType, password), placeholder: placeholder, autoFocus: autoFocus, disabled: disabled, maxlength: maxlength, name: name, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onPaste: this.handlePaste, onCompositionStart: this.handleComposition, onCompositionEnd: this.handleComposition }, nativeProps, { value: fixControlledValue(value) })));
|
|
197
210
|
}
|
|
198
211
|
get el() { return index.getElement(this); }
|
|
199
212
|
static get watchers() { return {
|
|
200
|
-
"autoFocus": ["
|
|
213
|
+
"autoFocus": ["watchAutoFocus"],
|
|
201
214
|
"value": ["watchValue"]
|
|
202
215
|
}; }
|
|
203
216
|
};
|
|
204
217
|
Input.style = indexCss;
|
|
205
218
|
|
|
206
219
|
exports.taro_input_core = Input;
|
|
220
|
+
|
|
221
|
+
//# sourceMappingURL=taro-input-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-input-core.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,2IAA2I;;ACG5J,SAAS,WAAW,CAAE,IAAwB,EAAE,WAAmB,EAAE,QAAiB;EACpF,IAAI,WAAW,KAAK,QAAQ;IAAE,IAAI,GAAG,QAAQ,CAAA;EAC7C,IAAI,QAAQ;IAAE,IAAI,GAAG,UAAU,CAAA;EAC/B,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;IAC/B,OAAO,MAAM,CAAC;GACf;EACD,IAAI,CAAC,IAAI,EAAE;IACT,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;GACnC;EACD,IAAI,IAAI,KAAK,OAAO;IAAE,IAAI,GAAG,QAAQ,CAAA;EAErC,OAAO,IAAI,CAAA;AACb,CAAC;AAED,SAAS,kBAAkB,CAAE,KAAc;EACzC,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,E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E,QAAQ,CAAC,EAC9C,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,kBAAkB,EAAE,IAAI,CAAC,iBAAiB,EAC1C,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,IACpC,WAAW,IACf,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,IAChC,EACH;GACF;;;;;;;;;;;","names":["h"],"sources":["./src/components/input/index.scss?tag=taro-input-core","./src/components/input/input.tsx"],"sourcesContent":["taro-input-core {\n display: block;\n}\n\ninput {\n display: block;\n overflow: hidden;\n height: 1.4rem;\n text-overflow: clip;\n text-align: inherit;\n white-space: nowrap;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Element, Watch, Method } from '@stencil/core'\nimport { EventHandler, TaroEvent } from '../../../types'\n\nfunction getTrueType (type: string | undefined, confirmType: string, password: boolean) {\n if (confirmType === 'search') type = 'search'\n if (password) type = 'password'\n if (typeof type === 'undefined') {\n return 'text';\n }\n if (!type) {\n throw new Error('unexpected type')\n }\n if (type === 'digit') type = 'number'\n\n return type\n}\n\nfunction fixControlledValue (value?: string) {\n return value ?? ''\n}\n\n@Component({\n tag: 'taro-input-core',\n styleUrl: 'index.scss'\n})\nexport class Input implements ComponentInterface {\n private inputRef: HTMLInputElement\n private isOnComposition = false\n private isOnPaste = false\n private onInputExcuted = false\n private fileListener: EventHandler\n\n @Prop({ mutable: true }) value: string\n @Prop() type: string\n @Prop() password = false\n @Prop() placeholder: string\n @Prop() disabled = false\n @Prop() maxlength = 140\n @Prop({ attribute: 'focus', reflect: true }) autoFocus = false\n @Prop() confirmType = 'done'\n @Prop() name: string\n @Prop() nativeProps = {}\n\n @Element() el: HTMLElement\n\n @Method()\n focus() {\n this.inputRef.focus()\n }\n\n @Watch('autoFocus')\n watchAutoFocus (newValue: boolean, oldValue: boolean) {\n if (!oldValue && newValue) {\n this.inputRef?.focus()\n }\n }\n\n @Watch('value')\n watchValue (newValue: string) {\n const value = fixControlledValue(newValue)\n if (this.inputRef.value !== value) {\n this.inputRef.value = value\n }\n }\n\n @Event({\n eventName: 'input'\n }) onInput: EventEmitter\n\n @Event({\n eventName: 'paste'\n }) onPaste: EventEmitter\n\n @Event({\n eventName: 'focus'\n }) onFocus: EventEmitter\n\n @Event({\n eventName: 'blur'\n }) onBlur: EventEmitter\n\n @Event({\n eventName: 'confirm'\n }) onConfirm: EventEmitter\n\n @Event({\n eventName: 'change'\n }) onChange: EventEmitter\n\n @Event({\n eventName: 'keydown'\n }) onKeyDown: EventEmitter\n\n componentDidLoad () {\n if (this.type === 'file') {\n this.fileListener = () => {\n this.onInput.emit()\n }\n this.inputRef?.addEventListener('change', this.fileListener)\n } else {\n this.inputRef?.addEventListener('compositionstart', this.handleComposition)\n this.inputRef?.addEventListener('compositionend', this.handleComposition)\n this.inputRef?.addEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.addEventListener('textInput', this.handleBeforeinput)\n }\n\n Object.defineProperty(this.el, 'value', {\n get: () => this.inputRef.value,\n set: value => (this.value = value),\n configurable: true\n })\n }\n\n disconnectedCallback () {\n if (this.type === 'file') {\n this.inputRef?.removeEventListener('change', this.fileListener)\n } else {\n this.inputRef?.removeEventListener('compositionstart', this.handleComposition)\n this.inputRef?.removeEventListener('compositionend', this.handleComposition)\n this.inputRef?.removeEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.removeEventListener('textInput', this.handleBeforeinput)\n }\n }\n\n handleInput = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n const {\n type,\n maxlength,\n confirmType,\n password\n } = this\n if (!this.isOnComposition && !this.onInputExcuted) {\n let value = e.target.value\n const inputType = getTrueType(type, confirmType, password)\n this.onInputExcuted = true\n /* 修复 number 类型 maxlength 无效 */\n if (inputType === 'number' && value && maxlength > -1 && maxlength <= value.length) {\n value = value.substring(0, maxlength)\n e.target.value = value\n }\n\n // 修复 IOS 光标跳转问题\n // if (!(['number', 'file'].indexOf(inputType) >= 0)) {\n // const pos = e.target.selectionEnd\n // setTimeout(\n // () => {\n // e.target.selectionStart = pos\n // e.target.selectionEnd = pos\n // }\n // )\n // }\n\n this.value = value\n this.onInput.emit({\n value,\n cursor: value.length\n })\n this.onInputExcuted = false\n }\n }\n\n handlePaste = (e: TaroEvent<HTMLInputElement> & ClipboardEvent) => {\n e.stopPropagation()\n this.isOnPaste = true\n this.onPaste.emit({\n value: e.target.value\n })\n }\n\n handleFocus = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onInputExcuted = false\n this.onFocus.emit({\n value: e.target.value\n })\n }\n\n handleBlur = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onBlur.emit({\n value: e.target.value\n })\n }\n\n handleChange = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.onChange.emit({\n value: e.target.value\n })\n\n if (this.isOnPaste) {\n this.isOnPaste = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n }\n }\n\n handleKeyDown = (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => {\n e.stopPropagation()\n const { value } = e.target\n const keyCode = e.keyCode || e.code\n this.onInputExcuted = false\n\n this.onKeyDown.emit({\n value,\n cursor: value.length,\n keyCode\n })\n\n keyCode === 13 && this.onConfirm.emit({ value })\n }\n\n handleComposition = (e: Event) => {\n e.stopPropagation()\n if (!(e.target instanceof HTMLInputElement)) return\n\n if (e.type === 'compositionend') {\n this.isOnComposition = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n } else {\n this.isOnComposition = true\n }\n }\n\n handleBeforeinput = (e) => {\n if (!e.data) return\n const isNumber = e.data && /[0-9]/.test(e.data)\n if (this.type === 'number' && !isNumber) {\n e.preventDefault()\n }\n if (this.type === 'digit' && !isNumber) {\n if (e.data !== '.' || (e.data === '.' && e.target.value.indexOf('.') > -1)) {\n e.preventDefault()\n }\n }\n }\n\n render () {\n const {\n value,\n type,\n password,\n placeholder,\n autoFocus,\n disabled,\n maxlength,\n confirmType,\n name,\n nativeProps\n } = this\n\n return (\n <input\n ref={input => {\n this.inputRef = input!\n if (autoFocus && input) input.focus()\n }}\n class='weui-input'\n type={getTrueType(type, confirmType, password)}\n placeholder={placeholder}\n autoFocus={autoFocus}\n disabled={disabled}\n maxlength={maxlength}\n name={name}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onKeyDown={this.handleKeyDown}\n onPaste={this.handlePaste}\n onCompositionStart={this.handleComposition}\n onCompositionEnd={this.handleComposition}\n {...nativeProps}\n value={fixControlledValue(value)}\n />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const helper = require('./helper-db78e01a.js');
|
|
7
7
|
require('@tarojs/taro');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const KeyboardAccessory = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
@@ -19,3 +19,5 @@ let KeyboardAccessory = class {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.taro_keyboard_accessory_core = KeyboardAccessory;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=taro-keyboard-accessory-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-keyboard-accessory-core.entry.cjs.js","mappings":";;;;;;;;MAOa,iBAAiB;;;;EAC5B,gBAAgB;IACdA,iBAAU,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;GACtC;EAED,MAAM;IACJ,QACEC,QAACC,UAAI,OAAG,EACT;GACF;;;;;","names":["notSupport","h","Host"],"sources":["./src/components/keyboard-accessory/keyboard-accessory.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-keyboard-accessory-core'\n})\nexport class KeyboardAccessory implements ComponentInterface {\n componentDidLoad () {\n notSupport('KeyboardAccessory', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const Label = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
+
this.for = undefined;
|
|
10
11
|
}
|
|
11
12
|
render() {
|
|
12
13
|
return (index.h("label", { htmlFor: this.for }, index.h("slot", null)));
|
|
@@ -14,3 +15,5 @@ let Label = class {
|
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
exports.taro_label_core = Label;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=taro-label-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-label-core.entry.cjs.js","mappings":";;;;;;MAKa,KAAK;;;;;EAGhB,MAAM;IACJ,QACEA,mBAAO,OAAO,EAAE,IAAI,CAAC,GAAG,IACtBA,qBAAQ,CACF,EACT;GACF;;;;;","names":["h"],"sources":["./src/components/label/label.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop } from '@stencil/core'\n\n@Component({\n tag: 'taro-label-core'\n})\nexport class Label implements ComponentInterface {\n @Prop() for: string\n\n render () {\n return (\n <label htmlFor={this.for}>\n <slot />\n </label>\n )\n }\n}\n"],"version":3}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9174e0b1.js');
|
|
6
6
|
const helper = require('./helper-db78e01a.js');
|
|
7
7
|
require('@tarojs/taro');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const LivePlayer = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
@@ -19,3 +19,5 @@ let LivePlayer = class {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.taro_live_player_core = LivePlayer;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=taro-live-player-core.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"taro-live-player-core.entry.cjs.js","mappings":";;;;;;;;MAOa,UAAU;;;;EACrB,gBAAgB;IACdA,iBAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;GAC/B;EAED,MAAM;IACJ,QACEC,QAACC,UAAI,OAAG,EACT;GACF;;;;;","names":["notSupport","h","Host"],"sources":["./src/components/live-player/live-player.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-player-core'\n})\nexport class LivePlayer implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePlayer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"version":3}
|