@tarojs/components 3.7.0-alpha.0 → 3.7.0-alpha.10
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/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 +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +6 -5
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +7 -12
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +6 -5
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +38 -37
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +2 -2
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- 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 +4 -4
- package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/button/style/index.css +12 -0
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/image/image.js +6 -4
- 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 +0 -1
- 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 +22 -4
- package/dist/collection/components/swiper/swiper-item.js +34 -35
- package/dist/collection/components/swiper/swiper.js +2 -0
- 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/video.js +1 -1
- package/dist/components/hls.js +22697 -24646
- 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-checkbox-core.js +1 -1
- package/dist/components/taro-image-core.js +6 -4
- 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 +5 -3
- package/dist/components/taro-swiper-core.js +2 -0
- package/dist/components/taro-swiper-item-core.js +34 -35
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +1 -1
- package/dist/esm/taro-animation-view-core.entry.js +1 -1
- package/dist/esm/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-channel-live-core.entry.js +1 -1
- package/dist/esm/taro-channel-video-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +4 -4
- package/dist/esm/taro-contact-button-core.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +6 -5
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +7 -12
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm/taro-like-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-login-core.entry.js +1 -1
- package/dist/esm/taro-lottie-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm/taro-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +6 -5
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +38 -37
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +2 -2
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- 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 +4 -4
- package/dist/esm/taro-view-core.entry.js +2 -2
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- 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-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-2bac359b.entry.js → p-0114a2e4.entry.js} +1 -1
- package/dist/taro-components/p-01e163f8.system.entry.js +1 -0
- package/dist/taro-components/{p-4402972b.system.entry.js → p-0517f107.system.entry.js} +1 -1
- package/dist/taro-components/{p-08bb8dfc.system.entry.js → p-052da7f0.system.entry.js} +1 -1
- package/dist/taro-components/{p-8027e1c6.system.entry.js → p-07302165.system.entry.js} +1 -1
- package/dist/taro-components/p-085076c5.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-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-d42e41ff.entry.js → p-137531b6.entry.js} +1 -1
- package/dist/taro-components/{p-8b8a8e39.entry.js → p-139e6251.entry.js} +1 -1
- package/dist/taro-components/{p-1e8c8ae1.entry.js → p-1404c119.entry.js} +1 -1
- package/dist/taro-components/{p-c6e6dab1.system.entry.js → p-1974e52e.system.entry.js} +1 -1
- package/dist/taro-components/{p-6dae898a.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fa36fe8e.system.entry.js → p-1b3d41d3.system.entry.js} +1 -1
- package/dist/taro-components/p-1c4e3899.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-c4fdb669.system.entry.js → p-1f39576a.system.entry.js} +1 -1
- package/dist/taro-components/p-204bd245.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-bac3deb0.system.entry.js → p-227e33fc.system.entry.js} +1 -1
- package/dist/taro-components/{p-1b501f32.system.entry.js → p-2a071adf.system.entry.js} +1 -1
- package/dist/taro-components/{p-38de410e.entry.js → p-2af69b72.entry.js} +1 -1
- package/dist/taro-components/{p-b2bb02d7.system.entry.js → p-2d1b4dcc.system.entry.js} +1 -1
- package/dist/taro-components/{p-c6385fc2.system.entry.js → p-2de2a3fd.system.entry.js} +1 -1
- package/dist/taro-components/p-2ec68968.system.js +7 -0
- package/dist/taro-components/{p-4542b767.entry.js → p-30805bdf.entry.js} +1 -1
- package/dist/taro-components/{p-4190e20b.system.entry.js → p-3094bda6.system.entry.js} +1 -1
- package/dist/taro-components/{p-e753b776.entry.js → p-355e4dbc.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-c3d3eca2.entry.js → p-38ee526a.entry.js} +1 -1
- package/dist/taro-components/{p-dfc405a5.entry.js → p-3d8c9dfb.entry.js} +1 -1
- package/dist/taro-components/{p-38a51bd2.entry.js → p-407ca16e.entry.js} +1 -1
- package/dist/taro-components/{p-69f6784d.system.entry.js → p-416cc4dd.system.entry.js} +1 -1
- 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-27c4878c.entry.js → p-469ee343.entry.js} +1 -1
- package/dist/taro-components/{p-1be83ed3.entry.js → p-46b8f89b.entry.js} +1 -1
- package/dist/taro-components/{p-69fa7272.system.entry.js → p-473afc8e.system.entry.js} +1 -1
- package/dist/taro-components/p-478deb81.entry.js +1 -0
- package/dist/taro-components/p-486d0ec7.entry.js +1 -0
- package/dist/taro-components/{p-c4dd85b6.entry.js → p-50902cd0.entry.js} +1 -1
- package/dist/taro-components/{p-74bf8246.system.entry.js → p-53ef8a6c.system.entry.js} +1 -1
- package/dist/taro-components/{p-c3d35ae5.entry.js → p-5613907c.entry.js} +1 -1
- package/dist/taro-components/{p-9d4fa0d3.system.entry.js → p-5640e9f4.system.entry.js} +1 -1
- package/dist/taro-components/{p-f9ac515e.system.entry.js → p-57b9943c.system.entry.js} +1 -1
- package/dist/taro-components/{p-7c1fc8f5.system.entry.js → p-5c1e6b1c.system.entry.js} +1 -1
- package/dist/taro-components/{p-97782cdd.system.entry.js → p-5dab46cd.system.entry.js} +1 -1
- package/dist/taro-components/{p-b1c972e2.system.entry.js → p-6127b1b6.system.entry.js} +1 -1
- package/dist/taro-components/{p-dcb5b505.system.entry.js → p-657cb6e4.system.entry.js} +1 -1
- package/dist/taro-components/{p-f499c0a0.system.entry.js → p-66b0b419.system.entry.js} +1 -1
- package/dist/taro-components/p-66f7eea6.entry.js +1 -0
- package/dist/taro-components/{p-46244579.system.entry.js → p-69cd1f2a.system.entry.js} +1 -1
- package/dist/taro-components/p-6cde180b.entry.js +1 -0
- package/dist/taro-components/{p-bba8c3a7.system.entry.js → p-6d4b7e5c.system.entry.js} +1 -1
- package/dist/taro-components/{p-11936d9a.entry.js → p-6db97374.entry.js} +1 -1
- package/dist/taro-components/p-6e115968.entry.js +1 -0
- package/dist/taro-components/{p-badfb3be.entry.js → p-6f84e936.entry.js} +1 -1
- package/dist/taro-components/p-71b54f06.entry.js +1 -0
- package/dist/taro-components/p-72b118b0.entry.js +1 -0
- package/dist/taro-components/p-78e4805e.entry.js +1 -0
- package/dist/taro-components/{p-8e5cc8fe.system.entry.js → p-79c3fde3.system.entry.js} +1 -1
- package/dist/taro-components/p-7b3b8057.entry.js +1 -0
- package/dist/taro-components/{p-3c5ac930.entry.js → p-7b68dee8.entry.js} +1 -1
- package/dist/taro-components/p-7d635413.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-be6050fd.system.entry.js → p-7e998213.system.entry.js} +1 -1
- package/dist/taro-components/p-801f09b8.entry.js +1 -0
- package/dist/taro-components/{p-26889f3c.system.entry.js → p-81f2ad70.system.entry.js} +1 -1
- package/dist/taro-components/{p-4514dc53.system.entry.js → p-8201ee31.system.entry.js} +1 -1
- package/dist/taro-components/{p-ef7e7d73.system.entry.js → p-85a7daeb.system.entry.js} +1 -1
- package/dist/taro-components/p-86280254.entry.js +1 -0
- package/dist/taro-components/{p-4d7182f4.system.entry.js → p-88d2b41b.system.entry.js} +1 -1
- package/dist/taro-components/{p-0a165ad3.system.entry.js → p-898db637.system.entry.js} +1 -1
- package/dist/taro-components/{p-05c757b7.entry.js → p-8c0b740e.entry.js} +1 -1
- package/dist/taro-components/{p-95f70aea.system.entry.js → p-90333d0a.system.entry.js} +1 -1
- package/dist/taro-components/p-9046110a.entry.js +1 -0
- package/dist/taro-components/{p-d797cdc4.entry.js → p-904df510.entry.js} +1 -1
- package/dist/taro-components/{p-b1249ebb.system.entry.js → p-907d9d01.system.entry.js} +1 -1
- package/dist/taro-components/{p-b5ad2aec.entry.js → p-962f28cb.entry.js} +1 -1
- package/dist/taro-components/{p-23cb8a7f.entry.js → p-968b7c1d.entry.js} +1 -1
- package/dist/taro-components/p-982bb5bf.entry.js +1 -0
- package/dist/taro-components/{p-58877ef2.system.entry.js → p-98f9f50f.system.entry.js} +1 -1
- package/dist/taro-components/p-9a5fbb2e.entry.js +1 -0
- package/dist/taro-components/{p-51b6fc09.system.entry.js → p-9ac947ac.system.entry.js} +1 -1
- package/dist/taro-components/{p-369fb262.entry.js → p-9aeb7995.entry.js} +1 -1
- package/dist/taro-components/{p-05bc0fce.entry.js → p-9b6550fc.entry.js} +1 -1
- package/dist/taro-components/{p-0a9b984e.system.entry.js → p-9d9ede17.system.entry.js} +1 -1
- package/dist/taro-components/p-9edea30f.system.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-a3a1a779.entry.js +1 -0
- package/dist/taro-components/{p-8d2101be.system.entry.js → p-a4882902.system.entry.js} +1 -1
- package/dist/taro-components/{p-f671ed7d.entry.js → p-a8565231.entry.js} +1 -1
- package/dist/taro-components/{p-9e8619a6.system.entry.js → p-a8925584.system.entry.js} +1 -1
- package/dist/taro-components/p-a8e7cf87.entry.js +1 -0
- package/dist/taro-components/p-a940a65b.entry.js +1 -0
- package/dist/taro-components/{p-da5cdbf5.system.entry.js → p-ab726c20.system.entry.js} +1 -1
- package/dist/taro-components/{p-895cd7c9.system.entry.js → p-af3fa859.system.entry.js} +1 -1
- package/dist/taro-components/{p-8d037fc0.entry.js → p-af8e521a.entry.js} +1 -1
- package/dist/taro-components/p-af9ef8b4.entry.js +1 -0
- package/dist/taro-components/{p-6f048097.system.entry.js → p-afb3895c.system.entry.js} +1 -1
- package/dist/taro-components/{p-58b7e960.entry.js → p-b027181b.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-dccf1ae9.entry.js → p-b235e43c.entry.js} +1 -1
- package/dist/taro-components/p-b4ea72ea.entry.js +1 -0
- package/dist/taro-components/p-b4f3d0ab.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-78c30850.system.entry.js → p-b6d4634f.system.entry.js} +1 -1
- package/dist/taro-components/p-ba3b2aa5.system.entry.js +1 -0
- package/dist/taro-components/{p-c70dd956.system.entry.js → p-bcf80126.system.entry.js} +1 -1
- package/dist/taro-components/p-bdc30301.entry.js +1 -0
- package/dist/taro-components/{p-c2c498d9.entry.js → p-bf0e0394.entry.js} +1 -1
- package/dist/taro-components/{p-e3f8265d.system.entry.js → p-c1073ed6.system.entry.js} +1 -1
- package/dist/taro-components/p-c11a42e0.entry.js +1 -0
- package/dist/taro-components/p-c39a46ca.system.entry.js +1 -0
- package/dist/taro-components/{p-1493866a.entry.js → p-c4b8851b.entry.js} +1 -1
- package/dist/taro-components/{p-9318da32.entry.js → p-cc164fa3.entry.js} +1 -1
- package/dist/taro-components/{p-736053bb.system.entry.js → p-cc70bb7a.system.entry.js} +1 -1
- package/dist/taro-components/p-ce33f1f3.entry.js +1 -0
- package/dist/taro-components/p-d34a6c04.entry.js +1 -0
- package/dist/taro-components/{p-7df9de66.system.entry.js → p-da239b8b.system.entry.js} +1 -1
- package/dist/taro-components/p-dab28e1f.system.entry.js +1 -0
- package/dist/taro-components/p-de951a46.js +7 -0
- package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
- package/dist/taro-components/{p-79c41bc2.entry.js → p-e33f3592.entry.js} +1 -1
- package/dist/taro-components/p-e3480c4c.entry.js +1 -0
- package/dist/taro-components/{p-087bf23a.system.entry.js → p-e53508c1.system.entry.js} +1 -1
- 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-e78775ce.system.js +1 -0
- package/dist/taro-components/{p-518146fd.system.entry.js → p-eaa370a9.system.entry.js} +1 -1
- package/dist/taro-components/p-ebc7b6fc.entry.js +1 -0
- package/dist/taro-components/{p-02aa7366.system.entry.js → p-ebdd350f.system.entry.js} +1 -1
- package/dist/taro-components/p-ed331c06.system.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-c586a796.system.entry.js → p-f11c9c37.system.entry.js} +1 -1
- package/dist/taro-components/{p-1941d333.system.entry.js → p-f420680c.system.entry.js} +1 -1
- package/dist/taro-components/p-f533bc2f.entry.js +1 -0
- package/dist/taro-components/{p-30fe0e81.system.entry.js → p-f534057e.system.entry.js} +1 -1
- package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
- package/dist/taro-components/{p-17302fe9.system.entry.js → p-f7927285.system.entry.js} +1 -1
- package/dist/taro-components/p-f7b32c6b.entry.js +1 -0
- package/dist/taro-components/{p-33223303.system.entry.js → p-fa0f6dab.system.entry.js} +1 -1
- package/dist/taro-components/{p-1c320250.system.entry.js → p-fa6c022a.system.entry.js} +1 -1
- package/dist/taro-components/p-fb983850.entry.js +1 -0
- package/dist/taro-components/{p-0939fd26.system.entry.js → p-fd7ff0f3.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/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 +1 -0
- 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 +28 -8
- 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 +81 -83
- package/lib/react/components.js +2 -2
- 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/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 +10 -3
- package/lib/vue2/components.js +13 -6
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.d.ts +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 +81 -81
- package/lib/vue3/components.js +14 -6
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.d.ts +1 -1
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +13 -11
- package/types/Button.d.ts +71 -8
- package/types/ChannelVideo.d.ts +4 -0
- package/types/Form.d.ts +11 -0
- package/types/Image.d.ts +5 -0
- package/types/Input.d.ts +6 -1
- package/types/LivePlayer.d.ts +17 -0
- package/types/LivePusher.d.ts +10 -0
- 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 +7 -7
- package/types/ShareElement.d.ts +39 -0
- package/types/StickySection.d.ts +0 -1
- 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 +12 -0
- package/types/View.d.ts +1 -1
- package/types/index.vue3.d.ts +18 -9
- package/virtual-list/index.js +2 -2
- package/dist/cjs/hls-67cbc62d.js +0 -27622
- package/dist/esm/hls-221423a1.js +0 -27620
- 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-07293238.entry.js +0 -1
- package/dist/taro-components/p-0b8b3af5.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-16e03200.entry.js +0 -1
- package/dist/taro-components/p-1743a04b.system.js +0 -365
- package/dist/taro-components/p-1c446c65.system.js +0 -1
- package/dist/taro-components/p-22dc57d4.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-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-429a0f99.entry.js +0 -1
- package/dist/taro-components/p-42bcb98a.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-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-6de6eb4e.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-76724e58.js +0 -7
- package/dist/taro-components/p-80970d8f.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-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-b708e9fe.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-d5234e7e.js +0 -365
- package/dist/taro-components/p-e2f2fbe5.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-efcfdb97.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentInterface, Event, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { TaroEvent } from '../../../types';
|
|
2
|
+
import type { TaroEvent } from '../../../types';
|
|
3
3
|
export declare class Input implements ComponentInterface {
|
|
4
4
|
private inputRef;
|
|
5
5
|
private isOnComposition;
|
|
@@ -36,6 +36,6 @@ export declare class Input implements ComponentInterface {
|
|
|
36
36
|
handleChange: (e: TaroEvent<HTMLInputElement>) => void;
|
|
37
37
|
handleKeyDown: (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => void;
|
|
38
38
|
handleComposition: (e: Event) => void;
|
|
39
|
-
|
|
39
|
+
handleBeforeInput: (e: any) => void;
|
|
40
40
|
render(): any;
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
1
|
+
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class TaroPickerGroup implements ComponentInterface {
|
|
3
3
|
mode: 'time' | 'date';
|
|
4
4
|
range: any[];
|
|
@@ -6,13 +6,13 @@ export declare class TaroPickerGroup implements ComponentInterface {
|
|
|
6
6
|
height: number;
|
|
7
7
|
columnId: string;
|
|
8
8
|
updateHeight: (height: number, columnId: string, needRevise?: boolean) => void;
|
|
9
|
-
|
|
10
|
-
updateDay: (value: number, fields: number) => void;
|
|
9
|
+
updateDay?: (value: number, fields: number) => void;
|
|
11
10
|
startY: number;
|
|
12
11
|
preY: number;
|
|
13
12
|
hadMove: boolean;
|
|
14
13
|
touchEnd: boolean;
|
|
15
14
|
isMove: boolean;
|
|
15
|
+
onColumnChange: EventEmitter;
|
|
16
16
|
getPosition(): {
|
|
17
17
|
transform: string;
|
|
18
18
|
'-webkit-transform': string;
|
|
@@ -2,6 +2,10 @@ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export type Mode = 'selector' | 'multiSelector' | 'time' | 'date';
|
|
3
3
|
export type Fields = 'day' | 'month' | 'year';
|
|
4
4
|
export type PickerValue = number | number[] | string;
|
|
5
|
+
export interface PickerText {
|
|
6
|
+
okText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
}
|
|
5
9
|
export interface PickerDate {
|
|
6
10
|
_value: Date;
|
|
7
11
|
_start: Date;
|
|
@@ -17,11 +21,12 @@ export declare class Picker implements ComponentInterface {
|
|
|
17
21
|
disabled: boolean;
|
|
18
22
|
range: any[];
|
|
19
23
|
rangeKey: string;
|
|
20
|
-
value:
|
|
24
|
+
value: PickerValue;
|
|
21
25
|
start: string;
|
|
22
26
|
end: string;
|
|
23
27
|
fields: Fields;
|
|
24
28
|
name: string;
|
|
29
|
+
textProps: PickerText;
|
|
25
30
|
pickerValue: PickerValue;
|
|
26
31
|
height: number[];
|
|
27
32
|
hidden: boolean;
|
|
@@ -39,9 +44,9 @@ export declare class Picker implements ComponentInterface {
|
|
|
39
44
|
getHeightByIndex: () => number[];
|
|
40
45
|
hidePicker: () => void;
|
|
41
46
|
handleChange: () => void;
|
|
47
|
+
handleColumnChange: (e: CustomEvent) => void;
|
|
42
48
|
handleCancel: () => void;
|
|
43
49
|
updateHeight: (height: number, columnId: string, needRevise?: boolean) => void;
|
|
44
|
-
handleColumnChange: (height: number, columnId: string) => void;
|
|
45
50
|
updateDay: (value: number, fields: number) => void;
|
|
46
51
|
getSelector: () => any;
|
|
47
52
|
getMultiSelector: () => any[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import type { TextProps } from 'types';
|
|
2
3
|
interface Attributes {
|
|
3
4
|
[propName: string]: string | {
|
|
4
5
|
[propName: string]: string;
|
|
@@ -18,6 +19,9 @@ type StringType = string;
|
|
|
18
19
|
export type Nodes = ElementType[] | StringType;
|
|
19
20
|
export declare class RichText implements ComponentInterface {
|
|
20
21
|
nodes: Nodes;
|
|
22
|
+
selectable: boolean;
|
|
23
|
+
userSelect: boolean;
|
|
24
|
+
space?: keyof TextProps.TSpace;
|
|
21
25
|
renderNode: (node: ElementType) => string | import("@stencil/core").VNode | null;
|
|
22
26
|
render(): any;
|
|
23
27
|
}
|
|
@@ -11,6 +11,7 @@ export declare class ScrollView implements ComponentInterface {
|
|
|
11
11
|
mpScrollTop: number | string;
|
|
12
12
|
mpScrollLeft: number | string;
|
|
13
13
|
mpScrollIntoView: string;
|
|
14
|
+
mpScrollIntoViewAlignment: 'start' | 'center' | 'end' | 'nearest';
|
|
14
15
|
animated: boolean;
|
|
15
16
|
onScroll: EventEmitter;
|
|
16
17
|
onScrollToUpper: EventEmitter;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import type { TextProps } from 'types';
|
|
2
3
|
export declare class Text implements ComponentInterface {
|
|
3
4
|
selectable: boolean;
|
|
5
|
+
userSelect: boolean;
|
|
6
|
+
space?: keyof TextProps.TSpace;
|
|
7
|
+
numberOfLines?: number;
|
|
4
8
|
render(): any;
|
|
5
9
|
}
|
|
@@ -21,7 +21,6 @@ export declare class Textarea implements ComponentInterface {
|
|
|
21
21
|
onKeyDown: EventEmitter;
|
|
22
22
|
watchAutoFocus(newValue: boolean, oldValue: boolean): void;
|
|
23
23
|
focus(): Promise<void>;
|
|
24
|
-
componentDidLoad(): void;
|
|
25
24
|
handleInput: (e: TaroEvent<HTMLInputElement>) => void;
|
|
26
25
|
handleFocus: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
|
|
27
26
|
handleBlur: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Type } from "./components/icon/icon";
|
|
9
9
|
import { Mode } from "./components/image/image";
|
|
10
|
-
import { Fields, Mode as Mode1 } from "./components/picker/picker";
|
|
10
|
+
import { Fields, Mode as Mode1, PickerText, PickerValue } from "./components/picker/picker";
|
|
11
11
|
import { Nodes } from "./components/rich-text/rich-text";
|
|
12
|
+
import { TextProps } from "types";
|
|
12
13
|
import { ScrollViewContext } from "@tarojs/taro";
|
|
13
14
|
import { Conf } from "./components/tabbar/tabbar";
|
|
14
15
|
import { Danmu } from "./components/video/video-danmu";
|
|
@@ -63,7 +64,7 @@ export namespace Components {
|
|
|
63
64
|
"id": string;
|
|
64
65
|
"name": string;
|
|
65
66
|
"nativeProps": {};
|
|
66
|
-
"value": string;
|
|
67
|
+
"value": string | number;
|
|
67
68
|
}
|
|
68
69
|
interface TaroCheckboxGroupCore {
|
|
69
70
|
"name": any;
|
|
@@ -250,7 +251,8 @@ export namespace Components {
|
|
|
250
251
|
"range": any[];
|
|
251
252
|
"rangeKey": string;
|
|
252
253
|
"start": string;
|
|
253
|
-
"
|
|
254
|
+
"textProps": PickerText;
|
|
255
|
+
"value": PickerValue;
|
|
254
256
|
}
|
|
255
257
|
interface TaroPickerGroup {
|
|
256
258
|
"columnId": string;
|
|
@@ -259,10 +261,9 @@ export namespace Components {
|
|
|
259
261
|
"handleMoving": (clientY: number) => Promise<void>;
|
|
260
262
|
"height": number;
|
|
261
263
|
"mode": 'time' | 'date';
|
|
262
|
-
"onColumnChange": (height: number, columnId: string) => void;
|
|
263
264
|
"range": any[];
|
|
264
265
|
"rangeKey": string;
|
|
265
|
-
"updateDay"
|
|
266
|
+
"updateDay"?: (value: number, fields: number) => void;
|
|
266
267
|
"updateHeight": (height: number, columnId: string, needRevise?: boolean) => void;
|
|
267
268
|
}
|
|
268
269
|
interface TaroPickerViewColumnCore {
|
|
@@ -306,6 +307,9 @@ export namespace Components {
|
|
|
306
307
|
}
|
|
307
308
|
interface TaroRichTextCore {
|
|
308
309
|
"nodes": Nodes;
|
|
310
|
+
"selectable": boolean;
|
|
311
|
+
"space"?: keyof TextProps.TSpace;
|
|
312
|
+
"userSelect": boolean;
|
|
309
313
|
}
|
|
310
314
|
interface TaroRootPortalCore {
|
|
311
315
|
}
|
|
@@ -317,6 +321,7 @@ export namespace Components {
|
|
|
317
321
|
"animated": boolean;
|
|
318
322
|
"lowerThreshold": number | string;
|
|
319
323
|
"mpScrollIntoView": string;
|
|
324
|
+
"mpScrollIntoViewAlignment": 'start' | 'center' | 'end' | 'nearest';
|
|
320
325
|
"mpScrollIntoViewMethod": (selector: string) => Promise<void>;
|
|
321
326
|
"mpScrollLeft": number | string;
|
|
322
327
|
"mpScrollToMethod": (object: ScrollViewContext.scrollTo.Option) => Promise<void>;
|
|
@@ -423,7 +428,10 @@ export namespace Components {
|
|
|
423
428
|
interface TaroTabsCore {
|
|
424
429
|
}
|
|
425
430
|
interface TaroTextCore {
|
|
431
|
+
"numberOfLines"?: number;
|
|
426
432
|
"selectable": boolean;
|
|
433
|
+
"space"?: keyof TextProps.TSpace;
|
|
434
|
+
"userSelect": boolean;
|
|
427
435
|
}
|
|
428
436
|
interface TaroTextareaCore {
|
|
429
437
|
"autoFocus": boolean;
|
|
@@ -632,6 +640,10 @@ export interface TaroPickerCoreCustomEvent<T> extends CustomEvent<T> {
|
|
|
632
640
|
detail: T;
|
|
633
641
|
target: HTMLTaroPickerCoreElement;
|
|
634
642
|
}
|
|
643
|
+
export interface TaroPickerGroupCustomEvent<T> extends CustomEvent<T> {
|
|
644
|
+
detail: T;
|
|
645
|
+
target: HTMLTaroPickerGroupElement;
|
|
646
|
+
}
|
|
635
647
|
export interface TaroPickerViewColumnCoreCustomEvent<T> extends CustomEvent<T> {
|
|
636
648
|
detail: T;
|
|
637
649
|
target: HTMLTaroPickerViewColumnCoreElement;
|
|
@@ -1331,7 +1343,7 @@ declare namespace LocalJSX {
|
|
|
1331
1343
|
"name"?: string;
|
|
1332
1344
|
"nativeProps"?: {};
|
|
1333
1345
|
"onCheckboxchange"?: (event: TaroCheckboxCoreCustomEvent<any>) => void;
|
|
1334
|
-
"value"?: string;
|
|
1346
|
+
"value"?: string | number;
|
|
1335
1347
|
}
|
|
1336
1348
|
interface TaroCheckboxGroupCore {
|
|
1337
1349
|
"name"?: any;
|
|
@@ -1541,13 +1553,14 @@ declare namespace LocalJSX {
|
|
|
1541
1553
|
"range"?: any[];
|
|
1542
1554
|
"rangeKey"?: string;
|
|
1543
1555
|
"start"?: string;
|
|
1544
|
-
"
|
|
1556
|
+
"textProps"?: PickerText;
|
|
1557
|
+
"value"?: PickerValue;
|
|
1545
1558
|
}
|
|
1546
1559
|
interface TaroPickerGroup {
|
|
1547
1560
|
"columnId"?: string;
|
|
1548
1561
|
"height"?: number;
|
|
1549
1562
|
"mode"?: 'time' | 'date';
|
|
1550
|
-
"onColumnChange"?: (
|
|
1563
|
+
"onColumnChange"?: (event: TaroPickerGroupCustomEvent<any>) => void;
|
|
1551
1564
|
"range"?: any[];
|
|
1552
1565
|
"rangeKey"?: string;
|
|
1553
1566
|
"updateDay"?: (value: number, fields: number) => void;
|
|
@@ -1603,6 +1616,9 @@ declare namespace LocalJSX {
|
|
|
1603
1616
|
}
|
|
1604
1617
|
interface TaroRichTextCore {
|
|
1605
1618
|
"nodes"?: Nodes;
|
|
1619
|
+
"selectable"?: boolean;
|
|
1620
|
+
"space"?: keyof TextProps.TSpace;
|
|
1621
|
+
"userSelect"?: boolean;
|
|
1606
1622
|
}
|
|
1607
1623
|
interface TaroRootPortalCore {
|
|
1608
1624
|
}
|
|
@@ -1614,6 +1630,7 @@ declare namespace LocalJSX {
|
|
|
1614
1630
|
"animated"?: boolean;
|
|
1615
1631
|
"lowerThreshold"?: number | string;
|
|
1616
1632
|
"mpScrollIntoView"?: string;
|
|
1633
|
+
"mpScrollIntoViewAlignment"?: 'start' | 'center' | 'end' | 'nearest';
|
|
1617
1634
|
"mpScrollLeft"?: number | string;
|
|
1618
1635
|
"mpScrollTop"?: number | string;
|
|
1619
1636
|
"onScroll"?: (event: TaroScrollViewCoreCustomEvent<any>) => void;
|
|
@@ -1727,7 +1744,10 @@ declare namespace LocalJSX {
|
|
|
1727
1744
|
interface TaroTabsCore {
|
|
1728
1745
|
}
|
|
1729
1746
|
interface TaroTextCore {
|
|
1747
|
+
"numberOfLines"?: number;
|
|
1730
1748
|
"selectable"?: boolean;
|
|
1749
|
+
"space"?: keyof TextProps.TSpace;
|
|
1750
|
+
"userSelect"?: boolean;
|
|
1731
1751
|
}
|
|
1732
1752
|
interface TaroTextareaCore {
|
|
1733
1753
|
"autoFocus"?: boolean;
|
|
@@ -52,4 +52,4 @@ declare const Block: import("react").ExoticComponent<{
|
|
|
52
52
|
}>;
|
|
53
53
|
declare const CustomWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
54
54
|
export { CoverImage, CoverView, MatchMedia, MovableArea, MovableView, PageContainer, RootPortal, ScrollView, ShareElement, Swiper, SwiperItem, View, Icon, Progress, RichText, Text, Button, Checkbox, CheckboxGroup, Editor, Form, KeyboardAccessory, Label, Picker, PickerView, PickerViewColumn, Radio, RadioGroup, Slider, Switch, Textarea, FunctionalPageNavigator, Navigator, NavigationBar, Audio, Camera, Image, LivePlayer, LivePusher, Video, VoipRoom, Map, Canvas, Ad, AdCustom, OfficialAccount, OpenData, WebView, PageMeta, Block, CustomWrapper };
|
|
55
|
-
export { default as Input } from "./input";
|
|
55
|
+
export { default as Input } from "./input.js";
|
|
@@ -3,66 +3,66 @@ import reactifyWebComponent from './reactify-wc.js';
|
|
|
3
3
|
export { default as Input } from './input.js';
|
|
4
4
|
|
|
5
5
|
// 视图容器
|
|
6
|
-
const CoverImage = reactifyWebComponent('taro-cover-image-core');
|
|
7
|
-
const CoverView = reactifyWebComponent('taro-cover-view-core');
|
|
8
|
-
const MatchMedia = reactifyWebComponent('taro-match-media-core');
|
|
9
|
-
const MovableArea = reactifyWebComponent('taro-movable-area-core');
|
|
10
|
-
const MovableView = reactifyWebComponent('taro-movable-view-core');
|
|
11
|
-
const PageContainer = reactifyWebComponent('taro-page-container-core');
|
|
12
|
-
const RootPortal = reactifyWebComponent('taro-root-portal-core');
|
|
13
|
-
const ScrollView = reactifyWebComponent('taro-scroll-view-core');
|
|
14
|
-
const ShareElement = reactifyWebComponent('taro-share-element-core');
|
|
15
|
-
const Swiper = reactifyWebComponent('taro-swiper-core');
|
|
16
|
-
const SwiperItem = reactifyWebComponent('taro-swiper-item-core');
|
|
17
|
-
const View = reactifyWebComponent('taro-view-core');
|
|
6
|
+
const CoverImage = /* @__PURE__ */ reactifyWebComponent('taro-cover-image-core');
|
|
7
|
+
const CoverView = /* @__PURE__ */ reactifyWebComponent('taro-cover-view-core');
|
|
8
|
+
const MatchMedia = /* @__PURE__ */ reactifyWebComponent('taro-match-media-core');
|
|
9
|
+
const MovableArea = /* @__PURE__ */ reactifyWebComponent('taro-movable-area-core');
|
|
10
|
+
const MovableView = /* @__PURE__ */ reactifyWebComponent('taro-movable-view-core');
|
|
11
|
+
const PageContainer = /* @__PURE__ */ reactifyWebComponent('taro-page-container-core');
|
|
12
|
+
const RootPortal = /* @__PURE__ */ reactifyWebComponent('taro-root-portal-core');
|
|
13
|
+
const ScrollView = /* @__PURE__ */ reactifyWebComponent('taro-scroll-view-core');
|
|
14
|
+
const ShareElement = /* @__PURE__ */ reactifyWebComponent('taro-share-element-core');
|
|
15
|
+
const Swiper = /* @__PURE__ */ reactifyWebComponent('taro-swiper-core');
|
|
16
|
+
const SwiperItem = /* @__PURE__ */ reactifyWebComponent('taro-swiper-item-core');
|
|
17
|
+
const View = /* @__PURE__ */ reactifyWebComponent('taro-view-core');
|
|
18
18
|
// 基础内容
|
|
19
|
-
const Icon = reactifyWebComponent('taro-icon-core');
|
|
20
|
-
const Progress = reactifyWebComponent('taro-progress-core');
|
|
21
|
-
const RichText = reactifyWebComponent('taro-rich-text-core');
|
|
22
|
-
const Text = reactifyWebComponent('taro-text-core');
|
|
19
|
+
const Icon = /* @__PURE__ */ reactifyWebComponent('taro-icon-core');
|
|
20
|
+
const Progress = /* @__PURE__ */ reactifyWebComponent('taro-progress-core');
|
|
21
|
+
const RichText = /* @__PURE__ */ reactifyWebComponent('taro-rich-text-core');
|
|
22
|
+
const Text = /* @__PURE__ */ reactifyWebComponent('taro-text-core');
|
|
23
23
|
// 表单组件
|
|
24
|
-
const Button = reactifyWebComponent('taro-button-core');
|
|
25
|
-
const Checkbox = reactifyWebComponent('taro-checkbox-core');
|
|
26
|
-
const CheckboxGroup = reactifyWebComponent('taro-checkbox-group-core');
|
|
27
|
-
const Editor = reactifyWebComponent('taro-editor-core');
|
|
28
|
-
const Form = reactifyWebComponent('taro-form-core');
|
|
29
|
-
const KeyboardAccessory = reactifyWebComponent('taro-keyboard-accessory-core');
|
|
30
|
-
const Label = reactifyWebComponent('taro-label-core');
|
|
31
|
-
const Picker = reactifyWebComponent('taro-picker-core');
|
|
32
|
-
const PickerView = reactifyWebComponent('taro-picker-view-core');
|
|
33
|
-
const PickerViewColumn = reactifyWebComponent('taro-picker-view-column-core');
|
|
34
|
-
const Radio = reactifyWebComponent('taro-radio-core');
|
|
35
|
-
const RadioGroup = reactifyWebComponent('taro-radio-group-core');
|
|
36
|
-
const Slider = reactifyWebComponent('taro-slider-core');
|
|
37
|
-
const Switch = reactifyWebComponent('taro-switch-core');
|
|
38
|
-
const Textarea = reactifyWebComponent('taro-textarea-core');
|
|
24
|
+
const Button = /* @__PURE__ */ reactifyWebComponent('taro-button-core');
|
|
25
|
+
const Checkbox = /* @__PURE__ */ reactifyWebComponent('taro-checkbox-core');
|
|
26
|
+
const CheckboxGroup = /* @__PURE__ */ reactifyWebComponent('taro-checkbox-group-core');
|
|
27
|
+
const Editor = /* @__PURE__ */ reactifyWebComponent('taro-editor-core');
|
|
28
|
+
const Form = /* @__PURE__ */ reactifyWebComponent('taro-form-core');
|
|
29
|
+
const KeyboardAccessory = /* @__PURE__ */ reactifyWebComponent('taro-keyboard-accessory-core');
|
|
30
|
+
const Label = /* @__PURE__ */ reactifyWebComponent('taro-label-core');
|
|
31
|
+
const Picker = /* @__PURE__ */ reactifyWebComponent('taro-picker-core');
|
|
32
|
+
const PickerView = /* @__PURE__ */ reactifyWebComponent('taro-picker-view-core');
|
|
33
|
+
const PickerViewColumn = /* @__PURE__ */ reactifyWebComponent('taro-picker-view-column-core');
|
|
34
|
+
const Radio = /* @__PURE__ */ reactifyWebComponent('taro-radio-core');
|
|
35
|
+
const RadioGroup = /* @__PURE__ */ reactifyWebComponent('taro-radio-group-core');
|
|
36
|
+
const Slider = /* @__PURE__ */ reactifyWebComponent('taro-slider-core');
|
|
37
|
+
const Switch = /* @__PURE__ */ reactifyWebComponent('taro-switch-core');
|
|
38
|
+
const Textarea = /* @__PURE__ */ reactifyWebComponent('taro-textarea-core');
|
|
39
39
|
// 导航
|
|
40
|
-
const FunctionalPageNavigator = reactifyWebComponent('taro-functional-page-navigator-core');
|
|
41
|
-
const Navigator = reactifyWebComponent('taro-navigator-core');
|
|
42
|
-
const NavigationBar = reactifyWebComponent('taro-navigation-bar-core');
|
|
40
|
+
const FunctionalPageNavigator = /* @__PURE__ */ reactifyWebComponent('taro-functional-page-navigator-core');
|
|
41
|
+
const Navigator = /* @__PURE__ */ reactifyWebComponent('taro-navigator-core');
|
|
42
|
+
const NavigationBar = /* @__PURE__ */ reactifyWebComponent('taro-navigation-bar-core');
|
|
43
43
|
// 媒体组件
|
|
44
|
-
const Audio = reactifyWebComponent('taro-audio-core');
|
|
45
|
-
const Camera = reactifyWebComponent('taro-camera-core');
|
|
46
|
-
const Image = reactifyWebComponent('taro-image-core');
|
|
47
|
-
const LivePlayer = reactifyWebComponent('taro-live-player-core');
|
|
48
|
-
const LivePusher = reactifyWebComponent('taro-live-pusher-core');
|
|
49
|
-
const Video = reactifyWebComponent('taro-video-core');
|
|
50
|
-
const VoipRoom = reactifyWebComponent('taro-voip-room-core');
|
|
44
|
+
const Audio = /* @__PURE__ */ reactifyWebComponent('taro-audio-core');
|
|
45
|
+
const Camera = /* @__PURE__ */ reactifyWebComponent('taro-camera-core');
|
|
46
|
+
const Image = /* @__PURE__ */ reactifyWebComponent('taro-image-core');
|
|
47
|
+
const LivePlayer = /* @__PURE__ */ reactifyWebComponent('taro-live-player-core');
|
|
48
|
+
const LivePusher = /* @__PURE__ */ reactifyWebComponent('taro-live-pusher-core');
|
|
49
|
+
const Video = /* @__PURE__ */ reactifyWebComponent('taro-video-core');
|
|
50
|
+
const VoipRoom = /* @__PURE__ */ reactifyWebComponent('taro-voip-room-core');
|
|
51
51
|
// 地图
|
|
52
|
-
const Map = reactifyWebComponent('taro-map-core');
|
|
52
|
+
const Map = /* @__PURE__ */ reactifyWebComponent('taro-map-core');
|
|
53
53
|
// 画布
|
|
54
|
-
const Canvas = reactifyWebComponent('taro-canvas-core');
|
|
54
|
+
const Canvas = /* @__PURE__ */ reactifyWebComponent('taro-canvas-core');
|
|
55
55
|
// 开放能力
|
|
56
|
-
const Ad = reactifyWebComponent('taro-ad-core');
|
|
57
|
-
const AdCustom = reactifyWebComponent('taro-ad-custom-core');
|
|
58
|
-
const OfficialAccount = reactifyWebComponent('taro-official-account-core');
|
|
59
|
-
const OpenData = reactifyWebComponent('taro-open-data-core');
|
|
60
|
-
const WebView = reactifyWebComponent('taro-web-view-core');
|
|
56
|
+
const Ad = /* @__PURE__ */ reactifyWebComponent('taro-ad-core');
|
|
57
|
+
const AdCustom = /* @__PURE__ */ reactifyWebComponent('taro-ad-custom-core');
|
|
58
|
+
const OfficialAccount = /* @__PURE__ */ reactifyWebComponent('taro-official-account-core');
|
|
59
|
+
const OpenData = /* @__PURE__ */ reactifyWebComponent('taro-open-data-core');
|
|
60
|
+
const WebView = /* @__PURE__ */ reactifyWebComponent('taro-web-view-core');
|
|
61
61
|
// 页面属性配置节点
|
|
62
|
-
const PageMeta = reactifyWebComponent('taro-page-meta-core');
|
|
62
|
+
const PageMeta = /* @__PURE__ */ reactifyWebComponent('taro-page-meta-core');
|
|
63
63
|
// 其他
|
|
64
64
|
const Block = Fragment;
|
|
65
|
-
const CustomWrapper = reactifyWebComponent('taro-custom-wrapper-core');
|
|
65
|
+
const CustomWrapper = /* @__PURE__ */ reactifyWebComponent('taro-custom-wrapper-core');
|
|
66
66
|
|
|
67
67
|
export { Ad, AdCustom, Audio, Block, Button, Camera, Canvas, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, Editor, Form, FunctionalPageNavigator, Icon, Image, KeyboardAccessory, Label, LivePlayer, LivePusher, Map, MatchMedia, MovableArea, MovableView, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScrollView, ShareElement, Slider, Swiper, SwiperItem, Switch, Text, Textarea, Video, View, VoipRoom, WebView };
|
|
68
68
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../taro-components-library-react/src/component-lib/index.ts"],"sourcesContent":["import { Fragment } from 'react'\n\nimport reactifyWc from './reactify-wc'\n\n// 视图容器\nexport const CoverImage = reactifyWc('taro-cover-image-core')\nexport const CoverView = reactifyWc('taro-cover-view-core')\nexport const MatchMedia = reactifyWc('taro-match-media-core')\nexport const MovableArea = reactifyWc('taro-movable-area-core')\nexport const MovableView = reactifyWc('taro-movable-view-core')\nexport const PageContainer = reactifyWc('taro-page-container-core')\nexport const RootPortal = reactifyWc('taro-root-portal-core')\nexport const ScrollView = reactifyWc('taro-scroll-view-core')\nexport const ShareElement = reactifyWc('taro-share-element-core')\nexport const Swiper = reactifyWc('taro-swiper-core')\nexport const SwiperItem = reactifyWc('taro-swiper-item-core')\nexport const View = reactifyWc('taro-view-core')\n\n// 基础内容\nexport const Icon = reactifyWc('taro-icon-core')\nexport const Progress = reactifyWc('taro-progress-core')\nexport const RichText = reactifyWc('taro-rich-text-core')\nexport const Text = reactifyWc('taro-text-core')\n\n// 表单组件\nexport const Button = reactifyWc('taro-button-core')\nexport const Checkbox = reactifyWc('taro-checkbox-core')\nexport const CheckboxGroup = reactifyWc('taro-checkbox-group-core')\nexport const Editor = reactifyWc('taro-editor-core')\nexport const Form = reactifyWc('taro-form-core')\nexport { default as Input } from './input'\nexport const KeyboardAccessory = reactifyWc('taro-keyboard-accessory-core')\nexport const Label = reactifyWc('taro-label-core')\nexport const Picker = reactifyWc('taro-picker-core')\nexport const PickerView = reactifyWc('taro-picker-view-core')\nexport const PickerViewColumn = reactifyWc('taro-picker-view-column-core')\nexport const Radio = reactifyWc('taro-radio-core')\nexport const RadioGroup = reactifyWc('taro-radio-group-core')\nexport const Slider = reactifyWc('taro-slider-core')\nexport const Switch = reactifyWc('taro-switch-core')\nexport const Textarea = reactifyWc('taro-textarea-core')\n\n// 导航\nexport const FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core')\nexport const Navigator = reactifyWc('taro-navigator-core')\nexport const NavigationBar = reactifyWc('taro-navigation-bar-core')\n\n// 媒体组件\nexport const Audio = reactifyWc('taro-audio-core')\nexport const Camera = reactifyWc('taro-camera-core')\nexport const Image = reactifyWc('taro-image-core')\nexport const LivePlayer = reactifyWc('taro-live-player-core')\nexport const LivePusher = reactifyWc('taro-live-pusher-core')\nexport const Video = reactifyWc('taro-video-core')\nexport const VoipRoom = reactifyWc('taro-voip-room-core')\n\n// 地图\nexport const Map = reactifyWc('taro-map-core')\n\n// 画布\nexport const Canvas = reactifyWc('taro-canvas-core')\n\n// 开放能力\nexport const Ad = reactifyWc('taro-ad-core')\nexport const AdCustom = reactifyWc('taro-ad-custom-core')\nexport const OfficialAccount = reactifyWc('taro-official-account-core')\nexport const OpenData = reactifyWc('taro-open-data-core')\nexport const WebView = reactifyWc('taro-web-view-core')\n\n// 页面属性配置节点\nexport const PageMeta = reactifyWc('taro-page-meta-core')\n\n// 其他\nexport const Block = Fragment\nexport const CustomWrapper = reactifyWc('taro-custom-wrapper-core')\n"],"names":["reactifyWc"],"mappings":";;;;AAIA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../taro-components-library-react/src/component-lib/index.ts"],"sourcesContent":["import { Fragment } from 'react'\n\nimport reactifyWc from './reactify-wc'\n\n// 视图容器\nexport const CoverImage = /* @__PURE__ */ reactifyWc('taro-cover-image-core')\nexport const CoverView = /* @__PURE__ */ reactifyWc('taro-cover-view-core')\nexport const MatchMedia = /* @__PURE__ */ reactifyWc('taro-match-media-core')\nexport const MovableArea = /* @__PURE__ */ reactifyWc('taro-movable-area-core')\nexport const MovableView = /* @__PURE__ */ reactifyWc('taro-movable-view-core')\nexport const PageContainer = /* @__PURE__ */ reactifyWc('taro-page-container-core')\nexport const RootPortal = /* @__PURE__ */ reactifyWc('taro-root-portal-core')\nexport const ScrollView = /* @__PURE__ */ reactifyWc('taro-scroll-view-core')\nexport const ShareElement = /* @__PURE__ */ reactifyWc('taro-share-element-core')\nexport const Swiper = /* @__PURE__ */ reactifyWc('taro-swiper-core')\nexport const SwiperItem = /* @__PURE__ */ reactifyWc('taro-swiper-item-core')\nexport const View = /* @__PURE__ */ reactifyWc('taro-view-core')\n\n// 基础内容\nexport const Icon = /* @__PURE__ */ reactifyWc('taro-icon-core')\nexport const Progress = /* @__PURE__ */ reactifyWc('taro-progress-core')\nexport const RichText = /* @__PURE__ */ reactifyWc('taro-rich-text-core')\nexport const Text = /* @__PURE__ */ reactifyWc('taro-text-core')\n\n// 表单组件\nexport const Button = /* @__PURE__ */ reactifyWc('taro-button-core')\nexport const Checkbox = /* @__PURE__ */ reactifyWc('taro-checkbox-core')\nexport const CheckboxGroup = /* @__PURE__ */ reactifyWc('taro-checkbox-group-core')\nexport const Editor = /* @__PURE__ */ reactifyWc('taro-editor-core')\nexport const Form = /* @__PURE__ */ reactifyWc('taro-form-core')\nexport { default as Input } from './input'\nexport const KeyboardAccessory = /* @__PURE__ */ reactifyWc('taro-keyboard-accessory-core')\nexport const Label = /* @__PURE__ */ reactifyWc('taro-label-core')\nexport const Picker = /* @__PURE__ */ reactifyWc('taro-picker-core')\nexport const PickerView = /* @__PURE__ */ reactifyWc('taro-picker-view-core')\nexport const PickerViewColumn = /* @__PURE__ */ reactifyWc('taro-picker-view-column-core')\nexport const Radio = /* @__PURE__ */ reactifyWc('taro-radio-core')\nexport const RadioGroup = /* @__PURE__ */ reactifyWc('taro-radio-group-core')\nexport const Slider = /* @__PURE__ */ reactifyWc('taro-slider-core')\nexport const Switch = /* @__PURE__ */ reactifyWc('taro-switch-core')\nexport const Textarea = /* @__PURE__ */ reactifyWc('taro-textarea-core')\n\n// 导航\nexport const FunctionalPageNavigator = /* @__PURE__ */ reactifyWc('taro-functional-page-navigator-core')\nexport const Navigator = /* @__PURE__ */ reactifyWc('taro-navigator-core')\nexport const NavigationBar = /* @__PURE__ */ reactifyWc('taro-navigation-bar-core')\n\n// 媒体组件\nexport const Audio = /* @__PURE__ */ reactifyWc('taro-audio-core')\nexport const Camera = /* @__PURE__ */ reactifyWc('taro-camera-core')\nexport const Image = /* @__PURE__ */ reactifyWc('taro-image-core')\nexport const LivePlayer = /* @__PURE__ */ reactifyWc('taro-live-player-core')\nexport const LivePusher = /* @__PURE__ */ reactifyWc('taro-live-pusher-core')\nexport const Video = /* @__PURE__ */ reactifyWc('taro-video-core')\nexport const VoipRoom = /* @__PURE__ */ reactifyWc('taro-voip-room-core')\n\n// 地图\nexport const Map = /* @__PURE__ */ reactifyWc('taro-map-core')\n\n// 画布\nexport const Canvas = /* @__PURE__ */ reactifyWc('taro-canvas-core')\n\n// 开放能力\nexport const Ad = /* @__PURE__ */ reactifyWc('taro-ad-core')\nexport const AdCustom = /* @__PURE__ */ reactifyWc('taro-ad-custom-core')\nexport const OfficialAccount = /* @__PURE__ */ reactifyWc('taro-official-account-core')\nexport const OpenData = /* @__PURE__ */ reactifyWc('taro-open-data-core')\nexport const WebView = /* @__PURE__ */ reactifyWc('taro-web-view-core')\n\n// 页面属性配置节点\nexport const PageMeta = /* @__PURE__ */ reactifyWc('taro-page-meta-core')\n\n// 其他\nexport const Block = Fragment\nexport const CustomWrapper = /* @__PURE__ */ reactifyWc('taro-custom-wrapper-core')\n"],"names":["reactifyWc"],"mappings":";;;;AAIA;AACa,MAAA,UAAU,mBAAmBA,oBAAU,CAAC,uBAAuB,EAAC;AAChE,MAAA,SAAS,mBAAmBA,oBAAU,CAAC,sBAAsB,EAAC;AAC9D,MAAA,UAAU,mBAAmBA,oBAAU,CAAC,uBAAuB,EAAC;AAChE,MAAA,WAAW,mBAAmBA,oBAAU,CAAC,wBAAwB,EAAC;AAClE,MAAA,WAAW,mBAAmBA,oBAAU,CAAC,wBAAwB,EAAC;AAClE,MAAA,aAAa,mBAAmBA,oBAAU,CAAC,0BAA0B,EAAC;AACtE,MAAA,UAAU,mBAAmBA,oBAAU,CAAC,uBAAuB,EAAC;AAChE,MAAA,UAAU,mBAAmBA,oBAAU,CAAC,uBAAuB,EAAC;AAChE,MAAA,YAAY,mBAAmBA,oBAAU,CAAC,yBAAyB,EAAC;AACpE,MAAA,MAAM,mBAAmBA,oBAAU,CAAC,kBAAkB,EAAC;AACvD,MAAA,UAAU,mBAAmBA,oBAAU,CAAC,uBAA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$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
9
|
+
const IS_NON_DIMENSIONAL = /aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
10
10
|
// 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class
|
|
11
11
|
function getClassName(wc, prevProps, props) {
|
|
12
12
|
const classList = Array.from(wc.classList);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactify-wc.js","sources":["../../../../taro-components-library-react/src/component-lib/reactify-wc.ts"],"sourcesContent":["/**\n * https://github.com/BBKolton/reactify-wc/\n * modified event naming\n **/\nimport React, { createElement, createRef } from 'react'\n\nconst h = React.createElement\n\nconst SCROLL_VIEW = 'taro-scroll-view-core'\n\nconst IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i\n\n// 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class\nfunction getClassName (wc, prevProps, props) {\n const classList = Array.from(wc.classList)\n const oldClassNames = (prevProps.className || prevProps.class || '').split(' ')\n let incomingClassNames = (props.className || props.class || '').split(' ')\n let finalClassNames = []\n\n classList.forEach(classname => {\n if (incomingClassNames.indexOf(classname) > -1) {\n finalClassNames.push(classname)\n incomingClassNames = incomingClassNames.filter(name => name !== classname)\n } else if (oldClassNames.indexOf(classname) === -1) {\n finalClassNames.push(classname)\n }\n })\n\n finalClassNames = [...finalClassNames, ...incomingClassNames]\n\n return finalClassNames.join(' ')\n}\n\nfunction updateStyle (dom, key, val) {\n if (/^--/.test(key)) {\n // css variable\n dom.style.setProperty(key, val)\n } else if (typeof val !== 'number' || IS_NON_DIMENSIONAL.test(key)) {\n dom.style[key] = val\n } else {\n dom.style[key] = val + 'px'\n }\n}\n\nfunction updateProp (ctx, comp, propKey, prevProps, props) {\n const dom = ctx.ref.current\n const val = props[propKey]\n const prevVal = prevProps ? prevProps[propKey] : undefined\n\n if (propKey === 'children') {\n return\n }\n if (propKey.toLowerCase() === 'classname') {\n dom.className = prevProps\n ? getClassName(dom, prevProps, props)\n : val\n return\n }\n if (propKey === 'style') {\n if (typeof val === 'string') {\n dom.setAttribute(propKey, val)\n return\n }\n if (!val) {\n dom.removeAttribute(propKey)\n return\n }\n\n if (prevProps) {\n if (typeof prevVal === 'string') {\n dom.style.cssText = ''\n } else {\n for (const styleKey in prevVal) {\n updateStyle(dom, styleKey, '')\n }\n }\n }\n\n for (const styleKey in val) {\n updateStyle(dom, styleKey, val[styleKey])\n }\n return\n }\n if (/^data-.+/.test(propKey)) {\n dom.setAttribute(propKey, val)\n }\n if (comp === SCROLL_VIEW) {\n if (propKey === 'scrollTop') {\n dom.mpScrollTop = val\n return\n }\n if (propKey === 'scrollLeft') {\n dom.mpScrollLeft = val\n return\n }\n if (propKey === 'scrollIntoView') {\n dom.mpScrollIntoView = val\n return\n }\n }\n if (typeof val === 'function' && propKey.match(/^on[A-Z]/)) {\n const event = propKey.substr(2).toLowerCase()\n\n ctx.eventHandlers.push([event, val])\n return dom.addEventListener(event, val)\n }\n\n if (typeof val === 'string' || typeof val === 'number') {\n dom.setAttribute(propKey, val)\n dom[propKey] = val\n return\n }\n if (typeof val === 'boolean') {\n if (val) {\n dom[propKey] = true\n return dom.setAttribute(\n propKey,\n val\n )\n }\n dom[propKey] = false\n return dom.removeAttribute(propKey)\n }\n dom[propKey] = val\n}\n\nconst reactifyWebComponent = WC => {\n class Index extends React.Component<Record<string, any>> {\n eventHandlers: any[]\n ref: React.RefObject<HTMLElement>\n\n constructor (props) {\n super(props)\n this.eventHandlers = []\n this.ref = createRef()\n }\n\n update (prevProps) {\n this.clearEventHandlers()\n if (!this.ref.current) return\n\n Object.keys(prevProps || {}).forEach((key) => {\n if (key !== 'children' && key !== 'key' && !(key in this.props)) {\n updateProp(this, WC, key, prevProps, this.props)\n }\n })\n\n Object.keys(this.props).forEach((key) => {\n updateProp(this, WC, key, prevProps, this.props)\n })\n }\n\n componentDidUpdate (prevProps) {\n this.update(prevProps)\n }\n\n componentDidMount () {\n const { forwardRef } = this.props\n if (typeof forwardRef === 'function') {\n forwardRef(this.ref.current)\n } else if (forwardRef && typeof forwardRef === 'object' && forwardRef.hasOwnProperty('current')) {\n forwardRef.current = this.ref.current\n } else if (typeof forwardRef === 'string') {\n console.warn('内置组件不支持字符串 ref')\n }\n this.update(undefined)\n }\n\n componentWillUnmount () {\n this.clearEventHandlers()\n }\n\n clearEventHandlers () {\n this.eventHandlers.forEach(([event, handler]) => {\n if (!this.ref.current) return\n this.ref.current.removeEventListener(event, handler)\n })\n this.eventHandlers = []\n }\n\n render () {\n const { children, dangerouslySetInnerHTML } = this.props\n const props: Record<string, any> = {\n ref: this.ref\n }\n if (dangerouslySetInnerHTML) props.dangerouslySetInnerHTML = dangerouslySetInnerHTML\n return createElement(WC, props, children)\n }\n }\n\n // eslint-disable-next-line react/display-name\n return React.forwardRef((props, ref) => (\n h(Index, { ...props, forwardRef: ref })\n ))\n}\n\nexport default reactifyWebComponent\n"],"names":[],"mappings":";;AAAA;;;AAGI;AAGJ,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAA;AAE7B,MAAM,WAAW,GAAG,uBAAuB,CAAA;AAE3C,MAAM,kBAAkB,GAAG,mEAAmE,CAAA;AAE9F;AACA,SAAS,YAAY,CAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAA;IACzC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;AAC1C,IAAA,MAAM,aAAa,GAAG,CAAC,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;AAC/E,IAAA,IAAI,kBAAkB,GAAG,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,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I,uBAAuB;AAAE,gBAAA,KAAK,CAAC,uBAAuB,GAAG,uBAAuB,CAAA;YACpF,OAAO,aAAa,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;SAC1C;AACF,KAAA;;IAGD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,MACjC,CAAC,CAAC,KAAK,EAAO,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAK,CAAE,EAAA,EAAA,UAAU,EAAE,GAAG,EAAA,CAAA,CAAG,CACxC,CAAC,CAAA;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"reactify-wc.js","sources":["../../../../taro-components-library-react/src/component-lib/reactify-wc.ts"],"sourcesContent":["/**\n * https://github.com/BBKolton/reactify-wc/\n * modified event naming\n **/\nimport React, { createElement, createRef } from 'react'\n\nconst h = React.createElement\n\nconst SCROLL_VIEW = 'taro-scroll-view-core'\n\nconst IS_NON_DIMENSIONAL = /aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i\n\n// 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class\nfunction getClassName (wc, prevProps, props) {\n const classList = Array.from(wc.classList)\n const oldClassNames = (prevProps.className || prevProps.class || '').split(' ')\n let incomingClassNames = (props.className || props.class || '').split(' ')\n let finalClassNames = []\n\n classList.forEach(classname => {\n if (incomingClassNames.indexOf(classname) > -1) {\n finalClassNames.push(classname)\n incomingClassNames = incomingClassNames.filter(name => name !== classname)\n } else if (oldClassNames.indexOf(classname) === -1) {\n finalClassNames.push(classname)\n }\n })\n\n finalClassNames = [...finalClassNames, ...incomingClassNames]\n\n return finalClassNames.join(' ')\n}\n\nfunction updateStyle (dom, key, val) {\n if (/^--/.test(key)) {\n // css variable\n dom.style.setProperty(key, val)\n } else if (typeof val !== 'number' || IS_NON_DIMENSIONAL.test(key)) {\n dom.style[key] = val\n } else {\n dom.style[key] = val + 'px'\n }\n}\n\nfunction updateProp (ctx, comp, propKey, prevProps, props) {\n const dom = ctx.ref.current\n const val = props[propKey]\n const prevVal = prevProps ? prevProps[propKey] : undefined\n\n if (propKey === 'children') {\n return\n }\n if (propKey.toLowerCase() === 'classname') {\n dom.className = prevProps\n ? getClassName(dom, prevProps, props)\n : val\n return\n }\n if (propKey === 'style') {\n if (typeof val === 'string') {\n dom.setAttribute(propKey, val)\n return\n }\n if (!val) {\n dom.removeAttribute(propKey)\n return\n }\n\n if (prevProps) {\n if (typeof prevVal === 'string') {\n dom.style.cssText = ''\n } else {\n for (const styleKey in prevVal) {\n updateStyle(dom, styleKey, '')\n }\n }\n }\n\n for (const styleKey in val) {\n updateStyle(dom, styleKey, val[styleKey])\n }\n return\n }\n if (/^data-.+/.test(propKey)) {\n dom.setAttribute(propKey, val)\n }\n if (comp === SCROLL_VIEW) {\n if (propKey === 'scrollTop') {\n dom.mpScrollTop = val\n return\n }\n if (propKey === 'scrollLeft') {\n dom.mpScrollLeft = val\n return\n }\n if (propKey === 'scrollIntoView') {\n dom.mpScrollIntoView = val\n return\n }\n }\n if (typeof val === 'function' && propKey.match(/^on[A-Z]/)) {\n const event = propKey.substr(2).toLowerCase()\n\n ctx.eventHandlers.push([event, val])\n return dom.addEventListener(event, val)\n }\n\n if (typeof val === 'string' || typeof val === 'number') {\n dom.setAttribute(propKey, val)\n dom[propKey] = val\n return\n }\n if (typeof val === 'boolean') {\n if (val) {\n dom[propKey] = true\n return dom.setAttribute(\n propKey,\n val\n )\n }\n dom[propKey] = false\n return dom.removeAttribute(propKey)\n }\n dom[propKey] = val\n}\n\nconst reactifyWebComponent = WC => {\n class Index extends React.Component<Record<string, any>> {\n eventHandlers: any[]\n ref: React.RefObject<HTMLElement>\n\n constructor (props) {\n super(props)\n this.eventHandlers = []\n this.ref = createRef()\n }\n\n update (prevProps) {\n this.clearEventHandlers()\n if (!this.ref.current) return\n\n Object.keys(prevProps || {}).forEach((key) => {\n if (key !== 'children' && key !== 'key' && !(key in this.props)) {\n updateProp(this, WC, key, prevProps, this.props)\n }\n })\n\n Object.keys(this.props).forEach((key) => {\n updateProp(this, WC, key, prevProps, this.props)\n })\n }\n\n componentDidUpdate (prevProps) {\n this.update(prevProps)\n }\n\n componentDidMount () {\n const { forwardRef } = this.props\n if (typeof forwardRef === 'function') {\n forwardRef(this.ref.current)\n } else if (forwardRef && typeof forwardRef === 'object' && forwardRef.hasOwnProperty('current')) {\n forwardRef.current = this.ref.current\n } else if (typeof forwardRef === 'string') {\n console.warn('内置组件不支持字符串 ref')\n }\n this.update(undefined)\n }\n\n componentWillUnmount () {\n this.clearEventHandlers()\n }\n\n clearEventHandlers () {\n this.eventHandlers.forEach(([event, handler]) => {\n if (!this.ref.current) return\n this.ref.current.removeEventListener(event, handler)\n })\n this.eventHandlers = []\n }\n\n render () {\n const { children, dangerouslySetInnerHTML } = this.props\n const props: Record<string, any> = {\n ref: this.ref\n }\n if (dangerouslySetInnerHTML) props.dangerouslySetInnerHTML = dangerouslySetInnerHTML\n return createElement(WC, props, children)\n }\n }\n\n // eslint-disable-next-line react/display-name\n return React.forwardRef((props, ref) => (\n h(Index, { ...props, forwardRef: ref })\n ))\n}\n\nexport default reactifyWebComponent\n"],"names":[],"mappings":";;AAAA;;;AAGI;AAGJ,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAA;AAE7B,MAAM,WAAW,GAAG,uBAAuB,CAAA;AAE3C,MAAM,kBAAkB,GAAG,0EAA0E,CAAA;AAErG;AACA,SAAS,YAAY,CAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAA;IACzC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;AAC1C,IAAA,MAAM,aAAa,GAAG,CAAC,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;AAC/E,IAAA,IAAI,kBAAk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