@tarojs/components 3.5.7-alpha.6 → 3.6.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/helper-db78e01a.js +2 -0
- package/dist/cjs/helper-db78e01a.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 +14 -8
- 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 +5 -2
- 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 +5 -2
- 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 +5 -2
- package/dist/cjs/taro-image-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-input-core.cjs.entry.js +18 -10
- 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 +23 -19
- 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 +25 -56
- 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 +13 -8
- package/dist/cjs/taro-textarea-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-video-control_3.cjs.entry.js +142 -260
- 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 +174 -161
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/cover-image/cover-image.js +81 -72
- 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 +48 -40
- 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 +123 -111
- package/dist/collection/components/image/image.js.map +1 -0
- package/dist/collection/components/input/input.js +310 -293
- 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/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 +194 -179
- 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 +267 -263
- 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 +325 -352
- 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 +239 -226
- 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 +740 -810
- 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/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 +14 -8
- 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 +5 -2
- 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 +5 -2
- 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 +5 -2
- package/dist/esm/taro-image-core.entry.js.map +1 -0
- package/dist/esm/taro-input-core.entry.js +18 -10
- 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 +23 -19
- 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 +25 -56
- 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 +13 -8
- package/dist/esm/taro-textarea-core.entry.js.map +1 -0
- package/dist/esm/taro-video-control_3.entry.js +142 -260
- 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/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 +56 -55
- 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-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-07281375.entry.js +2 -0
- package/dist/taro-components/p-07281375.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-f81a74bb.system.entry.js → p-0dfbdfdb.system.entry.js} +82 -81
- package/dist/taro-components/p-0dfbdfdb.system.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-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-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-2915c2dd.entry.js +2 -0
- package/dist/taro-components/p-2915c2dd.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-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-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-51de23e4.entry.js +366 -0
- package/dist/taro-components/p-51de23e4.entry.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-559bb98a.system.entry.js +2 -0
- package/dist/taro-components/p-559bb98a.system.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-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-76724e58.js +3 -2
- package/dist/taro-components/p-76724e58.js.map +1 -0
- package/dist/taro-components/{p-13f0b11f.system.entry.js → p-79e9322e.system.entry.js} +2 -1
- package/dist/taro-components/p-79e9322e.system.entry.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-825f8dec.system.entry.js +2 -0
- package/dist/taro-components/p-825f8dec.system.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-8e3c923b.entry.js +2 -0
- package/dist/taro-components/p-8e3c923b.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-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-a29e3051.entry.js +2 -0
- package/dist/taro-components/p-a29e3051.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-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-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-ca64c7d4.system.entry.js +2 -0
- package/dist/taro-components/p-ca64c7d4.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-cc506879.entry.js +2 -0
- package/dist/taro-components/p-cc506879.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-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-dc75145c.system.entry.js +2 -0
- package/dist/taro-components/p-dc75145c.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-e25653b4.system.entry.js +2 -0
- package/dist/taro-components/p-e25653b4.system.entry.js.map +1 -0
- package/dist/taro-components/p-e528e0ff.system.entry.js +2 -0
- package/dist/taro-components/p-e528e0ff.system.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-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-f273ee4e.entry.js +2 -0
- package/dist/taro-components/p-f273ee4e.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-fc1fe388.entry.js +2 -0
- package/dist/taro-components/p-fc1fe388.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/input/input.d.ts +1 -1
- 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/slot/slot.d.ts +0 -1
- package/dist/types/components/video/utils.d.ts +1 -1
- package/dist/types/components.d.ts +176 -68
- 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 +479 -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 -22
- package/types/Input.d.ts +3 -1
- 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-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-42630f45.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-f5f1c3b7.system.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
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5d881caf.js";import{c as classnames}from"./index-1d8e8acd.js";var indexCss="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var View=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false}))};t.prototype.render=function(){var t;var e=classnames((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return h(Host,Object.assign({class:e},i),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();View.style=indexCss;export{View as taro_view_core};
|
|
2
|
+
//# sourceMappingURL=taro-view-core.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/view/style/index.scss?tag=taro-view-core","src/components/view/view.tsx"],"names":["indexCss","View","this","startTime","prototype","onTouchStart","_this","hoverClass","touch","setTimeout","hover","hoverStartTime","timeoutEvent","onLongPress","emit","Date","now","onTouchMove","clearTimeout","onTouchEnd","spanTime","hoverStayTime","componentDidRender","el","childNodes","forEach","item","nodeType","document","COMMENT_NODE","render","cls","classNames","_a","concat","attr","animation","h","Host","Object","assign","class"],"mappings":"qJAAA,IAAMA,SAAW,gLCOJC,KAAI,mGAePC,KAAAC,UAAY,yEAVK,sBACD,eACP,iBACA,MAUjBF,EAAAG,UAAAC,aAAA,WAAA,IAAAC,EAAAJ,KACE,GAAIA,KAAKK,WAAY,CACnBL,KAAKM,MAAQ,KACbC,YAAW,WACT,GAAIH,EAAKE,MAAO,CACdF,EAAKI,MAAQ,QAEdR,KAAKS,gBAGVT,KAAKU,aAAeH,YAAW,WAC7BH,EAAKO,YAAYC,SAChB,KACHZ,KAAKC,UAAYY,KAAKC,OAIxBf,EAAAG,UAAAa,YAAA,WACEC,aAAahB,KAAKU,eAIpBX,EAAAG,UAAAe,WAAA,WAAA,IAAAb,EAAAJ,KACE,IAAMkB,EAAWL,KAAKC,MAAQd,KAAKC,UACnC,GAAIiB,EAAW,IAAK,CAClBF,aAAahB,KAAKU,cAEpB,GAAIV,KAAKK,WAAY,CACnBL,KAAKM,MAAQ,MACbC,YAAW,WACT,IAAKH,EAAKE,MAAO,CACfF,EAAKI,MAAQ,SAEdR,KAAKmB,iBAIZpB,EAAAG,UAAAkB,mBAAA,WACE,IAAMC,EAAKrB,KAAKqB,GAChBA,EAAGC,WAAWC,SAAQ,SAAAC,GACpB,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,UAIhFzB,EAAAG,UAAA0B,OAAA,iBACE,IAAMC,EAAMC,YAAUC,EAAA,GACpBA,EAAC,GAAAC,OAAGhC,KAAKK,aAAeL,KAAKQ,UAE/B,IAAIyB,EAAO,GACX,KAAMjC,KAAKkC,UAAW,CACpBD,EAAK,aAAejC,KAAKkC,UACzBD,EAAK,kBAAoBjC,KAAKkC,UAEhC,OACEC,EAACC,KAAIC,OAAAC,OAAA,CAACC,MAAOV,GAASI,GACpBE,EAAA,OAAA,sIAzES","sourcesContent":["body,\nhtml {\n user-select: none;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n}\n\ntaro-view-core {\n display: block;\n}\n","import { Component, Prop, h, ComponentInterface, Host, Listen, State, Event, EventEmitter, Element } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-view-core',\n styleUrl: './style/index.scss'\n})\nexport class View implements ComponentInterface {\n @Element() el: HTMLElement\n\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 componentDidRender () {\n const el = this.el\n el.childNodes.forEach(item => {\n if (item.nodeType === document.COMMENT_NODE && item[\"s-cn\"]) item[\"s-cn\"] = false\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"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-5d881caf.js";import{n as notSupport}from"./helper-3d0ecf0f.js";import"@tarojs/taro";var VoipRoom=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("VoipRoom",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{VoipRoom as taro_voip_room_core};
|
|
2
|
+
//# sourceMappingURL=taro-voip-room-core.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/voip-room/voip-room.tsx"],"names":["VoipRoom","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"8IAOaA,SAAQ,kDACnBA,EAAAC,UAAAC,iBAAA,WACEC,WAAW,WAAYC,OAGzBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,KAAI,gBAPU","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-voip-room-core'\n})\nexport class VoipRoom implements ComponentInterface {\n componentDidLoad () {\n notSupport('VoipRoom', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./index-5d881caf.js";var indexCss="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;z-index:999;width:100%;height:100%}";var WebView=function(){function e(e){registerInstance(this,e);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7);this.src=undefined}e.prototype.render=function(){var e=this,r=e.src,t=e.onLoad,o=e.onError;return h("iframe",{class:"taro-webview",onLoad:function(e){e.stopPropagation();t.emit({src:r})},onError:function(e){e.stopPropagation();o.emit({src:r})},src:r})};return e}();WebView.style=indexCss;export{WebView as taro_web_view_core};
|
|
2
|
+
//# sourceMappingURL=taro-web-view-core.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/web-view/style/index.scss?tag=taro-web-view-core","src/components/web-view/web-view.tsx"],"names":["indexCss","WebView","prototype","render","_a","this","src","onLoad","onError","h","class","e","stopPropagation","emit"],"mappings":"0EAAA,IAAMA,SAAW,yGCMJC,QAAO,qJAalBA,EAAAC,UAAAC,OAAA,WACQ,IAAAC,EAIFC,KAHFC,EAAGF,EAAAE,IACHC,EAAMH,EAAAG,OACNC,EAAOJ,EAAAI,QAET,OACEC,EAAA,SAAA,CACEC,MAAM,eACNH,OAAQ,SAACI,GACPA,EAAEC,kBACFL,EAAOM,KAAK,CAAEP,IAAGA,KAEnBE,QAAS,SAACG,GACRA,EAAEC,kBACFJ,EAAQK,KAAK,CAAEP,IAAGA,KAEpBA,IAAKA,cA9BO","sourcesContent":["iframe {\n border: none;\n}\n\n.taro-webview {\n position: fixed;\n top: 0;\n bottom: 0;\n z-index: 999;\n width: 100%;\n height: 100%;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter } from '@stencil/core'\n\n@Component({\n tag: 'taro-web-view-core',\n styleUrl: './style/index.scss'\n})\nexport class WebView implements ComponentInterface {\n @Prop() src: string\n\n @Event({\n eventName: 'load'\n })\n onLoad: EventEmitter\n\n @Event({\n eventName: 'error'\n })\n onError: EventEmitter\n\n render () {\n const {\n src,\n onLoad,\n onError\n } = this\n return (\n <iframe\n class='taro-webview'\n onLoad={(e: Event) => {\n e.stopPropagation()\n onLoad.emit({ src })\n }}\n onError={(e: Event) => {\n e.stopPropagation()\n onError.emit({ src })\n }}\n src={src}\n />\n )\n }\n}\n"]}
|
|
@@ -5,11 +5,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import reactifyWc from '
|
|
9
|
-
var Input = reactifyWc('taro-input-core');
|
|
8
|
+
import reactifyWc from './reactify-wc';
|
|
9
|
+
var Input = reactifyWc('taro-input-core');
|
|
10
|
+
var h = React.createElement; // eslint-disable-next-line react/display-name
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
|
+
export default React.forwardRef(function (props, ref) {
|
|
13
13
|
var args = _objectSpread({}, props);
|
|
14
14
|
|
|
15
15
|
if (args.hasOwnProperty('focus')) {
|
|
@@ -17,7 +17,7 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
17
17
|
delete args.focus;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
return
|
|
20
|
+
return h(Input, _objectSpread(_objectSpread({}, args), {}, {
|
|
21
21
|
ref: ref
|
|
22
22
|
}));
|
|
23
23
|
});
|
|
@@ -20,8 +20,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
20
20
|
* https://github.com/BBKolton/reactify-wc/
|
|
21
21
|
* modified event naming
|
|
22
22
|
**/
|
|
23
|
-
import React, { createElement, createRef } from 'react';
|
|
24
|
-
|
|
23
|
+
import React, { createElement, createRef } from 'react';
|
|
25
24
|
var h = React.createElement;
|
|
26
25
|
var SCROLL_VIEW = 'taro-scroll-view-core';
|
|
27
26
|
var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; // 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class
|
|
@@ -121,18 +120,8 @@ function updateProp(ctx, comp, propKey, prevProps, props) {
|
|
|
121
120
|
|
|
122
121
|
if (typeof val === 'function' && propKey.match(/^on[A-Z]/)) {
|
|
123
122
|
var event = propKey.substr(2).toLowerCase();
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (comp === SCROLL_VIEW && event === 'scroll') {
|
|
127
|
-
fn = function fn(e) {
|
|
128
|
-
if (e instanceof CustomEvent) {
|
|
129
|
-
val.apply(null, Array.from(arguments));
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
ctx.eventHandlers.push([event, fn]);
|
|
135
|
-
return dom.addEventListener(event, fn);
|
|
123
|
+
ctx.eventHandlers.push([event, val]);
|
|
124
|
+
return dom.addEventListener(event, val);
|
|
136
125
|
}
|
|
137
126
|
|
|
138
127
|
if (typeof val === 'string' || typeof val === 'number') {
|
|
@@ -167,7 +156,7 @@ var reactifyWebComponent = function reactifyWebComponent(WC) {
|
|
|
167
156
|
|
|
168
157
|
_this = _super.call(this, props);
|
|
169
158
|
_this.eventHandlers = [];
|
|
170
|
-
_this.ref =
|
|
159
|
+
_this.ref = createRef();
|
|
171
160
|
return _this;
|
|
172
161
|
}
|
|
173
162
|
|
|
@@ -205,7 +194,7 @@ var reactifyWebComponent = function reactifyWebComponent(WC) {
|
|
|
205
194
|
console.warn('内置组件不支持字符串 ref');
|
|
206
195
|
}
|
|
207
196
|
|
|
208
|
-
this.update();
|
|
197
|
+
this.update(undefined);
|
|
209
198
|
}
|
|
210
199
|
}, {
|
|
211
200
|
key: "componentWillUnmount",
|
|
@@ -238,15 +227,16 @@ var reactifyWebComponent = function reactifyWebComponent(WC) {
|
|
|
238
227
|
ref: this.ref
|
|
239
228
|
};
|
|
240
229
|
if (dangerouslySetInnerHTML) props.dangerouslySetInnerHTML = dangerouslySetInnerHTML;
|
|
241
|
-
return
|
|
230
|
+
return createElement(WC, props, children);
|
|
242
231
|
}
|
|
243
232
|
}]);
|
|
244
233
|
|
|
245
234
|
return Index;
|
|
246
|
-
}(React.Component);
|
|
235
|
+
}(React.Component); // eslint-disable-next-line react/display-name
|
|
236
|
+
|
|
247
237
|
|
|
248
|
-
return
|
|
249
|
-
return
|
|
238
|
+
return React.forwardRef(function (props, ref) {
|
|
239
|
+
return h(Index, _objectSpread(_objectSpread({}, props), {}, {
|
|
250
240
|
forwardRef: ref
|
|
251
241
|
}));
|
|
252
242
|
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* auto-generated react proxies */
|
|
6
|
+
import { manipulatePropsFunction } from './helper';
|
|
7
|
+
import { createReactComponent } from './react-component-lib';
|
|
8
|
+
export var Ad = /*@__PURE__*/createReactComponent('taro-ad-core', undefined, manipulatePropsFunction);
|
|
9
|
+
export var AdCustom = /*@__PURE__*/createReactComponent('taro-ad-custom-core', undefined, manipulatePropsFunction);
|
|
10
|
+
export var Audio = /*@__PURE__*/createReactComponent('taro-audio-core', undefined, manipulatePropsFunction);
|
|
11
|
+
export var Block = /*@__PURE__*/createReactComponent('taro-block-core', undefined, manipulatePropsFunction);
|
|
12
|
+
export var Button = /*@__PURE__*/createReactComponent('taro-button-core', undefined, manipulatePropsFunction);
|
|
13
|
+
export var Camera = /*@__PURE__*/createReactComponent('taro-camera-core', undefined, manipulatePropsFunction);
|
|
14
|
+
export var Canvas = /*@__PURE__*/createReactComponent('taro-canvas-core', undefined, manipulatePropsFunction);
|
|
15
|
+
export var Checkbox = /*@__PURE__*/createReactComponent('taro-checkbox-core', undefined, manipulatePropsFunction);
|
|
16
|
+
export var CheckboxGroup = /*@__PURE__*/createReactComponent('taro-checkbox-group-core', undefined, manipulatePropsFunction);
|
|
17
|
+
export var CoverImage = /*@__PURE__*/createReactComponent('taro-cover-image-core', undefined, manipulatePropsFunction);
|
|
18
|
+
export var CoverView = /*@__PURE__*/createReactComponent('taro-cover-view-core', undefined, manipulatePropsFunction);
|
|
19
|
+
export var CustomWrapper = /*@__PURE__*/createReactComponent('taro-custom-wrapper-core', undefined, manipulatePropsFunction);
|
|
20
|
+
export var Editor = /*@__PURE__*/createReactComponent('taro-editor-core', undefined, manipulatePropsFunction);
|
|
21
|
+
export var Form = /*@__PURE__*/createReactComponent('taro-form-core', undefined, manipulatePropsFunction);
|
|
22
|
+
export var FunctionalPageNavigator = /*@__PURE__*/createReactComponent('taro-functional-page-navigator-core', undefined, manipulatePropsFunction);
|
|
23
|
+
export var Icon = /*@__PURE__*/createReactComponent('taro-icon-core', undefined, manipulatePropsFunction);
|
|
24
|
+
export var Image = /*@__PURE__*/createReactComponent('taro-image-core', undefined, manipulatePropsFunction);
|
|
25
|
+
export var Input = /*@__PURE__*/createReactComponent('taro-input-core', undefined, manipulatePropsFunction);
|
|
26
|
+
export var KeyboardAccessory = /*@__PURE__*/createReactComponent('taro-keyboard-accessory-core', undefined, manipulatePropsFunction);
|
|
27
|
+
export var Label = /*@__PURE__*/createReactComponent('taro-label-core', undefined, manipulatePropsFunction);
|
|
28
|
+
export var LivePlayer = /*@__PURE__*/createReactComponent('taro-live-player-core', undefined, manipulatePropsFunction);
|
|
29
|
+
export var LivePusher = /*@__PURE__*/createReactComponent('taro-live-pusher-core', undefined, manipulatePropsFunction);
|
|
30
|
+
export var Map = /*@__PURE__*/createReactComponent('taro-map-core', undefined, manipulatePropsFunction);
|
|
31
|
+
export var MatchMedia = /*@__PURE__*/createReactComponent('taro-match-media-core', undefined, manipulatePropsFunction);
|
|
32
|
+
export var MovableArea = /*@__PURE__*/createReactComponent('taro-movable-area-core', undefined, manipulatePropsFunction);
|
|
33
|
+
export var MovableView = /*@__PURE__*/createReactComponent('taro-movable-view-core', undefined, manipulatePropsFunction);
|
|
34
|
+
export var NavigationBar = /*@__PURE__*/createReactComponent('taro-navigation-bar-core', undefined, manipulatePropsFunction);
|
|
35
|
+
export var Navigator = /*@__PURE__*/createReactComponent('taro-navigator-core', undefined, manipulatePropsFunction);
|
|
36
|
+
export var OfficialAccount = /*@__PURE__*/createReactComponent('taro-official-account-core', undefined, manipulatePropsFunction);
|
|
37
|
+
export var OpenData = /*@__PURE__*/createReactComponent('taro-open-data-core', undefined, manipulatePropsFunction);
|
|
38
|
+
export var PageContainer = /*@__PURE__*/createReactComponent('taro-page-container-core', undefined, manipulatePropsFunction);
|
|
39
|
+
export var PageMeta = /*@__PURE__*/createReactComponent('taro-page-meta-core', undefined, manipulatePropsFunction);
|
|
40
|
+
export var Picker = /*@__PURE__*/createReactComponent('taro-picker-core', undefined, manipulatePropsFunction);
|
|
41
|
+
export var PickerGroup = /*@__PURE__*/createReactComponent('taro-picker-group', undefined, manipulatePropsFunction);
|
|
42
|
+
export var PickerViewColumn = /*@__PURE__*/createReactComponent('taro-picker-view-column-core', undefined, manipulatePropsFunction);
|
|
43
|
+
export var PickerView = /*@__PURE__*/createReactComponent('taro-picker-view-core', undefined, manipulatePropsFunction);
|
|
44
|
+
export var Progress = /*@__PURE__*/createReactComponent('taro-progress-core', undefined, manipulatePropsFunction);
|
|
45
|
+
export var PullToRefresh = /*@__PURE__*/createReactComponent('taro-pull-to-refresh', undefined, manipulatePropsFunction);
|
|
46
|
+
export var Radio = /*@__PURE__*/createReactComponent('taro-radio-core', undefined, manipulatePropsFunction);
|
|
47
|
+
export var RadioGroup = /*@__PURE__*/createReactComponent('taro-radio-group-core', undefined, manipulatePropsFunction);
|
|
48
|
+
export var RichText = /*@__PURE__*/createReactComponent('taro-rich-text-core', undefined, manipulatePropsFunction);
|
|
49
|
+
export var RootPortal = /*@__PURE__*/createReactComponent('taro-root-portal-core', undefined, manipulatePropsFunction);
|
|
50
|
+
export var ScrollView = /*@__PURE__*/createReactComponent('taro-scroll-view-core', undefined, manipulatePropsFunction);
|
|
51
|
+
export var ShareElement = /*@__PURE__*/createReactComponent('taro-share-element-core', undefined, manipulatePropsFunction);
|
|
52
|
+
export var Slider = /*@__PURE__*/createReactComponent('taro-slider-core', undefined, manipulatePropsFunction);
|
|
53
|
+
export var Slot = /*@__PURE__*/createReactComponent('taro-slot-core', undefined, manipulatePropsFunction);
|
|
54
|
+
export var Swiper = /*@__PURE__*/createReactComponent('taro-swiper-core', undefined, manipulatePropsFunction);
|
|
55
|
+
export var SwiperItem = /*@__PURE__*/createReactComponent('taro-swiper-item-core', undefined, manipulatePropsFunction);
|
|
56
|
+
export var Switch = /*@__PURE__*/createReactComponent('taro-switch-core', undefined, manipulatePropsFunction);
|
|
57
|
+
export var Tabbar = /*@__PURE__*/createReactComponent('taro-tabbar', undefined, manipulatePropsFunction);
|
|
58
|
+
export var Text = /*@__PURE__*/createReactComponent('taro-text-core', undefined, manipulatePropsFunction);
|
|
59
|
+
export var Textarea = /*@__PURE__*/createReactComponent('taro-textarea-core', undefined, manipulatePropsFunction);
|
|
60
|
+
export var VideoControl = /*@__PURE__*/createReactComponent('taro-video-control', undefined, manipulatePropsFunction);
|
|
61
|
+
export var Video = /*@__PURE__*/createReactComponent('taro-video-core', undefined, manipulatePropsFunction);
|
|
62
|
+
export var VideoDanmu = /*@__PURE__*/createReactComponent('taro-video-danmu', undefined, manipulatePropsFunction);
|
|
63
|
+
export var View = /*@__PURE__*/createReactComponent('taro-view-core', undefined, manipulatePropsFunction);
|
|
64
|
+
export var VoipRoom = /*@__PURE__*/createReactComponent('taro-voip-room-core', undefined, manipulatePropsFunction);
|
|
65
|
+
export var WebView = /*@__PURE__*/createReactComponent('taro-web-view-core', undefined, manipulatePropsFunction);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
export var manipulatePropsFunction = function manipulatePropsFunction(originalProps) {
|
|
8
|
+
var propsToPass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
|
+
var dangerouslySetInnerHTML = originalProps.dangerouslySetInnerHTML;
|
|
10
|
+
return _objectSpread(_objectSpread({}, propsToPass), {}, {
|
|
11
|
+
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
12
|
+
});
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import { camelToDashCase } from './case';
|
|
3
|
+
export var attachProps = function attachProps(node, newProps) {
|
|
4
|
+
var oldProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
5
|
+
|
|
6
|
+
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
7
|
+
if (node instanceof Element) {
|
|
8
|
+
// add any classes in className to the class list
|
|
9
|
+
var className = getClassName(node.classList, newProps, oldProps);
|
|
10
|
+
|
|
11
|
+
if (className !== '') {
|
|
12
|
+
node.className = className;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
Object.keys(newProps).forEach(function (name) {
|
|
16
|
+
if (name === 'children' || name === 'style' || name === 'ref' || name === 'class' || name === 'className' || name === 'forwardedRef') {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
21
|
+
var eventName = name.substring(2);
|
|
22
|
+
var eventNameLc = eventName.toLowerCase();
|
|
23
|
+
|
|
24
|
+
if (!isCoveredByReact(eventNameLc)) {
|
|
25
|
+
syncEvent(node, eventNameLc, newProps[name]);
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
node[name] = newProps[name];
|
|
29
|
+
|
|
30
|
+
var propType = _typeof(newProps[name]);
|
|
31
|
+
|
|
32
|
+
if (propType === 'string') {
|
|
33
|
+
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export var getClassName = function getClassName(classList, newProps, oldProps) {
|
|
40
|
+
var newClassProp = newProps.className || newProps.class;
|
|
41
|
+
var oldClassProp = oldProps.className || oldProps.class; // map the classes to Maps for performance
|
|
42
|
+
|
|
43
|
+
var currentClasses = arrayToMap(classList);
|
|
44
|
+
var incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
45
|
+
var oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
46
|
+
var finalClassNames = []; // loop through each of the current classes on the component
|
|
47
|
+
// to see if it should be a part of the classNames added
|
|
48
|
+
|
|
49
|
+
currentClasses.forEach(function (currentClass) {
|
|
50
|
+
if (incomingPropClasses.has(currentClass)) {
|
|
51
|
+
// add it as its already included in classnames coming in from newProps
|
|
52
|
+
finalClassNames.push(currentClass);
|
|
53
|
+
incomingPropClasses.delete(currentClass);
|
|
54
|
+
} else if (!oldPropClasses.has(currentClass)) {
|
|
55
|
+
// add it as it has NOT been removed by user
|
|
56
|
+
finalClassNames.push(currentClass);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
incomingPropClasses.forEach(function (s) {
|
|
60
|
+
return finalClassNames.push(s);
|
|
61
|
+
});
|
|
62
|
+
return finalClassNames.join(' ');
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Checks if an event is supported in the current execution environment.
|
|
66
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
export var isCoveredByReact = function isCoveredByReact(eventNameSuffix) {
|
|
70
|
+
if (typeof document === 'undefined') {
|
|
71
|
+
return true;
|
|
72
|
+
} else {
|
|
73
|
+
var eventName = 'on' + eventNameSuffix;
|
|
74
|
+
var isSupported = (eventName in document);
|
|
75
|
+
|
|
76
|
+
if (!isSupported) {
|
|
77
|
+
var element = document.createElement('div');
|
|
78
|
+
element.setAttribute(eventName, 'return;');
|
|
79
|
+
isSupported = typeof element[eventName] === 'function';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return isSupported;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export var syncEvent = function syncEvent(node, eventName, newEventHandler) {
|
|
86
|
+
var eventStore = node.__events || (node.__events = {});
|
|
87
|
+
var oldEventHandler = eventStore[eventName]; // Remove old listener so they don't double up.
|
|
88
|
+
|
|
89
|
+
if (oldEventHandler) {
|
|
90
|
+
node.removeEventListener(eventName, oldEventHandler);
|
|
91
|
+
} // Bind new listener.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
node.addEventListener(eventName, eventStore[eventName] = function handler(e) {
|
|
95
|
+
if (newEventHandler) {
|
|
96
|
+
newEventHandler.call(this, e);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var arrayToMap = function arrayToMap(arr) {
|
|
102
|
+
var map = new Map();
|
|
103
|
+
arr.forEach(function (s) {
|
|
104
|
+
return map.set(s, s);
|
|
105
|
+
});
|
|
106
|
+
return map;
|
|
107
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var dashToPascalCase = function dashToPascalCase(str) {
|
|
2
|
+
return str.toLowerCase().split('-').map(function (segment) {
|
|
3
|
+
return segment.charAt(0).toUpperCase() + segment.slice(1);
|
|
4
|
+
}).join('');
|
|
5
|
+
};
|
|
6
|
+
export var camelToDashCase = function camelToDashCase(str) {
|
|
7
|
+
return str.replace(/([A-Z])/g, function (m) {
|
|
8
|
+
return "-".concat(m[0].toLowerCase());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var isDevMode = function isDevMode() {
|
|
2
|
+
return process && process.env && process.env.NODE_ENV === 'development';
|
|
3
|
+
};
|
|
4
|
+
var warnings = {};
|
|
5
|
+
export var deprecationWarning = function deprecationWarning(key, message) {
|
|
6
|
+
if (isDevMode()) {
|
|
7
|
+
if (!warnings[key]) {
|
|
8
|
+
console.warn(message);
|
|
9
|
+
warnings[key] = true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.r;r=t.h}],execute:function(){var n=t("taro_label_core",function(){function t(t){e(this,t);this.for=undefined}t.prototype.render=function(){return r("label",{htmlFor:this.for},r("slot",null))};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-001ef419.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/label/label.tsx"],"names":["Label","exports","class_1","prototype","render","h","htmlFor","this","for"],"mappings":"8IAKaA,EAAKC,EAAA,kBAAA,sDAGhBC,EAAAC,UAAAC,OAAA,WACE,OACEC,EAAA,QAAA,CAAOC,QAASC,KAAKC,KACnBH,EAAA,OAAA,iBANU","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"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-61f225ef.system.js"],(function(o){"use strict";var t,r,e,a,i,n;return{setters:[function(o){t=o.r;r=o.c;e=o.h;a=o.H;i=o.g},function(o){n=o.c}],execute:function(){var c='taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:" ";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}';var d=o("taro_button_core",function(){function o(o){t(this,o);this.onSubmit=r(this,"tarobuttonsubmit",7);this.onReset=r(this,"tarobuttonreset",7);this.disabled=undefined;this.hoverClass="button-hover";this.type="";this.hoverStartTime=20;this.hoverStayTime=70;this.size=undefined;this.plain=undefined;this.loading=false;this.formType=null;this.hover=false;this.touch=false}o.prototype.onTouchStart=function(){var o=this;if(this.disabled){return}this.touch=true;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(o.touch){o.hover=true}}),this.hoverStartTime)}};o.prototype.onTouchEnd=function(){var o=this;if(this.disabled){return}this.touch=false;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(!o.touch){o.hover=false}}),this.hoverStayTime)}if(this.formType==="submit"){this.onSubmit.emit()}else if(this.formType==="reset"){this.onReset.emit()}};o.prototype.render=function(){var o;var t=this,r=t.disabled,i=t.hoverClass,c=t.type,d=t.size,b=t.plain,l=t.loading,s=t.hover;var u=n((o={},o["".concat(i)]=s&&!r,o));return e(a,{class:u,type:c,plain:b,loading:l,size:d,disabled:r},l&&e("i",{class:"weui-loading"}),e("slot",null))};Object.defineProperty(o.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return o}());d.style=c}}}));
|
|
2
|
+
//# sourceMappingURL=p-057159bc.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/button/style/index.scss?tag=taro-button-core","src/components/button/button.tsx"],"names":["indexCss","Button","exports","class_1","prototype","onTouchStart","_this","this","disabled","touch","hoverClass","setTimeout","hover","hoverStartTime","onTouchEnd","hoverStayTime","formType","onSubmit","emit","onReset","render","_b","type","size","plain","loading","cls","classNames","_a","concat","h","Host","class"],"mappings":"gNAAA,IAAMA,EAAW,+1GCOJC,EAAMC,EAAA,mBAAA,+JAEI,yBACN,uBACU,sBACD,yDAGN,oBAC4B,gBAI7B,iBACA,MAWjBC,EAAAC,UAAAC,aAAA,WAAA,IAAAC,EAAAC,KACE,GAAIA,KAAKC,SAAU,CACjB,OAGFD,KAAKE,MAAQ,KACb,GAAIF,KAAKG,aAAeH,KAAKC,SAAU,CACrCG,YAAW,WACT,GAAIL,EAAKG,MAAO,CACdH,EAAKM,MAAQ,QAEdL,KAAKM,kBAKZV,EAAAC,UAAAU,WAAA,WAAA,IAAAR,EAAAC,KACE,GAAIA,KAAKC,SAAU,CACjB,OAGFD,KAAKE,MAAQ,MACb,GAAIF,KAAKG,aAAeH,KAAKC,SAAU,CACrCG,YAAW,WACT,IAAKL,EAAKG,MAAO,CACfH,EAAKM,MAAQ,SAEdL,KAAKQ,eAGV,GAAIR,KAAKS,WAAa,SAAU,CAC9BT,KAAKU,SAASC,YACT,GAAIX,KAAKS,WAAa,QAAS,CACpCT,KAAKY,QAAQD,SAIjBf,EAAAC,UAAAgB,OAAA,iBACQ,IAAAC,EAQFd,KAPFC,EAAQa,EAAAb,SACRE,EAAUW,EAAAX,WACVY,EAAID,EAAAC,KACJC,EAAIF,EAAAE,KACJC,EAAKH,EAAAG,MACLC,EAAOJ,EAAAI,QACPb,EAAKS,EAAAT,MAGP,IAAMc,EAAMC,GAAUC,EAAA,GACpBA,EAAC,GAAAC,OAAGnB,IAAeE,IAAUJ,MAG/B,OACEsB,EAACC,EAAI,CACHC,MAAON,EACPJ,KAAMA,EACNE,MAAOA,EACPC,QAASA,EACTF,KAAMA,EACNf,SAAUA,GAETiB,GAAWK,EAAA,IAAA,CAAGE,MAAM,iBACrBF,EAAA,OAAA,6HAvFW","sourcesContent":["$weuiBtnHeight: 46px;\n$weuiBtnFontSize: 18px;\n$weuiBtnFontColor: #fff;\n$weuiBtnActiveFontColor: rgb(255 255 255 / 60%);\n$weuiBtnDisabledFontColor: rgb(255 255 255 / 60%);\n$weuiBtnBorderRadius: 5px;\n$weuiBtnDefaultGap: 15px;\n\n// Button Mini\n$weuiBtnMiniFontSize: 13px;\n$weuiBtnMiniHeight: 2.3;\n\n// Button Default\n$weuiBtnDefaultFontColor: #000;\n$weuiBtnDefaultActiveFontColor: rgb(0 0 0 / 60%);\n$weuiBtnDefaultDisabledFontColor: rgb(0 0 0 / 30%);\n$weuiBtnDefaultBg: #f8f8f8;\n$weuiBtnDefaultActiveBg: #dedede;\n$weuiBtnDefaultDisabledBg: #f7f7f7;\n\n// Button Primary\n$weuiBtnPrimaryBg: #1aad19;\n$weuiBtnPrimaryActiveBg: #179b16;\n$weuiBtnPrimaryDisabledBg: #9ed99d;\n\n// Button Warn\n$weuiBtnWarnBg: #e64340;\n$weuiBtnWarnActiveBg: #ce3c39;\n$weuiBtnWarnDisabledBg: #ec8b89;\n\n// Button Plain Primary\n$weuiBtnPlainPrimaryColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryBorderColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryActiveColor: rgb(26 173 25 / 60%);\n$weuiBtnPlainPrimaryActiveBorderColor: rgb(26 173 25 / 60%);\n\n// Button Plain Default\n$weuiBtnPlainDefaultColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultBorderColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultActiveColor: rgb(53 53 53 / 60%);\n$weuiBtnPlainDefaultActiveBorderColor: rgb(53 53 53 / 60%);\n\ntaro-button-core {\n display: block;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n border-width: 0;\n border-radius: $weuiBtnBorderRadius;\n width: 100%;\n appearance: none;\n outline: 0;\n background-color: $weuiBtnDefaultBg;\n line-height: 2.55555556;\n text-decoration: none;\n text-align: center;\n font-size: $weuiBtnFontSize;\n color: $weuiBtnDefaultFontColor;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n\n &:focus {\n outline: 0;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n\n &::after {\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n border: 1px solid rgb(0 0 0 / 20%);\n border-radius: $weuiBtnBorderRadius * 2;\n width: 200%;\n height: 200%;\n content: \" \";\n transform: scale(0.5);\n transform-origin: 0 0;\n }\n\n & + & {\n margin-top: $weuiBtnDefaultGap;\n }\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultBg;\n color: $weuiBtnDefaultFontColor;\n\n &:not([disabled]):visited {\n color: $weuiBtnDefaultFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n }\n\n &[size=\"mini\"] {\n display: inline-block;\n padding: 0 1.32em;\n width: auto;\n line-height: $weuiBtnMiniHeight;\n font-size: $weuiBtnMiniFontSize;\n }\n\n &[plain],\n &[plain][type=\"default\"],\n &[plain][type=\"primary\"] {\n border-width: 1px;\n background-color: transparent;\n }\n\n &[disabled] {\n color: $weuiBtnDisabledFontColor;\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultDisabledBg;\n color: $weuiBtnDefaultDisabledFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryDisabledBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnDisabledBg;\n }\n }\n\n &[loading] {\n .weui-loading {\n margin: -0.2em 0.34em 0 0;\n }\n\n &[type=\"primary\"],\n &[type=\"warn\"] {\n color: $weuiBtnActiveFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryActiveBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnActiveBg;\n }\n }\n\n &[plain][type=\"primary\"] {\n border: 1px solid $weuiBtnPlainPrimaryBorderColor;\n color: $weuiBtnPlainPrimaryColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainPrimaryActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainPrimaryActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[plain],\n &[plain][type=\"default\"] {\n border: 1px solid $weuiBtnPlainDefaultBorderColor;\n color: $weuiBtnPlainDefaultColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainDefaultActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainDefaultActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnPrimaryActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnWarnActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[plain][disabled] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n\n &[plain][disabled][type=\"primary\"] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n}\n","import { Component, h, Prop, State, ComponentInterface, Event, EventEmitter, Listen, Element, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-button-core',\n styleUrl: './style/index.scss'\n})\nexport class Button implements ComponentInterface {\n @Prop() disabled: boolean\n @Prop() hoverClass = 'button-hover'\n @Prop() type = ''\n @Prop() hoverStartTime = 20\n @Prop() hoverStayTime = 70\n @Prop() size: string\n @Prop() plain: boolean\n @Prop() loading = false\n @Prop() formType: 'submit' | 'reset' | null = null\n\n @Element() el: HTMLElement\n\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'tarobuttonsubmit'\n }) onSubmit: EventEmitter\n\n @Event({\n eventName: 'tarobuttonreset'\n }) onReset: EventEmitter\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.disabled) {\n return\n }\n\n this.touch = true\n if (this.hoverClass && !this.disabled) {\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n }\n\n @Listen('touchend')\n onTouchEnd () {\n if (this.disabled) {\n return\n }\n\n this.touch = false\n if (this.hoverClass && !this.disabled) {\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n\n if (this.formType === 'submit') {\n this.onSubmit.emit()\n } else if (this.formType === 'reset') {\n this.onReset.emit()\n }\n }\n\n render () {\n const {\n disabled,\n hoverClass,\n type,\n size,\n plain,\n loading,\n hover\n } = this\n\n const cls = classNames({\n [`${hoverClass}`]: hover && !disabled\n })\n\n return (\n <Host\n class={cls}\n type={type}\n plain={plain}\n loading={loading}\n size={size}\n disabled={disabled}\n >\n {loading && <i class='weui-loading' />}\n <slot />\n </Host>\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-5bfefd19.js";const h="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function a(t){return t!==null&&t!==void 0?t:""}const n=class{constructor(i){t(this,i);this.onInput=e(this,"input",7);this.onFocus=e(this,"focus",7);this.onBlur=e(this,"blur",7);this.onChange=e(this,"change",7);this.onLineChange=e(this,"linechange",7);this.handleInput=t=>{t.stopPropagation();this.handleLineChange();this.onInput.emit({value:t.target.value,cursor:t.target.value.length})};this.handleFocus=t=>{this.onFocus.emit({value:t.target.value})};this.handleBlur=t=>{this.onBlur.emit({value:t.target.value})};this.handleChange=t=>{t.stopPropagation();this.onChange.emit({value:t.target.value})};this.handleLineChange=()=>{const t=this.getNumberOfLines();if(t!==this.line){this.line=t;this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line})}};this.calculateContentHeight=(t,e)=>{let i=t.style.height,s=t.offsetHeight,h=t.scrollHeight,a=t.style.overflow,n=t.style.minHeight||null;if(s>=h){t.style.minHeight=0;t.style.height=s+e+"px";t.style.overflow="hidden";if(h<t.scrollHeight){while(t.offsetHeight>=t.scrollHeight){t.style.height=(s-=e)+"px"}while(t.offsetHeight<t.scrollHeight){t.style.height=s+++"px"}t.style.height=i;t.style.overflow=a;t.style.minHeight=n;return s}}else{return h}};this.getNumberOfLines=()=>{const t=this.textareaRef,e=window.getComputedStyle?window.getComputedStyle(t):t.style,i=parseInt(e.lineHeight,10),s=this.calculateContentHeight(t,i),h=Math.floor(s/i);return h};this.value=undefined;this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.name=undefined;this.nativeProps={};this.line=1}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.textareaRef.value,set:t=>this.value=t,configurable:true});this.autoFocus&&this.textareaRef.focus()}render(){const{value:t,placeholder:e,disabled:s,maxlength:h,autoFocus:n,autoHeight:o,name:r,nativeProps:l,handleInput:u,handleFocus:c,handleBlur:d,handleChange:p}=this;const f={};if(o){f.rows=this.line}return i("textarea",Object.assign({ref:t=>{if(t){this.textareaRef=t}},class:`taro-textarea ${o?"auto-height":""}`,value:a(t),placeholder:e,name:r,disabled:s,maxlength:h,autofocus:n,onInput:u,onFocus:c,onBlur:d,onChange:p},l,f))}get el(){return s(this)}};n.style=h;export{n as taro_textarea_core};
|
|
2
|
+
//# sourceMappingURL=p-07281375.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/textarea/style/index.scss?tag=taro-textarea-core","src/components/textarea/textarea.tsx"],"names":["indexCss","fixControlledValue","value","Textarea","this","handleInput","e","stopPropagation","handleLineChange","onInput","emit","target","cursor","length","handleFocus","onFocus","handleBlur","onBlur","handleChange","onChange","line","getNumberOfLines","onLineChange","height","textareaRef","clientHeight","lineCount","calculateContentHeight","ta","scanAmount","origHeight","style","offsetHeight","scrollHeight","overflow","originMinHeight","minHeight","window","getComputedStyle","taLineHeight","parseInt","lineHeight","taHeight","numberOfLines","Math","floor","[object Object]","Object","defineProperty","el","get","set","configurable","autoFocus","focus","placeholder","disabled","maxlength","autoHeight","name","nativeProps","otherProps","rows","h","assign","ref","input","class","autofocus"],"mappings":"yDAAA,MAAMA,EAAW,ySCGjB,SAASC,EAAmBC,GAC1B,OAAOA,IAAK,MAALA,SAAK,EAALA,EAAS,SAOLC,EAAQ,oMAiDnBC,KAAAC,YAAeC,IACbA,EAAEC,kBACFH,KAAKI,mBACLJ,KAAKK,QAAQC,KAAK,CAChBR,MAAOI,EAAEK,OAAOT,MAChBU,OAAQN,EAAEK,OAAOT,MAAMW,UAI3BT,KAAAU,YAAeR,IACbF,KAAKW,QAAQL,KAAK,CAChBR,MAAOI,EAAEK,OAAOT,SAIpBE,KAAAY,WAAcV,IACZF,KAAKa,OAAOP,KAAK,CACfR,MAAOI,EAAEK,OAAOT,SAIpBE,KAAAc,aAAgBZ,IACdA,EAAEC,kBACFH,KAAKe,SAAST,KAAK,CACjBR,MAAOI,EAAEK,OAAOT,SAIpBE,KAAAI,iBAAmB,KACjB,MAAMY,EAAOhB,KAAKiB,mBAClB,GAAID,IAAShB,KAAKgB,KAAM,CACtBhB,KAAKgB,KAAOA,EACZhB,KAAKkB,aAAaZ,KAAK,CACrBa,OAAQnB,KAAKoB,YAAYC,aACzBC,UAAWtB,KAAKgB,SAKtBhB,KAAAuB,uBAAyB,CAACC,EAAIC,KAC5B,IAAIC,EAAaF,EAAGG,MAAMR,OACxBA,EAASK,EAAGI,aACZC,EAAeL,EAAGK,aAClBC,EAAWN,EAAGG,MAAMG,SACpBC,EAAkBP,EAAGG,MAAMK,WAAa,KAG1C,GAAIb,GAAUU,EAAc,CAC1BL,EAAGG,MAAMK,UAAY,EAGrBR,EAAGG,MAAMR,OAASA,EAASM,EAAa,KAExCD,EAAGG,MAAMG,SAAW,SAEpB,GAAID,EAAeL,EAAGK,aAAc,CAGlC,MAAOL,EAAGI,cAAgBJ,EAAGK,aAAc,CACzCL,EAAGG,MAAMR,QAAUA,GAAUM,GAAc,KAG7C,MAAOD,EAAGI,aAAeJ,EAAGK,aAAc,CACxCL,EAAGG,MAAMR,OAASA,IAAW,KAG/BK,EAAGG,MAAMR,OAASO,EAElBF,EAAGG,MAAMG,SAAWA,EACpBN,EAAGG,MAAMK,UAAYD,EACrB,OAAOZ,OAEJ,CACL,OAAOU,IAIX7B,KAAAiB,iBAAmB,KACjB,MAAMO,EAAKxB,KAAKoB,YACdO,EAAQM,OAAOC,iBAAmBD,OAAOC,iBAAiBV,GAAMA,EAAGG,MAGnEQ,EAAeC,SAAST,EAAMU,WAAY,IAE1CC,EAAWtC,KAAKuB,uBAAuBC,EAAIW,GAE3CI,EAAgBC,KAAKC,MAAMH,EAAWH,GAExC,OAAOI,iEAlIU,qBACC,mBACA,sBACC,2CAEC,aACN,EA2BhBG,mBACEC,OAAOC,eAAe5C,KAAK6C,GAAI,QAAS,CACtCC,IAAK,IAAM9C,KAAKoB,YAAYtB,MAC5BiD,IAAKjD,GAAUE,KAAKF,MAAQA,EAC5BkD,aAAc,OAEhBhD,KAAKiD,WAAajD,KAAKoB,YAAY8B,QA8FrCR,SACE,MAAM5C,MACJA,EAAKqD,YACLA,EAAWC,SACXA,EAAQC,UACRA,EAASJ,UACTA,EAASK,WACTA,EAAUC,KACVA,EAAIC,YACJA,EAAWvD,YACXA,EAAWS,YACXA,EAAWE,WACXA,EAAUE,aACVA,GACEd,KAEJ,MAAMyD,EAEF,GAEJ,GAAIH,EAAY,CACdG,EAAWC,KAAO1D,KAAKgB,KAGzB,OACE2C,EAAA,WAAAhB,OAAAiB,OAAA,CACEC,IAAKC,IACH,GAAIA,EAAO,CACT9D,KAAKoB,YAAc0C,IAGvBC,MAAO,iBAAiBT,EAAa,cAAgB,KACrDxD,MAAOD,EAAmBC,GAC1BqD,YAAaA,EACbI,KAAMA,EACNH,SAAUA,EACVC,UAAWA,EACXW,UAAWf,EACX5C,QAASJ,EACTU,QAASD,EACTG,OAAQD,EACRG,SAAUD,GACN0C,EACAC","sourcesContent":["taro-textarea-core {\n display: block;\n width: 300px;\n}\n\ntaro-textarea-core .auto-height {\n height: auto;\n}\n\n.taro-textarea {\n &:focus {\n outline: none;\n }\n\n display: block;\n position: relative;\n border: 0;\n width: 100%;\n height: inherit;\n appearance: none;\n cursor: auto;\n line-height: 1.5;\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Element } from '@stencil/core'\nimport { TaroEvent } from '../../../types'\n\nfunction fixControlledValue(value?: string) {\n return value ?? ''\n}\n\n@Component({\n tag: 'taro-textarea-core',\n styleUrl: './style/index.scss'\n})\nexport class Textarea implements ComponentInterface {\n private textareaRef: HTMLTextAreaElement\n\n @Element() el: HTMLElement\n\n @Prop() value: string\n @Prop() placeholder: string\n @Prop() disabled = false\n @Prop() maxlength = 140\n @Prop() autoFocus = false\n @Prop() autoHeight = false\n @Prop() name: string\n @Prop() nativeProps = {}\n @State() line = 1\n\n @Event({\n eventName: 'input'\n })\n onInput: EventEmitter\n\n @Event({\n eventName: 'focus'\n })\n onFocus: EventEmitter\n\n @Event({\n eventName: 'blur'\n })\n onBlur: EventEmitter\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n @Event({\n eventName: 'linechange' // 必须全小写\n })\n onLineChange: EventEmitter\n\n componentDidLoad() {\n Object.defineProperty(this.el, 'value', {\n get: () => this.textareaRef.value,\n set: value => (this.value = value),\n configurable: true\n })\n this.autoFocus && this.textareaRef.focus()\n }\n\n handleInput = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.handleLineChange()\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n }\n\n handleFocus = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n this.onFocus.emit({\n value: e.target.value\n })\n }\n\n handleBlur = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\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\n handleLineChange = () => {\n const line = this.getNumberOfLines()\n if (line !== this.line) {\n this.line = line\n this.onLineChange.emit({\n height: this.textareaRef.clientHeight,\n lineCount: this.line\n })\n }\n }\n\n calculateContentHeight = (ta, scanAmount) => {\n let origHeight = ta.style.height,\n height = ta.offsetHeight,\n scrollHeight = ta.scrollHeight,\n overflow = ta.style.overflow,\n originMinHeight = ta.style.minHeight || null\n\n /// only bother if the ta is bigger than content\n if (height >= scrollHeight) {\n ta.style.minHeight = 0\n /// check that our browser supports changing dimension\n /// calculations mid-way through a function call...\n ta.style.height = height + scanAmount + 'px'\n /// because the scrollbar can cause calculation problems\n ta.style.overflow = 'hidden'\n /// by checking that scrollHeight has updated\n if (scrollHeight < ta.scrollHeight) {\n /// now try and scan the ta's height downwards\n /// until scrollHeight becomes larger than height\n while (ta.offsetHeight >= ta.scrollHeight) {\n ta.style.height = (height -= scanAmount) + 'px'\n }\n /// be more specific to get the exact height\n while (ta.offsetHeight < ta.scrollHeight) {\n ta.style.height = height++ + 'px'\n }\n /// reset the ta back to it's original height\n ta.style.height = origHeight\n /// put the overflow back\n ta.style.overflow = overflow\n ta.style.minHeight = originMinHeight\n return height\n }\n } else {\n return scrollHeight\n }\n }\n\n getNumberOfLines = () => {\n const ta = this.textareaRef,\n style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style,\n // This will get the line-height only if it is set in the css,\n // otherwise it's \"normal\"\n taLineHeight = parseInt(style.lineHeight, 10),\n // Get the scroll height of the textarea\n taHeight = this.calculateContentHeight(ta, taLineHeight),\n // calculate the number of lines\n numberOfLines = Math.floor(taHeight / taLineHeight)\n\n return numberOfLines\n }\n\n render() {\n const {\n value,\n placeholder,\n disabled,\n maxlength,\n autoFocus,\n autoHeight,\n name,\n nativeProps,\n handleInput,\n handleFocus,\n handleBlur,\n handleChange\n } = this\n\n const otherProps: {\n [props: string]: any\n } = {}\n\n if (autoHeight) {\n otherProps.rows = this.line\n }\n\n return (\n <textarea\n ref={input => {\n if (input) {\n this.textareaRef = input\n }\n }}\n class={`taro-textarea ${autoHeight ? 'auto-height' : ''}`}\n value={fixControlledValue(value)}\n placeholder={placeholder}\n name={name}\n disabled={disabled}\n maxlength={maxlength}\n autofocus={autoFocus}\n onInput={handleInput}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...nativeProps}\n {...otherProps}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("OpenData",this)}render(){return r(t,null)}};export{s as taro_open_data_core};
|
|
2
|
+
//# sourceMappingURL=p-0a896bc7.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/open-data/open-data.tsx"],"names":["OpenData","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAQ,+BACnBC,mBACEC,EAAW,WAAYC,MAGzBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-open-data-core'\n})\nexport class OpenData implements ComponentInterface {\n componentDidLoad () {\n notSupport('OpenData', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","@tarojs/taro","./p-61f225ef.system.js"],(function(e){"use strict";var t,i,r,a,s,n;return{setters:[function(e){t=e.r;i=e.c;r=e.h;a=e.H},function(e){s=e.default},function(e){n=e.c}],execute:function(){var o=".navigator-hover{background:#efefef}";var c=e("taro_navigator_core",function(){function e(e){t(this,e);this.onSuccess=i(this,"cuccess",7);this.onFail=i(this,"fail",7);this.onComplete=i(this,"Complete",7);this.hoverClass=undefined;this.url=undefined;this.openType="navigate";this.isHover=false;this.delta=0}e.prototype.onClick=function(){var e=this,t=e.openType,i=e.onSuccess,r=e.onFail,a=e.onComplete;var n=Promise.resolve();switch(t){case"navigate":n=s.navigateTo({url:this.url});break;case"redirect":n=s.redirectTo({url:this.url});break;case"switchTab":n=s.switchTab({url:this.url});break;case"reLaunch":n=s.reLaunch({url:this.url});break;case"navigateBack":n=s.navigateBack({delta:this.delta});break;case"exit":n=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(n){n.then((function(e){i.emit(e)})).catch((function(e){r.emit(e)})).finally((function(){a.emit()}))}};e.prototype.render=function(){var e;var t=this,i=t.isHover,s=t.hoverClass;return r(a,{class:n((e={},e[s]=i,e))})};return e}());c.style=o}}}));
|
|
2
|
+
//# sourceMappingURL=p-0b38e6c7.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/navigator/style/index.scss?tag=taro-navigator-core","src/components/navigator/navigator.tsx"],"names":["indexCss","Navigator","exports","class_1","prototype","onClick","_a","this","openType","onSuccess","onFail","onComplete","promise","Promise","resolve","Taro","navigateTo","url","redirectTo","switchTab","reLaunch","navigateBack","delta","reject","Error","then","res","emit","catch","finally","render","_b","isHover","hoverClass","h","Host","class","classNames"],"mappings":"kPAAA,IAAMA,EAAW,2CC+BJC,EAASC,EAAA,sBAAA,mMAGD,wBACD,iBACF,EAehBC,EAAAC,UAAAC,QAAA,WACQ,IAAAC,EAA8CC,KAA5CC,EAAQF,EAAAE,SAAEC,EAASH,EAAAG,UAAEC,EAAMJ,EAAAI,OAAEC,EAAUL,EAAAK,WAC/C,IAAIC,EAAwBC,QAAQC,UACpC,OAAQN,GACN,IAAK,WACHI,EAAUG,EAAKC,WAAW,CACxBC,IAAKV,KAAKU,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKG,WAAW,CACxBD,IAAKV,KAAKU,MAEZ,MACF,IAAK,YACHL,EAAUG,EAAKI,UAAU,CACvBF,IAAKV,KAAKU,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKK,SAAS,CACtBH,IAAKV,KAAKU,MAEZ,MACF,IAAK,eACHL,EAAUG,EAAKM,aAAa,CAC1BC,MAAOf,KAAKe,QAEd,MACF,IAAK,OACHV,EAAUC,QAAQU,OAAO,IAAIC,MAAM,wCACnC,MAEJ,GAAIZ,EAAS,CACXA,EAAQa,MAAK,SAAAC,GACXjB,EAAUkB,KAAKD,MACdE,OAAM,SAAAF,GACPhB,EAAOiB,KAAKD,MACXG,SAAQ,WACTlB,EAAWgB,YAKjBxB,EAAAC,UAAA0B,OAAA,iBACQ,IAAAC,EAA0BxB,KAAxByB,EAAOD,EAAAC,QAAEC,EAAUF,EAAAE,WAE3B,OACEC,EAACC,EAAI,CACHC,MAAOC,GAAU/B,EAAA,GACfA,EAAC2B,GAAaD,kBAtEF","sourcesContent":[".navigator-hover {\r\n background: #efefef;\r\n}\r\n","import { Component, Prop, h, ComponentInterface, Host, Listen, Event, EventEmitter } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport classNames from 'classnames'\n\n/**\n * Navigator组件参数\n * @typedef NavigatorProps\n * @property {String} appId 当target=\"miniProgram\"时有效,要打开的小程序 appId\n * @property {String} ariaLabel 无障碍访问,(属性)元素的额外描述\n * @property {Number} delta 当 openType 为 'navigateBack' 时有效,表示回退的层数\n * @property {Object} extraData 当target=\"miniProgram\"时有效,需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情\n * @property {String} [openType=navigate] 跳转方式\n * @property {String} path 当target=\"miniProgram\"时有效,打开的页面路径,如果为空则打开首页\n * @property {String} [target=self] 在哪个目标上发生跳转,默认当前小程序,可选值self/miniProgram\n * @property {String} url 当前小程序内的跳转链接\n * @property {version} [version=release] 当target=\"miniProgram\"时有效,要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版),仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是 *式版,则打开的小程序必定是正式版。\n * @property {String} onFail 当target=\"miniProgram\"时有效,跳转小程序失败\n * @property {String} onComplete 当target=\"miniProgram\"时有效,跳转小程序完成\n * @property {String} onSuccess 当target=\"miniProgram\"时有效,跳转小程序成功\n */\n\n/**\n * TODO: 参数还需要进一步细化对齐\n * Navigator组件\n * https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html\n **/\n\n@Component({\n tag: 'taro-navigator-core',\n styleUrl: './style/index.scss'\n})\nexport class Navigator implements ComponentInterface {\n @Prop() hoverClass: string\n @Prop() url: string\n @Prop() openType = 'navigate'\n @Prop() isHover = false\n @Prop() delta = 0\n\n @Event({\n eventName: 'cuccess'\n }) onSuccess: EventEmitter\n\n @Event({\n eventName: 'fail'\n }) onFail: EventEmitter\n\n @Event({\n eventName: 'Complete'\n }) onComplete: EventEmitter\n\n @Listen('click')\n onClick () {\n const { openType, onSuccess, onFail, onComplete } = this\n let promise: Promise<any> = Promise.resolve()\n switch (openType) {\n case 'navigate':\n promise = Taro.navigateTo({\n url: this.url\n })\n break\n case 'redirect':\n promise = Taro.redirectTo({\n url: this.url\n })\n break\n case 'switchTab':\n promise = Taro.switchTab({\n url: this.url\n })\n break\n case 'reLaunch':\n promise = Taro.reLaunch({\n url: this.url\n })\n break\n case 'navigateBack':\n promise = Taro.navigateBack({\n delta: this.delta\n })\n break\n case 'exit':\n promise = Promise.reject(new Error('navigator:fail 暂不支持\"openType: exit\"'))\n break\n }\n if (promise) {\n promise.then(res => {\n onSuccess.emit(res)\n }).catch(res => {\n onFail.emit(res)\n }).finally(() => {\n onComplete.emit()\n })\n }\n }\n\n render () {\n const { isHover, hoverClass } = this\n\n return (\n <Host\n class={classNames({\n [hoverClass]: isHover\n })}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as s}from"./p-5bfefd19.js";import{n as t}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){t("LivePusher",this)}render(){return o(s,null)}};export{a as taro_live_pusher_core};
|
|
2
|
+
//# sourceMappingURL=p-0d36ef6b.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/live-pusher/live-pusher.tsx"],"names":["LivePusher","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-pusher-core'\n})\nexport class LivePusher implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePusher', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|