@tarojs/components 3.6.0-canary.8 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-dfd8638f.js +40 -0
- package/dist/cjs/index-dfd8638f.js.map +1 -0
- package/dist/cjs/index-e1b469cd.js +2066 -0
- package/dist/cjs/index-e1b469cd.js.map +1 -0
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- 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 +1 -1
- 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-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 +7 -3
- package/dist/cjs/taro-components.cjs.js.map +1 -1
- 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 +1 -1
- 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-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- 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-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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -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 +2 -2
- 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-swiper-core_2.cjs.entry.js +49 -8
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- 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 +18 -20
- package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +6 -2
- package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/collection/components/swiper/swiper-item.js +37 -1
- package/dist/collection/components/swiper/swiper-item.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +12 -5
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/collection/components/tabbar/tabbar-item.js +7 -1
- package/dist/collection/components/tabbar/tabbar-item.js.map +1 -1
- package/dist/collection/components/tabbar/tabbar.js +4 -17
- package/dist/collection/components/tabbar/tabbar.js.map +1 -1
- package/dist/collection/components/video/video.js +23 -0
- package/dist/collection/components/video/video.js.map +1 -1
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/components/helper.js +15 -0
- package/dist/components/helper.js.map +1 -0
- package/dist/components/hls.js +27622 -0
- package/dist/components/hls.js.map +1 -0
- package/dist/components/index.d.ts +106 -0
- package/dist/components/index.js +79 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +78 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/index3.js +36 -0
- package/dist/components/index3.js.map +1 -0
- package/dist/components/intersection-observer.js +728 -0
- package/dist/components/intersection-observer.js.map +1 -0
- package/dist/components/picker-group.js +220 -0
- package/dist/components/picker-group.js.map +1 -0
- package/dist/components/taro-ad-core.d.ts +11 -0
- package/dist/components/taro-ad-core.js +35 -0
- package/dist/components/taro-ad-core.js.map +1 -0
- package/dist/components/taro-ad-custom-core.d.ts +11 -0
- package/dist/components/taro-ad-custom-core.js +35 -0
- package/dist/components/taro-ad-custom-core.js.map +1 -0
- package/dist/components/taro-animation-video-core.d.ts +11 -0
- package/dist/components/taro-animation-video-core.js +35 -0
- package/dist/components/taro-animation-video-core.js.map +1 -0
- package/dist/components/taro-animation-view-core.d.ts +11 -0
- package/dist/components/taro-animation-view-core.js +35 -0
- package/dist/components/taro-animation-view-core.js.map +1 -0
- package/dist/components/taro-ar-camera-core.d.ts +11 -0
- package/dist/components/taro-ar-camera-core.js +35 -0
- package/dist/components/taro-ar-camera-core.js.map +1 -0
- package/dist/components/taro-audio-core.d.ts +11 -0
- package/dist/components/taro-audio-core.js +80 -0
- package/dist/components/taro-audio-core.js.map +1 -0
- package/dist/components/taro-aweme-data-core.d.ts +11 -0
- package/dist/components/taro-aweme-data-core.js +35 -0
- package/dist/components/taro-aweme-data-core.js.map +1 -0
- package/dist/components/taro-block-core.d.ts +11 -0
- package/dist/components/taro-block-core.js +31 -0
- package/dist/components/taro-block-core.js.map +1 -0
- package/dist/components/taro-button-core.d.ts +11 -0
- package/dist/components/taro-button-core.js +102 -0
- package/dist/components/taro-button-core.js.map +1 -0
- package/dist/components/taro-camera-core.d.ts +11 -0
- package/dist/components/taro-camera-core.js +35 -0
- package/dist/components/taro-camera-core.js.map +1 -0
- package/dist/components/taro-canvas-core.d.ts +11 -0
- package/dist/components/taro-canvas-core.js +57 -0
- package/dist/components/taro-canvas-core.js.map +1 -0
- package/dist/components/taro-checkbox-core.d.ts +11 -0
- package/dist/components/taro-checkbox-core.js +81 -0
- package/dist/components/taro-checkbox-core.js.map +1 -0
- package/dist/components/taro-checkbox-group-core.d.ts +11 -0
- package/dist/components/taro-checkbox-group-core.js +71 -0
- package/dist/components/taro-checkbox-group-core.js.map +1 -0
- package/dist/components/taro-comment-detail-core.d.ts +11 -0
- package/dist/components/taro-comment-detail-core.js +35 -0
- package/dist/components/taro-comment-detail-core.js.map +1 -0
- package/dist/components/taro-comment-list-core.d.ts +11 -0
- package/dist/components/taro-comment-list-core.js +35 -0
- package/dist/components/taro-comment-list-core.js.map +1 -0
- package/dist/components/taro-contact-button-core.d.ts +11 -0
- package/dist/components/taro-contact-button-core.js +35 -0
- package/dist/components/taro-contact-button-core.js.map +1 -0
- package/dist/components/taro-cover-image-core.d.ts +11 -0
- package/dist/components/taro-cover-image-core.js +52 -0
- package/dist/components/taro-cover-image-core.js.map +1 -0
- package/dist/components/taro-cover-view-core.d.ts +11 -0
- package/dist/components/taro-cover-view-core.js +89 -0
- package/dist/components/taro-cover-view-core.js.map +1 -0
- package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
- package/dist/components/taro-custom-wrapper-core.js +31 -0
- package/dist/components/taro-custom-wrapper-core.js.map +1 -0
- package/dist/components/taro-editor-core.d.ts +11 -0
- package/dist/components/taro-editor-core.js +35 -0
- package/dist/components/taro-editor-core.js.map +1 -0
- package/dist/components/taro-follow-swan-core.d.ts +11 -0
- package/dist/components/taro-follow-swan-core.js +35 -0
- package/dist/components/taro-follow-swan-core.js.map +1 -0
- package/dist/components/taro-form-core.d.ts +11 -0
- package/dist/components/taro-form-core.js +140 -0
- package/dist/components/taro-form-core.js.map +1 -0
- package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
- package/dist/components/taro-functional-page-navigator-core.js +35 -0
- package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
- package/dist/components/taro-icon-core.d.ts +11 -0
- package/dist/components/taro-icon-core.js +48 -0
- package/dist/components/taro-icon-core.js.map +1 -0
- package/dist/components/taro-image-core.d.ts +11 -0
- package/dist/components/taro-image-core.js +81 -0
- package/dist/components/taro-image-core.js.map +1 -0
- package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
- package/dist/components/taro-inline-payment-panel-core.js +35 -0
- package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
- package/dist/components/taro-input-core.d.ts +11 -0
- package/dist/components/taro-input-core.js +246 -0
- package/dist/components/taro-input-core.js.map +1 -0
- package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
- package/dist/components/taro-keyboard-accessory-core.js +35 -0
- package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
- package/dist/components/taro-label-core.d.ts +11 -0
- package/dist/components/taro-label-core.js +34 -0
- package/dist/components/taro-label-core.js.map +1 -0
- package/dist/components/taro-lifestyle-core.d.ts +11 -0
- package/dist/components/taro-lifestyle-core.js +35 -0
- package/dist/components/taro-lifestyle-core.js.map +1 -0
- package/dist/components/taro-like-core.d.ts +11 -0
- package/dist/components/taro-like-core.js +35 -0
- package/dist/components/taro-like-core.js.map +1 -0
- package/dist/components/taro-live-player-core.d.ts +11 -0
- package/dist/components/taro-live-player-core.js +35 -0
- package/dist/components/taro-live-player-core.js.map +1 -0
- package/dist/components/taro-live-pusher-core.d.ts +11 -0
- package/dist/components/taro-live-pusher-core.js +35 -0
- package/dist/components/taro-live-pusher-core.js.map +1 -0
- package/dist/components/taro-login-core.d.ts +11 -0
- package/dist/components/taro-login-core.js +35 -0
- package/dist/components/taro-login-core.js.map +1 -0
- package/dist/components/taro-lottie-core.d.ts +11 -0
- package/dist/components/taro-lottie-core.js +35 -0
- package/dist/components/taro-lottie-core.js.map +1 -0
- package/dist/components/taro-map-core.d.ts +11 -0
- package/dist/components/taro-map-core.js +35 -0
- package/dist/components/taro-map-core.js.map +1 -0
- package/dist/components/taro-match-media-core.d.ts +11 -0
- package/dist/components/taro-match-media-core.js +35 -0
- package/dist/components/taro-match-media-core.js.map +1 -0
- package/dist/components/taro-movable-area-core.d.ts +11 -0
- package/dist/components/taro-movable-area-core.js +175 -0
- package/dist/components/taro-movable-area-core.js.map +1 -0
- package/dist/components/taro-movable-view-core.d.ts +11 -0
- package/dist/components/taro-movable-view-core.js +361 -0
- package/dist/components/taro-movable-view-core.js.map +1 -0
- package/dist/components/taro-native-slot-core.d.ts +11 -0
- package/dist/components/taro-native-slot-core.js +35 -0
- package/dist/components/taro-native-slot-core.js.map +1 -0
- package/dist/components/taro-navigation-bar-core.d.ts +11 -0
- package/dist/components/taro-navigation-bar-core.js +35 -0
- package/dist/components/taro-navigation-bar-core.js.map +1 -0
- package/dist/components/taro-navigator-core.d.ts +11 -0
- package/dist/components/taro-navigator-core.js +96 -0
- package/dist/components/taro-navigator-core.js.map +1 -0
- package/dist/components/taro-official-account-core.d.ts +11 -0
- package/dist/components/taro-official-account-core.js +35 -0
- package/dist/components/taro-official-account-core.js.map +1 -0
- package/dist/components/taro-open-data-core.d.ts +11 -0
- package/dist/components/taro-open-data-core.js +35 -0
- package/dist/components/taro-open-data-core.js.map +1 -0
- package/dist/components/taro-page-container-core.d.ts +11 -0
- package/dist/components/taro-page-container-core.js +35 -0
- package/dist/components/taro-page-container-core.js.map +1 -0
- package/dist/components/taro-page-meta-core.d.ts +11 -0
- package/dist/components/taro-page-meta-core.js +35 -0
- package/dist/components/taro-page-meta-core.js.map +1 -0
- package/dist/components/taro-picker-core.d.ts +11 -0
- package/dist/components/taro-picker-core.js +538 -0
- package/dist/components/taro-picker-core.js.map +1 -0
- package/dist/components/taro-picker-group.d.ts +11 -0
- package/dist/components/taro-picker-group.js +8 -0
- package/dist/components/taro-picker-group.js.map +1 -0
- package/dist/components/taro-picker-view-column-core.d.ts +11 -0
- package/dist/components/taro-picker-view-column-core.js +115 -0
- package/dist/components/taro-picker-view-column-core.js.map +1 -0
- package/dist/components/taro-picker-view-core.d.ts +11 -0
- package/dist/components/taro-picker-view-core.js +114 -0
- package/dist/components/taro-picker-view-core.js.map +1 -0
- package/dist/components/taro-progress-core.d.ts +11 -0
- package/dist/components/taro-progress-core.js +62 -0
- package/dist/components/taro-progress-core.js.map +1 -0
- package/dist/components/taro-pull-to-refresh.d.ts +11 -0
- package/dist/components/taro-pull-to-refresh.js +284 -0
- package/dist/components/taro-pull-to-refresh.js.map +1 -0
- package/dist/components/taro-radio-core.d.ts +11 -0
- package/dist/components/taro-radio-core.js +83 -0
- package/dist/components/taro-radio-core.js.map +1 -0
- package/dist/components/taro-radio-group-core.d.ts +11 -0
- package/dist/components/taro-radio-group-core.js +82 -0
- package/dist/components/taro-radio-group-core.js.map +1 -0
- package/dist/components/taro-rich-text-core.d.ts +11 -0
- package/dist/components/taro-rich-text-core.js +86 -0
- package/dist/components/taro-rich-text-core.js.map +1 -0
- package/dist/components/taro-root-portal-core.d.ts +11 -0
- package/dist/components/taro-root-portal-core.js +35 -0
- package/dist/components/taro-root-portal-core.js.map +1 -0
- package/dist/components/taro-rtc-room-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-core.js +35 -0
- package/dist/components/taro-rtc-room-core.js.map +1 -0
- package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-item-core.js +35 -0
- package/dist/components/taro-rtc-room-item-core.js.map +1 -0
- package/dist/components/taro-scroll-view-core.d.ts +11 -0
- package/dist/components/taro-scroll-view-core.js +184 -0
- package/dist/components/taro-scroll-view-core.js.map +1 -0
- package/dist/components/taro-share-element-core.d.ts +11 -0
- package/dist/components/taro-share-element-core.js +35 -0
- package/dist/components/taro-share-element-core.js.map +1 -0
- package/dist/components/taro-slider-core.d.ts +11 -0
- package/dist/components/taro-slider-core.js +196 -0
- package/dist/components/taro-slider-core.js.map +1 -0
- package/dist/components/taro-slot-core.d.ts +11 -0
- package/dist/components/taro-slot-core.js +35 -0
- package/dist/components/taro-slot-core.js.map +1 -0
- package/dist/components/taro-swiper-core.d.ts +11 -0
- package/dist/components/taro-swiper-core.js +10172 -0
- package/dist/components/taro-swiper-core.js.map +1 -0
- package/dist/components/taro-swiper-item-core.d.ts +11 -0
- package/dist/components/taro-swiper-item-core.js +70 -0
- package/dist/components/taro-swiper-item-core.js.map +1 -0
- package/dist/components/taro-switch-core.d.ts +11 -0
- package/dist/components/taro-switch-core.js +87 -0
- package/dist/components/taro-switch-core.js.map +1 -0
- package/dist/components/taro-tab-item-core.d.ts +11 -0
- package/dist/components/taro-tab-item-core.js +35 -0
- package/dist/components/taro-tab-item-core.js.map +1 -0
- package/dist/components/taro-tabbar.d.ts +11 -0
- package/dist/components/taro-tabbar.js +455 -0
- package/dist/components/taro-tabbar.js.map +1 -0
- package/dist/components/taro-tabs-core.d.ts +11 -0
- package/dist/components/taro-tabs-core.js +35 -0
- package/dist/components/taro-tabs-core.js.map +1 -0
- package/dist/components/taro-text-core.d.ts +11 -0
- package/dist/components/taro-text-core.js +41 -0
- package/dist/components/taro-text-core.js.map +1 -0
- package/dist/components/taro-textarea-core.d.ts +11 -0
- package/dist/components/taro-textarea-core.js +164 -0
- package/dist/components/taro-textarea-core.js.map +1 -0
- package/dist/components/taro-video-control.d.ts +11 -0
- package/dist/components/taro-video-control.js +8 -0
- package/dist/components/taro-video-control.js.map +1 -0
- package/dist/components/taro-video-core.d.ts +11 -0
- package/dist/components/taro-video-core.js +490 -0
- package/dist/components/taro-video-core.js.map +1 -0
- package/dist/components/taro-video-danmu.d.ts +11 -0
- package/dist/components/taro-video-danmu.js +8 -0
- package/dist/components/taro-video-danmu.js.map +1 -0
- package/dist/components/taro-view-core.d.ts +11 -0
- package/dist/components/taro-view-core.js +101 -0
- package/dist/components/taro-view-core.js.map +1 -0
- package/dist/components/taro-voip-room-core.d.ts +11 -0
- package/dist/components/taro-voip-room-core.js +35 -0
- package/dist/components/taro-voip-room-core.js.map +1 -0
- package/dist/components/taro-web-view-core.d.ts +11 -0
- package/dist/components/taro-web-view-core.js +46 -0
- package/dist/components/taro-web-view-core.js.map +1 -0
- package/dist/components/video-control.js +233 -0
- package/dist/components/video-control.js.map +1 -0
- package/dist/components/video-danmu.js +110 -0
- package/dist/components/video-danmu.js.map +1 -0
- package/dist/esm/index-c948674f.js +2037 -0
- package/dist/esm/index-c948674f.js.map +1 -0
- package/dist/esm/index-d1b03e47.js +36 -0
- package/dist/esm/index-d1b03e47.js.map +1 -0
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- 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 +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-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 -3
- package/dist/esm/taro-components.js.map +1 -1
- 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 +1 -1
- 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-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- 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-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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -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 +2 -2
- 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-swiper-core_2.entry.js +49 -8
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- 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 +16 -18
- package/dist/esm/taro-tabbar.entry.js.map +1 -1
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +6 -2
- package/dist/esm/taro-video-control_3.entry.js.map +1 -1
- package/dist/esm/taro-view-core.entry.js +1 -1
- 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/helper-3d0ecf0f.js.map +1 -1
- package/dist/esm-es5/hls-221423a1.js.map +1 -1
- package/dist/esm-es5/index-1d8e8acd.js.map +1 -1
- package/dist/esm-es5/index-c948674f.js +3 -0
- package/dist/esm-es5/index-c948674f.js.map +1 -0
- package/dist/esm-es5/index-d1b03e47.js +2 -0
- package/dist/esm-es5/index-d1b03e47.js.map +1 -0
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-components.js.map +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -1
- package/dist/taro-components/index.esm.js.map +1 -1
- package/dist/taro-components/p-020bcd8c.entry.js +2 -0
- package/dist/taro-components/p-020bcd8c.entry.js.map +1 -0
- package/dist/taro-components/p-03d4de13.entry.js +2 -0
- package/dist/taro-components/p-03d4de13.entry.js.map +1 -0
- package/dist/taro-components/p-05f3f84a.entry.js +2 -0
- package/dist/taro-components/p-05f3f84a.entry.js.map +1 -0
- package/dist/taro-components/p-087bf23a.system.entry.js +2 -0
- package/dist/taro-components/p-087bf23a.system.entry.js.map +1 -0
- package/dist/taro-components/p-0895120a.system.entry.js +2 -0
- package/dist/taro-components/p-0895120a.system.entry.js.map +1 -0
- package/dist/taro-components/p-08bb8dfc.system.entry.js +2 -0
- package/dist/taro-components/p-08bb8dfc.system.entry.js.map +1 -0
- package/dist/taro-components/p-09db02e6.entry.js +2 -0
- package/dist/taro-components/p-09db02e6.entry.js.map +1 -0
- package/dist/taro-components/p-0a165ad3.system.entry.js +2 -0
- package/dist/taro-components/p-0a165ad3.system.entry.js.map +1 -0
- package/dist/taro-components/p-0a9b984e.system.entry.js +2 -0
- package/dist/taro-components/p-0a9b984e.system.entry.js.map +1 -0
- package/dist/taro-components/p-0accc602.entry.js +2 -0
- package/dist/taro-components/p-0accc602.entry.js.map +1 -0
- package/dist/taro-components/p-0faf45d5.entry.js +2 -0
- package/dist/taro-components/p-0faf45d5.entry.js.map +1 -0
- package/dist/taro-components/p-10be7fb5.system.entry.js +2 -0
- package/dist/taro-components/p-10be7fb5.system.entry.js.map +1 -0
- package/dist/taro-components/p-15e45ed6.system.js.map +1 -1
- package/dist/taro-components/p-17302fe9.system.entry.js +2 -0
- package/dist/taro-components/p-17302fe9.system.entry.js.map +1 -0
- package/dist/taro-components/p-1743a04b.system.js.map +1 -1
- package/dist/taro-components/p-1941d333.system.entry.js +2 -0
- package/dist/taro-components/p-1941d333.system.entry.js.map +1 -0
- package/dist/taro-components/p-19e87e18.entry.js +2 -0
- package/dist/taro-components/p-19e87e18.entry.js.map +1 -0
- package/dist/taro-components/p-1a0e1932.system.js +3 -0
- package/dist/taro-components/p-1a0e1932.system.js.map +1 -0
- package/dist/taro-components/p-1c320250.system.entry.js +2 -0
- package/dist/taro-components/p-1c320250.system.entry.js.map +1 -0
- package/dist/taro-components/p-1c446c65.system.js +2 -0
- package/dist/taro-components/p-1c446c65.system.js.map +1 -0
- package/dist/taro-components/p-2024e133.system.entry.js +2 -0
- package/dist/taro-components/p-2024e133.system.entry.js.map +1 -0
- package/dist/taro-components/p-2049bdc4.entry.js +2 -0
- package/dist/taro-components/p-2049bdc4.entry.js.map +1 -0
- package/dist/taro-components/p-2357313b.entry.js +2 -0
- package/dist/taro-components/p-2357313b.entry.js.map +1 -0
- package/dist/taro-components/p-24c2fd23.entry.js +2 -0
- package/dist/taro-components/p-24c2fd23.entry.js.map +1 -0
- package/dist/taro-components/p-26889f3c.system.entry.js +2 -0
- package/dist/taro-components/p-26889f3c.system.entry.js.map +1 -0
- package/dist/taro-components/p-281278cf.entry.js +2 -0
- package/dist/taro-components/p-281278cf.entry.js.map +1 -0
- package/dist/taro-components/p-30f32fa2.system.entry.js +2 -0
- package/dist/taro-components/p-30f32fa2.system.entry.js.map +1 -0
- package/dist/taro-components/p-30fe0e81.system.entry.js +2 -0
- package/dist/taro-components/p-30fe0e81.system.entry.js.map +1 -0
- package/dist/taro-components/p-33223303.system.entry.js +2 -0
- package/dist/taro-components/p-33223303.system.entry.js.map +1 -0
- package/dist/taro-components/p-386ae2b2.entry.js +2 -0
- package/dist/taro-components/p-386ae2b2.entry.js.map +1 -0
- package/dist/taro-components/p-3b1d2d37.system.js.map +1 -1
- package/dist/taro-components/p-3bce88d9.entry.js +2 -0
- package/dist/taro-components/p-3bce88d9.entry.js.map +1 -0
- package/dist/taro-components/p-3f07f3d3.entry.js +2 -0
- package/dist/taro-components/p-3f07f3d3.entry.js.map +1 -0
- package/dist/taro-components/p-4086e546.system.entry.js +2 -0
- package/dist/taro-components/p-4086e546.system.entry.js.map +1 -0
- package/dist/taro-components/p-4190e20b.system.entry.js +2 -0
- package/dist/taro-components/p-4190e20b.system.entry.js.map +1 -0
- package/dist/taro-components/p-4263c9d9.entry.js +2 -0
- package/dist/taro-components/p-4263c9d9.entry.js.map +1 -0
- package/dist/taro-components/p-46244579.system.entry.js +2 -0
- package/dist/taro-components/p-46244579.system.entry.js.map +1 -0
- package/dist/taro-components/p-4915fdc1.system.entry.js +2 -0
- package/dist/taro-components/p-4915fdc1.system.entry.js.map +1 -0
- package/dist/taro-components/p-4a462c95.entry.js +2 -0
- package/dist/taro-components/p-4a462c95.entry.js.map +1 -0
- package/dist/taro-components/p-4bc85eb7.entry.js +2 -0
- package/dist/taro-components/p-4bc85eb7.entry.js.map +1 -0
- package/dist/taro-components/p-4d0da795.system.entry.js +2 -0
- package/dist/taro-components/p-4d0da795.system.entry.js.map +1 -0
- package/dist/taro-components/p-50ea2036.system.js.map +1 -1
- package/dist/taro-components/p-518146fd.system.entry.js +2 -0
- package/dist/taro-components/p-518146fd.system.entry.js.map +1 -0
- package/dist/taro-components/p-51b6fc09.system.entry.js +2 -0
- package/dist/taro-components/p-51b6fc09.system.entry.js.map +1 -0
- package/dist/taro-components/p-51caa3f3.entry.js +2 -0
- package/dist/taro-components/p-51caa3f3.entry.js.map +1 -0
- package/dist/taro-components/p-5208792d.entry.js +2 -0
- package/dist/taro-components/p-5208792d.entry.js.map +1 -0
- package/dist/taro-components/p-56da1da3.system.entry.js +2 -0
- package/dist/taro-components/p-56da1da3.system.entry.js.map +1 -0
- package/dist/taro-components/p-58877ef2.system.entry.js +2 -0
- package/dist/taro-components/p-58877ef2.system.entry.js.map +1 -0
- package/dist/taro-components/p-59590806.system.entry.js +2 -0
- package/dist/taro-components/p-59590806.system.entry.js.map +1 -0
- package/dist/taro-components/p-5beca045.system.entry.js +2 -0
- package/dist/taro-components/p-5beca045.system.entry.js.map +1 -0
- package/dist/taro-components/p-5d3acf86.entry.js +2 -0
- package/dist/taro-components/p-5d3acf86.entry.js.map +1 -0
- package/dist/taro-components/p-5f3c65f0.entry.js +2 -0
- package/dist/taro-components/p-5f3c65f0.entry.js.map +1 -0
- package/dist/taro-components/p-603ceecd.entry.js +2 -0
- package/dist/taro-components/p-603ceecd.entry.js.map +1 -0
- package/dist/taro-components/p-61f225ef.system.js.map +1 -1
- package/dist/taro-components/p-623b3eb6.system.entry.js +2 -0
- package/dist/taro-components/p-623b3eb6.system.entry.js.map +1 -0
- package/dist/taro-components/p-651586f8.system.entry.js +2 -0
- package/dist/taro-components/p-651586f8.system.entry.js.map +1 -0
- package/dist/taro-components/p-663e27a0.entry.js +2 -0
- package/dist/taro-components/p-663e27a0.entry.js.map +1 -0
- package/dist/taro-components/p-66b07ac0.entry.js +2 -0
- package/dist/taro-components/p-66b07ac0.entry.js.map +1 -0
- package/dist/taro-components/p-67c3a0ba.entry.js +2 -0
- package/dist/taro-components/p-67c3a0ba.entry.js.map +1 -0
- package/dist/taro-components/p-69f6784d.system.entry.js +2 -0
- package/dist/taro-components/p-69f6784d.system.entry.js.map +1 -0
- package/dist/taro-components/p-69fa7272.system.entry.js +2 -0
- package/dist/taro-components/p-69fa7272.system.entry.js.map +1 -0
- package/dist/taro-components/p-6a96da58.js.map +1 -1
- package/dist/taro-components/p-6bb1fdf2.entry.js +2 -0
- package/dist/taro-components/p-6bb1fdf2.entry.js.map +1 -0
- package/dist/taro-components/p-6dae898a.system.entry.js +2 -0
- package/dist/taro-components/p-6dae898a.system.entry.js.map +1 -0
- package/dist/taro-components/p-6de64a4b.system.entry.js +2 -0
- package/dist/taro-components/p-6de64a4b.system.entry.js.map +1 -0
- package/dist/taro-components/p-6f048097.system.entry.js +2 -0
- package/dist/taro-components/p-6f048097.system.entry.js.map +1 -0
- package/dist/taro-components/p-6f214fc3.system.entry.js +2 -0
- package/dist/taro-components/p-6f214fc3.system.entry.js.map +1 -0
- package/dist/taro-components/p-71155a2c.entry.js +2 -0
- package/dist/taro-components/p-71155a2c.entry.js.map +1 -0
- package/dist/taro-components/p-72f327e1.js.map +1 -1
- package/dist/taro-components/p-736053bb.system.entry.js +2 -0
- package/dist/taro-components/p-736053bb.system.entry.js.map +1 -0
- package/dist/taro-components/p-74bf8246.system.entry.js +2 -0
- package/dist/taro-components/p-74bf8246.system.entry.js.map +1 -0
- package/dist/taro-components/p-76724e58.js.map +1 -1
- package/dist/taro-components/p-76e6fbff.entry.js +2 -0
- package/dist/taro-components/p-76e6fbff.entry.js.map +1 -0
- package/dist/taro-components/p-780870eb.entry.js +2 -0
- package/dist/taro-components/p-780870eb.entry.js.map +1 -0
- package/dist/taro-components/p-78c30850.system.entry.js +2 -0
- package/dist/taro-components/p-78c30850.system.entry.js.map +1 -0
- package/dist/taro-components/p-78e3ebb9.js +3 -0
- package/dist/taro-components/p-78e3ebb9.js.map +1 -0
- package/dist/taro-components/p-7a2f11dc.entry.js +2 -0
- package/dist/taro-components/p-7a2f11dc.entry.js.map +1 -0
- package/dist/taro-components/p-7c1fec76.entry.js +2 -0
- package/dist/taro-components/p-7c1fec76.entry.js.map +1 -0
- package/dist/taro-components/p-7c6f0d5c.entry.js +2 -0
- package/dist/taro-components/p-7c6f0d5c.entry.js.map +1 -0
- package/dist/taro-components/p-7dd9c8da.system.entry.js +2 -0
- package/dist/taro-components/p-7dd9c8da.system.entry.js.map +1 -0
- package/dist/taro-components/p-8027e1c6.system.entry.js +2 -0
- package/dist/taro-components/p-8027e1c6.system.entry.js.map +1 -0
- package/dist/taro-components/p-828bd091.entry.js +2 -0
- package/dist/taro-components/p-828bd091.entry.js.map +1 -0
- package/dist/taro-components/p-8425ff09.entry.js +2 -0
- package/dist/taro-components/p-8425ff09.entry.js.map +1 -0
- package/dist/taro-components/p-8594d1e5.entry.js +2 -0
- package/dist/taro-components/p-8594d1e5.entry.js.map +1 -0
- package/dist/taro-components/p-8625c29c.entry.js +2 -0
- package/dist/taro-components/p-8625c29c.entry.js.map +1 -0
- package/dist/taro-components/p-88d64daa.system.entry.js +2 -0
- package/dist/taro-components/p-88d64daa.system.entry.js.map +1 -0
- package/dist/taro-components/p-88fbacdb.entry.js +2 -0
- package/dist/taro-components/p-88fbacdb.entry.js.map +1 -0
- package/dist/taro-components/p-895cd7c9.system.entry.js +2 -0
- package/dist/taro-components/p-895cd7c9.system.entry.js.map +1 -0
- package/dist/taro-components/p-8d2101be.system.entry.js +2 -0
- package/dist/taro-components/p-8d2101be.system.entry.js.map +1 -0
- package/dist/taro-components/p-8e5cc8fe.system.entry.js +2 -0
- package/dist/taro-components/p-8e5cc8fe.system.entry.js.map +1 -0
- package/dist/taro-components/p-908ddbb0.entry.js +2 -0
- package/dist/taro-components/p-908ddbb0.entry.js.map +1 -0
- package/dist/taro-components/p-91f8cd40.entry.js +2 -0
- package/dist/taro-components/p-91f8cd40.entry.js.map +1 -0
- package/dist/taro-components/p-93ccd68a.entry.js +2 -0
- package/dist/taro-components/p-93ccd68a.entry.js.map +1 -0
- package/dist/taro-components/p-955fbcfa.entry.js +2 -0
- package/dist/taro-components/p-955fbcfa.entry.js.map +1 -0
- package/dist/taro-components/p-95f70aea.system.entry.js +2 -0
- package/dist/taro-components/p-95f70aea.system.entry.js.map +1 -0
- package/dist/taro-components/p-97782cdd.system.entry.js +2 -0
- package/dist/taro-components/p-97782cdd.system.entry.js.map +1 -0
- package/dist/taro-components/p-982e431d.entry.js +2 -0
- package/dist/taro-components/p-982e431d.entry.js.map +1 -0
- package/dist/taro-components/p-9d4fa0d3.system.entry.js +2 -0
- package/dist/taro-components/p-9d4fa0d3.system.entry.js.map +1 -0
- package/dist/taro-components/p-a23a21e1.entry.js +2 -0
- package/dist/taro-components/p-a23a21e1.entry.js.map +1 -0
- package/dist/taro-components/p-a7789ed6.entry.js +2 -0
- package/dist/taro-components/p-a7789ed6.entry.js.map +1 -0
- package/dist/taro-components/p-adc37a00.entry.js +2 -0
- package/dist/taro-components/p-adc37a00.entry.js.map +1 -0
- package/dist/taro-components/p-ae3f1ed4.system.entry.js +2 -0
- package/dist/taro-components/p-ae3f1ed4.system.entry.js.map +1 -0
- package/dist/taro-components/p-b1249ebb.system.entry.js +2 -0
- package/dist/taro-components/p-b1249ebb.system.entry.js.map +1 -0
- package/dist/taro-components/p-b1c972e2.system.entry.js +2 -0
- package/dist/taro-components/p-b1c972e2.system.entry.js.map +1 -0
- package/dist/taro-components/p-b2bb02d7.system.entry.js +2 -0
- package/dist/taro-components/p-b2bb02d7.system.entry.js.map +1 -0
- package/dist/taro-components/p-b313c11a.entry.js +2 -0
- package/dist/taro-components/p-b313c11a.entry.js.map +1 -0
- package/dist/taro-components/p-b39b973e.entry.js +2 -0
- package/dist/taro-components/p-b39b973e.entry.js.map +1 -0
- package/dist/taro-components/p-b4419d86.entry.js +2 -0
- package/dist/taro-components/p-b4419d86.entry.js.map +1 -0
- package/dist/taro-components/p-b8ba5d0a.entry.js +2 -0
- package/dist/taro-components/p-b8ba5d0a.entry.js.map +1 -0
- package/dist/taro-components/p-bac3deb0.system.entry.js +2 -0
- package/dist/taro-components/p-bac3deb0.system.entry.js.map +1 -0
- package/dist/taro-components/p-bba8c3a7.system.entry.js +2 -0
- package/dist/taro-components/p-bba8c3a7.system.entry.js.map +1 -0
- package/dist/taro-components/p-bd5177d3.system.js +2 -0
- package/dist/taro-components/p-bd5177d3.system.js.map +1 -0
- package/dist/taro-components/p-c0bb8610.entry.js +2 -0
- package/dist/taro-components/p-c0bb8610.entry.js.map +1 -0
- package/dist/taro-components/p-c1c0e16d.entry.js +2 -0
- package/dist/taro-components/p-c1c0e16d.entry.js.map +1 -0
- package/dist/taro-components/p-c2ac8f08.entry.js +2 -0
- package/dist/taro-components/p-c2ac8f08.entry.js.map +1 -0
- package/dist/taro-components/p-c33733b3.system.entry.js +2 -0
- package/dist/taro-components/p-c33733b3.system.entry.js.map +1 -0
- package/dist/taro-components/p-c3e98fdf.entry.js +2 -0
- package/dist/taro-components/p-c3e98fdf.entry.js.map +1 -0
- package/dist/taro-components/p-c4fdb669.system.entry.js +2 -0
- package/dist/taro-components/p-c4fdb669.system.entry.js.map +1 -0
- package/dist/taro-components/p-c50087fd.entry.js +2 -0
- package/dist/taro-components/p-c50087fd.entry.js.map +1 -0
- package/dist/taro-components/p-c586a796.system.entry.js +2 -0
- package/dist/taro-components/p-c586a796.system.entry.js.map +1 -0
- package/dist/taro-components/p-c6e6dab1.system.entry.js +2 -0
- package/dist/taro-components/p-c6e6dab1.system.entry.js.map +1 -0
- package/dist/taro-components/p-c70dd956.system.entry.js +2 -0
- package/dist/taro-components/p-c70dd956.system.entry.js.map +1 -0
- package/dist/taro-components/p-d1d19ce9.entry.js +2 -0
- package/dist/taro-components/p-d1d19ce9.entry.js.map +1 -0
- package/dist/taro-components/p-d3c7f87d.js +2 -0
- package/dist/taro-components/p-d3c7f87d.js.map +1 -0
- package/dist/taro-components/p-d5234e7e.js.map +1 -1
- package/dist/taro-components/p-d562aae3.entry.js +2 -0
- package/dist/taro-components/p-d562aae3.entry.js.map +1 -0
- package/dist/taro-components/p-d61d3394.entry.js +2 -0
- package/dist/taro-components/p-d61d3394.entry.js.map +1 -0
- package/dist/taro-components/p-d621d190.entry.js +2 -0
- package/dist/taro-components/p-d621d190.entry.js.map +1 -0
- package/dist/taro-components/p-d8c8c63f.entry.js +2 -0
- package/dist/taro-components/p-d8c8c63f.entry.js.map +1 -0
- package/dist/taro-components/p-da5cdbf5.system.entry.js +2 -0
- package/dist/taro-components/p-da5cdbf5.system.entry.js.map +1 -0
- package/dist/taro-components/p-de2d8e2e.system.entry.js +2 -0
- package/dist/taro-components/p-de2d8e2e.system.entry.js.map +1 -0
- package/dist/taro-components/p-de356b29.system.entry.js +2 -0
- package/dist/taro-components/p-de356b29.system.entry.js.map +1 -0
- package/dist/taro-components/p-e0e4a403.entry.js +2 -0
- package/dist/taro-components/p-e0e4a403.entry.js.map +1 -0
- package/dist/taro-components/p-e3f8265d.system.entry.js +2 -0
- package/dist/taro-components/p-e3f8265d.system.entry.js.map +1 -0
- package/dist/taro-components/p-e53feb03.system.entry.js +2 -0
- package/dist/taro-components/p-e53feb03.system.entry.js.map +1 -0
- package/dist/taro-components/p-e67165fd.entry.js +2 -0
- package/dist/taro-components/p-e67165fd.entry.js.map +1 -0
- package/dist/taro-components/p-eb2a7609.entry.js +2 -0
- package/dist/taro-components/p-eb2a7609.entry.js.map +1 -0
- package/dist/taro-components/p-eb9adf17.entry.js +2 -0
- package/dist/taro-components/p-eb9adf17.entry.js.map +1 -0
- package/dist/taro-components/p-ef4c1fd4.entry.js +2 -0
- package/dist/taro-components/p-ef4c1fd4.entry.js.map +1 -0
- package/dist/taro-components/p-ef7e7d73.system.entry.js +2 -0
- package/dist/taro-components/p-ef7e7d73.system.entry.js.map +1 -0
- package/dist/taro-components/p-efa51030.system.entry.js +2 -0
- package/dist/taro-components/p-efa51030.system.entry.js.map +1 -0
- package/dist/taro-components/p-efe31b23.entry.js +2 -0
- package/dist/taro-components/p-efe31b23.entry.js.map +1 -0
- package/dist/taro-components/p-f034fb11.system.entry.js +2 -0
- package/dist/taro-components/p-f034fb11.system.entry.js.map +1 -0
- package/dist/taro-components/p-f499c0a0.system.entry.js +2 -0
- package/dist/taro-components/p-f499c0a0.system.entry.js.map +1 -0
- package/dist/taro-components/p-f88f0f55.entry.js +2 -0
- package/dist/taro-components/p-f88f0f55.entry.js.map +1 -0
- package/dist/taro-components/p-f9ac515e.system.entry.js +2 -0
- package/dist/taro-components/p-f9ac515e.system.entry.js.map +1 -0
- package/dist/taro-components/p-fa36fe8e.system.entry.js +2 -0
- package/dist/taro-components/p-fa36fe8e.system.entry.js.map +1 -0
- package/dist/taro-components/p-fcdac6ec.system.entry.js +2 -0
- package/dist/taro-components/p-fcdac6ec.system.entry.js.map +1 -0
- package/dist/taro-components/p-fda82bc1.entry.js +2 -0
- package/dist/taro-components/p-fda82bc1.entry.js.map +1 -0
- package/dist/taro-components/p-fec6746d.entry.js +2 -0
- package/dist/taro-components/p-fec6746d.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/picker/picker.d.ts +3 -3
- package/dist/types/components/rich-text/rich-text.d.ts +3 -3
- package/dist/types/components/swiper/swiper-item.d.ts +2 -0
- package/dist/types/components/swiper/swiper.d.ts +1 -0
- package/dist/types/components/tabbar/tabbar-item.d.ts +2 -1
- package/dist/types/components.d.ts +21 -0
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/dist/types/utils/index.d.ts +1 -0
- package/lib/react/components.d.ts +82 -0
- package/lib/react/components.js +85 -0
- package/lib/react/components.js.map +1 -0
- package/lib/react/helper.d.ts +10 -0
- package/lib/react/helper.js +7 -0
- package/lib/react/helper.js.map +1 -0
- package/lib/react/index.d.ts +1 -0
- package/lib/react/index.js +2 -0
- package/lib/react/index.js.map +1 -0
- package/lib/react/interfaces-4f837811.d.ts +30 -0
- package/lib/react/react-component-lib/createComponent.d.ts +10 -0
- package/lib/react/react-component-lib/createComponent.js +70 -0
- package/lib/react/react-component-lib/createComponent.js.map +1 -0
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/lib/react/react-component-lib/index.d.ts +2 -0
- package/lib/react/react-component-lib/index.js +3 -0
- package/lib/react/react-component-lib/index.js.map +1 -0
- package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
- package/lib/react/react-component-lib/utils/attachProps.js +101 -0
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/lib/react/react-component-lib/utils/case.d.ts +3 -0
- package/lib/react/react-component-lib/utils/case.js +9 -0
- package/lib/react/react-component-lib/utils/case.js.map +1 -0
- package/lib/react/react-component-lib/utils/index.d.ts +11 -0
- package/lib/react/react-component-lib/utils/index.js +37 -0
- package/lib/react/react-component-lib/utils/index.js.map +1 -0
- package/lib/vue2/components.d.ts +353 -0
- package/lib/vue2/components.js +621 -0
- package/lib/vue2/components.js.map +1 -0
- package/lib/vue2/index.d.ts +3 -0
- package/lib/vue2/index.js +21 -0
- package/lib/vue2/index.js.map +1 -0
- package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
- package/lib/vue2/vue-component-lib/utils.js +32 -0
- package/lib/vue2/vue-component-lib/utils.js.map +1 -0
- package/lib/vue3/components.d.ts +82 -0
- package/lib/vue3/components.js +386 -0
- package/lib/vue3/components.js.map +1 -0
- package/lib/vue3/index.d.ts +3 -0
- package/lib/vue3/index.js +15 -0
- package/lib/vue3/index.js.map +1 -0
- package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
- package/lib/vue3/vue-component-lib/utils.js +163 -0
- package/lib/vue3/vue-component-lib/utils.js.map +1 -0
- package/loader/index.d.ts +9 -0
- package/package.json +11 -9
- package/types/ChannelLive.d.ts +22 -0
- package/types/CoverImage.d.ts +4 -4
- package/types/CoverView.d.ts +2 -2
- package/types/Form.d.ts +6 -0
- package/types/Input.d.ts +11 -6
- package/types/LivePusher.d.ts +39 -0
- package/types/Map.d.ts +6 -0
- package/types/MovableArea.d.ts +2 -2
- package/types/Radio.d.ts +6 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +0 -5
- package/types/Swiper.d.ts +2 -2
- package/types/Textarea.d.ts +22 -28
- package/types/Video.d.ts +13 -9
- package/types/VoipRoom.d.ts +6 -0
- package/types/index.d.ts +1 -0
- package/types/index.vue3.d.ts +4 -4
- package/virtual-list/index.js +3 -2
- package/dist/cjs/index-47a1959e.js +0 -36
- package/dist/cjs/index-47a1959e.js.map +0 -1
- package/dist/cjs/index-9174e0b1.js +0 -1957
- package/dist/cjs/index-9174e0b1.js.map +0 -1
- package/dist/esm/index-5d881caf.js +0 -1929
- package/dist/esm/index-5d881caf.js.map +0 -1
- package/dist/esm/index-cad8203e.js +0 -33
- package/dist/esm/index-cad8203e.js.map +0 -1
- package/dist/esm-es5/index-5d881caf.js +0 -3
- package/dist/esm-es5/index-5d881caf.js.map +0 -1
- package/dist/esm-es5/index-cad8203e.js +0 -2
- package/dist/esm-es5/index-cad8203e.js.map +0 -1
- package/dist/react/component-lib/index.js +0 -74
- package/dist/react/component-lib/input.js +0 -17
- package/dist/react/component-lib/reactify-wc.js +0 -206
- package/dist/react/components.js +0 -82
- package/dist/react/helper.js +0 -8
- package/dist/react/index.js +0 -1
- package/dist/react/react-component-lib/createComponent.js +0 -99
- package/dist/react/react-component-lib/createOverlayComponent.js +0 -178
- package/dist/react/react-component-lib/index.js +0 -2
- package/dist/react/react-component-lib/interfaces.js +0 -0
- package/dist/react/react-component-lib/utils/attachProps.js +0 -98
- package/dist/react/react-component-lib/utils/case.js +0 -10
- package/dist/react/react-component-lib/utils/dev.js +0 -12
- package/dist/react/react-component-lib/utils/index.js +0 -37
- package/dist/taro-components/p-001ef419.system.entry.js +0 -2
- package/dist/taro-components/p-001ef419.system.entry.js.map +0 -1
- package/dist/taro-components/p-01dc54a5.entry.js +0 -2
- package/dist/taro-components/p-01dc54a5.entry.js.map +0 -1
- package/dist/taro-components/p-0382d7d0.system.entry.js +0 -2
- package/dist/taro-components/p-0382d7d0.system.entry.js.map +0 -1
- package/dist/taro-components/p-0a896bc7.entry.js +0 -2
- package/dist/taro-components/p-0a896bc7.entry.js.map +0 -1
- package/dist/taro-components/p-0b38e6c7.system.entry.js +0 -2
- package/dist/taro-components/p-0b38e6c7.system.entry.js.map +0 -1
- package/dist/taro-components/p-0be383a9.system.entry.js +0 -2
- package/dist/taro-components/p-0be383a9.system.entry.js.map +0 -1
- package/dist/taro-components/p-0d36ef6b.entry.js +0 -2
- package/dist/taro-components/p-0d36ef6b.entry.js.map +0 -1
- package/dist/taro-components/p-0ee6a068.entry.js +0 -2
- package/dist/taro-components/p-0ee6a068.entry.js.map +0 -1
- package/dist/taro-components/p-12e4b019.entry.js +0 -2
- package/dist/taro-components/p-12e4b019.entry.js.map +0 -1
- package/dist/taro-components/p-15dced71.system.entry.js +0 -2
- package/dist/taro-components/p-15dced71.system.entry.js.map +0 -1
- package/dist/taro-components/p-17657dca.entry.js +0 -2
- package/dist/taro-components/p-17657dca.entry.js.map +0 -1
- package/dist/taro-components/p-186ad7ff.entry.js +0 -2
- package/dist/taro-components/p-186ad7ff.entry.js.map +0 -1
- package/dist/taro-components/p-19afe402.entry.js +0 -2
- package/dist/taro-components/p-19afe402.entry.js.map +0 -1
- package/dist/taro-components/p-1a47133c.system.entry.js +0 -2
- package/dist/taro-components/p-1a47133c.system.entry.js.map +0 -1
- package/dist/taro-components/p-1ad0aa95.system.entry.js +0 -2
- package/dist/taro-components/p-1ad0aa95.system.entry.js.map +0 -1
- package/dist/taro-components/p-1b1420c9.system.entry.js +0 -2
- package/dist/taro-components/p-1b1420c9.system.entry.js.map +0 -1
- package/dist/taro-components/p-1b2556e2.system.entry.js +0 -2
- package/dist/taro-components/p-1b2556e2.system.entry.js.map +0 -1
- package/dist/taro-components/p-1b64d2a2.entry.js +0 -2
- package/dist/taro-components/p-1b64d2a2.entry.js.map +0 -1
- package/dist/taro-components/p-1bd3d09b.system.entry.js +0 -2
- package/dist/taro-components/p-1bd3d09b.system.entry.js.map +0 -1
- package/dist/taro-components/p-1cb76199.entry.js +0 -2
- package/dist/taro-components/p-1cb76199.entry.js.map +0 -1
- package/dist/taro-components/p-2096bc5f.entry.js +0 -2
- package/dist/taro-components/p-2096bc5f.entry.js.map +0 -1
- package/dist/taro-components/p-20ec6387.entry.js +0 -2
- package/dist/taro-components/p-20ec6387.entry.js.map +0 -1
- package/dist/taro-components/p-21b77a13.system.entry.js +0 -2
- package/dist/taro-components/p-21b77a13.system.entry.js.map +0 -1
- package/dist/taro-components/p-2243a376.entry.js +0 -2
- package/dist/taro-components/p-2243a376.entry.js.map +0 -1
- package/dist/taro-components/p-281a2bcf.entry.js +0 -2
- package/dist/taro-components/p-281a2bcf.entry.js.map +0 -1
- package/dist/taro-components/p-28dade4f.entry.js +0 -2
- package/dist/taro-components/p-28dade4f.entry.js.map +0 -1
- package/dist/taro-components/p-29f04296.entry.js +0 -2
- package/dist/taro-components/p-29f04296.entry.js.map +0 -1
- package/dist/taro-components/p-301a8b85.system.entry.js +0 -2
- package/dist/taro-components/p-301a8b85.system.entry.js.map +0 -1
- package/dist/taro-components/p-31e10d77.system.entry.js +0 -2
- package/dist/taro-components/p-31e10d77.system.entry.js.map +0 -1
- package/dist/taro-components/p-36c64ed0.system.entry.js +0 -2
- package/dist/taro-components/p-36c64ed0.system.entry.js.map +0 -1
- package/dist/taro-components/p-37d71e63.entry.js +0 -2
- package/dist/taro-components/p-37d71e63.entry.js.map +0 -1
- package/dist/taro-components/p-386b9de8.entry.js +0 -2
- package/dist/taro-components/p-386b9de8.entry.js.map +0 -1
- package/dist/taro-components/p-3b9a1125.entry.js +0 -2
- package/dist/taro-components/p-3b9a1125.entry.js.map +0 -1
- package/dist/taro-components/p-3c256e0e.entry.js +0 -2
- package/dist/taro-components/p-3c256e0e.entry.js.map +0 -1
- package/dist/taro-components/p-3e6b29c6.entry.js +0 -2
- package/dist/taro-components/p-3e6b29c6.entry.js.map +0 -1
- package/dist/taro-components/p-427a2872.entry.js +0 -2
- package/dist/taro-components/p-427a2872.entry.js.map +0 -1
- package/dist/taro-components/p-439a3349.system.entry.js +0 -2
- package/dist/taro-components/p-439a3349.system.entry.js.map +0 -1
- package/dist/taro-components/p-447386b2.system.entry.js +0 -2
- package/dist/taro-components/p-447386b2.system.entry.js.map +0 -1
- package/dist/taro-components/p-45b6ea0c.system.entry.js +0 -2
- package/dist/taro-components/p-45b6ea0c.system.entry.js.map +0 -1
- package/dist/taro-components/p-49a6cae4.system.entry.js +0 -2
- package/dist/taro-components/p-49a6cae4.system.entry.js.map +0 -1
- package/dist/taro-components/p-4b05e003.entry.js +0 -2
- package/dist/taro-components/p-4b05e003.entry.js.map +0 -1
- package/dist/taro-components/p-4b27df71.system.entry.js +0 -2
- package/dist/taro-components/p-4b27df71.system.entry.js.map +0 -1
- package/dist/taro-components/p-4b71c926.entry.js +0 -2
- package/dist/taro-components/p-4b71c926.entry.js.map +0 -1
- package/dist/taro-components/p-4fbb8b4c.system.entry.js +0 -2
- package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +0 -1
- package/dist/taro-components/p-51040638.entry.js +0 -2
- package/dist/taro-components/p-51040638.entry.js.map +0 -1
- package/dist/taro-components/p-55519002.entry.js +0 -2
- package/dist/taro-components/p-55519002.entry.js.map +0 -1
- package/dist/taro-components/p-570222e2.entry.js +0 -2
- package/dist/taro-components/p-570222e2.entry.js.map +0 -1
- package/dist/taro-components/p-5746d7ce.js +0 -2
- package/dist/taro-components/p-5746d7ce.js.map +0 -1
- package/dist/taro-components/p-580a72d1.system.entry.js +0 -2
- package/dist/taro-components/p-580a72d1.system.entry.js.map +0 -1
- package/dist/taro-components/p-59418be7.system.entry.js +0 -2
- package/dist/taro-components/p-59418be7.system.entry.js.map +0 -1
- package/dist/taro-components/p-59e02aca.system.entry.js +0 -2
- package/dist/taro-components/p-59e02aca.system.entry.js.map +0 -1
- package/dist/taro-components/p-5b552407.entry.js +0 -2
- package/dist/taro-components/p-5b552407.entry.js.map +0 -1
- package/dist/taro-components/p-5bd1c1a1.entry.js +0 -2
- package/dist/taro-components/p-5bd1c1a1.entry.js.map +0 -1
- package/dist/taro-components/p-5bfefd19.js +0 -3
- package/dist/taro-components/p-5bfefd19.js.map +0 -1
- package/dist/taro-components/p-62d750a7.entry.js +0 -2
- package/dist/taro-components/p-62d750a7.entry.js.map +0 -1
- package/dist/taro-components/p-632f9a72.system.entry.js +0 -2
- package/dist/taro-components/p-632f9a72.system.entry.js.map +0 -1
- package/dist/taro-components/p-65971d99.entry.js +0 -2
- package/dist/taro-components/p-65971d99.entry.js.map +0 -1
- package/dist/taro-components/p-663d1bb9.system.js +0 -2
- package/dist/taro-components/p-663d1bb9.system.js.map +0 -1
- package/dist/taro-components/p-6831f7b1.system.entry.js +0 -2
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +0 -1
- package/dist/taro-components/p-6af8be19.entry.js +0 -2
- package/dist/taro-components/p-6af8be19.entry.js.map +0 -1
- package/dist/taro-components/p-6c622fa2.system.entry.js +0 -2
- package/dist/taro-components/p-6c622fa2.system.entry.js.map +0 -1
- package/dist/taro-components/p-6cd941bc.entry.js +0 -2
- package/dist/taro-components/p-6cd941bc.entry.js.map +0 -1
- package/dist/taro-components/p-6ea2995b.entry.js +0 -2
- package/dist/taro-components/p-6ea2995b.entry.js.map +0 -1
- package/dist/taro-components/p-6f8af69f.entry.js +0 -2
- package/dist/taro-components/p-6f8af69f.entry.js.map +0 -1
- package/dist/taro-components/p-701b0286.system.entry.js +0 -2
- package/dist/taro-components/p-701b0286.system.entry.js.map +0 -1
- package/dist/taro-components/p-70defa84.entry.js +0 -2
- package/dist/taro-components/p-70defa84.entry.js.map +0 -1
- package/dist/taro-components/p-72f626ab.system.entry.js +0 -2
- package/dist/taro-components/p-72f626ab.system.entry.js.map +0 -1
- package/dist/taro-components/p-73106bc9.entry.js +0 -2
- package/dist/taro-components/p-73106bc9.entry.js.map +0 -1
- package/dist/taro-components/p-755be847.system.entry.js +0 -2
- package/dist/taro-components/p-755be847.system.entry.js.map +0 -1
- package/dist/taro-components/p-7afc274a.entry.js +0 -2
- package/dist/taro-components/p-7afc274a.entry.js.map +0 -1
- package/dist/taro-components/p-7bafbe22.entry.js +0 -2
- package/dist/taro-components/p-7bafbe22.entry.js.map +0 -1
- package/dist/taro-components/p-7e7a1e62.entry.js +0 -2
- package/dist/taro-components/p-7e7a1e62.entry.js.map +0 -1
- package/dist/taro-components/p-8231e748.entry.js +0 -2
- package/dist/taro-components/p-8231e748.entry.js.map +0 -1
- package/dist/taro-components/p-876edf66.entry.js +0 -2
- package/dist/taro-components/p-876edf66.entry.js.map +0 -1
- package/dist/taro-components/p-898aba38.system.entry.js +0 -2
- package/dist/taro-components/p-898aba38.system.entry.js.map +0 -1
- package/dist/taro-components/p-8a3620a6.system.entry.js +0 -2
- package/dist/taro-components/p-8a3620a6.system.entry.js.map +0 -1
- package/dist/taro-components/p-8a8f286f.system.js +0 -3
- package/dist/taro-components/p-8a8f286f.system.js.map +0 -1
- package/dist/taro-components/p-8bec95d4.system.entry.js +0 -2
- package/dist/taro-components/p-8bec95d4.system.entry.js.map +0 -1
- package/dist/taro-components/p-8c8fe164.system.entry.js +0 -2
- package/dist/taro-components/p-8c8fe164.system.entry.js.map +0 -1
- package/dist/taro-components/p-93cc7adc.entry.js +0 -2
- package/dist/taro-components/p-93cc7adc.entry.js.map +0 -1
- package/dist/taro-components/p-96a784f1.entry.js +0 -2
- package/dist/taro-components/p-96a784f1.entry.js.map +0 -1
- package/dist/taro-components/p-98901e99.system.entry.js +0 -2
- package/dist/taro-components/p-98901e99.system.entry.js.map +0 -1
- package/dist/taro-components/p-99bbe34a.system.entry.js +0 -2
- package/dist/taro-components/p-99bbe34a.system.entry.js.map +0 -1
- package/dist/taro-components/p-9e20c25c.entry.js +0 -2
- package/dist/taro-components/p-9e20c25c.entry.js.map +0 -1
- package/dist/taro-components/p-9f1ca602.system.entry.js +0 -2
- package/dist/taro-components/p-9f1ca602.system.entry.js.map +0 -1
- package/dist/taro-components/p-9f780103.system.entry.js +0 -2
- package/dist/taro-components/p-9f780103.system.entry.js.map +0 -1
- package/dist/taro-components/p-a1ace8c7.system.entry.js +0 -2
- package/dist/taro-components/p-a1ace8c7.system.entry.js.map +0 -1
- package/dist/taro-components/p-a29509fa.system.entry.js +0 -2
- package/dist/taro-components/p-a29509fa.system.entry.js.map +0 -1
- package/dist/taro-components/p-a4961ddd.entry.js +0 -2
- package/dist/taro-components/p-a4961ddd.entry.js.map +0 -1
- package/dist/taro-components/p-a6f2dc54.system.entry.js +0 -2
- package/dist/taro-components/p-a6f2dc54.system.entry.js.map +0 -1
- package/dist/taro-components/p-ab105c26.entry.js +0 -2
- package/dist/taro-components/p-ab105c26.entry.js.map +0 -1
- package/dist/taro-components/p-ad25cc91.system.entry.js +0 -2
- package/dist/taro-components/p-ad25cc91.system.entry.js.map +0 -1
- package/dist/taro-components/p-b04a56bd.system.entry.js +0 -2
- package/dist/taro-components/p-b04a56bd.system.entry.js.map +0 -1
- package/dist/taro-components/p-b10cb428.entry.js +0 -2
- package/dist/taro-components/p-b10cb428.entry.js.map +0 -1
- package/dist/taro-components/p-b4cccb3e.system.entry.js +0 -2
- package/dist/taro-components/p-b4cccb3e.system.entry.js.map +0 -1
- package/dist/taro-components/p-b4ec48c3.entry.js +0 -2
- package/dist/taro-components/p-b4ec48c3.entry.js.map +0 -1
- package/dist/taro-components/p-b500c116.system.entry.js +0 -2
- package/dist/taro-components/p-b500c116.system.entry.js.map +0 -1
- package/dist/taro-components/p-b6733e23.system.entry.js +0 -2
- package/dist/taro-components/p-b6733e23.system.entry.js.map +0 -1
- package/dist/taro-components/p-b832f4e8.entry.js +0 -2
- package/dist/taro-components/p-b832f4e8.entry.js.map +0 -1
- package/dist/taro-components/p-b88a55b4.system.entry.js +0 -2
- package/dist/taro-components/p-b88a55b4.system.entry.js.map +0 -1
- package/dist/taro-components/p-b90926cc.entry.js +0 -2
- package/dist/taro-components/p-b90926cc.entry.js.map +0 -1
- package/dist/taro-components/p-ba743573.entry.js +0 -2
- package/dist/taro-components/p-ba743573.entry.js.map +0 -1
- package/dist/taro-components/p-be3f5ac0.entry.js +0 -2
- package/dist/taro-components/p-be3f5ac0.entry.js.map +0 -1
- package/dist/taro-components/p-beea63a7.entry.js +0 -2
- package/dist/taro-components/p-beea63a7.entry.js.map +0 -1
- package/dist/taro-components/p-c0e3c822.system.entry.js +0 -2
- package/dist/taro-components/p-c0e3c822.system.entry.js.map +0 -1
- package/dist/taro-components/p-c3bb8fa6.entry.js +0 -2
- package/dist/taro-components/p-c3bb8fa6.entry.js.map +0 -1
- package/dist/taro-components/p-c43fe342.system.entry.js +0 -2
- package/dist/taro-components/p-c43fe342.system.entry.js.map +0 -1
- package/dist/taro-components/p-c4cf58af.system.entry.js +0 -2
- package/dist/taro-components/p-c4cf58af.system.entry.js.map +0 -1
- package/dist/taro-components/p-c5c331bf.system.entry.js +0 -2
- package/dist/taro-components/p-c5c331bf.system.entry.js.map +0 -1
- package/dist/taro-components/p-cb17d8bd.system.js +0 -2
- package/dist/taro-components/p-cb17d8bd.system.js.map +0 -1
- package/dist/taro-components/p-cbe2436d.system.entry.js +0 -2
- package/dist/taro-components/p-cbe2436d.system.entry.js.map +0 -1
- package/dist/taro-components/p-cd6a7eea.entry.js +0 -2
- package/dist/taro-components/p-cd6a7eea.entry.js.map +0 -1
- package/dist/taro-components/p-d388c097.entry.js +0 -2
- package/dist/taro-components/p-d388c097.entry.js.map +0 -1
- package/dist/taro-components/p-d4b6f19e.system.entry.js +0 -2
- package/dist/taro-components/p-d4b6f19e.system.entry.js.map +0 -1
- package/dist/taro-components/p-d619f198.system.entry.js +0 -2
- package/dist/taro-components/p-d619f198.system.entry.js.map +0 -1
- package/dist/taro-components/p-d6441fd8.entry.js +0 -2
- package/dist/taro-components/p-d6441fd8.entry.js.map +0 -1
- package/dist/taro-components/p-d7ab3e23.system.entry.js +0 -2
- package/dist/taro-components/p-d7ab3e23.system.entry.js.map +0 -1
- package/dist/taro-components/p-d7f4b10f.entry.js +0 -2
- package/dist/taro-components/p-d7f4b10f.entry.js.map +0 -1
- package/dist/taro-components/p-d85b216d.entry.js +0 -2
- package/dist/taro-components/p-d85b216d.entry.js.map +0 -1
- package/dist/taro-components/p-dcb48fd9.system.entry.js +0 -2
- package/dist/taro-components/p-dcb48fd9.system.entry.js.map +0 -1
- package/dist/taro-components/p-dcfb7d97.system.entry.js +0 -2
- package/dist/taro-components/p-dcfb7d97.system.entry.js.map +0 -1
- package/dist/taro-components/p-de762042.entry.js +0 -2
- package/dist/taro-components/p-de762042.entry.js.map +0 -1
- package/dist/taro-components/p-df862d0c.entry.js +0 -2
- package/dist/taro-components/p-df862d0c.entry.js.map +0 -1
- package/dist/taro-components/p-e0d6b00b.entry.js +0 -2
- package/dist/taro-components/p-e0d6b00b.entry.js.map +0 -1
- package/dist/taro-components/p-e4f1cc50.entry.js +0 -2
- package/dist/taro-components/p-e4f1cc50.entry.js.map +0 -1
- package/dist/taro-components/p-e5607803.system.entry.js +0 -2
- package/dist/taro-components/p-e5607803.system.entry.js.map +0 -1
- package/dist/taro-components/p-e59f999e.entry.js +0 -2
- package/dist/taro-components/p-e59f999e.entry.js.map +0 -1
- package/dist/taro-components/p-e7239faa.system.entry.js +0 -2
- package/dist/taro-components/p-e7239faa.system.entry.js.map +0 -1
- package/dist/taro-components/p-e7965c55.system.entry.js +0 -2
- package/dist/taro-components/p-e7965c55.system.entry.js.map +0 -1
- package/dist/taro-components/p-e98c07c3.system.entry.js +0 -2
- package/dist/taro-components/p-e98c07c3.system.entry.js.map +0 -1
- package/dist/taro-components/p-eddd00e9.system.entry.js +0 -2
- package/dist/taro-components/p-eddd00e9.system.entry.js.map +0 -1
- package/dist/taro-components/p-ef029c30.system.entry.js +0 -2
- package/dist/taro-components/p-ef029c30.system.entry.js.map +0 -1
- package/dist/taro-components/p-f00ee372.system.entry.js +0 -2
- package/dist/taro-components/p-f00ee372.system.entry.js.map +0 -1
- package/dist/taro-components/p-f0d0160d.system.entry.js +0 -2
- package/dist/taro-components/p-f0d0160d.system.entry.js.map +0 -1
- package/dist/taro-components/p-f120c272.entry.js +0 -2
- package/dist/taro-components/p-f120c272.entry.js.map +0 -1
- package/dist/taro-components/p-f2c75971.system.entry.js +0 -2
- package/dist/taro-components/p-f2c75971.system.entry.js.map +0 -1
- package/dist/taro-components/p-f81d14ad.entry.js +0 -2
- package/dist/taro-components/p-f81d14ad.entry.js.map +0 -1
- package/dist/taro-components/p-fae28cc1.system.entry.js +0 -2
- package/dist/taro-components/p-fae28cc1.system.entry.js.map +0 -1
- package/dist/taro-components/p-fb843ff2.system.entry.js +0 -2
- package/dist/taro-components/p-fb843ff2.system.entry.js.map +0 -1
- package/dist/taro-components/p-fc0fbcce.system.entry.js +0 -2
- package/dist/taro-components/p-fc0fbcce.system.entry.js.map +0 -1
- package/dist/taro-components/p-ffc44634.entry.js +0 -2
- package/dist/taro-components/p-ffc44634.entry.js.map +0 -1
- package/dist/vue2/component-lib/components.js +0 -71
- package/dist/vue2/component-lib/createComponent.js +0 -21
- package/dist/vue2/component-lib/createFormsComponent.js +0 -53
- package/dist/vue2/component-lib/icon.js +0 -19
- package/dist/vue2/component-lib/image.js +0 -20
- package/dist/vue2/component-lib/index.js +0 -28
- package/dist/vue2/component-lib/mixins/listeners.js +0 -14
- package/dist/vue2/component-lib/mixins/refs.js +0 -44
- package/dist/vue2/component-lib/picker.js +0 -40
- package/dist/vue2/component-lib/scroll-view.js +0 -32
- package/dist/vue2/component-lib/text.js +0 -20
- package/dist/vue2/components.js +0 -542
- package/dist/vue2/index.js +0 -22
- package/dist/vue2/vue-component-lib/utils.js +0 -40
- package/dist/vue3/component-lib/createComponent.js +0 -23
- package/dist/vue3/component-lib/createFormsComponent.js +0 -43
- package/dist/vue3/component-lib/forwardRef.js +0 -9
- package/dist/vue3/component-lib/icon.js +0 -21
- package/dist/vue3/component-lib/image.js +0 -22
- package/dist/vue3/component-lib/index.js +0 -76
- package/dist/vue3/component-lib/scroll-view.js +0 -28
- package/dist/vue3/component-lib/text.js +0 -22
- package/dist/vue3/components.js +0 -80
- package/dist/vue3/index.js +0 -17
- package/dist/vue3/vue-component-lib/utils.js +0 -175
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as o}from"./p-78e3ebb9.js";import{c as h}from"./p-76724e58.js";const n="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";const r=class{constructor(e){t(this,e);this.onLongPress=s(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}onTouchStart(){if(this.hoverClass){this.touch=true;setTimeout((()=>{if(this.touch){this.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350);this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){const t=Date.now()-this.startTime;if(t<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((()=>{if(!this.touch){this.hover=false}}),this.hoverStayTime)}}componentDidRender(){const t=this.el;t.childNodes.forEach((t=>{if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false;if(t.nodeType!==document.COMMENT_NODE&&t["s-sr"])t["s-sr"]=false}))}render(){const t=h({[`${this.hoverClass}`]:this.hover});let s={};if(!!this.animation){s["animation"]=this.animation;s["data-animation"]=this.animation}return e(i,Object.assign({class:t},s),e("slot",null))}get el(){return o(this)}};r.style=n;export{r as taro_view_core};
|
|
2
|
+
//# sourceMappingURL=p-e67165fd.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["indexCss","View","this","startTime","onTouchStart","hoverClass","touch","setTimeout","hover","hoverStartTime","timeoutEvent","onLongPress","emit","Date","now","onTouchMove","clearTimeout","onTouchEnd","spanTime","hoverStayTime","componentDidRender","el","childNodes","forEach","item","nodeType","document","COMMENT_NODE","render","cls","classNames","attr","animation","h","Host","Object","assign","class"],"sources":["./src/components/view/style/index.scss?tag=taro-view-core","./src/components/view/view.tsx"],"sourcesContent":["body,\nhtml {\n user-select: none;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n}\n\ntaro-view-core {\n display: block;\n}\n","import { Component, Prop, h, ComponentInterface, Host, Listen, State, Event, EventEmitter, Element } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-view-core',\n styleUrl: './style/index.scss'\n})\nexport class View implements ComponentInterface {\n @Element() el: HTMLElement\n\n @Prop() animation: string\n @Prop() hoverClass: string\n @Prop() hoverStartTime = 50\n @Prop() hoverStayTime = 400\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n private timeoutEvent: ReturnType<typeof setTimeout>\n private startTime = 0\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.hoverClass) {\n this.touch = true\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n\n this.timeoutEvent = setTimeout(() => {\n this.onLongPress.emit()\n }, 350)\n this.startTime = Date.now()\n }\n\n @Listen('touchmove')\n onTouchMove () {\n clearTimeout(this.timeoutEvent)\n }\n\n @Listen('touchend')\n onTouchEnd () {\n const spanTime = Date.now() - this.startTime\n if (spanTime < 350) {\n clearTimeout(this.timeoutEvent)\n }\n if (this.hoverClass) {\n this.touch = false\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n }\n\n componentDidRender () {\n const el = this.el\n el.childNodes.forEach(item => {\n // Note: ['s-cn'] Content Reference Node\n if (item.nodeType === document.COMMENT_NODE && item['s-cn']) item['s-cn'] = false\n // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)\n if (item.nodeType !== document.COMMENT_NODE && item['s-sr']) item['s-sr'] = false\n })\n }\n\n render() {\n const cls = classNames({\n [`${this.hoverClass}`]: this.hover\n })\n let attr = {}\n if (!!this.animation) {\n attr['animation'] = this.animation\n attr['data-animation'] = this.animation\n }\n return (\n <Host class={cls} {...attr}>\n <slot></slot>\n </Host>\n )\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAW,4K,MCOJC,EAAI,M,gEAePC,KAAAC,UAAY,E,uEAVK,G,mBACD,I,WACP,M,WACA,K,CAUjBC,eACE,GAAIF,KAAKG,WAAY,CACnBH,KAAKI,MAAQ,KACbC,YAAW,KACT,GAAIL,KAAKI,MAAO,CACdJ,KAAKM,MAAQ,I,IAEdN,KAAKO,e,CAGVP,KAAKQ,aAAeH,YAAW,KAC7BL,KAAKS,YAAYC,MAAM,GACtB,KACHV,KAAKC,UAAYU,KAAKC,K,CAIxBC,cACEC,aAAad,KAAKQ,a,CAIpBO,aACE,MAAMC,EAAWL,KAAKC,MAAQZ,KAAKC,UACnC,GAAIe,EAAW,IAAK,CAClBF,aAAad,KAAKQ,a,CAEpB,GAAIR,KAAKG,WAAY,CACnBH,KAAKI,MAAQ,MACbC,YAAW,KACT,IAAKL,KAAKI,MAAO,CACfJ,KAAKM,MAAQ,K,IAEdN,KAAKiB,c,EAIZC,qBACE,MAAMC,EAAKnB,KAAKmB,GAChBA,EAAGC,WAAWC,SAAQC,IAEpB,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,MAE5E,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,KAAK,G,CAIrFI,SACE,MAAMC,EAAMC,EAAW,CACrB,CAAC,GAAG5B,KAAKG,cAAeH,KAAKM,QAE/B,IAAIuB,EAAO,GACX,KAAM7B,KAAK8B,UAAW,CACpBD,EAAK,aAAe7B,KAAK8B,UACzBD,EAAK,kBAAoB7B,KAAK8B,S,CAEhC,OACEC,EAACC,EAAIC,OAAAC,OAAA,CAACC,MAAOR,GAASE,GACpBE,EAAA,a"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as t,H as o}from"./p-78e3ebb9.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(t){r(this,t)}componentDidLoad(){a("TabItem",this)}render(){return t(o,null)}};export{s as taro_tab_item_core};
|
|
2
|
+
//# sourceMappingURL=p-eb2a7609.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TabItem","componentDidLoad","notSupport","this","render","h","Host"],"sources":["./src/components/tabs/tab-item.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-tab-item-core'\n})\nexport class TabItem implements ComponentInterface {\n componentDidLoad () {\n notSupport('TabItem', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"4GAOaA,EAAO,M,yBAClBC,mBACEC,EAAW,UAAWC,K,CAGxBC,SACE,OACEC,EAACC,EAAI,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as t,H as r}from"./p-78e3ebb9.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(t){o(this,t)}componentDidLoad(){s("Lottie",this)}render(){return t(r,null)}};export{a as taro_lottie_core};
|
|
2
|
+
//# sourceMappingURL=p-eb9adf17.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Lottie","componentDidLoad","notSupport","this","render","h","Host"],"sources":["./src/components/lottie/lottie.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-lottie-core'\n})\nexport class Lottie implements ComponentInterface {\n componentDidLoad () {\n notSupport('Lottie', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"iHAOaA,EAAM,M,yBACjBC,mBACEC,EAAW,SAAUC,K,CAGvBC,SACE,OACEC,EAACC,EAAI,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-78e3ebb9.js";const h="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function a(t){return t!==null&&t!==void 0?t:""}const n=class{constructor(i){t(this,i);this.onInput=e(this,"input",7);this.onFocus=e(this,"focus",7);this.onBlur=e(this,"blur",7);this.onChange=e(this,"change",7);this.onLineChange=e(this,"linechange",7);this.handleInput=t=>{t.stopPropagation();this.handleLineChange();const e=t.target.value||"";this.onInput.emit({value:e,cursor:e.length})};this.handleFocus=t=>{t.stopPropagation();this.onFocus.emit({value:t.target.value})};this.handleBlur=t=>{t.stopPropagation();this.onBlur.emit({value:t.target.value})};this.handleChange=t=>{t.stopPropagation();this.onChange.emit({value:t.target.value})};this.handleLineChange=()=>{const t=this.getNumberOfLines();if(t!==this.line){this.line=t;this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line})}};this.calculateContentHeight=(t,e)=>{let i=t.style.height,s=t.offsetHeight,h=t.scrollHeight,a=t.style.overflow,n=t.style.minHeight||null;if(s>=h){t.style.minHeight=0;t.style.height=s+e+"px";t.style.overflow="hidden";if(h<t.scrollHeight){while(t.offsetHeight>=t.scrollHeight){t.style.height=(s-=e)+"px"}while(t.offsetHeight<t.scrollHeight){t.style.height=s+++"px"}t.style.height=i;t.style.overflow=a;t.style.minHeight=n;return s}}else{return h}};this.getNumberOfLines=()=>{const t=this.textareaRef,e=window.getComputedStyle?window.getComputedStyle(t):t.style,i=parseInt(e.lineHeight,10),s=this.calculateContentHeight(t,i),h=Math.floor(s/i);return h};this.value=undefined;this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.name=undefined;this.nativeProps={};this.line=1}focus(){this.textareaRef.focus()}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.textareaRef.value,set:t=>this.value=t,configurable:true});this.autoFocus&&this.textareaRef.focus()}render(){const{value:t,placeholder:e,disabled:s,maxlength:h,autoFocus:n,autoHeight:o,name:r,nativeProps:l,handleInput:u,handleFocus:c,handleBlur:d,handleChange:p}=this;const f={};if(o){f.rows=this.line}return i("textarea",Object.assign({ref:t=>{if(t){this.textareaRef=t}},class:`taro-textarea ${o?"auto-height":""}`,value:a(t),placeholder:e,name:r,disabled:s,maxlength:h,autofocus:n,onInput:u,onFocus:c,onBlur:d,onChange:p},l,f))}get el(){return s(this)}};n.style=h;export{n as taro_textarea_core};
|
|
2
|
+
//# sourceMappingURL=p-ef4c1fd4.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["indexCss","fixControlledValue","value","Textarea","this","handleInput","e","stopPropagation","handleLineChange","target","onInput","emit","cursor","length","handleFocus","onFocus","handleBlur","onBlur","handleChange","onChange","line","getNumberOfLines","onLineChange","height","textareaRef","clientHeight","lineCount","calculateContentHeight","ta","scanAmount","origHeight","style","offsetHeight","scrollHeight","overflow","originMinHeight","minHeight","window","getComputedStyle","taLineHeight","parseInt","lineHeight","taHeight","numberOfLines","Math","floor","focus","componentDidLoad","Object","defineProperty","el","get","set","configurable","autoFocus","render","placeholder","disabled","maxlength","autoHeight","name","nativeProps","otherProps","rows","h","assign","ref","input","class","autofocus"],"sources":["./src/components/textarea/style/index.scss?tag=taro-textarea-core","./src/components/textarea/textarea.tsx"],"sourcesContent":["taro-textarea-core {\n display: block;\n width: 300px;\n}\n\ntaro-textarea-core .auto-height {\n height: auto;\n}\n\n.taro-textarea {\n &:focus {\n outline: none;\n }\n\n display: block;\n position: relative;\n border: 0;\n width: 100%;\n height: inherit;\n appearance: none;\n cursor: auto;\n line-height: 1.5;\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Element, Method } from '@stencil/core'\nimport { TaroEvent } from '../../../types'\n\nfunction fixControlledValue(value?: string) {\n return value ?? ''\n}\n\n@Component({\n tag: 'taro-textarea-core',\n styleUrl: './style/index.scss'\n})\nexport class Textarea implements ComponentInterface {\n private textareaRef: HTMLTextAreaElement\n\n @Element() el: HTMLElement\n\n @Prop({ mutable: true }) value: string\n @Prop() placeholder: string\n @Prop() disabled = false\n @Prop() maxlength = 140\n @Prop() autoFocus = false\n @Prop() autoHeight = false\n @Prop() name: string\n @Prop() nativeProps = {}\n @State() line = 1\n\n @Event({\n eventName: 'input'\n })\n onInput: EventEmitter\n\n @Event({\n eventName: 'focus'\n })\n onFocus: EventEmitter\n\n @Event({\n eventName: 'blur'\n })\n onBlur: EventEmitter\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n @Event({\n eventName: 'linechange' // 必须全小写\n })\n onLineChange: EventEmitter\n\n @Method()\n focus() {\n this.textareaRef.focus()\n }\n\n componentDidLoad() {\n Object.defineProperty(this.el, 'value', {\n get: () => this.textareaRef.value,\n set: value => (this.value = value),\n configurable: true\n })\n this.autoFocus && this.textareaRef.focus()\n }\n\n handleInput = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.handleLineChange()\n const value = e.target.value || ''\n this.onInput.emit({\n value,\n cursor: value.length\n })\n }\n\n handleFocus = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onFocus.emit({\n value: e.target.value\n })\n }\n\n handleBlur = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onBlur.emit({\n value: e.target.value\n })\n }\n\n handleChange = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.onChange.emit({\n value: e.target.value\n })\n }\n\n handleLineChange = () => {\n const line = this.getNumberOfLines()\n if (line !== this.line) {\n this.line = line\n this.onLineChange.emit({\n height: this.textareaRef.clientHeight,\n lineCount: this.line\n })\n }\n }\n\n calculateContentHeight = (ta, scanAmount) => {\n let origHeight = ta.style.height,\n height = ta.offsetHeight,\n scrollHeight = ta.scrollHeight,\n overflow = ta.style.overflow,\n originMinHeight = ta.style.minHeight || null\n\n /// only bother if the ta is bigger than content\n if (height >= scrollHeight) {\n ta.style.minHeight = 0\n /// check that our browser supports changing dimension\n /// calculations mid-way through a function call...\n ta.style.height = height + scanAmount + 'px'\n /// because the scrollbar can cause calculation problems\n ta.style.overflow = 'hidden'\n /// by checking that scrollHeight has updated\n if (scrollHeight < ta.scrollHeight) {\n /// now try and scan the ta's height downwards\n /// until scrollHeight becomes larger than height\n while (ta.offsetHeight >= ta.scrollHeight) {\n ta.style.height = (height -= scanAmount) + 'px'\n }\n /// be more specific to get the exact height\n while (ta.offsetHeight < ta.scrollHeight) {\n ta.style.height = height++ + 'px'\n }\n /// reset the ta back to it's original height\n ta.style.height = origHeight\n /// put the overflow back\n ta.style.overflow = overflow\n ta.style.minHeight = originMinHeight\n return height\n }\n } else {\n return scrollHeight\n }\n }\n\n getNumberOfLines = () => {\n const ta = this.textareaRef,\n style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style,\n // This will get the line-height only if it is set in the css,\n // otherwise it's \"normal\"\n taLineHeight = parseInt(style.lineHeight, 10),\n // Get the scroll height of the textarea\n taHeight = this.calculateContentHeight(ta, taLineHeight),\n // calculate the number of lines\n numberOfLines = Math.floor(taHeight / taLineHeight)\n\n return numberOfLines\n }\n\n render() {\n const {\n value,\n placeholder,\n disabled,\n maxlength,\n autoFocus,\n autoHeight,\n name,\n nativeProps,\n handleInput,\n handleFocus,\n handleBlur,\n handleChange\n } = this\n\n const otherProps: {\n [props: string]: any\n } = {}\n\n if (autoHeight) {\n otherProps.rows = this.line\n }\n\n return (\n <textarea\n ref={input => {\n if (input) {\n this.textareaRef = input\n }\n }}\n class={`taro-textarea ${autoHeight ? 'auto-height' : ''}`}\n value={fixControlledValue(value)}\n placeholder={placeholder}\n name={name}\n disabled={disabled}\n maxlength={maxlength}\n autofocus={autoFocus}\n onInput={handleInput}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...nativeProps}\n {...otherProps}\n />\n )\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAW,ySCGjB,SAASC,EAAmBC,GAC1B,OAAOA,IAAK,MAALA,SAAK,EAALA,EAAS,EAClB,C,MAMaC,EAAQ,M,8LAsDnBC,KAAAC,YAAeC,IACbA,EAAEC,kBACFH,KAAKI,mBACL,MAAMN,EAAQI,EAAEG,OAAOP,OAAS,GAChCE,KAAKM,QAAQC,KAAK,CAChBT,QACAU,OAAQV,EAAMW,QACd,EAGJT,KAAAU,YAAe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EAAeC,SAAST,EAAMU,WAAY,IAE1CC,EAAWtC,KAAKuB,uBAAuBC,EAAIW,GAE3CI,EAAgBC,KAAKC,MAAMH,EAAWH,GAExC,OAAOI,CAAa,E,8DA1IH,M,eACC,I,eACA,M,gBACC,M,qCAEC,G,UACN,C,CA4BhBG,QACE1C,KAAKoB,YAAYsB,O,CAGnBC,mBACEC,OAAOC,eAAe7C,KAAK8C,GAAI,QAAS,CACtCC,IAAK,IAAM/C,KAAKoB,YAAYtB,MAC5BkD,IAAKlD,GAAUE,KAAKF,MAAQA,EAC5BmD,aAAc,OAEhBjD,KAAKkD,WAAalD,KAAKoB,YAAYsB,O,CAiGrCS,SACE,MAAMrD,MACJA,EAAKsD,YACLA,EAAWC,SACXA,EAAQC,UACRA,EAASJ,UACTA,EAASK,WACTA,EAAUC,KACVA,EAAIC,YACJA,EAAWxD,YACXA,EAAWS,YACXA,EAAWE,WACXA,EAAUE,aACVA,GACEd,KAEJ,MAAM0D,EAEF,GAEJ,GAAIH,EAAY,CACdG,EAAWC,KAAO3D,KAAKgB,I,CAGzB,OACE4C,EAAA,WAAAhB,OAAAiB,OAAA,CACEC,IAAKC,IACH,GAAIA,EAAO,CACT/D,KAAKoB,YAAc2C,C,GAGvBC,MAAO,iBAAiBT,EAAa,cAAgB,KACrDzD,MAAOD,EAAmBC,GAC1BsD,YAAaA,EACbI,KAAMA,EACNH,SAAUA,EACVC,UAAWA,EACXW,UAAWf,EACX5C,QAASL,EACTU,QAASD,EACTG,OAAQD,EACRG,SAAUD,GACN2C,EACAC,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-1a0e1932.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_functional_page_navigator_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FunctionalPageNavigator",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-ef7e7d73.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FunctionalPageNavigator","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"sources":["src/components/functional-page-navigator/functional-page-navigator.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-functional-page-navigator-core'\n})\nexport class FunctionalPageNavigator implements ComponentInterface {\n componentDidLoad () {\n notSupport('FunctionalPageNavigator', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"gOAOaA,EAAuBC,EAAA,iD,wBAClCC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,0BAA2BC,K,EAGxCJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,K,WAPyB,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++){if(n||!(a in t)){if(!n)n=Array.prototype.slice.call(t,0,a);n[a]=t[a]}}return e.concat(n||Array.prototype.slice.call(t))};System.register(["./p-1a0e1932.system.js","@tarojs/taro","./p-61f225ef.system.js","./p-bd5177d3.system.js"],(function(e){"use strict";var t,r,a,o,n,i,s,l;return{setters:[function(e){t=e.h;r=e.r;a=e.c;o=e.H;n=e.g},function(e){i=e.default},function(e){s=e.c},function(e){l=e.i}],execute:function(){var d=function(e){var t=e||"";var r;var a={path:null,query:null,fragment:null};r=t.indexOf("#");if(r>-1){a.fragment=t.substring(r+1);t=t.substring(0,r)}r=t.indexOf("?");if(r>-1){a.query=t.substring(r+1);t=t.substring(0,r)}a.path=t;return a};var b=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var h=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)||e===t};var c=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return h(e,t)?e.substring(t.length):e};var f=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return e.includes(t)?e.substring(0,e.length-t.length):e};var u=function(e,t){if(e===void 0){e="hash"}if(t===void 0){t="/"}var r=e==="hash"?location.hash.slice(1).split("?")[0]:location.pathname;return b(c(r,t))};function v(e){return e.charAt(0)==="/"}function g(e,t){for(var r=t,a=r+1,o=e.length;a<o;r+=1,a+=1){e[r]=e[a]}e.pop()}function p(e,t){if(t===undefined)t="";var r=e&&e.split("/")||[];var a=t&&t.split("/")||[];var o=e&&v(e);var n=t&&v(t);var i=o||n;if(e&&v(e)){a=r}else if(r.length){a.pop();a=a.concat(r)}if(!a.length)return"/";var s;if(a.length){var l=a[a.length-1];s=l==="."||l===".."||l===""}else{s=false}var d=0;for(var b=a.length;b>=0;b--){var h=a[b];if(h==="."){g(a,b)}else if(h===".."){g(a,b);d++}else if(d){g(a,b);d--}}if(!i)for(;d--;d)a.unshift("..");if(i&&a[0]!==""&&(!a[0]||!v(a[0])))a.unshift("");var c=a.join("/");if(s&&c.substr(-1)!=="/")c+="/";return c}var _=function(e){var r=e.index,a=e.isSelected,o=a===void 0?false:a,n=e.textColor,d=e.iconPath,b=e.badgeText,h=e.showRedDot,c=h===void 0?false:h,f=e.pagePath,u=e.text,v=e.onSelect;var g=s("weui-tabbar__item",{"weui-bar__item_on":o});var p={position:"absolute",top:"-2px",right:"-13px"};var _={position:"absolute",top:"0",right:"-6px"};function m(){var e=i.getCurrentPages().shift();if(typeof(e===null||e===void 0?void 0:e.onTabItemTap)==="function"&&l(this)){e.onTabItemTap({index:r,pagePath:f,text:u})}v(r)}return t("a",{key:r,href:"javascript:;",class:g,onClick:m},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:d,alt:"",class:"weui-tabbar__icon"}),!!b&&t("span",{class:"weui-badge taro-tabbar-badge",style:p},b),c&&t("span",{class:"weui-badge weui-badge_dot",style:_})),t("p",{class:"weui-tabbar__label",style:{color:n}},u))};var m="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var T=0;var B=1;var y=2;var H="taro-tabbar__tabbar";var x="taro-tabbar__tabbar-hide";var w="taro-tabbar__tabbar-slideout";var C=e("taro_tabbar",function(){function e(e){var t=this;r(this,e);this.onLongPress=a(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.getOriginUrl=function(e){var r=t.customRoutes.filter((function(t){var r=t[1];var a=d(r).path;var o=d(e).path;return a===o}));return f(r.length?r[0][0]:e,".html")};this.getSelectedIndex=function(e){var r=-1;t.list.forEach((function(t,a){var o=t.pagePath;var n=d(e).path;var i=d(o).path;if(n===i){r=a}}));return r};this.switchTab=function(e){t.selectedIndex=e;i.switchTab({url:t.list[e].pagePath})};this.switchTabHandler=function(e){var r=e.url,a=e.successHandler,o=e.errorHandler;var n=t.getOriginUrl(t.getCurrentUrl()||t.homePage);var i=p(r,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);a({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'.concat(i,'" is not found')})}};this.routerChangeHandler=function(e){var r;var a=(r=e===null||e===void 0?void 0:e.toLocation)===null||r===void 0?void 0:r.path;var o;if(typeof a==="string"){var n=t.conf.basename||"/";o=c(b(a||t.homePage),n)||"/"}else{o=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var r=e.index,a=e.text,o=e.successHandler,n=e.errorHandler;var i=__spreadArray([],t.list,true);if(r in i){i[r].showRedDot=false;i[r].badgeText=a;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}t.list=i};this.removeTabBarBadgeHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].badgeText=null;a({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}t.list=n};this.showTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].showRedDot=true;a({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}t.list=n};this.hideTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].showRedDot=false;a({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}t.list=n};this.showTabBarHandler=function(e){var r=e.successHandler;t.status=T;r({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var r=e.animation,a=e.successHandler;t.status=r?y:B;a({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var r=e.color,a=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,i=e.successHandler;if(o)t.backgroundColor=o;if(n)t.borderStyle=n;if(r)t.color=r;if(a)t.selectedColor=a;i({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var r=e.index,a=e.iconPath,o=e.selectedIconPath,n=e.text,i=e.successHandler,s=e.errorHandler;var l=__spreadArray([],t.list,true);if(r in l){if(a)l[r].iconPath=a;if(o)l[r].selectedIconPath=o;if(n)l[r].text=n;i({errMsg:"setTabBarItem:ok"})}else{s({errMsg:"setTabBarItem:fail tabbar item not found"})}t.list=l};this.conf=undefined;this.list=undefined;this.borderStyle=undefined;this.backgroundColor=undefined;this.color=undefined;this.selectedColor=undefined;this.selectedIndex=-1;this.status=T;var o=this.conf.list;var n=this.conf.customRoutes;if(Object.prototype.toString.call(o)!=="[object Array]"||o.length<2||o.length>5){throw new Error("tabBar 配置错误")}this.homePage=b(this.conf.homePage);var s=function(e){var t;var r=n[e];e=b(e);if(typeof r==="string"){l.customRoutes.push([e,b(r)])}else if((r===null||r===void 0?void 0:r.length)>0){(t=l.customRoutes).push.apply(t,r.map((function(t){return[e,b(t)]})))}};var l=this;for(var h in n){s(h)}o.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=o;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=u(this.conf.mode,this.conf.basename);return decodeURI(e==="/"?this.homePage:e)};e.prototype.bindEvent=function(){i.eventCenter.on("__taroRouterChange",this.routerChangeHandler);i.eventCenter.on("__taroSwitchTab",this.switchTabHandler);i.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){i.eventCenter.off("__taroRouterChange",this.routerChangeHandler);i.eventCenter.off("__taroSwitchTab",this.switchTabHandler);i.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,r;var a=this;var n=this.tabbarPos,i=n===void 0?"bottom":n;var l=this.status;var d=s("weui-tabbar",(e={},e["taro-tabbar__border-".concat(this.borderStyle||"black")]=true,e));var b=this.selectedIndex===-1||l===B;var h=l===y;return t(o,{class:s(H,"".concat(H,"-").concat(i),(r={},r[x]=b,r[w]=h,r))},t("div",{class:d,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,r){var o=a.selectedIndex===r;var n;var i;if(o){n=a.selectedColor||"";i=e.selectedIconPath}else{n=a.color||"";i=e.iconPath}return t(_,{index:r,onSelect:a.switchTab.bind(a),isSelected:o,textColor:n,iconPath:i,pagePath:e.pagePath,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());C.style=m}}}));
|
|
2
|
+
//# sourceMappingURL=p-efa51030.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["splitUrl","_url","url","pos","res","path","query","fragment","indexOf","substring","addLeadingSlash","charAt","hasBasename","prefix","RegExp","test","stripBasename","length","stripSuffix","suffix","includes","getCurrentPage","routerMode","basename","pagePath","location","hash","slice","split","pathname","isAbsolute","spliceOne","list","index","i","k","n","pop","resolvePathname","to","from","undefined","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","concat","hasTrailingSlash","last","up","part","unshift","result","join","substr","TabbarItem","_b","_c","isSelected","textColor","iconPath","badgeText","_d","showRedDot","text","onSelect","className","classNames","badgeStyle","position","top","right","dotStyle","onClick","page","Taro","getCurrentPages","shift","onTabItemTap","isVisible","this","h","key","href","class","style","display","src","alt","color","indexCss","STATUS_SHOW","STATUS_HIDE","STATUS_SLIDEOUT","basicTabBarClassName","hideTabBarClassName","hideTabBarWithAnimationClassName","Tabbar","exports","class_1","hostRef","_this","homePage","customRoutes","tabbarPos","getOriginUrl","customRoute","filter","customUrl","pathA","pathB","getSelectedIndex","foundIndex","forEach","idx","switchTab","selectedIndex","switchTabHandler","successHandler","errorHandler","currentUrl","getCurrentUrl","nextTab","errMsg","routerChangeHandler","options","_a","toLocation","currentPage","routerBasename","conf","setTabBarBadgeHandler","__spreadArray","removeTabBarBadgeHandler","showTabBarRedDotHandler","hideTabBarRedDotHandler","showTabBarHandler","status","hideTabBarHandler","animation","setTabBarStyleHandler","selectedColor","backgroundColor","borderStyle","setTabBarItemHandler","selectedIconPath","Object","prototype","toString","call","Error","this_1","push","apply","map","p","item","routePath","mode","decodeURI","bindEvent","eventCenter","on","removeEvent","off","componentDidLoad","tabbar","nextElementSibling","disconnectedCallback","render","containerCls","shouldHideTabBar","shouldSlideout","Host","height","bind"],"sources":["src/utils/url.ts","../taro-router/dist/utils/index.js","../../node_modules/.pnpm/registry.npmjs.org+resolve-pathname@3.0.0/node_modules/resolve-pathname/esm/resolve-pathname.js","src/components/tabbar/tabbar-item.tsx","src/components/tabbar/style/index.scss?tag=taro-tabbar","src/components/tabbar/tabbar.tsx"],"sourcesContent":["export const normalizePath = url => {\n let _isRelative\n let _leadingParents = ''\n let _parent, _pos\n\n // handle relative paths\n if (url.charAt(0) !== '/') {\n _isRelative = true\n url = '/' + url\n }\n\n // handle relative files (as opposed to directories)\n if (url.substring(-3) === '/..' || url.slice(-2) === '/.') {\n url += '/'\n }\n\n // resolve simples\n url = url.replace(/(\\/(\\.\\/)+)|(\\/\\.$)/g, '/').replace(/\\/{2,}/g, '/')\n\n // remember leading parents\n if (_isRelative) {\n _leadingParents = url.substring(1).match(/^(\\.\\.\\/)+/) || ''\n if (_leadingParents) {\n _leadingParents = _leadingParents[0]\n }\n }\n\n // resolve parents\n while (true) {\n _parent = url.search(/\\/\\.\\.(\\/|$)/)\n if (_parent === -1) {\n // no more ../ to resolve\n break\n } else if (_parent === 0) {\n // top level cannot be relative, skip it\n url = url.substring(3)\n continue\n }\n\n _pos = url.substring(0, _parent).lastIndexOf('/')\n if (_pos === -1) {\n _pos = _parent\n }\n url = url.substring(0, _pos) + url.substring(_parent + 3)\n }\n\n // revert to relative\n if (_isRelative) {\n url = _leadingParents + url.substring(1)\n }\n\n return url\n}\n\nexport const splitUrl = _url => {\n let url = _url || ''\n let pos\n const res = {\n path: null,\n query: null,\n fragment: null\n }\n\n pos = url.indexOf('#')\n if (pos > -1) {\n res.fragment = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n pos = url.indexOf('?')\n if (pos > -1) {\n res.query = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n res.path = url\n\n return res\n}\n","// export const removeLeadingSlash = (str = '') => str.replace(/^\\.?\\//, '')\n// export const removeTrailingSearch = (str = '') => str.replace(/\\?[\\s\\S]*$/, '')\nexport const addLeadingSlash = (url = '') => (url.charAt(0) === '/' ? url : '/' + url);\nexport const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\\\/|\\\\?|#|$)', 'i').test(path) || path === prefix;\nexport const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substring(prefix.length) : path;\nexport const stripTrailing = (str = '') => str.replace(/[?#][\\s\\S]*$/, '');\nexport const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;\nexport const getHomePage = (path = '', basename = '', customRoutes = {}, entryPagePath = '') => {\n var _a;\n const routePath = addLeadingSlash(stripBasename(path, basename));\n const alias = ((_a = Object.entries(customRoutes).find(([key]) => key === routePath)) === null || _a === void 0 ? void 0 : _a[1]) || routePath;\n return entryPagePath || (typeof alias === 'string' ? alias : alias[0]) || basename;\n};\nexport const getCurrentPage = (routerMode = 'hash', basename = '/') => {\n const pagePath = routerMode === 'hash'\n ? location.hash.slice(1).split('?')[0]\n : location.pathname;\n return addLeadingSlash(stripBasename(pagePath, basename));\n};\nclass RoutesAlias {\n constructor() {\n this.conf = [];\n this.getConfig = (url = '') => {\n const customRoute = this.conf.filter((arr) => {\n return arr.includes(url);\n });\n return customRoute[0];\n };\n this.getOrigin = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[0]) || url;\n };\n this.getAlias = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[1]) || url;\n };\n this.getAll = (url = '') => {\n return this.conf\n .filter((arr) => arr.includes(url))\n .reduceRight((p, a) => {\n p.unshift(a[1]);\n return p;\n }, []);\n };\n }\n set(customRoutes = {}) {\n for (let key in customRoutes) {\n const path = customRoutes[key];\n key = addLeadingSlash(key);\n if (typeof path === 'string') {\n this.conf.push([key, addLeadingSlash(path)]);\n }\n else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {\n this.conf.push(...path.map(p => [key, addLeadingSlash(p)]));\n }\n }\n }\n}\nexport const routesAlias = new RoutesAlias();\n","function isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nexport default resolvePathname;\n","import classNames from 'classnames'\nimport { FunctionalComponent, h } from '@stencil/core'\nimport Taro from '@tarojs/taro'\n\nimport { isVisible } from '../../utils'\n\ntype TabbarItemProps = {\n index: number\n isSelected?: boolean\n textColor?: string\n badgeText?: string\n iconPath: string\n showRedDot?: boolean\n pagePath?: string\n text?: string\n onSelect: (index: number) => void\n}\n\nexport const TabbarItem: FunctionalComponent<TabbarItemProps> = ({\n index,\n isSelected = false,\n textColor,\n iconPath,\n badgeText,\n showRedDot = false,\n pagePath,\n text,\n onSelect\n}) => {\n const className = classNames('weui-tabbar__item', {\n 'weui-bar__item_on': isSelected\n })\n const badgeStyle = {\n position: 'absolute',\n top: '-2px',\n right: '-13px'\n }\n const dotStyle = {\n position: 'absolute',\n top: '0',\n right: '-6px'\n }\n\n function onClick () {\n const page = Taro.getCurrentPages().shift()\n if (typeof page?.onTabItemTap === 'function' && isVisible(this)) {\n page.onTabItemTap({ index, pagePath, text })\n }\n onSelect(index)\n }\n\n return (\n <a key={index} href='javascript:;' class={className} onClick={onClick}>\n <span style={{ display: 'inline-block', position: 'relative' }}>\n <img src={iconPath} alt='' class='weui-tabbar__icon' />\n {!!badgeText && (\n <span\n class='weui-badge taro-tabbar-badge'\n style={badgeStyle}>\n {badgeText}\n </span>\n )}\n {showRedDot && (\n <span\n class='weui-badge weui-badge_dot'\n style={dotStyle}\n />\n )}\n </span>\n <p class='weui-tabbar__label' style={{ color: textColor }}>\n {text}\n </p>\n </a>\n )\n}\n","html,\nbody {\n height: 100%;\n}\n\n#app {\n height: 100%;\n}\n\n.taro-tabbar {\n &__border {\n &-white {\n &::before {\n border-top-color: #fff !important;\n }\n }\n }\n\n &__container {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n height: 100%;\n }\n\n &__panel {\n overflow: auto;\n position: relative;\n flex: 1;\n -webkit-overflow-scrolling: auto;\n }\n\n &__tabbar {\n position: relative;\n width: 100%;\n height: 50px;\n transition: bottom 0.2s, top 0.2s;\n\n &-top {\n top: 0;\n }\n\n &-bottom {\n bottom: 0;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n }\n\n &-hide {\n display: none;\n }\n\n &-slideout {\n top: -52px;\n flex: 0 0;\n }\n }\n\n &__panel + &__tabbar-slideout {\n top: auto;\n bottom: -52px;\n }\n}\n","import { Component, Prop, h, ComponentInterface, Host, State, Event, EventEmitter, Element } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport { addLeadingSlash, getCurrentPage, stripBasename, stripSuffix } from '@tarojs/router/dist/utils'\nimport { IH5RouterConfig } from '@tarojs/taro/types/compile'\nimport classNames from 'classnames'\nimport resolvePathname from 'resolve-pathname'\n\nimport { splitUrl } from '../../utils'\nimport { TabbarItem } from './tabbar-item'\n\nconst STATUS_SHOW = 0\nconst STATUS_HIDE = 1\nconst STATUS_SLIDEOUT = 2\n\nconst basicTabBarClassName = 'taro-tabbar__tabbar'\nconst hideTabBarClassName = 'taro-tabbar__tabbar-hide'\nconst hideTabBarWithAnimationClassName = 'taro-tabbar__tabbar-slideout'\n\ninterface RouterHandler {\n index: string\n text: string\n url: string\n successHandler: Function\n errorHandler: Function\n animation?: boolean\n}\n\nexport interface Conf {\n color: string\n selectedColor: string\n backgroundColor: string\n borderStyle?: 'black' | 'white'\n list: TabbarList[]\n position?: 'bottom' | 'top'\n custom: boolean\n customRoutes: Record<string, string | string[]>\n mode: IH5RouterConfig['mode']\n basename: string\n homePage: string\n currentPagename: string\n}\n\ninterface TabbarList {\n pagePath: string\n text: string\n iconPath?: string\n selectedIconPath?: string\n badgeText?: string\n showRedDot?: boolean\n}\n\n@Component({\n tag: 'taro-tabbar',\n styleUrl: './style/index.scss'\n})\nexport class Tabbar implements ComponentInterface {\n private homePage = ''\n\n private customRoutes: Array<string[]> = []\n\n private tabbarPos: 'top' | 'bottom' = 'bottom'\n\n @Prop() conf: Conf\n\n @State() list: TabbarList[]\n\n @State() borderStyle: Conf['borderStyle']\n\n @State() backgroundColor: Conf['backgroundColor']\n\n @State() color: Conf['color']\n\n @State() selectedColor: Conf['selectedColor']\n\n @State() selectedIndex = -1\n\n @State() status: 0 | 1 | 2 = STATUS_SHOW\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n @Element() tabbar: HTMLDivElement\n\n constructor () {\n const list = this.conf.list\n const customRoutes = this.conf.customRoutes\n if (\n Object.prototype.toString.call(list) !== '[object Array]' ||\n list.length < 2 ||\n list.length > 5\n ) {\n throw new Error('tabBar 配置错误')\n }\n\n this.homePage = addLeadingSlash(this.conf.homePage)\n for (let key in customRoutes) {\n const path = customRoutes[key]\n key = addLeadingSlash(key)\n if (typeof path === 'string') {\n this.customRoutes.push([key, addLeadingSlash(path)])\n } else if (path?.length > 0) {\n this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]))\n }\n }\n\n list.forEach(item => {\n if (item.pagePath.indexOf('/') !== 0) {\n item.pagePath = '/' + item.pagePath\n }\n })\n\n this.list = list\n this.borderStyle = this.conf.borderStyle\n this.backgroundColor = this.conf.backgroundColor\n this.color = this.conf.color\n this.selectedColor = this.conf.selectedColor\n }\n\n getCurrentUrl () {\n const routePath = getCurrentPage(this.conf.mode, this.conf.basename)\n return decodeURI(routePath === '/' ? this.homePage : routePath)\n }\n\n getOriginUrl = (url: string) => {\n const customRoute = this.customRoutes.filter(([, customUrl]) => {\n const pathA = splitUrl(customUrl).path\n const pathB = splitUrl(url).path\n return pathA === pathB\n })\n return stripSuffix(customRoute.length ? customRoute[0][0] : url, '.html')\n }\n\n getSelectedIndex = (url: string) => {\n let foundIndex = -1\n this.list.forEach(({ pagePath }, idx) => {\n const pathA = splitUrl(url).path\n const pathB = splitUrl(pagePath).path\n if (pathA === pathB) {\n foundIndex = idx\n }\n })\n return foundIndex\n }\n\n switchTab = (index: number) => {\n this.selectedIndex = index\n Taro.switchTab({\n url: this.list[index].pagePath\n })\n }\n\n switchTabHandler = ({ url, successHandler, errorHandler }: RouterHandler) => {\n const currentUrl = this.getOriginUrl(this.getCurrentUrl() || this.homePage)\n const nextTab = resolvePathname(url, currentUrl)\n const foundIndex = this.getSelectedIndex(nextTab)\n\n if (foundIndex > -1) {\n this.switchTab(foundIndex)\n successHandler({\n errMsg: 'switchTab:ok'\n })\n } else {\n errorHandler({\n errMsg: `switchTab:fail page \"${nextTab}\" is not found`\n })\n }\n }\n\n routerChangeHandler = (options?) => {\n const to = options?.toLocation?.path\n let currentPage\n\n if (typeof to === 'string') {\n const routerBasename = this.conf.basename || '/'\n currentPage = stripBasename(addLeadingSlash(to || this.homePage), routerBasename) || '/'\n } else {\n currentPage = this.getCurrentUrl()\n }\n\n this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage))\n }\n\n setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n list[index].badgeText = text\n successHandler({\n errMsg: 'setTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].badgeText = null\n successHandler({\n errMsg: 'removeTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'removeTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].showRedDot = true\n successHandler({\n errMsg: 'showTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'showTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n successHandler({\n errMsg: 'hideTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'hideTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarHandler = ({ successHandler }) => {\n this.status = STATUS_SHOW\n successHandler({\n errMsg: 'showTabBar:ok'\n })\n }\n\n hideTabBarHandler = ({ animation, successHandler }) => {\n this.status = animation ? STATUS_SLIDEOUT : STATUS_HIDE\n successHandler({\n errMsg: 'hideTabBar:ok'\n })\n }\n\n setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {\n if (backgroundColor) this.backgroundColor = backgroundColor\n if (borderStyle) this.borderStyle = borderStyle\n if (color) this.color = color\n if (selectedColor) this.selectedColor = selectedColor\n successHandler({\n errMsg: 'setTabBarStyle:ok'\n })\n }\n\n setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {\n const list = [...this.list]\n if (index in list) {\n if (iconPath) list[index].iconPath = iconPath\n if (selectedIconPath) list[index].selectedIconPath = selectedIconPath\n if (text) list[index].text = text\n successHandler({\n errMsg: 'setTabBarItem:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarItem:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n bindEvent () {\n Taro.eventCenter.on('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.on('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.on('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.on('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.on('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.on('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.on('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n removeEvent () {\n Taro.eventCenter.off('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.off('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.off('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.off('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.off('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.off('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.off('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n componentDidLoad () {\n this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom'\n this.bindEvent()\n this.routerChangeHandler()\n }\n\n disconnectedCallback () {\n this.removeEvent()\n }\n\n render () {\n const { tabbarPos = 'bottom' } = this\n const status = this.status\n const containerCls = classNames('weui-tabbar', {\n [`taro-tabbar__border-${this.borderStyle || 'black'}`]: true\n })\n const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE\n const shouldSlideout = status === STATUS_SLIDEOUT\n\n return (\n <Host\n class={classNames(\n basicTabBarClassName,\n `${basicTabBarClassName}-${tabbarPos}`, {\n [hideTabBarClassName]: shouldHideTabBar,\n [hideTabBarWithAnimationClassName]: shouldSlideout\n })} >\n <div\n class={containerCls}\n style={{\n backgroundColor: this.backgroundColor || '',\n height: 'inherit'\n }}\n >\n {this.list.map((item, index) => {\n const isSelected = this.selectedIndex === index\n let textColor\n let iconPath\n if (isSelected) {\n textColor = this.selectedColor || ''\n iconPath = item.selectedIconPath\n } else {\n textColor = this.color || ''\n iconPath = item.iconPath\n }\n return (\n <TabbarItem\n index={index}\n onSelect={this.switchTab.bind(this)}\n isSelected={isSelected}\n textColor={textColor}\n iconPath={iconPath}\n pagePath={item.pagePath}\n text={item.text}\n badgeText={item.badgeText}\n showRedDot={item.showRedDot}\n />\n )\n })}\n </div>\n </Host>\n )\n }\n}\n"],"mappings":"0hBAsDO,IAAMA,EAAW,SAAAC,GACtB,IAAIC,EAAMD,GAAQ,GAClB,IAAIE,EACJ,IAAMC,EAAM,CACVC,KAAM,KACNC,MAAO,KACPC,SAAU,MAGZJ,EAAMD,EAAIM,QAAQ,KAClB,GAAIL,GAAO,EAAG,CACZC,EAAIG,SAAWL,EAAIO,UAAUN,EAAM,GACnCD,EAAMA,EAAIO,UAAU,EAAGN,E,CAGzBA,EAAMD,EAAIM,QAA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,EAAKrI,SACfyC,KAAM4F,EAAK5F,KACXH,UAAW+F,EAAK/F,UAChBE,WAAY6F,EAAK7F,Y,gIA9Td,I"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-78e3ebb9.js";const h=class{constructor(i){t(this,i);this.onSubmit=s(this,"submit",7);this.value={}}onButtonSubmit(t){t.stopPropagation();this.value=this.getFormValue();this.onSubmit.emit({value:this.value})}onButtonReset(t){t.stopPropagation();this.form.reset()}componentDidLoad(){this.value=this.getFormValue();Object.defineProperty(this.el,"value",{get:()=>this.value,configurable:true})}componentDidRender(){if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=t=>this.form.appendChild(t);this.el.insertBefore=(t,s)=>this.form.insertBefore(t,s);this.el.replaceChild=(t,s)=>this.form.replaceChild(t,s);this.el.removeChild=t=>this.form.removeChild(t)}getFormValue(){const t=this.el;const s=[];const i=t.getElementsByTagName("input");for(let t=0;t<i.length;t++){s.push(i[t])}const e={};const h={};s.forEach((t=>{if(typeof t.name!=="string")return;if(t.className.indexOf("weui-switch")!==-1){e[t.name]=t.checked;return}if(t.type==="radio"){if(t.checked){h[t.name]=true;e[t.name]=t.value}else{if(!h[t.name]){e[t.name]=""}}return}if(t.type==="checkbox"){if(t.checked){if(h[t.name]){e[t.name].push(t.value)}else{h[t.name]=true;e[t.name]=[t.value]}}else{if(!h[t.name]){e[t.name]=[]}}return}e[t.name]=t.value}));const r=t.getElementsByTagName("textarea");const o=[];for(let t=0;t<r.length;t++){o.push(r[t])}o.forEach((t=>{if(typeof t.name!=="string")return;e[t.name]=t.value}));return e}render(){return i("form",{ref:t=>{this.form=t}},i("slot",null))}get el(){return e(this)}};export{h as taro_form_core};
|
|
2
|
+
//# sourceMappingURL=p-efe31b23.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Form","constructor","hostRef","this","value","onButtonSubmit","e","stopPropagation","getFormValue","onSubmit","emit","onButtonReset","form","reset","componentDidLoad","Object","defineProperty","el","get","configurable","componentDidRender","originalAppendChild","appendChild","originalInsertBefore","insertBefore","originalReplaceChild","replaceChild","originalRemoveChild","removeChild","newChild","refChild","oldChild","elements","tagElements","getElementsByTagName","j","length","push","formItem","hash","forEach","item","name","className","indexOf","checked","type","textareaElements","textareaEleArr","i","v","render","h","ref","dom"],"sources":["./src/components/form/form.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Event, EventEmitter, Element, Listen } from '@stencil/core'\n\n@Component({\n tag: 'taro-form-core'\n})\nexport class Form implements ComponentInterface {\n private form: HTMLFormElement\n private value: {[propName: string]: any} = {}\n private originalAppendChild: <T extends Node>(newChild: T) => T\n private originalInsertBefore: <T extends Node>(newChild: T, refChild: Node | null) => T\n private originalReplaceChild: <T extends Node>(newChild: Node, oldChild: T) => T\n private originalRemoveChild: <T extends Node>(oldChild: T) => T\n\n @Element() el: HTMLElement\n\n @Event({\n eventName: 'submit'\n }) onSubmit: EventEmitter\n\n @Listen('tarobuttonsubmit')\n onButtonSubmit (e: Event) {\n e.stopPropagation()\n\n this.value = this.getFormValue()\n\n this.onSubmit.emit({\n value: this.value\n })\n }\n\n @Listen('tarobuttonreset')\n onButtonReset (e: Event) {\n e.stopPropagation()\n this.form.reset()\n }\n\n componentDidLoad () {\n this.value = this.getFormValue()\n\n Object.defineProperty(this.el, 'value', {\n get: () => this.value,\n configurable: true\n })\n }\n\n componentDidRender () {\n if (!this.originalAppendChild) {\n this.originalAppendChild = this.el.appendChild\n this.originalInsertBefore = this.el.insertBefore\n this.originalReplaceChild = this.el.replaceChild\n this.originalRemoveChild = this.el.removeChild\n }\n if (!this.form) {\n this.el.appendChild = this.originalAppendChild\n this.el.insertBefore = this.originalInsertBefore\n this.el.replaceChild = this.originalReplaceChild\n this.el.removeChild = this.originalRemoveChild\n return\n }\n this.el.appendChild = <T extends Node>(newChild: T): T => {\n return this.form.appendChild(newChild)\n }\n this.el.insertBefore = <T extends Node>(newChild: T, refChild: Node | null): T => {\n return this.form.insertBefore(newChild, refChild)\n }\n this.el.replaceChild = <T extends Node>(newChild: Node, oldChild: T): T => {\n return this.form.replaceChild(newChild, oldChild)\n }\n this.el.removeChild = <T extends Node>(oldChild: T): T => {\n return this.form.removeChild(oldChild)\n }\n }\n\n getFormValue () {\n const el = this.el\n const elements: HTMLInputElement[] = []\n const tagElements = el.getElementsByTagName('input')\n for (let j = 0; j < tagElements.length; j++) {\n elements.push(tagElements[j])\n }\n const formItem = {}\n const hash = {}\n elements.forEach(item => {\n if (typeof item.name !== 'string') return\n if (item.className.indexOf('weui-switch') !== -1) {\n formItem[item.name] = item.checked\n return\n }\n if (item.type === 'radio') {\n if (item.checked) {\n hash[item.name] = true\n formItem[item.name] = item.value\n } else {\n if (!hash[item.name]) {\n formItem[item.name] = ''\n }\n }\n return\n }\n\n if (item.type === 'checkbox') {\n if (item.checked) {\n if (hash[item.name]) {\n formItem[item.name].push(item.value)\n } else {\n hash[item.name] = true\n formItem[item.name] = [item.value]\n }\n } else {\n if (!hash[item.name]) {\n formItem[item.name] = []\n }\n }\n return\n }\n formItem[item.name] = item.value\n })\n\n const textareaElements = el.getElementsByTagName('textarea')\n const textareaEleArr: HTMLTextAreaElement[] = []\n\n for (let i = 0; i < textareaElements.length; i++) {\n textareaEleArr.push(textareaElements[i])\n }\n textareaEleArr.forEach(v => {\n if (typeof v.name !== 'string') return\n formItem[v.name] = v.value\n })\n return formItem\n }\n\n render () {\n return (\n <form\n ref={dom => {\n this.form = dom!\n }}\n >\n <slot />\n </form>\n )\n }\n}\n"],"mappings":"+DAKaA,EAAI,MAHjBC,YAAAC,G,2CAKUC,KAAAC,MAAmC,E,CAa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,SAAQC,IACf,UAAWA,EAAKC,OAAS,SAAU,OACnC,GAAID,EAAKE,UAAUC,QAAQ,kBAAoB,EAAG,CAChDN,EAASG,EAAKC,MAAQD,EAAKI,QAC3B,M,CAEF,GAAIJ,EAAKK,OAAS,QAAS,CACzB,GAAIL,EAAKI,QAAS,CAChBN,EAAKE,EAAKC,MAAQ,KAClBJ,EAASG,EAAKC,MAAQD,EAAKrC,K,KACtB,CACL,IAAKmC,EAAKE,EAAKC,MAAO,CACpBJ,EAASG,EAAKC,MAAQ,E,EAG1B,M,CAGF,GAAID,EAAKK,OAAS,WAAY,CAC5B,GAAIL,EAAKI,QAAS,CAChB,GAAIN,EAAKE,EAAKC,MAAO,CACnBJ,EAASG,EAAKC,MAAML,KAAKI,EAAKrC,M,KACzB,CACLmC,EAAKE,EAAKC,MAAQ,KAClBJ,EAASG,EAAKC,MAAQ,CAACD,EAAKrC,M,MAEzB,CACL,IAAKmC,EAAKE,EAAKC,MAAO,CACpBJ,EAASG,EAAKC,MAAQ,E,EAG1B,M,CAEFJ,EAASG,EAAKC,MAAQD,EAAKrC,KAAK,IAGlC,MAAM2C,EAAmB9B,EAAGiB,qBAAqB,YACjD,MAAMc,EAAwC,GAE9C,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAiBX,OAAQa,IAAK,CAChDD,EAAeX,KAAKU,EAAiBE,G,CAEvCD,EAAeR,SAAQU,IACrB,UAAWA,EAAER,OAAS,SAAU,OAChCJ,EAASY,EAAER,MAAQQ,EAAE9C,KAAK,IAE5B,OAAOkC,C,CAGTa,SACE,OACEC,EAAA,QACEC,IAAKC,IACHnD,KAAKS,KAAO0C,CAAI,GAGlBF,EAAA,a"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-1a0e1932.system.js","./p-61f225ef.system.js"],(function(e){"use strict";var t,i,r,n,a,o;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;a=e.g},function(e){o=e.c}],execute:function(){function u(e,t){var i=[];for(var r=e;r<=t;r++){i.push("".concat(r<10?"0":"").concat(r))}return i}var s=__spreadArray(__spreadArray(["20","21","22","23"],u(0,23),true),["00","01","02","03"],false);var h=__spreadArray(__spreadArray(["56","57","58","59"],u(0,59),true),["00","01","02","03"],false);function l(e,t){if(!isNaN(+e)&&e>=0&&e<t.length)return true;return false}function d(e){if(!/^\d{1,2}:\d{1,2}$/.test(e))return false;var t=e.split(":").map((function(e){return+e}));if(t[0]<0||t[0]>23)return false;if(t[1]<0||t[1]>59)return false;return true}function c(e,t){var i=e.split(":").map((function(e){return+e}));var r=t.split(":").map((function(e){return+e}));if(i[0]<r[0])return true;if(i[0]===r[0]&&i[1]<=r[1])return true;return false}function f(e){if(!e)return false;var t=new Date(e.replace(/-/g,"/"));return isNaN(t.getMonth())?false:t}function p(e,t){if(t===4||t===6||t===9||t===11)return 30;if(t===2){if(e%4===0&&e%100!==0||e%400===0)return 29;else return 28}return 31}function v(e){var t;if(Array.isArray(e)){t=e.map((function(e){return String(e)}))}else{t=e}return t}function g(e,t){var i=[];for(var r=e;r<=t;r++){i.push(r)}return i}function m(e,t){return g(e,t)}function y(e,t,i){var r=1;var n=12;if(e.getFullYear()===i){r=e.getMonth()+1}if(t.getFullYear()===i){n=t.getMonth()+1}return g(r,n)}function k(e,t,i,r){var n=1;var a=p(i,r);if(e.getFullYear()===i&&e.getMonth()+1===r){n=e.getDate()}if(t.getFullYear()===i&&t.getMonth()+1===r){a=t.getDate()}return g(n,a)}var _=102;var C=34;var w=C*7;var M=".weui-picker,.weui-picker__hd{font-size:12px}";var D=e("taro_picker_core",function(){function e(e){var n=this;t(this,e);this.onChange=i(this,"change",7);this.onColumnChange=i(this,"columnchange",7);this.onCancel=i(this,"cancel",7);this.index=[];this.showPicker=function(){if(n.disabled)return;n.height=n.getHeightByIndex();n.hidden=false};this.getHeightByIndex=function(){var e=n.index.map((function(e){var t=0;if(n.mode==="time"){t=C*4}return _-C*e-t}));return e};this.hidePicker=function(){n.fadeOut=true;setTimeout((function(){n.hidden=true;n.fadeOut=false}),350)};this.handleChange=function(){n.hidePicker();n.index=n.height.map((function(e){return(_-e)/C}));var e=n.index.length&&n.mode!=="selector"?n.index:n.index[0];if(n.mode==="time"){var t=[s.slice(),h.slice()];var i=n.index.map((function(e,i){return t[i][e]}));n.index=i.map((function(e){return parseInt(e)}));e=i.join(":")}if(n.mode==="date"){var r=n.pickerDate,a=r._start,o=r._end,u=r._updateValue;var l=u[0];var d=u[1];var c=m(a.getFullYear(),o.getFullYear());var f=y(a,o,l);var p=k(a,o,l,d);var v=c[n.index[0]];var g=f[n.index[1]];var w=p[n.index[2]];if(n.fields==="year"){e=[v]}else if(n.fields==="month"){e=[v,g]}else{e=[v,g,w]}e=e.map((function(e){return e<10?"0".concat(e):e})).join("-")}n.pickerValue=e;n.onChange.emit({value:e})};this.handleCancel=function(){n.hidePicker();n.onCancel.emit()};this.updateHeight=function(e,t,i){if(i===void 0){i=false}var r=__spreadArray([],n.height,true);r[t]=e;n.height=r;if(i){var a=n,o=a.start,u=a.end;if(!d(o))o="00:00";if(!d(u))u="23:59";if(!c(o,u))return;var l=[s.slice(),h.slice()];var f=n.height.map((function(e){return(_-e)/C}));var p=f.map((function(e,t){return l[t][e]})).join(":");if(!c(o,p)){var v=o.split(":").map((function(e){return _-C*(+e+4)}));requestAnimationFrame((function(){return n.height=v}))}else if(!c(p,u)){var g=u.split(":").map((function(e){return _-C*(+e+4)}));requestAnimationFrame((function(){return n.height=g}))}}};this.handleColumnChange=function(e,t){n.onColumnChange.emit({column:Number(t),value:(_-e)/C})};this.updateDay=function(e,t){var i=n.pickerDate,r=i._start,a=i._end,o=i._updateValue;o[t]=e;var u=o[0];var s=o[1];var h=o[2];if(t===0){var l=y(r,a,u);var d=l[l.length-1];var c=l[0];if(s>d)o[1]=d;if(s<c)o[1]=c;var f=l.indexOf(o[1]);var p=_-C*f;n.updateDay(o[1],1);n.updateHeight(p,"1")}else if(t===1){var v=k(r,a,u,s);var d=v[v.length-1];var c=v[0];if(h>d)o[2]=d;if(h<c)o[2]=c;var f=v.indexOf(o[2]);var p=_-C*f;n.updateDay(o[2],2);n.updateHeight(p,"2")}};this.getSelector=function(){return r("taro-picker-group",{range:n.range,rangeKey:n.rangeKey,height:n.height[0],updateHeight:n.updateHeight,columnId:"0"})};this.getMultiSelector=function(){return n.range.map((function(e,t){return r("taro-picker-group",{range:e,rangeKey:n.rangeKey,height:n.height[t],updateHeight:n.updateHeight,onColumnChange:n.handleColumnChange,columnId:String(t)})}))};this.getTimeSelector=function(){var e=s.slice();var t=h.slice();return[r("taro-picker-group",{mode:"time",range:e,height:n.height[0],updateHeight:n.updateHeight,columnId:"0"}),r("taro-picker-group",{mode:"time",range:t,height:n.height[1],updateHeight:n.updateHeight,columnId:"1"})]};this.getDateSelector=function(){var e=n,t=e.fields,i=e.height;var a=n.pickerDate,o=a._start,u=a._end,s=a._updateValue;var h=s[0];var l=s[1];var d=m(o.getFullYear(),u.getFullYear()).map((function(e){return"".concat(e,"年")}));var c=y(o,u,h).map((function(e){return"".concat(e<10?"0".concat(e):e,"月")}));var f=k(o,u,h,l).map((function(e){return"".concat(e<10?"0".concat(e):e,"日")}));var p=[r("taro-picker-group",{mode:"date",range:d,height:i[0],updateDay:n.updateDay,updateHeight:n.updateHeight,columnId:"0"})];if(t==="month"||t==="day"){p.push(r("taro-picker-group",{mode:"date",range:c,height:i[1],updateDay:n.updateDay,updateHeight:n.updateHeight,columnId:"1"}))}if(t==="day"){p.push(r("taro-picker-group",{mode:"date",range:f,height:i[2],updateDay:n.updateDay,updateHeight:n.updateHeight,columnId:"2"}))}return p};this.mode="selector";this.disabled=false;this.range=[];this.rangeKey=undefined;this.value=undefined;this.start="";this.end="";this.fields="day";this.name="";this.pickerValue=[];this.height=[];this.hidden=true;this.fadeOut=false;this.isWillLoadCalled=false}e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.handleProps()};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.pickerValue},set:function(t){return e.value=t},configurable:true});if(this.overlay){document.body.appendChild(this.overlay)}};e.prototype.disconnectedCallback=function(){var e;if(this.overlay){(e=this.overlay.parentNode)===null||e===void 0?void 0:e.removeChild(this.overlay)}};e.prototype.onPropsChange=function(){if(!this.isWillLoadCalled)return;this.handleProps()};e.prototype.handleProps=function(){var e=this;var t=this,i=t.mode,r=t.start,n=t.end;if(i==="selector"){var a=this.value;this.index=[l(a,this.range)?Math.floor(a):0]}else if(i==="multiSelector"){var o=this.value;this.index=[];this.range.forEach((function(t,i){var r=o===null||o===void 0?void 0:o[i];var n=l(r,t)?Math.floor(r):0;e.index.push(n)}))}else if(i==="time"){var a=this.value;if(!d(a)){console.warn("time picker value illegal");a="0:0"}var u=a.split(":").map((function(e){return+e}));this.index=u}else if(i==="date"){var a=this.value;var s=f(a)||new Date((new Date).setHours(0,0,0,0));var h=f(r)||new Date("1970/01/01");var c=f(n)||new Date("2999/01/01");if(s>=h&&s<=c){var p=s.getFullYear();var v=s.getMonth()+1;var g=s.getDate();var _=m(h.getFullYear(),c.getFullYear());var C=y(h,c,p);var w=k(h,c,p,v);this.index=[_.indexOf(p),C.indexOf(v),w.indexOf(g)];if(!this.pickerDate||this.pickerDate._value.getTime()!==s.getTime()||this.pickerDate._start.getTime()!==h.getTime()||this.pickerDate._end.getTime()!==c.getTime()){this.pickerDate={_value:s,_start:h,_end:c,_updateValue:[p,v,g]}}}else{throw new Error("Date Interval Error")}}this.height=this.getHeightByIndex();this.pickerValue=this.value;if(i==="date"){var M=this.pickerValue;if(this.fields==="month"){this.pickerValue=M.split("-").slice(0,2).join("-")}else if(this.fields==="year"){this.pickerValue=M.split("-")[0]}}};e.prototype.render=function(){var e=this;var t=this,i=t.name,a=t.mode,u=t.fadeOut,s=t.hidden;var h;switch(a){case"multiSelector":h=this.getMultiSelector();break;case"time":h=this.getTimeSelector();break;case"date":h=this.getDateSelector();break;default:h=this.getSelector()}var l=o("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":u});var d=o("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":u});var c=s?{display:"none"}:{};return r(n,null,r("div",{onClick:this.showPicker},r("slot",null),r("input",{type:"hidden",name:i,value:v(this.pickerValue)})),r("div",{class:"weui-picker__overlay",style:c,ref:function(t){e.overlay=t}},r("div",{class:l,onClick:this.handleCancel}),r("div",{class:d},r("div",{class:"weui-picker__hd"},r("div",{class:"weui-picker__action",onClick:this.handleCancel},"取消"),r("div",{class:"weui-picker__action",onClick:this.handleChange},"确定")),r("div",{class:"weui-picker__bd"},h),r("input",{type:"hidden",name:i,value:v(this.pickerValue)}))))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}},enumerable:false,configurable:true});return e}());D.style=M;var x=e("taro_picker_group",function(){function e(e){t(this,e);this.mode=undefined;this.range=[];this.rangeKey=undefined;this.height=undefined;this.columnId=undefined;this.updateHeight=undefined;this.onColumnChange=undefined;this.updateDay=undefined;this.startY=undefined;this.preY=undefined;this.hadMove=undefined;this.touchEnd=undefined;this.isMove=undefined}e.prototype.getPosition=function(){var e=this.touchEnd?.3:0;var t="translate3d(0, ".concat(this.height,"px, 0)");var i="transform ".concat(e,"s");return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}};e.prototype.formulaUnlimitedScroll=function(e,t,i){var r=this;var n=this,a=n.height,o=n.updateHeight,u=n.columnId;var s=i==="up"?1:-1;this.touchEnd=false;o(-e*s*C+a,u);requestAnimationFrame((function(){r.touchEnd=true;var i=Math.round(t/-C)+e*s;var n=_-C*i;o(n,u,true)}))};e.prototype.handleMoveStart=function(e){this.startY=e;this.preY=e;this.hadMove=false};e.prototype.handleMoving=function(e){var t=e;var i=t-this.preY;this.preY=t;this.touchEnd=false;if(Math.abs(t-this.startY)>10)this.hadMove=true;var r=this.height+i;if(this.mode==="time"){if(this.columnId==="0"){if(r>_-C*3){r=_-C*27+i}if(r<_-C*28){r=_-C*4+i}}else if(this.columnId==="1"){if(r>_-C*3){r=_-C*63+i}if(r<_-C*64){r=_-C*4+i}}}this.updateHeight(r,this.columnId)};e.prototype.handleMoveEnd=function(e){var t=this,i=t.mode,r=t.range,n=t.height,a=t.updateHeight,o=t.onColumnChange,u=t.columnId;var s=0;var h=-C*(r.length-1);var l=e;this.touchEnd=true;var d;if(!this.hadMove){var c=window.innerHeight;var f=c-w/2;d=n-_-(l-f);if(i==="time"){if(u==="0"){if(d>-C*2.5){return this.formulaUnlimitedScroll(24,d,"up")}if(d<-C*28.5){return this.formulaUnlimitedScroll(24,d,"down")}}else if(u==="1"){if(d>-C*2.5){return this.formulaUnlimitedScroll(60,d,"up")}if(d<-C*64.5){return this.formulaUnlimitedScroll(60,d,"down")}}}}else{d=n-_}if(d>s)d=0;if(d<h)d=h;var p=Math.round(d/-C);var v=_-C*p;if(this.mode==="date"){if(this.columnId==="0"){this.updateDay(+this.range[p].replace(/[^0-9]/gi,""),0)}if(this.columnId==="1"){this.updateDay(+this.range[p].replace(/[^0-9]/gi,""),1)}if(this.columnId==="2"){this.updateDay(+this.range[p].replace(/[^0-9]/gi,""),2)}}a(v,u,i==="time");o&&o(v,u)};e.prototype.onMouseDown=function(e){this.isMove=true;this.handleMoveStart(e.clientY)};e.prototype.onMouseMove=function(e){e.preventDefault();if(!this.isMove)return;this.handleMoving(e.clientY)};e.prototype.onMouseMoveEnd=function(e){if(!this.isMove)return;this.isMove=false;this.handleMoveEnd(e.clientY)};e.prototype.onTouchStart=function(e){this.handleMoveStart(e.changedTouches[0].clientY)};e.prototype.onTouchMove=function(e){e.preventDefault();this.handleMoving(e.changedTouches[0].clientY)};e.prototype.onTouchEnd=function(e){this.handleMoveEnd(e.changedTouches[0].clientY)};e.prototype.render=function(){var e=this,t=e.range,i=e.rangeKey;var a=t.map((function(e){var t=i?e[i]:e;return r("div",{class:"weui-picker__item"},t)}));return r(n,{class:"weui-picker__group"},r("div",{class:"weui-picker__mask"}),r("div",{class:"weui-picker__indicator"}),r("div",{class:"weui-picker__content",style:this.getPosition()},a))};return e}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-f034fb11.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getTimeRange","begin","end","range","i","push","concat","hoursRange","__spreadArray","minutesRange","verifyValue","value","isNaN","length","verifyTime","test","time","split","map","num","compareTime","t1","t2","t1List","t2List","verifyDate","dateStr","date","Date","replace","getMonth","getMaxDay","year","month","formatValue","res","Array","isArray","item","String","getDateRange","start","getYearRange","getMonthRange","rangeStart","rangeEnd","getFullYear","getDayRange","getDate","TOP","LINE_HEIGHT","MASK_HEIGHT","indexCss","Picker","exports","this","index","showPicker","_this","disabled","height","getHeightByIndex","hidden","factor","mode","hidePicker","fadeOut","setTimeout","handleChange","h","range_1","slice","timeArr","n","parseInt","join","_b","pickerDate","_start","_end","_updateValue","currentYear","currentMonth","yearRange","monthRange","dayRange","day","fields","pickerValue","onChange","emit","handleCancel","onCancel","updateHeight","columnId","needRevise","temp","range_2","timeList","timeStr","height_1","requestAnimationFrame","height_2","handleColumnChange","onColumnChange","column","Number","updateDay","currentDay","max","min","indexOf","getSelector","rangeKey","getMultiSelector","getTimeSelector","hourRange","minRange","getDateSelector","_c","renderView","class_1","prototype","componentWillLoad","isWillLoadCalled","handleProps","componentDidLoad","Object","defineProperty","el","get","set","val","configurable","overlay","document","body","appendChild","disconnectedCallback","_a","parentNode","removeChild","onPropsChange","Math","floor","value_1","forEach","console","warn","_value","setHours","getTime","Error","render","name","pickerGroup","clsMask","classNames","clsSlider","shouldDivHidden","display","Host","onClick","type","class","style","ref","TaroPickerGroup","class_2","getPosition","transition","touchEnd","transformValue","transitionValue","transform","formulaUnlimitedScroll","absoluteHeight","direction","round","relativeHeight","handleMoveStart","clientY","startY","preY","hadMove","handleMoving","y","deltaY","abs","newPos","handleMoveEnd","endY","windowHeight","window","innerHeight","relativeY","onMouseDown","e","isMove","onMouseMove","preventDefault","onMouseMoveEnd","onTouchStart","changedTouches","onTouchMove","onTouchEnd","pickerItem","content"],"sources":["src/components/picker/utils.ts","src/components/picker/constant.ts","src/components/picker/style/index.scss?tag=taro-picker-core","src/components/picker/picker.tsx","src/components/picker/picker-group.tsx"],"sourcesContent":["function getTimeRange (begin: number, end: number) {\n const range: string[] = []\n for (let i = begin; i <= end; i++) {\n range.push(`${i < 10 ? '0' : ''}${i}`)\n }\n return range\n}\n\nexport const hoursRange = [\n '20',\n '21',\n '22',\n '23',\n ...getTimeRange(0, 23),\n '00',\n '01',\n '02',\n '03'\n]\n\nexport const minutesRange = [\n '56',\n '57',\n '58',\n '59',\n ...getTimeRange(0, 59),\n '00',\n '01',\n '02',\n '03'\n]\n\n/**\n * 校验传入的 value 是否合法\n */\nexport function verifyValue (value: number, range: any[]) {\n if (!isNaN(+value) && value >= 0 && value < range.length) return true\n return false\n}\n\n/**\n * 检验传入的 time value 是否合法\n */\nexport function verifyTime (value: string) {\n if (!/^\\d{1,2}:\\d{1,2}$/.test(value)) return false\n\n const time = value.split(':').map(num => +num)\n\n if (time[0] < 0 || time[0] > 23) return false\n if (time[1] < 0 || time[1] > 59) return false\n\n return true\n}\n\n/**\n * 比较时间\n * return t1 <= t2\n */\nexport function compareTime (t1: string, t2: string) {\n const t1List = t1.split(':').map(i => +i)\n const t2List = t2.split(':').map(i => +i)\n\n if (t1List[0] < t2List[0]) return true\n if (t1List[0] === t2List[0] && t1List[1] <= t2List[1]) return true\n\n return false\n}\n\n/**\n * 校验日期合法性,返回合法性和日期数组\n */\nexport function verifyDate (dateStr: string) {\n if (!dateStr) return false\n const date = new Date(dateStr.replace(/-/g, '/'))\n return isNaN(date.getMonth()) ? false : date\n}\n\n/**\n * 获取当月最大天数\n */\nfunction getMaxDay (year: number, month: number) {\n if (month === 4 || month === 6 || month === 9 || month === 11) return 30\n if (month === 2) {\n if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) return 29\n else return 28\n }\n return 31\n}\n\nexport function formatValue (value: number | number[] | string) {\n let res: number | string | string[]\n if (Array.isArray(value)) {\n res = value.map(item => String(item))\n } else {\n res = value\n }\n return res\n}\n\n/**\n * 获取时间数组\n */\nfunction getDateRange (start: number, end: number) {\n const range: number[] = []\n for (let i = start; i <= end; i++) {\n range.push(i)\n }\n return range\n}\n\n/**\n * 获取年份区间数组\n */\nexport function getYearRange (start: number, end: number) {\n return getDateRange(start, end)\n}\n\n/**\n * 获取月份区间数组\n */\nexport function getMonthRange (start: Date, end: Date, year: number) {\n let rangeStart = 1\n let rangeEnd = 12\n\n // 当前年份等于开始年份,由开始对应的月份约束开始值\n if (start.getFullYear() === year) {\n rangeStart = start.getMonth() + 1\n }\n\n // 当前年份等于结束年份,由结束对应的月份约束结束值\n if (end.getFullYear() === year) {\n rangeEnd = end.getMonth() + 1\n }\n\n return getDateRange(rangeStart, rangeEnd)\n}\n\n/**\n * 获取日期区间数组\n */\nexport function getDayRange (start: Date, end: Date, year: number, month: number) {\n let rangeStart = 1\n let rangeEnd = getMaxDay(year, month)\n\n if (start.getFullYear() === year && start.getMonth() + 1 === month) {\n rangeStart = start.getDate()\n }\n\n if (end.getFullYear() === year && end.getMonth() + 1 === month) {\n rangeEnd = end.getDate()\n }\n\n return getDateRange(rangeStart, rangeEnd)\n}\n","export const TOP = 102\nexport const LINE_HEIGHT = 34\nexport const MASK_HEIGHT = LINE_HEIGHT * 7\n",".weui-picker,\n.weui-picker__hd {\n font-size: 12px;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Host, State, Watch, Element } from '@stencil/core'\nimport classNames from 'classnames'\nimport {\n hoursRange,\n minutesRange,\n compareTime,\n verifyValue,\n verifyTime,\n verifyDate,\n getYearRange,\n getMonthRange,\n getDayRange,\n formatValue\n} from './utils'\nimport {\n TOP,\n LINE_HEIGHT\n} from './constant'\n\nexport type Mode = 'selector' | 'multiSelector' | 'time' | 'date'\nexport type Fields = 'day' | 'month' | 'year'\nexport type PickerValue = number | number[] | string\n\nexport interface PickerDate {\n _value: Date\n _start: Date\n _end: Date\n _updateValue: [number, number, number]\n}\n\n@Component({\n tag: 'taro-picker-core',\n styleUrl: './style/index.scss'\n})\nexport class Picker implements ComponentInterface {\n private index: number[] = []\n private pickerDate: PickerDate\n private overlay?: HTMLElement\n\n @Element() el: HTMLElement\n\n @Prop() mode: Mode = 'selector'\n @Prop() disabled = false\n @Prop() range: any[] = []\n @Prop() rangeKey: string\n @Prop({ mutable: true }) value: number | number[] | string\n @Prop() start = ''\n @Prop() end = ''\n @Prop() fields: Fields = 'day'\n @Prop() name = ''\n\n @State() pickerValue: PickerValue = []\n @State() height: number[] = []\n @State() hidden = true\n @State() fadeOut = false\n @State() isWillLoadCalled = false\n\n @Event({\n eventName: 'change'\n }) onChange: EventEmitter\n\n @Event({\n eventName: 'columnchange'\n }) onColumnChange: EventEmitter\n\n @Event({\n eventName: 'cancel'\n }) onCancel: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n this.handleProps()\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.pickerValue,\n set: val => (this.value = val),\n configurable: true\n })\n\n if (this.overlay) {\n document.body.appendChild(this.overlay)\n }\n }\n\n disconnectedCallback () {\n if (this.overlay) {\n this.overlay.parentNode?.removeChild(this.overlay)\n }\n }\n\n @Watch('mode')\n @Watch('value')\n @Watch('range')\n @Watch('start')\n @Watch('end')\n onPropsChange () {\n if (!this.isWillLoadCalled) return\n this.handleProps()\n }\n\n handleProps () {\n const { mode, start, end } = this\n\n if (mode === 'selector') {\n const value = this.value as number\n this.index = [verifyValue(value, this.range) ? Math.floor(value) : 0]\n } else if (mode === 'multiSelector') {\n const value = this.value as number[]\n this.index = []\n this.range.forEach((range, index) => {\n const val = value?.[index]\n const item = verifyValue(val, range as any[]) ? Math.floor(val) : 0\n this.index.push(item)\n })\n } else if (mode === 'time') {\n let value = this.value as string\n // check value...\n if (!verifyTime(value)) {\n console.warn('time picker value illegal')\n value = '0:0'\n }\n\n const time = value.split(':').map(n => +n)\n this.index = time\n } else if (mode === 'date') {\n const value = this.value as string\n\n const _value = verifyDate(value) || new Date(new Date().setHours(0, 0, 0, 0)) // 没传值或值的合法性错误默认今天时间\n const _start = verifyDate(start) || new Date('1970/01/01')\n const _end = verifyDate(end) || new Date('2999/01/01')\n\n // 时间区间有效性\n if (_value >= _start && _value <= _end) {\n const currentYear = _value.getFullYear()\n const currentMonth = _value.getMonth() + 1\n const currentDay = _value.getDate()\n const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear())\n const monthRange = getMonthRange(_start, _end, currentYear)\n const dayRange = getDayRange(_start, _end, currentYear, currentMonth)\n\n this.index = [\n yearRange.indexOf(currentYear),\n monthRange.indexOf(currentMonth),\n dayRange.indexOf(currentDay)\n ]\n if (\n !this.pickerDate ||\n this.pickerDate._value.getTime() !== _value.getTime() ||\n this.pickerDate._start.getTime() !== _start.getTime() ||\n this.pickerDate._end.getTime() !== _end.getTime()\n ) {\n this.pickerDate = {\n _value,\n _start,\n _end,\n _updateValue: [\n currentYear,\n currentMonth,\n currentDay\n ]\n }\n }\n } else {\n throw new Error('Date Interval Error')\n }\n }\n\n // Prop 变化时,无论是否正在显示弹层,都更新 height 值\n this.height = this.getHeightByIndex()\n\n // 同步表单 value 值,用于 form submit\n this.pickerValue = this.value\n if (mode === 'date') {\n const val = this.pickerValue as string\n if (this.fields === 'month') {\n this.pickerValue = val.split('-').slice(0, 2).join('-')\n } else if (this.fields === 'year') {\n this.pickerValue = val.split('-')[0]\n }\n }\n }\n\n // 展示 Picker\n showPicker = () => {\n if (this.disabled) return\n\n this.height = this.getHeightByIndex()\n this.hidden = false\n }\n\n getHeightByIndex = () => {\n const height = this.index.map(i => {\n let factor = 0\n if (this.mode === 'time') {\n factor = LINE_HEIGHT * 4\n }\n return TOP - LINE_HEIGHT * i - factor\n })\n return height\n }\n\n // 隐藏 picker\n hidePicker = () => {\n this.fadeOut = true\n setTimeout(() => {\n this.hidden = true\n this.fadeOut = false\n }, 350)\n }\n\n // 点击确定按钮\n handleChange = () => {\n this.hidePicker()\n\n this.index = this.height.map(h => (TOP - h) / LINE_HEIGHT)\n\n let value: PickerValue = this.index.length && this.mode !== 'selector'\n ? this.index\n : this.index[0]\n\n if (this.mode === 'time') {\n const range = [hoursRange.slice(), minutesRange.slice()]\n\n const timeArr = this.index.map<string>((n, i) => range[i][n])\n\n this.index = timeArr.map(item => parseInt(item))\n value = timeArr.join(':')\n }\n\n if (this.mode === 'date') {\n const { _start, _end, _updateValue } = this.pickerDate\n const currentYear = _updateValue[0]\n const currentMonth = _updateValue[1]\n const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear())\n const monthRange = getMonthRange(_start, _end, currentYear)\n const dayRange = getDayRange(_start, _end, currentYear, currentMonth)\n\n const year = yearRange[this.index[0]]\n const month = monthRange[this.index[1]]\n const day = dayRange[this.index[2]]\n\n if (this.fields === 'year') {\n value = [year]\n } else if (this.fields === 'month') {\n value = [year, month]\n } else {\n value = [year, month, day]\n }\n value = value\n .map(item => {\n return item < 10 ? `0${item}` : item\n })\n .join('-')\n }\n\n this.pickerValue = value\n\n this.onChange.emit({\n value\n })\n }\n\n // 点击取消按钮或蒙层\n handleCancel = () => {\n this.hidePicker()\n this.onCancel.emit()\n }\n\n updateHeight = (height: number, columnId: string, needRevise = false) => {\n const temp = [...this.height]\n temp[columnId] = height\n this.height = temp\n\n // time picker 必须在规定时间范围内,因此需要在 touchEnd 做修正\n if (needRevise) {\n let { start, end } = this\n\n if (!verifyTime(start)) start = '00:00'\n if (!verifyTime(end)) end = '23:59'\n if (!compareTime(start, end)) return\n\n const range = [hoursRange.slice(), minutesRange.slice()]\n\n const timeList = this.height.map(h => (TOP - h) / LINE_HEIGHT)\n const timeStr = timeList.map((n, i) => range[i][n]).join(':')\n\n if (!compareTime(start, timeStr)) {\n // 修正到 start\n const height = start\n .split(':')\n .map(i => TOP - LINE_HEIGHT * (+i + 4))\n requestAnimationFrame(() => (this.height = height))\n } else if (!compareTime(timeStr, end)) {\n // 修正到 end\n const height = end\n .split(':')\n .map(i => TOP - LINE_HEIGHT * (+i + 4))\n requestAnimationFrame(() => (this.height = height))\n }\n }\n }\n\n handleColumnChange = (height: number, columnId: string) => {\n this.onColumnChange.emit({\n column: Number(columnId),\n value: (TOP - height) / LINE_HEIGHT\n })\n }\n\n updateDay = (value: number, fields: number) => {\n const { _start, _end, _updateValue } = this.pickerDate\n\n _updateValue[fields] = value\n\n const currentYear = _updateValue[0]\n const currentMonth = _updateValue[1]\n const currentDay = _updateValue[2]\n\n // 滚动年份\n if (fields === 0) {\n const monthRange = getMonthRange(_start, _end, currentYear)\n const max = monthRange[monthRange.length - 1]\n const min = monthRange[0]\n\n if (currentMonth > max) _updateValue[1] = max\n if (currentMonth < min) _updateValue[1] = min\n const index = monthRange.indexOf(_updateValue[1])\n const height = TOP - LINE_HEIGHT * index\n\n this.updateDay(_updateValue[1], 1)\n this.updateHeight(height, '1')\n } else if (fields === 1) {\n const dayRange = getDayRange(_start, _end, currentYear, currentMonth)\n const max = dayRange[dayRange.length - 1]\n const min = dayRange[0]\n\n if (currentDay > max) _updateValue[2] = max\n if (currentDay < min) _updateValue[2] = min\n const index = dayRange.indexOf(_updateValue[2])\n const height = TOP - LINE_HEIGHT * index\n\n this.updateDay(_updateValue[2], 2)\n this.updateHeight(height, '2')\n }\n }\n\n // 单列选择器\n getSelector = () => {\n return (\n <taro-picker-group\n range={this.range}\n rangeKey={this.rangeKey}\n height={this.height[0]}\n updateHeight={this.updateHeight}\n columnId='0'\n />\n )\n }\n\n // 多列选择器\n getMultiSelector = () => {\n return this.range.map((range, index) => {\n return (\n <taro-picker-group\n range={range}\n rangeKey={this.rangeKey}\n height={this.height[index]}\n updateHeight={this.updateHeight}\n onColumnChange={this.handleColumnChange}\n columnId={String(index)}\n />\n )\n })\n }\n\n // 时间选择器\n getTimeSelector = () => {\n const hourRange = hoursRange.slice()\n const minRange = minutesRange.slice()\n return [\n <taro-picker-group\n mode='time'\n range={hourRange}\n height={this.height[0]}\n updateHeight={this.updateHeight}\n columnId='0'\n />,\n <taro-picker-group\n mode='time'\n range={minRange}\n height={this.height[1]}\n updateHeight={this.updateHeight}\n columnId='1'\n />\n ]\n }\n\n // 日期选择器\n getDateSelector = () => {\n const { fields, height } = this\n const { _start, _end, _updateValue } = this.pickerDate\n const currentYear = _updateValue[0]\n const currentMonth = _updateValue[1]\n\n const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear())\n .map(item => `${item}年`)\n const monthRange = getMonthRange(_start, _end, currentYear)\n .map(item => `${item < 10 ? `0${item}` : item}月`)\n const dayRange = getDayRange(_start, _end, currentYear, currentMonth)\n .map(item => `${item < 10 ? `0${item}` : item}日`)\n\n const renderView = [\n <taro-picker-group\n mode='date'\n range={yearRange}\n height={height[0]}\n updateDay={this.updateDay}\n updateHeight={this.updateHeight}\n columnId='0'\n />\n ]\n if (fields === 'month' || fields === 'day') {\n renderView.push(\n <taro-picker-group\n mode='date'\n range={monthRange}\n height={height[1]}\n updateDay={this.updateDay}\n updateHeight={this.updateHeight}\n columnId='1'\n />\n )\n }\n if (fields === 'day') {\n renderView.push(\n <taro-picker-group\n mode='date'\n range={dayRange}\n height={height[2]}\n updateDay={this.updateDay}\n updateHeight={this.updateHeight}\n columnId='2'\n />\n )\n }\n\n return renderView\n }\n\n render () {\n const {\n name,\n mode,\n fadeOut,\n hidden\n } = this\n\n // 选项条\n let pickerGroup\n switch (mode) {\n case 'multiSelector':\n pickerGroup = this.getMultiSelector()\n break\n case 'time':\n pickerGroup = this.getTimeSelector()\n break\n case 'date':\n pickerGroup = this.getDateSelector()\n break\n default:\n pickerGroup = this.getSelector()\n }\n\n // 动画类名控制逻辑\n const clsMask = classNames('weui-mask', 'weui-animate-fade-in', {\n 'weui-animate-fade-out': fadeOut\n })\n const clsSlider = classNames('weui-picker', 'weui-animate-slide-up', {\n 'weui-animate-slide-down': fadeOut\n })\n const shouldDivHidden = hidden ? { display: 'none' } : {}\n\n return (\n <Host>\n <div onClick={this.showPicker}>\n <slot />\n <input type='hidden' name={name} value={formatValue(this.pickerValue)} />\n </div>\n <div\n class='weui-picker__overlay'\n style={shouldDivHidden}\n ref={el => { this.overlay = el }}\n >\n <div class={clsMask} onClick={this.handleCancel} />\n <div class={clsSlider}>\n <div class='weui-picker__hd'>\n <div class='weui-picker__action' onClick={this.handleCancel}>\n 取消\n </div>\n <div class='weui-picker__action' onClick={this.handleChange}>\n 确定\n </div>\n </div>\n <div class='weui-picker__bd'>{pickerGroup}</div>\n <input type='hidden' name={name} value={formatValue(this.pickerValue)} />\n </div>\n </div>\n </Host>\n )\n }\n}\n","import { Component, h, ComponentInterface, Prop, Host, Method, State, Listen } from '@stencil/core'\n\nimport {\n TOP,\n LINE_HEIGHT,\n MASK_HEIGHT\n} from './constant'\n\n@Component({\n tag: 'taro-picker-group'\n})\nexport class TaroPickerGroup implements ComponentInterface {\n @Prop() mode: 'time' | 'date'\n @Prop() range: any[] = []\n @Prop() rangeKey: string\n @Prop() height: number\n @Prop() columnId: string\n @Prop() updateHeight: (height: number, columnId: string, needRevise?: boolean) => void\n @Prop() onColumnChange: (height: number, columnId: string) => void\n @Prop() updateDay: (value: number, fields: number) => void\n\n @State() startY: number\n @State() preY: number\n @State() hadMove: boolean\n @State() touchEnd: boolean\n @State() isMove: boolean\n\n getPosition () {\n const transition = this.touchEnd ? 0.3 : 0\n const transformValue = `translate3d(0, ${this.height}px, 0)`\n const transitionValue = `transform ${transition}s`\n return {\n transform: transformValue,\n '-webkit-transform': transformValue,\n transition: transitionValue,\n '-webkit-transition': transitionValue\n }\n }\n\n formulaUnlimitedScroll (range: number, absoluteHeight: number, direction: 'up' | 'down') {\n const { height, updateHeight, columnId } = this\n const factor = direction === 'up' ? 1 : -1\n\n this.touchEnd = false\n\n // 点击超过范围,点击到补帧时,先跳到另一端的补帧\n updateHeight(-range * factor * LINE_HEIGHT + height, columnId)\n\n // 再做过渡动画\n requestAnimationFrame(() => {\n this.touchEnd = true\n const index = Math.round(absoluteHeight / -LINE_HEIGHT) + range * factor\n const relativeHeight = TOP - LINE_HEIGHT * index\n updateHeight(relativeHeight, columnId, true)\n })\n }\n\n @Method()\n handleMoveStart (clientY: number) {\n // 记录第一次的点击位置\n this.startY = clientY\n this.preY = clientY\n this.hadMove = false\n }\n\n @Method()\n handleMoving (clientY: number) {\n const y = clientY\n const deltaY = y - this.preY\n this.preY = y\n this.touchEnd = false\n\n if (Math.abs(y - this.startY) > 10) this.hadMove = true\n\n let newPos = this.height + deltaY\n\n // 处理时间选择器的无限滚动\n if (this.mode === 'time') {\n if (this.columnId === '0') {\n // 数字 28 来自于 4 格补帧 + 0 ~ 23 的 24 格,共 28 格\n if (newPos > TOP - LINE_HEIGHT * 3) {\n newPos = TOP - LINE_HEIGHT * 27 + deltaY\n }\n if (newPos < TOP - LINE_HEIGHT * 28) {\n newPos = TOP - LINE_HEIGHT * 4 + deltaY\n }\n } else if (this.columnId === '1') {\n if (newPos > TOP - LINE_HEIGHT * 3) {\n newPos = TOP - LINE_HEIGHT * 63 + deltaY\n }\n if (newPos < TOP - LINE_HEIGHT * 64) {\n newPos = TOP - LINE_HEIGHT * 4 + deltaY\n }\n }\n }\n\n this.updateHeight(newPos, this.columnId)\n }\n\n @Method()\n handleMoveEnd (clientY: number) {\n const {\n mode,\n range,\n height,\n updateHeight,\n onColumnChange,\n columnId\n } = this\n const max = 0\n const min = -LINE_HEIGHT * (range.length - 1)\n const endY = clientY\n\n this.touchEnd = true\n\n // touchEnd 时的高度,可能带小数点,需要再处理\n let absoluteHeight: number\n\n if (!this.hadMove) {\n /** 点击 */\n // 屏幕高度\n const windowHeight = window.innerHeight\n // picker__mask 垂直方向距离屏幕顶部的高度\n const relativeY = windowHeight - MASK_HEIGHT / 2\n\n absoluteHeight = height - TOP - (endY - relativeY)\n\n // 处理时间选择器的无限滚动\n if (mode === 'time') {\n if (columnId === '0') {\n // 点击上溢出\n // absoluteHeight 是相对模块中点来算的,所以会算多半行,这时要减去这半行,即2.5行\n if (absoluteHeight > -LINE_HEIGHT * 2.5) {\n return this.formulaUnlimitedScroll(24, absoluteHeight, 'up')\n }\n // 点击下溢出\n if (absoluteHeight < -LINE_HEIGHT * 28.5) {\n return this.formulaUnlimitedScroll(24, absoluteHeight, 'down')\n }\n } else if (columnId === '1') {\n // 点击上溢出\n if (absoluteHeight > -LINE_HEIGHT * 2.5) {\n return this.formulaUnlimitedScroll(60, absoluteHeight, 'up')\n }\n // 点击下溢出\n if (absoluteHeight < -LINE_HEIGHT * 64.5) {\n return this.formulaUnlimitedScroll(60, absoluteHeight, 'down')\n }\n }\n }\n } else {\n /** 滚动 */\n absoluteHeight = height - TOP\n }\n\n // 边界情况处理\n if (absoluteHeight > max) absoluteHeight = 0\n if (absoluteHeight < min) absoluteHeight = min\n\n // 先按公式算出 index, 再用此 index 算出一个整数高度\n const index = Math.round(absoluteHeight / -LINE_HEIGHT)\n const relativeHeight = TOP - LINE_HEIGHT * index\n\n if (this.mode === 'date') {\n if (this.columnId === '0') {\n this.updateDay(\n +this.range[index].replace(/[^0-9]/gi, ''),\n 0\n )\n }\n if (this.columnId === '1') {\n this.updateDay(\n +this.range[index].replace(/[^0-9]/gi, ''),\n 1\n )\n }\n if (this.columnId === '2') {\n this.updateDay(\n +this.range[index].replace(/[^0-9]/gi, ''),\n 2\n )\n }\n }\n\n updateHeight(relativeHeight, columnId, mode === 'time')\n onColumnChange && onColumnChange(relativeHeight, columnId)\n }\n\n @Listen('mousedown')\n onMouseDown (e: MouseEvent) {\n this.isMove = true\n this.handleMoveStart(e.clientY)\n }\n\n @Listen('mousemove')\n onMouseMove (e: MouseEvent) {\n e.preventDefault()\n\n if (!this.isMove) return\n\n this.handleMoving(e.clientY)\n }\n\n @Listen('mouseup')\n @Listen('mouseleave')\n onMouseMoveEnd (e: MouseEvent) {\n if (!this.isMove) return\n\n this.isMove = false\n this.handleMoveEnd(e.clientY)\n }\n\n @Listen('touchstart')\n onTouchStart (e: TouchEvent) {\n this.handleMoveStart(e.changedTouches[0].clientY)\n }\n\n @Listen('touchmove')\n onTouchMove (e: TouchEvent) {\n e.preventDefault()\n\n this.handleMoving(e.changedTouches[0].clientY)\n }\n\n @Listen('touchend')\n onTouchEnd (e: TouchEvent) {\n this.handleMoveEnd(e.changedTouches[0].clientY)\n }\n\n render () {\n const { range, rangeKey } = this\n const pickerItem = range.map(item => {\n const content = rangeKey ? item[rangeKey] : item\n return (\n <div class='weui-picker__item'>{content}</div>\n )\n })\n\n return (\n <Host class='weui-picker__group'>\n <div class='weui-picker__mask' />\n <div class='weui-picker__indicator' />\n <div class='weui-picker__content' style={this.getPosition()}>\n {pickerItem}\n </div>\n </Host>\n )\n }\n}\n"],"mappings":"kcAAA,SAASA,EAAcC,EAAeC,GACpC,IAAMC,EAAkB,GACxB,IAAK,IAAIC,EAAIH,EAAOG,GAAKF,EAAKE,IAAK,CACjCD,EAAME,KAAK,GAAAC,OAAGF,EAAI,GAAK,IAAM,IAAEE,OAAGF,G,CAEpC,OAAOD,CACT,CAEO,IAAMI,EAAUC,4BAAA,CACrB,KACA,KACA,KACA,MACGR,EAAa,EAAG,IAAG,OACtB,KACA,KACA,KACA,M,OAGK,IAAMS,EAAYD,4BAAA,CACvB,KACA,KACA,KACA,MACGR,EAAa,EAAG,IAAG,OACtB,KACA,KACA,KACA,M,gBAMcU,EAAaC,EAAeR,GAC1C,IAAKS,OAAOD,IAAUA,GAAS,GAAKA,EAAQR,EAAMU,OAAQ,OAAO,KACjE,OAAO,KACT,C,SAKgBC,EAAYH,GAC1B,IAAK,oBAAoBI,KAAKJ,GAAQ,OAAO,MAE7C,IAAMK,E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o=t.n},function(){}],execute:function(){var i=t("taro_like_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("Like",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-f499c0a0.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Like","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"sources":["src/components/like/like.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-like-core'\n})\nexport class Like implements ComponentInterface {\n componentDidLoad () {\n notSupport('Like', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"gOAOaA,EAAIC,EAAA,4B,wBACfC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,OAAQC,K,EAGrBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,K,WAPM,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as o,H as r}from"./p-78e3ebb9.js";const t=class{constructor(o){s(this,o);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}render(){const{percent:s,showInfo:t,borderRadius:e,fontSize:i,strokeWidth:n,activeColor:a,backgroundColor:c,active:h}=this;const l=s>100?100:s<0?0:s;const p={height:n+"px",backgroundColor:c};const d=h?"width 1s ease-in-out":"none";const u={width:`${l}%`,transition:d,WebkitTransition:d,backgroundColor:a,borderRadius:e?`${e}px`:"0px"};return o(r,{class:"weui-progress"},o("div",{class:"weui-progress__bar",style:p},o("div",{class:"weui-progress__inner-bar",style:u})),t&&o("div",{class:"weui-progress__opr",style:{"font-size":`${i}px`}},o("span",null,l,"%")))}};export{t as taro_progress_core};
|
|
2
|
+
//# sourceMappingURL=p-f88f0f55.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Progress","render","percent","showInfo","borderRadius","fontSize","strokeWidth","activeColor","backgroundColor","active","this","pgPercent","pgHeight","height","transition","pgWidth","width","WebkitTransition","h","Host","class","style"],"sources":["./src/components/progress/progress.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\n@Component({\n tag: 'taro-progress-core'\n})\nexport class Progress implements ComponentInterface {\n @Prop() percent = 0\n @Prop() showInfo = false\n @Prop() borderRadius: number | string = 0\n @Prop() fontSize: number | string = 16\n @Prop() strokeWidth: number | string = 6\n @Prop() activeColor = '#09BB07'\n @Prop() backgroundColor = '#EBEBEB'\n @Prop() active = false\n\n render () {\n const {\n percent,\n showInfo,\n borderRadius,\n fontSize,\n strokeWidth,\n activeColor,\n backgroundColor,\n active\n } = this\n\n const pgPercent = percent > 100 ? 100 : percent < 0 ? 0 : percent\n const pgHeight = {\n height: strokeWidth + 'px',\n backgroundColor\n }\n const transition = active ? 'width 1s ease-in-out' : 'none'\n const pgWidth = {\n width: `${pgPercent}%`,\n transition,\n WebkitTransition: transition,\n backgroundColor: activeColor,\n borderRadius: borderRadius ? `${borderRadius}px` : '0px'\n }\n\n return (\n <Host class='weui-progress'>\n <div class='weui-progress__bar' style={pgHeight}>\n <div class='weui-progress__inner-bar' style={pgWidth} />\n </div>\n\n {showInfo && (\n <div class='weui-progress__opr' style={{ 'font-size': `${fontSize}px` }}>\n <span>{pgPercent}%</span>\n </div>\n )}\n </Host>\n )\n }\n}\n"],"mappings":"wDAKaA,EAAQ,M,sCACD,E,cACC,M,kBACqB,E,cACJ,G,iBACG,E,iBACjB,U,qBACI,U,YACT,K,CAEjBC,SACE,MAAMC,QACJA,EAAOC,SACPA,EAAQC,aACRA,EAAYC,SACZA,EAAQC,YACRA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,OACfA,GACEC,KAEJ,MAAMC,EAAYT,EAAU,IAAM,IAAMA,EAAU,EAAI,EAAIA,EAC1D,MAAMU,EAAW,CACfC,OAAQP,EAAc,KACtBE,mBAEF,MAAMM,EAAaL,EAAS,uBAAyB,OACrD,MAAMM,EAAU,CACdC,MAAO,GAAGL,KACVG,aACAG,iBAAkBH,EAClBN,gBAAiBD,EACjBH,aAAcA,EAAe,GAAGA,MAAmB,OAGrD,OACEc,EAACC,EAAI,CAACC,MAAM,iBACVF,EAAA,OAAKE,MAAM,qBAAqBC,MAAOT,GACrCM,EAAA,OAAKE,MAAM,2BAA2BC,MAAON,KAG9CZ,GACCe,EAAA,OAAKE,MAAM,qBAAqBC,MAAO,CAAE,YAAa,GAAGhB,QACvDa,EAAA,YAAOP,EAAS,M"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-1a0e1932.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var c=t("taro_official_account_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("OfficialAccount",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-f9ac515e.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OfficialAccount","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"sources":["src/components/official-account/official-account.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-official-account-core'\n})\nexport class OfficialAccount implements ComponentInterface {\n componentDidLoad () {\n notSupport('OfficialAccount', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"gOAOaA,EAAeC,EAAA,wC,wBAC1BC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,kBAAmBC,K,EAGhCJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,K,WAPiB,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-1a0e1932.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_page_meta_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("PageMeta",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-fa36fe8e.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PageMeta","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"sources":["src/components/page-meta/page-meta.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-page-meta-core'\n})\nexport class PageMeta implements ComponentInterface {\n componentDidLoad () {\n notSupport('PageMeta', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"gOAOaA,EAAQC,EAAA,iC,wBACnBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,WAAYC,K,EAGzBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,K,WAPU,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-1a0e1932.system.js"],(function(r){"use strict";var e,t,n;return{setters:[function(r){e=r.r;t=r.h;n=r.H}],execute:function(){var i=r("taro_rich_text_core",function(){function r(r){var n=this;e(this,r);this.renderNode=function(r){if("type"in r&&r.type==="text"){var e=(r.text||"").replace(/ /g," ");return e}else if("name"in r&&r.name){var i=r.name,u=r.attrs,a=r.children;var o={};var f=[];if(u&&typeof u==="object"){var s=function(r){var e=u[r];if(r==="style"&&typeof e==="string"){var t=e.split(";").map((function(r){return r.trim()})).filter((function(r){return r}));var n={};t.forEach((function(r){if(!r)return;var e=/(.+): *(.+)/g.exec(r);if(!e)return;var t=e[1],i=e[2];var u=t.replace(/-([a-z])/g,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return r[1].toUpperCase()}));n[u]=i}));if(Object.keys(n).length){o.style=n}return"continue"}o[r]=e};for(var c in u){s(c)}}if(a&&a.length){f=a.map((function(r){return n.renderNode(r)}))}return t(i,o,f)}return null};this.nodes=undefined}r.prototype.render=function(){var r=this,e=r.nodes,i=r.renderNode;if(Array.isArray(e)){return t(n,null,e.map((function(r){return i(r)})))}else{return t(n,{innerHTML:e})}};return r}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-fcdac6ec.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RichText","exports","this","renderNode","node","type","content","text","replace","name","attrs","children","attributes","childList","key","val","styles","split","map","item","trim","filter","styleObj_1","forEach","res","exec","value","styleName","args","_i","arguments","length","toUpperCase","Object","keys","style","_this","h","class_1","prototype","render","_a","nodes","Array","isArray","Host","innerHTML"],"sources":["src/components/rich-text/rich-text.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\ninterface Attributes {\n [propName: string]: string | {\n [propName: string]: string\n }\n}\n\ninterface NodeType {\n name: string\n attrs?: Attributes\n children?: ElementType[]\n}\n\ninterface TextType {\n type: 'text'\n text: string\n}\n\ntype ElementType = NodeType | TextType\n\ntype StringType = string\n\nexport type Nodes = ElementType[] | StringType\n\n@Component({\n tag: 'taro-rich-text-core'\n})\nexport class RichText implements ComponentInterface {\n @Prop() nodes: Nodes\n\n renderNode = (node: ElementType) => {\n if ('type' in node && node.type === 'text') {\n // nonsupport Html Entries\n const content = (node.text || '').replace(/ /g, '\\u00A0')\n return content\n } else if ('name' in node && node.name) {\n const {\n name,\n attrs,\n children\n } = node\n const attributes: Attributes = {}\n let childList: any[] = []\n\n if (attrs && typeof attrs === 'object') {\n for (const key in attrs) {\n const val = attrs[key]\n if (key === 'style' && typeof val === 'string') {\n // stencil JSX style props only support object\n const styles = val\n .split(';')\n .map(item => item.trim())\n .filter(item => item)\n\n const styleObj: {\n [propName: string]: string\n } = {}\n\n styles.forEach(item => {\n if (!item) return\n\n const res = /(.+): *(.+)/g.exec(item)\n if (!res) return\n\n const [, name, value] = res\n const styleName = name.replace(/-([a-z])/g, (...args) => args[1].toUpperCase())\n styleObj[styleName] = value\n })\n\n if (Object.keys(styleObj).length) {\n attributes.style = styleObj\n }\n\n continue\n }\n attributes[key] = val\n }\n }\n\n if (children && children.length) {\n childList = children.map(node => this.renderNode(node))\n }\n\n // @ts-ignore\n return h(name, attributes, childList)\n }\n\n return null\n }\n\n render () {\n const { nodes, renderNode } = this\n\n if (Array.isArray(nodes)) {\n return (\n <Host>\n {nodes.map(node => renderNode(node))}\n </Host>\n )\n } else {\n return <Host innerHTML={nodes} />\n }\n }\n}\n"],"mappings":"sJA4BaA,EAAQC,EAAA,iC,mCAGnBC,KAAAC,WAAa,SAACC,GACZ,GAAI,SAAUA,GAAQA,EAAKC,OAAS,OAAQ,CAE1C,IAAMC,GAAWF,EAAKG,MAAQ,IAAIC,QAAQ,UAAW,KACrD,OAAOF,C,MACF,GAAI,SAAUF,GAAQA,EAAKK,KAAM,CAEpC,IAAAA,EAGEL,EAAIK,KAFNC,EAEEN,EAAIM,MADNC,EACEP,EAAIO,SACR,IAAMC,EAAyB,GAC/B,IAAIC,EAAmB,GAEvB,GAAIH,UAAgBA,IAAU,SAAU,C,eAC3BI,GACT,IAAMC,EAAML,EAAMI,GAClB,GAAIA,IAAQ,gBAAkBC,IAAQ,SAAU,CAE9C,IAAMC,EAASD,EACZE,MAAM,KACNC,KAAI,SAAAC,GAAQ,OAAAA,EAAKC,MAAL,IACZC,QAAO,SAAAF,GAAQ,OAAAA,CAAA,IAElB,IAAMG,EAEF,GAEJN,EAAOO,SAAQ,SAAAJ,GACb,IAAKA,EAAM,OAEX,IAAMK,EAAM,eAAeC,KAAKN,GAChC,IAAKK,EAAK,OAED,IAAAf,EAAee,EAAG,GAAZE,EAASF,EAAG,GAC3B,IAAMG,EAAYlB,EAAKD,QAAQ,aAAa,WAAC,IAAAoB,EAAA,G,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAO,CAAPD,EAAAC,GAAAC,UAAAD,E,CAAY,OAAAD,EAAK,GAAGI,aAAR,IACzDV,EAASK,GAAaD,C,IAGxB,GAAIO,OAAOC,KAAKZ,GAAUS,OAAQ,CAChCnB,EAAWuB,MAAQb,C,kBAKvBV,EAAWE,GAAOC,C,EA9BpB,IAAK,IAAMD,KAAOJ,EAAK,C,EAAZI,E,EAkCb,GAAIH,GAAYA,EAASoB,OAAQ,CAC/BlB,EAAYF,EAASO,KAAI,SAAAd,GAAQ,OAAAgC,EAAKjC,WAAWC,EAAhB,G,CAInC,OAAOiC,EAAE5B,EAAMG,EAAYC,E,CAG7B,OAAO,I,uBAGTyB,EAAAC,UAAAC,OAAA,WACQ,IAAAC,EAAwBvC,KAAtBwC,EAAKD,EAAAC,MAAEvC,EAAUsC,EAAAtC,WAEzB,GAAIwC,MAAMC,QAAQF,GAAQ,CACxB,OACEL,EAACQ,EAAI,KACFH,EAAMxB,KAAI,SAAAd,GAAQ,OAAAD,EAAWC,EAAX,I,KAGlB,CACL,OAAOiC,EAACQ,EAAI,CAACC,UAAWJ,G,YAzET,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-78e3ebb9.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("VoipRoom",this)}render(){return r(t,null)}};export{a as taro_voip_room_core};
|
|
2
|
+
//# sourceMappingURL=p-fda82bc1.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VoipRoom","componentDidLoad","notSupport","this","render","h","Host"],"sources":["./src/components/voip-room/voip-room.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-voip-room-core'\n})\nexport class VoipRoom implements ComponentInterface {\n componentDidLoad () {\n notSupport('VoipRoom', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"iHAOaA,EAAQ,M,yBACnBC,mBACEC,EAAW,WAAYC,K,CAGzBC,SACE,OACEC,EAACC,EAAI,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,g as i}from"./p-78e3ebb9.js";const h="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";const c=class{constructor(s){t(this,s);this.onChange=e(this,"change",7);this.switchChange=t=>{t.stopPropagation();const e=t.target.checked;this.isChecked=e;this.onChange.emit({value:e})};this.type="switch";this.checked=false;this.color="#04BE02";this.name=undefined;this.disabled=false;this.nativeProps={};this.isChecked=undefined;this.isWillLoadCalled=false}function(t,e){if(!this.isWillLoadCalled)return;if(t!==e)this.isChecked=t}componentWillLoad(){this.isWillLoadCalled=true;this.isChecked=this.checked}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.isChecked,configurable:true})}render(){const{type:t,color:e,isChecked:i,name:h,disabled:c,nativeProps:o}=this;const n=i?{borderColor:e||"04BE02",backgroundColor:e||"04BE02"}:{};return s("input",Object.assign({type:"checkbox",class:`weui-${t}`,style:n,checked:i,name:h,disabled:c,onChange:this.switchChange},o))}get el(){return i(this)}static get watchers(){return{checked:["function"]}}};c.style=h;export{c as taro_switch_core};
|
|
2
|
+
//# sourceMappingURL=p-fec6746d.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["indexCss","Switch","this","switchChange","e","stopPropagation","value","target","checked","isChecked","onChange","emit","function","newVal","oldVal","isWillLoadCalled","componentWillLoad","componentDidLoad","Object","defineProperty","el","get","configurable","render","type","color","name","disabled","nativeProps","style","borderColor","backgroundColor","h","assign","class"],"sources":["./src/components/switch/style/index.scss?tag=taro-switch-core","./src/components/switch/switch.tsx"],"sourcesContent":["taro-switch-core {\n display: inline-block;\n width: 52px;\n height: 32px;\n\n .weui-switch {\n display: block;\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Watch, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-switch-core',\n styleUrl: './style/index.scss'\n})\nexport class Switch implements ComponentInterface {\n @Prop() type = 'switch'\n @Prop() checked = false\n @Prop() color = '#04BE02'\n @Prop() name: string\n @Prop() disabled = false\n @Prop() nativeProps = {}\n\n @State() isChecked: boolean\n @State() isWillLoadCalled = false\n\n @Element() el: HTMLElement\n\n @Watch('checked')\n function (newVal: boolean, oldVal: boolean) {\n if (!this.isWillLoadCalled) return\n if (newVal !== oldVal) this.isChecked = newVal\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n this.isChecked = this.checked\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.isChecked,\n configurable: true\n })\n }\n\n switchChange = e => {\n e.stopPropagation()\n const value = e.target.checked\n this.isChecked = value\n this.onChange.emit({\n value\n })\n }\n\n render () {\n const {\n type,\n color,\n isChecked,\n name,\n disabled,\n nativeProps\n } = this\n\n const style = isChecked\n ? {\n borderColor: color || '04BE02',\n backgroundColor: color || '04BE02'\n }\n : {}\n\n return (\n <input\n type='checkbox'\n class={`weui-${type}`}\n style={style}\n checked={isChecked}\n name={name}\n disabled={disabled}\n onChange={this.switchChange}\n {...nativeProps}\n />\n )\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAW,mI,MCMJC,EAAM,M,0DAoCjBC,KAAAC,aAAeC,IACbA,EAAEC,kBACF,MAAMC,EAAQF,EAAEG,OAAOC,QACvBN,KAAKO,UAAYH,EACjBJ,KAAKQ,SAASC,KAAK,CACjBL,SACA,E,UAzCW,S,aACG,M,WACF,U,kCAEG,M,iBACG,G,+CAGM,K,CAK5BM,SAAUC,EAAiBC,GACzB,IAAKZ,KAAKa,iBAAkB,OAC5B,GAAIF,IAAWC,EAAQZ,KAAKO,UAAYI,C,CAQ1CG,oBACEd,KAAKa,iBAAmB,KACxBb,KAAKO,UAAYP,KAAKM,O,CAGxBS,mBACEC,OAAOC,eAAejB,KAAKkB,GAAI,QAAS,CACtCC,IAAK,IAAMnB,KAAKO,UAChBa,aAAc,M,CAalBC,SACE,MAAMC,KACJA,EAAIC,MACJA,EAAKhB,UACLA,EAASiB,KACTA,EAAIC,SACJA,EAAQC,YACRA,GACE1B,KAEJ,MAAM2B,EAAQpB,EACV,CACAqB,YAAaL,GAAS,SACtBM,gBAAiBN,GAAS,UAE1B,GAEJ,OACEO,EAAA,QAAAd,OAAAe,OAAA,CACET,KAAK,WACLU,MAAO,QAAQV,IACfK,MAAOA,EACPrB,QAASC,EACTiB,KAAMA,EACNC,SAAUA,EACVjB,SAAUR,KAAKC,cACXyB,G"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-5bfefd19.js";const r=()=>{const o=import.meta.url;const r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return e(r)};r().then((e=>o(JSON.parse('[["p-c3bb8fa6",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-8231e748",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-b10cb428",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df862d0c",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-d388c097",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-4b05e003",[[0,"taro-ad-core"]]],["p-3e6b29c6",[[0,"taro-ad-custom-core"]]],["p-6cd941bc",[[0,"taro-animation-video-core"]]],["p-386b9de8",[[0,"taro-animation-view-core"]]],["p-d6441fd8",[[0,"taro-ar-camera-core"]]],["p-beea63a7",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-37d71e63",[[0,"taro-aweme-data-core"]]],["p-93cc7adc",[[0,"taro-block-core"]]],["p-f120c272",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-6af8be19",[[0,"taro-camera-core"]]],["p-17657dca",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-7bafbe22",[[0,"taro-comment-detail-core"]]],["p-5bd1c1a1",[[0,"taro-comment-list-core"]]],["p-70defa84",[[0,"taro-contact-button-core"]]],["p-01dc54a5",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-de762042",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-be3f5ac0",[[0,"taro-custom-wrapper-core"]]],["p-96a784f1",[[0,"taro-editor-core"]]],["p-876edf66",[[0,"taro-follow-swan-core"]]],["p-e4f1cc50",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-ba743573",[[0,"taro-functional-page-navigator-core"]]],["p-55519002",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-5b552407",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-65971d99",[[0,"taro-inline-payment-panel-core"]]],["p-9e20c25c",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-1cb76199",[[0,"taro-keyboard-accessory-core"]]],["p-b832f4e8",[[4,"taro-label-core",{"for":[1]}]]],["p-62d750a7",[[0,"taro-lifestyle-core"]]],["p-73106bc9",[[0,"taro-like-core"]]],["p-20ec6387",[[0,"taro-live-player-core"]]],["p-0d36ef6b",[[0,"taro-live-pusher-core"]]],["p-7e7a1e62",[[0,"taro-login-core"]]],["p-7afc274a",[[0,"taro-lottie-core"]]],["p-ab105c26",[[0,"taro-map-core"]]],["p-12e4b019",[[0,"taro-match-media-core"]]],["p-51040638",[[0,"taro-native-slot-core"]]],["p-cd6a7eea",[[0,"taro-navigation-bar-core"]]],["p-3c256e0e",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-d85b216d",[[0,"taro-official-account-core"]]],["p-0a896bc7",[[0,"taro-open-data-core"]]],["p-0ee6a068",[[0,"taro-page-container-core"]]],["p-b90926cc",[[0,"taro-page-meta-core"]]],["p-29f04296",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-570222e2",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-6ea2995b",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-3b9a1125",[[0,"taro-root-portal-core"]]],["p-a4961ddd",[[0,"taro-rtc-room-core"]]],["p-f81d14ad",[[0,"taro-rtc-room-item-core"]]],["p-427a2872",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]},[[3,"scroll","handleScroll"]]]]],["p-e59f999e",[[0,"taro-share-element-core"]]],["p-b4ec48c3",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-186ad7ff",[[0,"taro-slot-core"]]],["p-2243a376",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-28dade4f",[[0,"taro-tab-item-core"]]],["p-e0d6b00b",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-281a2bcf",[[0,"taro-tabs-core"]]],["p-2096bc5f",[[4,"taro-text-core",{"selectable":[4]}]]],["p-ffc44634",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-19afe402",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-6f8af69f",[[0,"taro-voip-room-core"]]],["p-1b64d2a2",[[0,"taro-web-view-core",{"src":[1]}]]],["p-d7f4b10f",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-4b71c926",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as o}from"./p-78e3ebb9.js";export{s as setNonce}from"./p-78e3ebb9.js";const r=()=>{const o=import.meta.url;const r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return e(r)};r().then((e=>o(JSON.parse('[["p-b313c11a",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-7a2f11dc",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-8625c29c",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-8594d1e5",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-c1c0e16d",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-c0bb8610",[[0,"taro-ad-core"]]],["p-4a462c95",[[0,"taro-ad-custom-core"]]],["p-7c6f0d5c",[[0,"taro-animation-video-core"]]],["p-66b07ac0",[[0,"taro-animation-view-core"]]],["p-8425ff09",[[0,"taro-ar-camera-core"]]],["p-91f8cd40",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-09db02e6",[[0,"taro-aweme-data-core"]]],["p-24c2fd23",[[0,"taro-block-core"]]],["p-d562aae3",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-0accc602",[[0,"taro-camera-core"]]],["p-828bd091",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-955fbcfa",[[0,"taro-comment-detail-core"]]],["p-281278cf",[[0,"taro-comment-list-core"]]],["p-c2ac8f08",[[0,"taro-contact-button-core"]]],["p-2357313b",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-b8ba5d0a",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-982e431d",[[0,"taro-custom-wrapper-core"]]],["p-19e87e18",[[0,"taro-editor-core"]]],["p-780870eb",[[0,"taro-follow-swan-core"]]],["p-efe31b23",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-3bce88d9",[[0,"taro-functional-page-navigator-core"]]],["p-5f3c65f0",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-d1d19ce9",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-51caa3f3",[[0,"taro-inline-payment-panel-core"]]],["p-5208792d",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-adc37a00",[[0,"taro-keyboard-accessory-core"]]],["p-67c3a0ba",[[4,"taro-label-core",{"for":[1]}]]],["p-c50087fd",[[0,"taro-lifestyle-core"]]],["p-a7789ed6",[[0,"taro-like-core"]]],["p-908ddbb0",[[0,"taro-live-player-core"]]],["p-76e6fbff",[[0,"taro-live-pusher-core"]]],["p-c3e98fdf",[[0,"taro-login-core"]]],["p-eb9adf17",[[0,"taro-lottie-core"]]],["p-4bc85eb7",[[0,"taro-map-core"]]],["p-b4419d86",[[0,"taro-match-media-core"]]],["p-7c1fec76",[[0,"taro-native-slot-core"]]],["p-a23a21e1",[[0,"taro-navigation-bar-core"]]],["p-d621d190",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-6bb1fdf2",[[0,"taro-official-account-core"]]],["p-4263c9d9",[[0,"taro-open-data-core"]]],["p-d61d3394",[[0,"taro-page-container-core"]]],["p-b39b973e",[[0,"taro-page-meta-core"]]],["p-f88f0f55",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-d8c8c63f",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-663e27a0",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-603ceecd",[[0,"taro-root-portal-core"]]],["p-3f07f3d3",[[0,"taro-rtc-room-core"]]],["p-386ae2b2",[[0,"taro-rtc-room-item-core"]]],["p-71155a2c",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]},[[3,"scroll","handleScroll"]]]]],["p-e0e4a403",[[0,"taro-share-element-core"]]],["p-93ccd68a",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-03d4de13",[[0,"taro-slot-core"]]],["p-fec6746d",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-eb2a7609",[[0,"taro-tab-item-core"]]],["p-5d3acf86",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-0faf45d5",[[0,"taro-tabs-core"]]],["p-05f3f84a",[[4,"taro-text-core",{"selectable":[4]}]]],["p-ef4c1fd4",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-e67165fd",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-fda82bc1",[[0,"taro-voip-room-core"]]],["p-2049bdc4",[[0,"taro-web-view-core",{"src":[1]}]]],["p-88fbacdb",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-020bcd8c",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
|
2
2
|
//# sourceMappingURL=taro-components.esm.js.map
|