@tarojs/components 3.7.0-alpha.2 → 3.7.0-alpha.20
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/dist/cjs/helper-ad6306f6.js +31 -0
- package/dist/cjs/hls-00fec546.js +25673 -0
- package/dist/{esm/index-1d8e8acd.js → cjs/index-f6805218.js} +13 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/taro-ad-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-canvas-core.cjs.entry.js +14 -2
- package/dist/cjs/taro-channel-live-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +7 -6
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-input-core.cjs.entry.js +7 -12
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-like-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-list-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-live-player-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-login-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-lottie-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-map-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-match-media-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-official-account-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-open-data-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-page-container-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +24 -21
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +4 -4
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +7 -1
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +16 -5
- package/dist/cjs/taro-share-element-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-snapshot-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +52 -50
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-tabbar.cjs.entry.js +11 -23
- package/dist/cjs/taro-tabs-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-text-core.cjs.entry.js +10 -7
- package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -9
- package/dist/cjs/taro-video-control_3.cjs.entry.js +8 -5
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -11
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/button/style/index.css +12 -0
- package/dist/collection/components/canvas/canvas.js +48 -2
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/image/image.js +6 -4
- package/dist/collection/components/image/style/index.css +2 -2
- package/dist/collection/components/input/input.js +9 -13
- package/dist/collection/components/picker/picker-group.js +29 -26
- package/dist/collection/components/picker/picker.js +42 -16
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/dist/collection/components/pull-to-refresh/style/index.css +1 -2
- package/dist/collection/components/rich-text/rich-text.js +71 -0
- package/dist/collection/components/rich-text/style/index.css +16 -0
- package/dist/collection/components/scroll-view/scroll-view.js +38 -6
- package/dist/collection/components/snapshot/snapshot.js +11 -0
- package/dist/collection/components/swiper/swiper-item.js +34 -35
- package/dist/collection/components/swiper/swiper.js +16 -13
- package/dist/collection/components/tabbar/style/index.css +5 -1
- package/dist/collection/components/text/style/index.css +20 -3
- package/dist/collection/components/text/text.js +66 -6
- package/dist/collection/components/textarea/textarea.js +4 -10
- package/dist/collection/components/video/style/index.css +1 -0
- package/dist/collection/components/video/video.js +4 -1
- package/dist/collection/components/view/view.js +2 -9
- package/dist/collection/utils/helper.js +11 -0
- package/dist/components/helper.js +12 -1
- package/dist/components/hls.js +22697 -24646
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +12 -17
- package/dist/components/picker-group.js +9 -9
- package/dist/components/taro-button-core.js +1 -1
- package/dist/components/taro-canvas-core.js +16 -2
- package/dist/components/taro-checkbox-core.js +1 -1
- package/dist/components/taro-image-core.js +7 -5
- package/dist/components/taro-input-core.js +7 -12
- package/dist/components/taro-picker-core.js +16 -13
- package/dist/components/taro-pull-to-refresh.js +2 -2
- package/dist/components/taro-rich-text-core.js +10 -1
- package/dist/components/taro-scroll-view-core.js +15 -4
- package/dist/components/taro-snapshot-core.d.ts +11 -0
- package/dist/components/taro-snapshot-core.js +33 -0
- package/dist/components/taro-swiper-core.js +16 -13
- package/dist/components/taro-swiper-item-core.js +34 -35
- package/dist/components/taro-tabbar.js +2 -14
- package/dist/components/taro-text-core.js +13 -7
- package/dist/components/taro-textarea-core.js +2 -9
- package/dist/components/taro-video-core.js +6 -3
- package/dist/components/taro-view-core.js +2 -9
- package/dist/esm/helper-8a85bb65.js +24 -0
- package/dist/esm/hls-4018c7ea.js +25671 -0
- package/dist/{cjs/index-f9d21cc5.js → esm/index-c3e4004b.js} +12 -22
- package/dist/esm/loader.js +4 -4
- package/dist/esm/taro-ad-core.entry.js +2 -2
- package/dist/esm/taro-ad-custom-core.entry.js +2 -2
- package/dist/esm/taro-animation-video-core.entry.js +2 -2
- package/dist/esm/taro-animation-view-core.entry.js +2 -2
- package/dist/esm/taro-ar-camera-core.entry.js +2 -2
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-aweme-data-core.entry.js +2 -2
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +2 -2
- package/dist/esm/taro-canvas-core.entry.js +14 -2
- package/dist/esm/taro-channel-live-core.entry.js +2 -2
- package/dist/esm/taro-channel-video-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +2 -2
- package/dist/esm/taro-comment-list-core.entry.js +2 -2
- package/dist/esm/taro-components.js +4 -4
- package/dist/esm/taro-contact-button-core.entry.js +2 -2
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +2 -2
- package/dist/esm/taro-follow-swan-core.entry.js +2 -2
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +2 -2
- package/dist/esm/taro-grid-view-core.entry.js +2 -2
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +7 -6
- package/dist/esm/taro-inline-payment-panel-core.entry.js +2 -2
- package/dist/esm/taro-input-core.entry.js +7 -12
- package/dist/esm/taro-keyboard-accessory-core.entry.js +2 -2
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +2 -2
- package/dist/esm/taro-like-core.entry.js +2 -2
- package/dist/esm/taro-list-view-core.entry.js +2 -2
- package/dist/esm/taro-live-player-core.entry.js +2 -2
- package/dist/esm/taro-live-pusher-core.entry.js +2 -2
- package/dist/esm/taro-login-core.entry.js +2 -2
- package/dist/esm/taro-lottie-core.entry.js +2 -2
- package/dist/esm/taro-map-core.entry.js +2 -2
- package/dist/esm/taro-match-media-core.entry.js +2 -2
- package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm/taro-native-slot-core.entry.js +2 -2
- package/dist/esm/taro-navigation-bar-core.entry.js +2 -2
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-official-account-core.entry.js +2 -2
- package/dist/esm/taro-open-data-core.entry.js +2 -2
- package/dist/esm/taro-page-container-core.entry.js +2 -2
- package/dist/esm/taro-page-meta-core.entry.js +2 -2
- package/dist/esm/taro-picker-core_2.entry.js +24 -21
- package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +4 -4
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +7 -1
- package/dist/esm/taro-root-portal-core.entry.js +2 -2
- package/dist/esm/taro-rtc-room-core.entry.js +2 -2
- package/dist/esm/taro-rtc-room-item-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +16 -5
- package/dist/esm/taro-share-element-core.entry.js +2 -2
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +2 -2
- package/dist/esm/taro-snapshot-core.entry.js +17 -0
- package/dist/esm/taro-sticky-header-core.entry.js +2 -2
- package/dist/esm/taro-sticky-section-core.entry.js +2 -2
- package/dist/esm/taro-swiper-core_2.entry.js +52 -50
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +2 -2
- package/dist/esm/taro-tabbar.entry.js +4 -16
- package/dist/esm/taro-tabs-core.entry.js +2 -2
- package/dist/esm/taro-text-core.entry.js +10 -7
- package/dist/esm/taro-textarea-core.entry.js +2 -9
- package/dist/esm/taro-video-control_3.entry.js +8 -5
- package/dist/esm/taro-view-core.entry.js +5 -11
- package/dist/esm/taro-voip-room-core.entry.js +2 -2
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/helper-8a85bb65.js +1 -0
- package/dist/esm-es5/hls-4018c7ea.js +1 -0
- package/dist/esm-es5/index-c3e4004b.js +7 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-core.entry.js +1 -0
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-00ed4bbb.entry.js +1 -0
- package/dist/taro-components/p-01e163f8.system.entry.js +1 -0
- package/dist/taro-components/p-065a10d7.entry.js +1 -0
- package/dist/taro-components/p-085076c5.system.entry.js +1 -0
- package/dist/taro-components/p-08b7ecd7.system.entry.js +1 -0
- package/dist/taro-components/p-0a250d71.system.entry.js +1 -0
- package/dist/taro-components/{p-70b5e81e.system.entry.js → p-0d7a705b.system.entry.js} +1 -1
- package/dist/taro-components/p-0e3b37e9.entry.js +1 -0
- package/dist/taro-components/p-0e8199b7.entry.js +1 -0
- package/dist/taro-components/p-0ec2e88a.entry.js +1 -0
- package/dist/taro-components/p-0fa96970.entry.js +1 -0
- package/dist/taro-components/{p-80f3d88d.entry.js → p-0fe855c6.entry.js} +1 -1
- package/dist/taro-components/{p-59590806.system.entry.js → p-117633e9.system.entry.js} +1 -1
- package/dist/taro-components/p-124ac21f.entry.js +1 -0
- package/dist/taro-components/p-15624788.system.entry.js +1 -0
- package/dist/taro-components/{p-6dae898a.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
- package/dist/taro-components/p-1b789738.system.entry.js +1 -0
- package/dist/taro-components/p-1cf16dfa.entry.js +1 -0
- package/dist/taro-components/{p-88d64daa.system.entry.js → p-1e739fcb.system.entry.js} +1 -1
- package/dist/taro-components/p-1f118969.system.entry.js +1 -0
- package/dist/taro-components/{p-6f214fc3.system.entry.js → p-208e438c.system.entry.js} +1 -1
- package/dist/taro-components/{p-0a165ad3.system.entry.js → p-21c07cb3.system.entry.js} +1 -1
- package/dist/taro-components/p-22bf7daf.entry.js +1 -0
- package/dist/taro-components/p-24d9836e.entry.js +1 -0
- package/dist/taro-components/p-25632af9.entry.js +1 -0
- package/dist/taro-components/p-29638de3.entry.js +1 -0
- package/dist/taro-components/{p-1b501f32.system.entry.js → p-2a071adf.system.entry.js} +1 -1
- package/dist/taro-components/p-2da9c8fd.entry.js +1 -0
- package/dist/taro-components/p-2ec68968.system.js +7 -0
- package/dist/taro-components/{p-9d4fa0d3.system.entry.js → p-3004e71a.system.entry.js} +1 -1
- package/dist/taro-components/{p-4542b767.entry.js → p-30805bdf.entry.js} +1 -1
- package/dist/taro-components/{p-c6e6dab1.system.entry.js → p-32e9981a.system.entry.js} +1 -1
- package/dist/taro-components/{p-7dd9c8da.system.entry.js → p-357ba712.system.entry.js} +1 -1
- package/dist/taro-components/{p-30fe0e81.system.entry.js → p-36d4407e.system.entry.js} +1 -1
- package/dist/taro-components/{p-c3d3eca2.entry.js → p-38ee526a.entry.js} +1 -1
- package/dist/taro-components/p-3f3abe55.system.entry.js +1 -0
- package/dist/taro-components/p-425c209a.entry.js +1 -0
- package/dist/taro-components/{p-58690684.entry.js → p-43720011.entry.js} +1 -1
- package/dist/taro-components/p-43efbf30.js +1 -0
- package/dist/taro-components/{p-69fa7272.system.entry.js → p-473afc8e.system.entry.js} +1 -1
- package/dist/taro-components/p-4a3357a4.entry.js +1 -0
- package/dist/taro-components/p-4cedbe5e.system.entry.js +1 -0
- package/dist/taro-components/p-4f1d180d.entry.js +1 -0
- package/dist/taro-components/p-4fc40739.entry.js +1 -0
- package/dist/taro-components/{p-bba8c3a7.system.entry.js → p-519fbe84.system.entry.js} +1 -1
- package/dist/taro-components/{p-95f70aea.system.entry.js → p-5756cf00.system.entry.js} +1 -1
- package/dist/taro-components/{p-4d7182f4.system.entry.js → p-5870248f.system.entry.js} +1 -1
- package/dist/taro-components/{p-26889f3c.system.entry.js → p-58cc2e6d.system.entry.js} +1 -1
- package/dist/taro-components/{p-51b6fc09.system.entry.js → p-5994d9f2.system.entry.js} +1 -1
- package/dist/taro-components/p-5e91398a.system.entry.js +1 -0
- package/dist/taro-components/{p-b2bb02d7.system.entry.js → p-5ebc7010.system.entry.js} +1 -1
- package/dist/taro-components/p-600e89cc.system.entry.js +1 -0
- package/dist/taro-components/p-60faf73e.system.entry.js +1 -0
- package/dist/taro-components/p-64eb91f7.entry.js +1 -0
- package/dist/taro-components/{p-dcb5b505.system.entry.js → p-657cb6e4.system.entry.js} +1 -1
- package/dist/taro-components/p-69c43a81.entry.js +1 -0
- package/dist/taro-components/p-6aa2ac6a.system.entry.js +1 -0
- package/dist/taro-components/p-6b454506.entry.js +1 -0
- package/dist/taro-components/p-6cde180b.entry.js +1 -0
- package/dist/taro-components/{p-02aa7366.system.entry.js → p-6cde54e5.system.entry.js} +1 -1
- package/dist/taro-components/p-72b118b0.entry.js +1 -0
- package/dist/taro-components/p-76996fcb.entry.js +1 -0
- package/dist/taro-components/p-7726b789.system.entry.js +1 -0
- package/dist/taro-components/p-78e4805e.entry.js +1 -0
- package/dist/taro-components/{p-3c5ac930.entry.js → p-7b68dee8.entry.js} +1 -1
- package/dist/taro-components/p-7bfc5f3d.entry.js +1 -0
- package/dist/taro-components/{p-4d0da795.system.entry.js → p-7e8e355b.system.entry.js} +1 -1
- package/dist/taro-components/p-7fb57a30.system.entry.js +1 -0
- package/dist/taro-components/p-84958ace.entry.js +1 -0
- package/dist/taro-components/{p-be6050fd.system.entry.js → p-85fce63e.system.entry.js} +1 -1
- package/dist/taro-components/p-862b38b9.entry.js +1 -0
- package/dist/taro-components/p-8c3b906c.system.js +1 -0
- package/dist/taro-components/p-8ca82a56.entry.js +1 -0
- package/dist/taro-components/p-8ccaf5e8.entry.js +1 -0
- package/dist/taro-components/{p-4402972b.system.entry.js → p-8d990f1c.system.entry.js} +1 -1
- package/dist/taro-components/{p-8027e1c6.system.entry.js → p-92d04741.system.entry.js} +1 -1
- package/dist/taro-components/{p-b5ad2aec.entry.js → p-962f28cb.entry.js} +1 -1
- package/dist/taro-components/p-9a5fbb2e.entry.js +1 -0
- package/dist/taro-components/{p-33223303.system.entry.js → p-9d76d7a9.system.entry.js} +1 -1
- package/dist/taro-components/p-9e03bc7a.system.entry.js +1 -0
- package/dist/taro-components/p-9ea4f297.entry.js +1 -0
- package/dist/taro-components/p-9edea30f.system.entry.js +1 -0
- package/dist/taro-components/p-9eeba192.entry.js +1 -0
- package/dist/taro-components/{p-7722f33f.entry.js → p-9fe49bab.entry.js} +1 -1
- package/dist/taro-components/{p-acd9a9da.entry.js → p-a1763153.entry.js} +1 -1
- package/dist/taro-components/{p-f44e975b.entry.js → p-a20ecd3b.entry.js} +1 -1
- package/dist/taro-components/p-a20fed0a.entry.js +1 -0
- package/dist/taro-components/p-a2141e85.system.entry.js +1 -0
- package/dist/taro-components/p-a2d590ad.entry.js +1 -0
- package/dist/taro-components/p-a4951dd6.entry.js +1 -0
- package/dist/taro-components/p-a5a51112.entry.js +1 -0
- package/dist/taro-components/p-a6e2dd48.entry.js +1 -0
- package/dist/taro-components/{p-f499c0a0.system.entry.js → p-a74c970c.system.entry.js} +1 -1
- package/dist/taro-components/{p-087bf23a.system.entry.js → p-a7d31b01.system.entry.js} +1 -1
- package/dist/taro-components/p-a90221ab.system.entry.js +1 -0
- package/dist/taro-components/p-a940a65b.entry.js +1 -0
- package/dist/taro-components/p-a94e3347.system.entry.js +1 -0
- package/dist/taro-components/p-aa04f605.entry.js +1 -0
- package/dist/taro-components/p-ad9b04e0.entry.js +1 -0
- package/dist/taro-components/{p-c586a796.system.entry.js → p-b07cd197.system.entry.js} +1 -1
- package/dist/taro-components/{p-2024e133.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
- package/dist/taro-components/p-b201ff38.entry.js +1 -0
- package/dist/taro-components/{p-ae3f1ed4.system.entry.js → p-b5b30493.system.entry.js} +1 -1
- package/dist/taro-components/{p-f9c26678.entry.js → p-b641e598.entry.js} +1 -1
- package/dist/taro-components/p-bc541cd8.entry.js +1 -0
- package/dist/taro-components/p-bd4ed8b1.entry.js +1 -0
- package/dist/taro-components/p-be96eb59.system.entry.js +1 -0
- package/dist/taro-components/{p-7df9de66.system.entry.js → p-bf0c8449.system.entry.js} +1 -1
- package/dist/taro-components/{p-c2c498d9.entry.js → p-bf0e0394.entry.js} +1 -1
- package/dist/taro-components/p-c0080d83.entry.js +1 -0
- package/dist/taro-components/p-c1a3fecf.system.entry.js +1 -0
- package/dist/taro-components/p-c39a46ca.system.entry.js +1 -0
- package/dist/taro-components/{p-4514dc53.system.entry.js → p-c913b635.system.entry.js} +1 -1
- package/dist/taro-components/p-cb406f85.system.entry.js +1 -0
- package/dist/taro-components/p-ccc64042.system.entry.js +1 -0
- package/dist/taro-components/p-ce303d12.system.entry.js +1 -0
- package/dist/taro-components/p-d1756770.entry.js +1 -0
- package/dist/taro-components/p-d2e0b15c.entry.js +1 -0
- package/dist/taro-components/p-d35c8257.system.entry.js +1 -0
- package/dist/taro-components/p-d550aea9.system.entry.js +1 -0
- package/dist/taro-components/p-d5c8380d.system.entry.js +1 -0
- package/dist/taro-components/{p-97782cdd.system.entry.js → p-d867e333.system.entry.js} +1 -1
- package/dist/taro-components/p-d9dcc6c6.entry.js +1 -0
- package/dist/taro-components/p-da3db323.entry.js +1 -0
- package/dist/taro-components/p-dab28e1f.system.entry.js +1 -0
- package/dist/taro-components/p-dbdb9de9.js +1 -0
- package/dist/taro-components/{p-736053bb.system.entry.js → p-dc5d65a0.system.entry.js} +1 -1
- package/dist/taro-components/p-de951a46.js +7 -0
- package/dist/taro-components/{p-da5cdbf5.system.entry.js → p-de96861c.system.entry.js} +1 -1
- package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
- package/dist/taro-components/{p-b1249ebb.system.entry.js → p-e2cd5dd3.system.entry.js} +1 -1
- package/dist/taro-components/p-e598f47b.entry.js +1 -0
- package/dist/taro-components/{p-10be7fb5.system.entry.js → p-e6481671.system.entry.js} +1 -1
- package/dist/taro-components/{p-c33733b3.system.entry.js → p-e67755f0.system.entry.js} +1 -1
- package/dist/taro-components/p-e740320c.entry.js +1 -0
- package/dist/taro-components/p-e78775ce.system.js +1 -0
- package/dist/taro-components/p-e976c6c9.system.entry.js +1 -0
- package/dist/taro-components/p-ea0d5d4f.system.entry.js +1 -0
- package/dist/taro-components/p-ebc7b6fc.entry.js +1 -0
- package/dist/taro-components/p-ed331c06.system.js +1 -0
- package/dist/taro-components/p-ef322936.entry.js +1 -0
- package/dist/taro-components/p-f02b6f70.entry.js +1 -0
- package/dist/taro-components/{p-9df17ea6.entry.js → p-f0340edf.entry.js} +1 -1
- package/dist/taro-components/p-f1304456.entry.js +1 -0
- package/dist/taro-components/p-f2235cbb.entry.js +1 -0
- package/dist/taro-components/{p-38de410e.entry.js → p-f23cfdc8.entry.js} +1 -1
- package/dist/taro-components/p-f2c86846.entry.js +1 -0
- package/dist/taro-components/{p-1941d333.system.entry.js → p-f420680c.system.entry.js} +1 -1
- package/dist/taro-components/p-f4d86882.entry.js +1 -0
- package/dist/taro-components/p-f533bc2f.entry.js +1 -0
- package/dist/taro-components/p-f658de2e.entry.js +1 -0
- package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
- package/dist/taro-components/p-f78823a1.entry.js +1 -0
- package/dist/taro-components/{p-bac3deb0.system.entry.js → p-fac4ce6f.system.entry.js} +1 -1
- package/dist/taro-components/p-fbb2446e.entry.js +1 -0
- package/dist/taro-components/{p-0939fd26.system.entry.js → p-fd7ff0f3.system.entry.js} +1 -1
- package/dist/taro-components/{p-2bac359b.entry.js → p-fefedf44.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/canvas/canvas.d.ts +5 -2
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/image/image.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/picker/picker-group.d.ts +3 -3
- package/dist/types/components/picker/picker.d.ts +7 -2
- package/dist/types/components/rich-text/rich-text.d.ts +4 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +3 -0
- package/dist/types/components/snapshot/snapshot.d.ts +5 -0
- package/dist/types/components/swiper/swiper.d.ts +3 -2
- package/dist/types/components/text/text.d.ts +4 -0
- package/dist/types/components/textarea/textarea.d.ts +0 -1
- package/dist/types/components.d.ts +45 -8
- package/dist/types/utils/helper.d.ts +1 -0
- package/lib/react/component-lib/index.d.ts +1 -1
- package/lib/react/component-lib/index.js +50 -50
- package/lib/react/component-lib/index.js.map +1 -1
- package/lib/react/component-lib/reactify-wc.js +1 -1
- package/lib/react/component-lib/reactify-wc.js.map +1 -1
- package/lib/react/components.d.ts +83 -84
- package/lib/react/components.js +4 -3
- package/lib/react/components.js.map +1 -1
- package/lib/react/helper.d.ts +1 -1
- package/lib/react/index.d.ts +1 -1
- package/lib/react/index.js +1 -1
- package/lib/react/react-component-lib/createComponent.d.ts +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +2 -2
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/lib/react/react-component-lib/index.d.ts +2 -2
- package/lib/react/react-component-lib/utils/attachProps.js +21 -5
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/react/react-component-lib/utils/index.d.ts +3 -3
- package/lib/vue2/component-lib/index.js +0 -5
- package/lib/vue2/component-lib/index.js.map +1 -1
- package/lib/vue2/components-loader.js +1 -1
- package/lib/vue2/components-loader.js.map +1 -1
- package/lib/vue2/components.d.ts +14 -4
- package/lib/vue2/components.js +20 -8
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.d.ts +1 -1
- package/lib/vue2/index.js +1 -1
- package/lib/vue2/vue-component-lib/utils.js.map +1 -1
- package/lib/vue3/component-lib/index.d.ts +4 -4
- package/lib/vue3/component-lib/index.js +48 -48
- package/lib/vue3/component-lib/index.js.map +1 -1
- package/lib/vue3/components.d.ts +83 -82
- package/lib/vue3/components.js +18 -7
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.d.ts +1 -1
- package/lib/vue3/index.js +1 -1
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +13 -11
- package/types/Button.d.ts +104 -10
- package/types/Canvas.d.ts +11 -11
- package/types/ChannelVideo.d.ts +4 -0
- package/types/Form.d.ts +11 -0
- package/types/GridView.d.ts +1 -1
- package/types/Image.d.ts +5 -0
- package/types/Input.d.ts +6 -1
- package/types/ListView.d.ts +1 -1
- package/types/LivePlayer.d.ts +17 -0
- package/types/LivePusher.d.ts +10 -0
- package/types/NativeSlot.d.ts +5 -3
- package/types/Picker.d.ts +9 -0
- package/types/Progress.d.ts +2 -2
- package/types/RichText.d.ts +6 -4
- package/types/ScrollView.d.ts +86 -8
- package/types/ShareElement.d.ts +40 -1
- package/types/Slot.d.ts +5 -3
- package/types/Snapshot.d.ts +16 -0
- package/types/StickyHeader.d.ts +1 -1
- package/types/StickySection.d.ts +1 -2
- package/types/Swiper.d.ts +10 -0
- package/types/Text.d.ts +8 -3
- package/types/Textarea.d.ts +11 -4
- package/types/Video.d.ts +15 -2
- package/types/View.d.ts +1 -1
- package/types/index.d.ts +8 -5
- package/types/index.vue3.d.ts +39 -16
- package/virtual-list/index.js +2 -2
- package/dist/cjs/helper-db78e01a.js +0 -19
- package/dist/cjs/hls-67cbc62d.js +0 -27622
- package/dist/esm/helper-3d0ecf0f.js +0 -13
- package/dist/esm/hls-221423a1.js +0 -27620
- package/dist/esm-es5/helper-3d0ecf0f.js +0 -1
- package/dist/esm-es5/hls-221423a1.js +0 -365
- package/dist/esm-es5/index-1d8e8acd.js +0 -7
- package/dist/taro-components/p-0393ed55.entry.js +0 -1
- package/dist/taro-components/p-05bc0fce.entry.js +0 -1
- package/dist/taro-components/p-05c757b7.entry.js +0 -1
- package/dist/taro-components/p-07293238.entry.js +0 -1
- package/dist/taro-components/p-08bb8dfc.system.entry.js +0 -1
- package/dist/taro-components/p-0a9b984e.system.entry.js +0 -1
- package/dist/taro-components/p-0b8b3af5.entry.js +0 -1
- package/dist/taro-components/p-11936d9a.entry.js +0 -1
- package/dist/taro-components/p-1249cb09.entry.js +0 -1
- package/dist/taro-components/p-1385d50f.entry.js +0 -1
- package/dist/taro-components/p-1493866a.entry.js +0 -1
- package/dist/taro-components/p-15e45ed6.system.js +0 -1
- package/dist/taro-components/p-16e03200.entry.js +0 -1
- package/dist/taro-components/p-17302fe9.system.entry.js +0 -1
- package/dist/taro-components/p-1743a04b.system.js +0 -365
- package/dist/taro-components/p-1be83ed3.entry.js +0 -1
- package/dist/taro-components/p-1c320250.system.entry.js +0 -1
- package/dist/taro-components/p-1c446c65.system.js +0 -1
- package/dist/taro-components/p-1e8c8ae1.entry.js +0 -1
- package/dist/taro-components/p-22dc57d4.entry.js +0 -1
- package/dist/taro-components/p-23cb8a7f.entry.js +0 -1
- package/dist/taro-components/p-27c4878c.entry.js +0 -1
- package/dist/taro-components/p-2e28cb1c.entry.js +0 -1
- package/dist/taro-components/p-2f7dba29.entry.js +0 -1
- package/dist/taro-components/p-30f32fa2.system.entry.js +0 -1
- package/dist/taro-components/p-369fb262.entry.js +0 -1
- package/dist/taro-components/p-38a51bd2.entry.js +0 -1
- package/dist/taro-components/p-39685396.system.entry.js +0 -1
- package/dist/taro-components/p-3c91f59b.entry.js +0 -1
- package/dist/taro-components/p-3d60bd58.entry.js +0 -1
- package/dist/taro-components/p-4190e20b.system.entry.js +0 -1
- package/dist/taro-components/p-429a0f99.entry.js +0 -1
- package/dist/taro-components/p-42bcb98a.entry.js +0 -1
- package/dist/taro-components/p-46244579.system.entry.js +0 -1
- package/dist/taro-components/p-4915fdc1.system.entry.js +0 -1
- package/dist/taro-components/p-491c6272.system.entry.js +0 -1
- package/dist/taro-components/p-4e77bdea.entry.js +0 -1
- package/dist/taro-components/p-518146fd.system.entry.js +0 -1
- package/dist/taro-components/p-58877ef2.system.entry.js +0 -1
- package/dist/taro-components/p-58b7e960.entry.js +0 -1
- package/dist/taro-components/p-5931c82e.entry.js +0 -1
- package/dist/taro-components/p-61f225ef.system.js +0 -7
- package/dist/taro-components/p-623b3eb6.system.entry.js +0 -1
- package/dist/taro-components/p-651586f8.system.entry.js +0 -1
- package/dist/taro-components/p-69f6784d.system.entry.js +0 -1
- package/dist/taro-components/p-6a96da58.js +0 -1
- package/dist/taro-components/p-6de6eb4e.entry.js +0 -1
- package/dist/taro-components/p-6f048097.system.entry.js +0 -1
- package/dist/taro-components/p-7377a117.entry.js +0 -1
- package/dist/taro-components/p-744a6b99.entry.js +0 -1
- package/dist/taro-components/p-74bf8246.system.entry.js +0 -1
- package/dist/taro-components/p-76724e58.js +0 -7
- package/dist/taro-components/p-78c30850.system.entry.js +0 -1
- package/dist/taro-components/p-79c41bc2.entry.js +0 -1
- package/dist/taro-components/p-7c1fc8f5.system.entry.js +0 -1
- package/dist/taro-components/p-80970d8f.entry.js +0 -1
- package/dist/taro-components/p-895cd7c9.system.entry.js +0 -1
- package/dist/taro-components/p-8b8a8e39.entry.js +0 -1
- package/dist/taro-components/p-8d037fc0.entry.js +0 -1
- package/dist/taro-components/p-8d2101be.system.entry.js +0 -1
- package/dist/taro-components/p-8e5cc8fe.system.entry.js +0 -1
- package/dist/taro-components/p-8feeb7ce.entry.js +0 -1
- package/dist/taro-components/p-90e4274e.entry.js +0 -1
- package/dist/taro-components/p-9318da32.entry.js +0 -1
- package/dist/taro-components/p-9e8619a6.system.entry.js +0 -1
- package/dist/taro-components/p-a294e169.entry.js +0 -1
- package/dist/taro-components/p-a5afdc47.system.entry.js +0 -1
- package/dist/taro-components/p-a6d2e81b.entry.js +0 -1
- package/dist/taro-components/p-a9b51167.entry.js +0 -1
- package/dist/taro-components/p-ae8fd8c8.entry.js +0 -1
- package/dist/taro-components/p-affb28de.entry.js +0 -1
- package/dist/taro-components/p-b16eddaa.entry.js +0 -1
- package/dist/taro-components/p-b1c972e2.system.entry.js +0 -1
- package/dist/taro-components/p-b708e9fe.entry.js +0 -1
- package/dist/taro-components/p-badfb3be.entry.js +0 -1
- package/dist/taro-components/p-beba1657.entry.js +0 -1
- package/dist/taro-components/p-c2391de5.entry.js +0 -1
- package/dist/taro-components/p-c3d35ae5.entry.js +0 -1
- package/dist/taro-components/p-c4dd85b6.entry.js +0 -1
- package/dist/taro-components/p-c4fdb669.system.entry.js +0 -1
- package/dist/taro-components/p-c6385fc2.system.entry.js +0 -1
- package/dist/taro-components/p-c70dd956.system.entry.js +0 -1
- package/dist/taro-components/p-d42e41ff.entry.js +0 -1
- package/dist/taro-components/p-d5234e7e.js +0 -365
- package/dist/taro-components/p-d797cdc4.entry.js +0 -1
- package/dist/taro-components/p-dccf1ae9.entry.js +0 -1
- package/dist/taro-components/p-dfc405a5.entry.js +0 -1
- package/dist/taro-components/p-e2f2fbe5.entry.js +0 -1
- package/dist/taro-components/p-e3f8265d.system.entry.js +0 -1
- package/dist/taro-components/p-e753b776.entry.js +0 -1
- package/dist/taro-components/p-e8b1ea64.entry.js +0 -1
- package/dist/taro-components/p-e9eeb060.entry.js +0 -1
- package/dist/taro-components/p-ef7e7d73.system.entry.js +0 -1
- package/dist/taro-components/p-efcfdb97.entry.js +0 -1
- package/dist/taro-components/p-f671ed7d.entry.js +0 -1
- package/dist/taro-components/p-f9ac515e.system.entry.js +0 -1
- package/dist/taro-components/p-fa36fe8e.system.entry.js +0 -1
- package/dist/taro-components/p-fb585037.entry.js +0 -1
- package/dist/taro-components/p-fcdac6ec.system.entry.js +0 -1
- package/dist/taro-components/p-fdecdc25.entry.js +0 -1
- /package/dist/cjs/{index-e1b469cd.js → index-e751dfe3.js} +0 -0
- /package/dist/esm/{index-c948674f.js → index-980f930f.js} +0 -0
- /package/dist/esm-es5/{index-c948674f.js → index-980f930f.js} +0 -0
- /package/dist/taro-components/{p-1a0e1932.system.js → p-7e6b54cb.system.js} +0 -0
- /package/dist/taro-components/{p-78e3ebb9.js → p-9137dcab.js} +0 -0
|
@@ -65,6 +65,7 @@ export { ScrollView as TaroScrollViewCore } from '../types/components/scroll-vie
|
|
|
65
65
|
export { ShareElement as TaroShareElementCore } from '../types/components/share-element/share-element';
|
|
66
66
|
export { Slider as TaroSliderCore } from '../types/components/slider/slider';
|
|
67
67
|
export { Slot as TaroSlotCore } from '../types/components/slot/slot';
|
|
68
|
+
export { Snapshot as TaroSnapshotCore } from '../types/components/snapshot/snapshot';
|
|
68
69
|
export { StickyHeader as TaroStickyHeaderCore } from '../types/components/sticky-header/sticky-header';
|
|
69
70
|
export { StickySection as TaroStickySectionCore } from '../types/components/sticky-section/sticky-section';
|
|
70
71
|
export { Swiper as TaroSwiperCore } from '../types/components/swiper/swiper';
|
package/dist/components/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export { TaroScrollViewCore, defineCustomElement as defineCustomElementTaroScrol
|
|
|
65
65
|
export { TaroShareElementCore, defineCustomElement as defineCustomElementTaroShareElementCore } from './taro-share-element-core.js';
|
|
66
66
|
export { TaroSliderCore, defineCustomElement as defineCustomElementTaroSliderCore } from './taro-slider-core.js';
|
|
67
67
|
export { TaroSlotCore, defineCustomElement as defineCustomElementTaroSlotCore } from './taro-slot-core.js';
|
|
68
|
+
export { TaroSnapshotCore, defineCustomElement as defineCustomElementTaroSnapshotCore } from './taro-snapshot-core.js';
|
|
68
69
|
export { TaroStickyHeaderCore, defineCustomElement as defineCustomElementTaroStickyHeaderCore } from './taro-sticky-header-core.js';
|
|
69
70
|
export { TaroStickySectionCore, defineCustomElement as defineCustomElementTaroStickySectionCore } from './taro-sticky-section-core.js';
|
|
70
71
|
export { TaroSwiperCore, defineCustomElement as defineCustomElementTaroSwiperCore } from './taro-swiper-core.js';
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
function createCommonjsModule(fn, basedir, module) {
|
|
8
2
|
return module = {
|
|
9
3
|
path: basedir,
|
|
@@ -20,9 +14,9 @@ function commonjsRequire () {
|
|
|
20
14
|
|
|
21
15
|
var classnames = createCommonjsModule(function (module) {
|
|
22
16
|
/*!
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
Copyright (c) 2018 Jed Watson.
|
|
18
|
+
Licensed under the MIT License (MIT), see
|
|
19
|
+
http://jedwatson.github.io/classnames
|
|
26
20
|
*/
|
|
27
21
|
/* global define */
|
|
28
22
|
|
|
@@ -49,14 +43,15 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
49
43
|
}
|
|
50
44
|
}
|
|
51
45
|
} else if (argType === 'object') {
|
|
52
|
-
if (arg.toString
|
|
53
|
-
for (var key in arg) {
|
|
54
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
55
|
-
classes.push(key);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
46
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
59
47
|
classes.push(arg.toString());
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
for (var key in arg) {
|
|
52
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
53
|
+
classes.push(key);
|
|
54
|
+
}
|
|
60
55
|
}
|
|
61
56
|
}
|
|
62
57
|
}
|
|
@@ -73,4 +68,4 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
73
68
|
}());
|
|
74
69
|
});
|
|
75
70
|
|
|
76
|
-
export {
|
|
71
|
+
export { classnames as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
3
|
const TOP = 102;
|
|
4
4
|
const LINE_HEIGHT = 34;
|
|
@@ -8,13 +8,13 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
10
|
this.__registerHost();
|
|
11
|
+
this.onColumnChange = createEvent(this, "columnChange", 7);
|
|
11
12
|
this.mode = undefined;
|
|
12
13
|
this.range = [];
|
|
13
14
|
this.rangeKey = undefined;
|
|
14
15
|
this.height = undefined;
|
|
15
16
|
this.columnId = undefined;
|
|
16
17
|
this.updateHeight = undefined;
|
|
17
|
-
this.onColumnChange = undefined;
|
|
18
18
|
this.updateDay = undefined;
|
|
19
19
|
this.startY = undefined;
|
|
20
20
|
this.preY = undefined;
|
|
@@ -84,7 +84,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
84
84
|
this.updateHeight(newPos, this.columnId);
|
|
85
85
|
}
|
|
86
86
|
async handleMoveEnd(clientY) {
|
|
87
|
-
const { mode, range, height, updateHeight,
|
|
87
|
+
const { mode, range, height, updateHeight, columnId } = this;
|
|
88
88
|
const max = 0;
|
|
89
89
|
const min = -LINE_HEIGHT * (range.length - 1);
|
|
90
90
|
const endY = clientY;
|
|
@@ -135,7 +135,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
135
135
|
// 先按公式算出 index, 再用此 index 算出一个整数高度
|
|
136
136
|
const index = Math.round(absoluteHeight / -LINE_HEIGHT);
|
|
137
137
|
const relativeHeight = TOP - LINE_HEIGHT * index;
|
|
138
|
-
if (this.mode === 'date') {
|
|
138
|
+
if (this.mode === 'date' && typeof this.updateDay === 'function') {
|
|
139
139
|
if (this.columnId === '0') {
|
|
140
140
|
this.updateDay(+this.range[index].replace(/[^0-9]/gi, ''), 0);
|
|
141
141
|
}
|
|
@@ -147,14 +147,16 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
updateHeight(relativeHeight, columnId, mode === 'time');
|
|
150
|
-
onColumnChange
|
|
150
|
+
this.onColumnChange.emit({
|
|
151
|
+
columnId,
|
|
152
|
+
height: relativeHeight,
|
|
153
|
+
});
|
|
151
154
|
}
|
|
152
155
|
onMouseDown(e) {
|
|
153
156
|
this.isMove = true;
|
|
154
157
|
this.handleMoveStart(e.clientY);
|
|
155
158
|
}
|
|
156
159
|
onMouseMove(e) {
|
|
157
|
-
e.preventDefault();
|
|
158
160
|
if (!this.isMove)
|
|
159
161
|
return;
|
|
160
162
|
this.handleMoving(e.clientY);
|
|
@@ -169,7 +171,6 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
169
171
|
this.handleMoveStart(e.changedTouches[0].clientY);
|
|
170
172
|
}
|
|
171
173
|
onTouchMove(e) {
|
|
172
|
-
e.preventDefault();
|
|
173
174
|
this.handleMoving(e.changedTouches[0].clientY);
|
|
174
175
|
}
|
|
175
176
|
onTouchEnd(e) {
|
|
@@ -190,7 +191,6 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
190
191
|
"height": [2],
|
|
191
192
|
"columnId": [1, "column-id"],
|
|
192
193
|
"updateHeight": [16],
|
|
193
|
-
"onColumnChange": [16],
|
|
194
194
|
"updateDay": [16],
|
|
195
195
|
"startY": [32],
|
|
196
196
|
"preY": [32],
|
|
@@ -200,7 +200,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
200
200
|
"handleMoveStart": [64],
|
|
201
201
|
"handleMoving": [64],
|
|
202
202
|
"handleMoveEnd": [64]
|
|
203
|
-
}, [[1, "mousedown", "onMouseDown"], [
|
|
203
|
+
}, [[1, "mousedown", "onMouseDown"], [3, "mousemove", "onMouseMove"], [1, "mouseup", "onMouseMoveEnd"], [1, "mouseleave", "onMouseMoveEnd"], [1, "touchstart", "onTouchStart"], [3, "touchmove", "onTouchMove"], [1, "touchend", "onTouchEnd"]]]);
|
|
204
204
|
function defineCustomElement() {
|
|
205
205
|
if (typeof customElements === "undefined") {
|
|
206
206
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as classnames } from './index2.js';
|
|
3
3
|
|
|
4
|
-
const indexCss = "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)}";
|
|
4
|
+
const indexCss = "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][type=warn]{border:1px solid #e64340;color:#e64340}taro-button-core[plain][type=warn]:not([disabled]):active{border-color:rgba(230, 67, 64, 0.6);background-color:transparent;color:rgba(230, 67, 64, 0.6)}taro-button-core[plain][type=warn]::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)}";
|
|
5
5
|
|
|
6
6
|
const Button = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -20,19 +20,33 @@ const Canvas = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
20
20
|
clearTimeout(this.timer);
|
|
21
21
|
};
|
|
22
22
|
this.canvasId = undefined;
|
|
23
|
+
this.height = undefined;
|
|
24
|
+
this.width = undefined;
|
|
23
25
|
this.nativeProps = {};
|
|
24
26
|
}
|
|
27
|
+
componentDidRender() {
|
|
28
|
+
const [canvas] = this.el.children;
|
|
29
|
+
if (!this.height || !this.width) {
|
|
30
|
+
let style = window.getComputedStyle(canvas);
|
|
31
|
+
this.height || (this.height = style.height);
|
|
32
|
+
this.width || (this.width = style.width);
|
|
33
|
+
}
|
|
34
|
+
canvas.height = parseInt(this.height);
|
|
35
|
+
canvas.width = parseInt(this.width);
|
|
36
|
+
}
|
|
25
37
|
render() {
|
|
26
38
|
const { canvasId, nativeProps } = this;
|
|
27
39
|
return (h("canvas", Object.assign({ "canvas-id": canvasId, style: {
|
|
28
40
|
width: '100%',
|
|
29
41
|
height: '100%'
|
|
30
|
-
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
42
|
+
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchCancel: this.onTouchEnd, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
31
43
|
}
|
|
32
44
|
get el() { return this; }
|
|
33
45
|
static get style() { return indexCss; }
|
|
34
46
|
}, [0, "taro-canvas-core", {
|
|
35
|
-
"canvasId": [1, "
|
|
47
|
+
"canvasId": [1, "id"],
|
|
48
|
+
"height": [1537],
|
|
49
|
+
"width": [1537],
|
|
36
50
|
"nativeProps": [16]
|
|
37
51
|
}]);
|
|
38
52
|
function defineCustomElement$1() {
|
|
@@ -51,7 +51,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
51
51
|
static get style() { return indexCss; }
|
|
52
52
|
}, [4, "taro-checkbox-core", {
|
|
53
53
|
"name": [1],
|
|
54
|
-
"value": [
|
|
54
|
+
"value": [1032],
|
|
55
55
|
"color": [1],
|
|
56
56
|
"id": [1025],
|
|
57
57
|
"checked": [4],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as classnames } from './index2.js';
|
|
3
3
|
|
|
4
|
-
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:
|
|
4
|
+
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:320px;height:240px;font-size:0}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{position:absolute;bottom:0;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;right:0;height:100%}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}";
|
|
5
5
|
|
|
6
6
|
import('./intersection-observer.js');
|
|
7
7
|
const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -15,6 +15,7 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
15
15
|
this.lazyLoad = false;
|
|
16
16
|
this.nativeProps = {};
|
|
17
17
|
this.aspectFillMode = 'width';
|
|
18
|
+
this.didLoad = false;
|
|
18
19
|
}
|
|
19
20
|
componentDidLoad() {
|
|
20
21
|
if (!this.lazyLoad)
|
|
@@ -23,7 +24,7 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
24
|
// 异步 api 关系
|
|
24
25
|
if (entries[entries.length - 1].isIntersecting) {
|
|
25
26
|
lazyImg.unobserve(this.imgRef);
|
|
26
|
-
this.
|
|
27
|
+
this.didLoad = true;
|
|
27
28
|
}
|
|
28
29
|
}, {
|
|
29
30
|
rootMargin: '300px 0px'
|
|
@@ -42,14 +43,14 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
42
43
|
this.onError.emit(e);
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
|
-
const { src, mode = 'scaleToFill', lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps } = this;
|
|
46
|
+
const { src, mode = 'scaleToFill', lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
|
|
46
47
|
const cls = classnames({
|
|
47
48
|
'taro-img__widthfix': mode === 'widthFix'
|
|
48
49
|
});
|
|
49
50
|
const imgCls = classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
|
|
50
51
|
[`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
|
|
51
52
|
});
|
|
52
|
-
return (h(Host, { class: cls },
|
|
53
|
+
return (h(Host, { class: cls }, h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))));
|
|
53
54
|
}
|
|
54
55
|
static get style() { return indexCss; }
|
|
55
56
|
}, [0, "taro-image-core", {
|
|
@@ -57,7 +58,8 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
57
58
|
"mode": [1],
|
|
58
59
|
"lazyLoad": [4, "lazy-load"],
|
|
59
60
|
"nativeProps": [16],
|
|
60
|
-
"aspectFillMode": [32]
|
|
61
|
+
"aspectFillMode": [32],
|
|
62
|
+
"didLoad": [32]
|
|
61
63
|
}]);
|
|
62
64
|
function defineCustomElement$1() {
|
|
63
65
|
if (typeof customElements === "undefined") {
|
|
@@ -126,7 +126,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
126
126
|
this.isOnComposition = true;
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
-
this.
|
|
129
|
+
this.handleBeforeInput = (e) => {
|
|
130
130
|
if (!e.data)
|
|
131
131
|
return;
|
|
132
132
|
const isNumber = e.data && /[0-9]/.test(e.data);
|
|
@@ -139,7 +139,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
this.value =
|
|
142
|
+
this.value = '';
|
|
143
143
|
this.type = undefined;
|
|
144
144
|
this.password = false;
|
|
145
145
|
this.placeholder = undefined;
|
|
@@ -176,14 +176,9 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
176
176
|
else {
|
|
177
177
|
(_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionstart', this.handleComposition);
|
|
178
178
|
(_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.addEventListener('compositionend', this.handleComposition);
|
|
179
|
-
(_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.addEventListener('beforeinput', this.
|
|
180
|
-
(_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.addEventListener('textInput', this.
|
|
179
|
+
(_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.addEventListener('beforeinput', this.handleBeforeInput);
|
|
180
|
+
(_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.addEventListener('textInput', this.handleBeforeInput);
|
|
181
181
|
}
|
|
182
|
-
Object.defineProperty(this.el, 'value', {
|
|
183
|
-
get: () => this.inputRef.value,
|
|
184
|
-
set: value => this.value !== value && (this.value = value),
|
|
185
|
-
configurable: true
|
|
186
|
-
});
|
|
187
182
|
}
|
|
188
183
|
disconnectedCallback() {
|
|
189
184
|
var _a, _b, _c, _d, _e;
|
|
@@ -193,8 +188,8 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
193
188
|
else {
|
|
194
189
|
(_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('compositionstart', this.handleComposition);
|
|
195
190
|
(_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.removeEventListener('compositionend', this.handleComposition);
|
|
196
|
-
(_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('beforeinput', this.
|
|
197
|
-
(_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('textInput', this.
|
|
191
|
+
(_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('beforeinput', this.handleBeforeInput);
|
|
192
|
+
(_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('textInput', this.handleBeforeInput);
|
|
198
193
|
}
|
|
199
194
|
}
|
|
200
195
|
render() {
|
|
@@ -218,7 +213,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
218
213
|
"placeholder": [1],
|
|
219
214
|
"disabled": [4],
|
|
220
215
|
"maxlength": [2],
|
|
221
|
-
"autoFocus": [
|
|
216
|
+
"autoFocus": [4, "focus"],
|
|
222
217
|
"confirmType": [1, "confirm-type"],
|
|
223
218
|
"name": [1],
|
|
224
219
|
"nativeProps": [16],
|
|
@@ -218,11 +218,19 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
218
218
|
})
|
|
219
219
|
.join('-');
|
|
220
220
|
}
|
|
221
|
-
this.
|
|
221
|
+
this.value = value;
|
|
222
|
+
this.pickerValue = this.value;
|
|
222
223
|
this.onChange.emit({
|
|
223
224
|
value
|
|
224
225
|
});
|
|
225
226
|
};
|
|
227
|
+
this.handleColumnChange = (e) => {
|
|
228
|
+
const { columnId, height } = e.detail;
|
|
229
|
+
this.onColumnChange.emit({
|
|
230
|
+
column: Number(columnId),
|
|
231
|
+
value: (TOP - height) / LINE_HEIGHT
|
|
232
|
+
});
|
|
233
|
+
};
|
|
226
234
|
// 点击取消按钮或蒙层
|
|
227
235
|
this.handleCancel = () => {
|
|
228
236
|
this.hidePicker();
|
|
@@ -260,12 +268,6 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
260
268
|
}
|
|
261
269
|
}
|
|
262
270
|
};
|
|
263
|
-
this.handleColumnChange = (height, columnId) => {
|
|
264
|
-
this.onColumnChange.emit({
|
|
265
|
-
column: Number(columnId),
|
|
266
|
-
value: (TOP - height) / LINE_HEIGHT
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
271
|
this.updateDay = (value, fields) => {
|
|
270
272
|
const { _start, _end, _updateValue } = this.pickerDate;
|
|
271
273
|
_updateValue[fields] = value;
|
|
@@ -351,6 +353,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
351
353
|
this.end = '';
|
|
352
354
|
this.fields = 'day';
|
|
353
355
|
this.name = '';
|
|
356
|
+
this.textProps = {};
|
|
354
357
|
this.pickerValue = [];
|
|
355
358
|
this.height = [];
|
|
356
359
|
this.hidden = true;
|
|
@@ -362,11 +365,6 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
362
365
|
this.handleProps();
|
|
363
366
|
}
|
|
364
367
|
componentDidLoad() {
|
|
365
|
-
Object.defineProperty(this.el, 'value', {
|
|
366
|
-
get: () => this.pickerValue,
|
|
367
|
-
set: value => this.value !== value && (this.value = value),
|
|
368
|
-
configurable: true
|
|
369
|
-
});
|
|
370
368
|
if (this.overlay) {
|
|
371
369
|
document.body.appendChild(this.overlay);
|
|
372
370
|
}
|
|
@@ -445,6 +443,9 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
445
443
|
throw new Error('Date Interval Error');
|
|
446
444
|
}
|
|
447
445
|
}
|
|
446
|
+
else {
|
|
447
|
+
throw new Error(`Picker not support "${mode}" mode.`);
|
|
448
|
+
}
|
|
448
449
|
// Prop 变化时,无论是否正在显示弹层,都更新 height 值
|
|
449
450
|
this.height = this.getHeightByIndex();
|
|
450
451
|
// 同步表单 value 值,用于 form submit
|
|
@@ -460,6 +461,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
render() {
|
|
464
|
+
var _a, _b;
|
|
463
465
|
const { name, mode, fadeOut, hidden } = this;
|
|
464
466
|
// 选项条
|
|
465
467
|
let pickerGroup;
|
|
@@ -484,7 +486,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
484
486
|
'weui-animate-slide-down': fadeOut
|
|
485
487
|
});
|
|
486
488
|
const shouldDivHidden = hidden ? { display: 'none' } : {};
|
|
487
|
-
return (h(Host, null, h("div", { onClick: this.showPicker }, h("slot", null), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })), h("div", { class: 'weui-picker__overlay', style: shouldDivHidden, ref: el => { this.overlay = el; } }, h("div", { class: clsMask, onClick: this.handleCancel }), h("div", { class: clsSlider }, h("div", { class: 'weui-picker__hd' }, h("div", { class: 'weui-picker__action', onClick: this.handleCancel },
|
|
489
|
+
return (h(Host, null, h("div", { onClick: this.showPicker }, h("slot", null), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })), h("div", { class: 'weui-picker__overlay', style: shouldDivHidden, ref: el => { this.overlay = el; } }, h("div", { class: clsMask, onClick: this.handleCancel }), h("div", { class: clsSlider }, h("div", { class: 'weui-picker__hd' }, h("div", { class: 'weui-picker__action', onClick: this.handleCancel }, (_a = this.textProps.cancelText) !== null && _a !== void 0 ? _a : '取消'), h("div", { class: 'weui-picker__action', onClick: this.handleChange }, (_b = this.textProps.okText) !== null && _b !== void 0 ? _b : '确定')), h("div", { class: 'weui-picker__bd' }, pickerGroup), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })))));
|
|
488
490
|
}
|
|
489
491
|
get el() { return this; }
|
|
490
492
|
static get watchers() { return {
|
|
@@ -505,6 +507,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
505
507
|
"end": [1],
|
|
506
508
|
"fields": [1],
|
|
507
509
|
"name": [1],
|
|
510
|
+
"textProps": [16],
|
|
508
511
|
"pickerValue": [32],
|
|
509
512
|
"height": [32],
|
|
510
513
|
"hidden": [32],
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
3
|
import { c as classnames } from './index2.js';
|
|
4
4
|
|
|
5
|
-
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{
|
|
5
|
+
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
6
6
|
|
|
7
7
|
function setTransform(nodeStyle, value) {
|
|
8
8
|
nodeStyle.transform = value;
|
|
@@ -55,7 +55,7 @@ const PullToRefresh = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
55
55
|
};
|
|
56
56
|
this.init = () => {
|
|
57
57
|
const ele = this.scrollContainer;
|
|
58
|
-
const child = this.el.querySelector('rmc-pull-to-refresh-content');
|
|
58
|
+
const child = this.el.querySelector('.rmc-pull-to-refresh-content');
|
|
59
59
|
this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
|
|
60
60
|
this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
|
|
61
61
|
this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
+
const indexCss = "taro-rich-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}taro-rich-text-core[selectable=true],taro-rich-text-core[user-select=true]{display:block;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}taro-rich-text-core[space]{white-space:pre-wrap}taro-rich-text-core[space=ensp]{word-spacing:0.5em}taro-rich-text-core[space=nbsp]{word-spacing:1em}";
|
|
4
|
+
|
|
3
5
|
const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
4
6
|
constructor() {
|
|
5
7
|
super();
|
|
@@ -51,6 +53,9 @@ const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
51
53
|
return null;
|
|
52
54
|
};
|
|
53
55
|
this.nodes = undefined;
|
|
56
|
+
this.selectable = false;
|
|
57
|
+
this.userSelect = false;
|
|
58
|
+
this.space = undefined;
|
|
54
59
|
}
|
|
55
60
|
render() {
|
|
56
61
|
const { nodes, renderNode } = this;
|
|
@@ -61,8 +66,12 @@ const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
61
66
|
return h(Host, { innerHTML: nodes });
|
|
62
67
|
}
|
|
63
68
|
}
|
|
69
|
+
static get style() { return indexCss; }
|
|
64
70
|
}, [0, "taro-rich-text-core", {
|
|
65
|
-
"nodes": [1]
|
|
71
|
+
"nodes": [1],
|
|
72
|
+
"selectable": [1028],
|
|
73
|
+
"userSelect": [1028, "user-select"],
|
|
74
|
+
"space": [1]
|
|
66
75
|
}]);
|
|
67
76
|
function defineCustomElement$1() {
|
|
68
77
|
if (typeof customElements === "undefined") {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as classnames } from './index2.js';
|
|
3
3
|
import { d as debounce } from './index3.js';
|
|
4
|
+
import { h as handleStencilNodes } from './helper.js';
|
|
4
5
|
|
|
5
6
|
const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
|
|
6
7
|
|
|
@@ -60,6 +61,7 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
60
61
|
this.mpScrollTop = undefined;
|
|
61
62
|
this.mpScrollLeft = undefined;
|
|
62
63
|
this.mpScrollIntoView = undefined;
|
|
64
|
+
this.mpScrollIntoViewAlignment = undefined;
|
|
63
65
|
this.animated = false;
|
|
64
66
|
}
|
|
65
67
|
watchScrollLeft(newVal) {
|
|
@@ -94,6 +96,11 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
94
96
|
scrollWidth
|
|
95
97
|
});
|
|
96
98
|
}
|
|
99
|
+
handleTouchMove(e) {
|
|
100
|
+
if (e instanceof CustomEvent)
|
|
101
|
+
return;
|
|
102
|
+
e.stopPropagation();
|
|
103
|
+
}
|
|
97
104
|
async mpScrollToMethod(object) {
|
|
98
105
|
let { top, left, duration, animated = false } = object;
|
|
99
106
|
if (this.scrollY && typeof top === 'number' && !isNaN(top) && top !== this._scrollTop) {
|
|
@@ -119,9 +126,9 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
119
126
|
var _a;
|
|
120
127
|
if (typeof selector === 'string' && selector) {
|
|
121
128
|
(_a = document.querySelector(`#${selector}`)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
122
|
-
behavior: 'smooth',
|
|
123
|
-
block: 'center',
|
|
124
|
-
inline: 'start'
|
|
129
|
+
behavior: this.animated ? 'smooth' : 'auto',
|
|
130
|
+
block: this.scrollY ? (this.mpScrollIntoViewAlignment || 'center') : 'center',
|
|
131
|
+
inline: this.scrollX ? (this.mpScrollIntoViewAlignment || 'start') : 'start'
|
|
125
132
|
});
|
|
126
133
|
}
|
|
127
134
|
}
|
|
@@ -133,6 +140,9 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
133
140
|
top, left, animated
|
|
134
141
|
});
|
|
135
142
|
}
|
|
143
|
+
componentDidRender() {
|
|
144
|
+
handleStencilNodes(this.el);
|
|
145
|
+
}
|
|
136
146
|
render() {
|
|
137
147
|
const { scrollX, scrollY } = this;
|
|
138
148
|
const cls = classnames({
|
|
@@ -156,10 +166,11 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
156
166
|
"mpScrollTop": [520, "scroll-top"],
|
|
157
167
|
"mpScrollLeft": [520, "scroll-left"],
|
|
158
168
|
"mpScrollIntoView": [513, "scroll-into-view"],
|
|
169
|
+
"mpScrollIntoViewAlignment": [1, "scroll-into-view-alignment"],
|
|
159
170
|
"animated": [4, "scroll-with-animation"],
|
|
160
171
|
"mpScrollToMethod": [64],
|
|
161
172
|
"mpScrollIntoViewMethod": [64]
|
|
162
|
-
}, [[
|
|
173
|
+
}, [[1, "scroll", "handleScroll"], [1, "touchmove", "handleTouchMove"]]]);
|
|
163
174
|
function defineCustomElement$1() {
|
|
164
175
|
if (typeof customElements === "undefined") {
|
|
165
176
|
return;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TaroSnapshotCore extends Components.TaroSnapshotCore, HTMLElement {}
|
|
4
|
+
export const TaroSnapshotCore: {
|
|
5
|
+
prototype: TaroSnapshotCore;
|
|
6
|
+
new (): TaroSnapshotCore;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { n as notSupport } from './helper.js';
|
|
3
|
+
|
|
4
|
+
const Snapshot = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
this.__registerHost();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
notSupport('Snapshot', this);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h(Host, null);
|
|
14
|
+
}
|
|
15
|
+
}, [0, "taro-snapshot-core"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["taro-snapshot-core"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "taro-snapshot-core":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, Snapshot);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const TaroSnapshotCore = Snapshot;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { TaroSnapshotCore, defineCustomElement };
|