@tarojs/components 4.0.1 → 4.0.2
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/LICENSE +8 -8
- package/README.md +1 -1
- package/dist/cjs/{index-f6805218.js → index-b873e40f.js} +45 -27
- package/dist/cjs/loader.cjs.js +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 +2 -2
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +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 +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-builder-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-builder-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-container-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 +2 -2
- 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-core.cjs.entry.js +2 -2
- 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-snapshot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-span-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
- 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/components/image/style/index.css +1 -1
- package/dist/collection/components/input/style/index.css +1 -1
- package/dist/collection/components/tabbar/style/index.css +1 -1
- package/dist/collection/components/tabbar/tabbar-item.js +1 -1
- package/dist/collection/components/tabbar/tabbar.js +4 -4
- package/dist/collection/components/view/style/index.css +1 -1
- package/dist/components/index2.js +45 -27
- package/dist/components/taro-image-core.js +1 -1
- package/dist/components/taro-input-core.js +1 -1
- package/dist/components/taro-tabbar.js +1 -1
- package/dist/components/taro-view-core.js +1 -1
- package/dist/esm/{index-c3e4004b.js → index-b9522531.js} +45 -27
- package/dist/esm/loader.js +2 -2
- 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 +2 -2
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-channel-live-core.entry.js +1 -1
- package/dist/esm/taro-channel-video-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-contact-button-core.entry.js +1 -1
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-draggable-sheet-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-builder-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +2 -2
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm/taro-like-core.entry.js +1 -1
- package/dist/esm/taro-list-builder-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-login-core.entry.js +1 -1
- package/dist/esm/taro-lottie-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm/taro-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-nested-scroll-body-core.entry.js +1 -1
- package/dist/esm/taro-nested-scroll-header-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-container-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 +2 -2
- 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-core.entry.js +2 -2
- 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-snapshot-core.entry.js +1 -1
- package/dist/esm/taro-span-core.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/esm/taro-view-core.entry.js +3 -3
- 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/index-b9522531.js +7 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-builder-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -1
- package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
- package/dist/esm-es5/taro-span-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/hydrate/index.js +49 -31
- package/dist/taro-components/{p-7b3ce3af.system.entry.js → p-02465454.system.entry.js} +1 -1
- package/dist/taro-components/{p-62df5526.entry.js → p-02d4d104.entry.js} +1 -1
- package/dist/taro-components/{p-0f95be56.entry.js → p-03dc0283.entry.js} +1 -1
- package/dist/taro-components/{p-7f3d9184.entry.js → p-047e4bfe.entry.js} +1 -1
- package/dist/taro-components/{p-0044961f.system.entry.js → p-06adeb65.system.entry.js} +1 -1
- package/dist/taro-components/{p-ead6e57b.entry.js → p-078cb65e.entry.js} +1 -1
- package/dist/taro-components/{p-194ace03.system.entry.js → p-07ae6678.system.entry.js} +1 -1
- package/dist/taro-components/{p-7bc6aa36.entry.js → p-07f27474.entry.js} +1 -1
- package/dist/taro-components/{p-a997cf7c.system.entry.js → p-083c3147.system.entry.js} +1 -1
- package/dist/taro-components/{p-3430d520.system.entry.js → p-0a64f78c.system.entry.js} +1 -1
- package/dist/taro-components/p-0f2c1ecc.entry.js +1 -0
- package/dist/taro-components/{p-8b7e37c9.system.entry.js → p-0f480c38.system.entry.js} +1 -1
- package/dist/taro-components/{p-b655e854.system.entry.js → p-0fc790c0.system.entry.js} +1 -1
- package/dist/taro-components/{p-370cc947.entry.js → p-0ff5a55b.entry.js} +1 -1
- package/dist/taro-components/{p-19b04eb7.entry.js → p-12582166.entry.js} +1 -1
- package/dist/taro-components/{p-1d102ddb.system.entry.js → p-156e9634.system.entry.js} +1 -1
- package/dist/taro-components/p-160d710a.js +7 -0
- package/dist/taro-components/{p-46ccb393.system.entry.js → p-17938fa0.system.entry.js} +1 -1
- package/dist/taro-components/{p-e6a2f1bd.system.entry.js → p-17b9f865.system.entry.js} +1 -1
- package/dist/taro-components/{p-43932446.entry.js → p-17e72555.entry.js} +1 -1
- package/dist/taro-components/{p-b4047b11.entry.js → p-18c039ef.entry.js} +1 -1
- package/dist/taro-components/{p-e41ed824.system.entry.js → p-1bd4da3b.system.entry.js} +1 -1
- package/dist/taro-components/{p-f470ce9f.system.entry.js → p-1c37143a.system.entry.js} +1 -1
- package/dist/taro-components/{p-5bfdb5f3.entry.js → p-1eea2828.entry.js} +1 -1
- package/dist/taro-components/{p-1acf7537.entry.js → p-204996e7.entry.js} +1 -1
- package/dist/taro-components/{p-37bc198d.entry.js → p-2649c7ae.entry.js} +1 -1
- package/dist/taro-components/{p-d29a59cd.entry.js → p-26eb2f3f.entry.js} +1 -1
- package/dist/taro-components/{p-aed23034.system.entry.js → p-27041d86.system.entry.js} +1 -1
- package/dist/taro-components/{p-f0056aca.system.entry.js → p-27d372b4.system.entry.js} +1 -1
- package/dist/taro-components/{p-a6790f39.entry.js → p-280795f2.entry.js} +1 -1
- package/dist/taro-components/{p-16705ca9.entry.js → p-292470e5.entry.js} +1 -1
- package/dist/taro-components/{p-2ebc3182.entry.js → p-2d537212.entry.js} +1 -1
- package/dist/taro-components/{p-87b0d22f.entry.js → p-2f177716.entry.js} +1 -1
- package/dist/taro-components/{p-fe1dd94f.system.entry.js → p-3293c5d9.system.entry.js} +1 -1
- package/dist/taro-components/{p-12b967fd.entry.js → p-32c0f326.entry.js} +1 -1
- package/dist/taro-components/{p-80228985.entry.js → p-35dec732.entry.js} +1 -1
- package/dist/taro-components/{p-ae99551a.entry.js → p-38b29261.entry.js} +1 -1
- package/dist/taro-components/{p-756aa971.entry.js → p-3a180dc7.entry.js} +1 -1
- package/dist/taro-components/{p-970a4199.system.entry.js → p-3b36196b.system.entry.js} +1 -1
- package/dist/taro-components/{p-c253be9f.entry.js → p-3bfe9260.entry.js} +1 -1
- package/dist/taro-components/{p-dc366f18.entry.js → p-3cf08137.entry.js} +1 -1
- package/dist/taro-components/{p-28bc8a48.entry.js → p-402c7f93.entry.js} +1 -1
- package/dist/taro-components/{p-4a748c0d.entry.js → p-425d1d69.entry.js} +1 -1
- package/dist/taro-components/p-43367dd1.entry.js +1 -0
- package/dist/taro-components/p-443b9a72.system.js +7 -0
- package/dist/taro-components/{p-cc993977.system.entry.js → p-443e31ab.system.entry.js} +1 -1
- package/dist/taro-components/{p-e23769c4.entry.js → p-4523b1c7.entry.js} +1 -1
- package/dist/taro-components/{p-4824cc94.entry.js → p-46a66c43.entry.js} +1 -1
- package/dist/taro-components/{p-ffaac078.system.entry.js → p-47790dc0.system.entry.js} +1 -1
- package/dist/taro-components/{p-618ee593.system.entry.js → p-4979e93c.system.entry.js} +1 -1
- package/dist/taro-components/p-4a8b4d58.system.entry.js +1 -0
- package/dist/taro-components/{p-eda34d91.system.entry.js → p-4ac48df1.system.entry.js} +1 -1
- package/dist/taro-components/{p-f782ee74.system.entry.js → p-4fad4beb.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2694a79.system.entry.js → p-50849470.system.entry.js} +1 -1
- package/dist/taro-components/p-53e62840.system.entry.js +1 -0
- package/dist/taro-components/{p-4e63d3bd.entry.js → p-55e12654.entry.js} +1 -1
- package/dist/taro-components/{p-6f8926e3.entry.js → p-56552c9e.entry.js} +1 -1
- package/dist/taro-components/{p-c58627f4.entry.js → p-56a82bf3.entry.js} +1 -1
- package/dist/taro-components/{p-7b80637e.system.entry.js → p-57911e2c.system.entry.js} +1 -1
- package/dist/taro-components/{p-3eedb8d7.system.entry.js → p-57b77f17.system.entry.js} +1 -1
- package/dist/taro-components/{p-04f97133.system.entry.js → p-5884c108.system.entry.js} +1 -1
- package/dist/taro-components/{p-55934653.system.entry.js → p-5b9aa4b0.system.entry.js} +1 -1
- package/dist/taro-components/{p-5b86e66b.system.entry.js → p-5c156db3.system.entry.js} +1 -1
- package/dist/taro-components/{p-342a2594.entry.js → p-5c98f478.entry.js} +1 -1
- package/dist/taro-components/p-5f23dc41.system.entry.js +1 -0
- package/dist/taro-components/{p-829157b1.system.entry.js → p-61a325d2.system.entry.js} +1 -1
- package/dist/taro-components/{p-9f3e0019.system.entry.js → p-6282bdee.system.entry.js} +1 -1
- package/dist/taro-components/{p-fbb789a4.system.entry.js → p-65d11e99.system.entry.js} +1 -1
- package/dist/taro-components/{p-66029061.system.entry.js → p-6654374e.system.entry.js} +1 -1
- package/dist/taro-components/{p-aa11b00c.system.entry.js → p-6664a2ca.system.entry.js} +1 -1
- package/dist/taro-components/{p-0d8a0733.entry.js → p-68197378.entry.js} +1 -1
- package/dist/taro-components/p-6989c232.entry.js +1 -0
- package/dist/taro-components/{p-6c06b440.system.entry.js → p-6b83388c.system.entry.js} +1 -1
- package/dist/taro-components/{p-4621b303.system.entry.js → p-6ba08ce0.system.entry.js} +1 -1
- package/dist/taro-components/{p-0fe4660a.entry.js → p-6cc0bcb9.entry.js} +1 -1
- package/dist/taro-components/{p-477f8fbd.system.js → p-7163d09e.system.js} +1 -1
- package/dist/taro-components/{p-e5b43c80.system.entry.js → p-75b4c1fc.system.entry.js} +1 -1
- package/dist/taro-components/{p-069ae782.system.entry.js → p-75ded8a0.system.entry.js} +1 -1
- package/dist/taro-components/{p-da4c4cad.entry.js → p-77e82dfa.entry.js} +1 -1
- package/dist/taro-components/{p-dde26531.entry.js → p-79cad66b.entry.js} +1 -1
- package/dist/taro-components/{p-f94c0445.system.entry.js → p-7ca2d075.system.entry.js} +1 -1
- package/dist/taro-components/{p-5a78fbdf.system.entry.js → p-7e054ae7.system.entry.js} +1 -1
- package/dist/taro-components/p-7e692c70.entry.js +1 -0
- package/dist/taro-components/{p-baea6a63.entry.js → p-7ebd4310.entry.js} +1 -1
- package/dist/taro-components/p-7fdbcf4d.entry.js +1 -0
- package/dist/taro-components/{p-11c0dc59.system.entry.js → p-8179438b.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d423adc.entry.js → p-84998109.entry.js} +1 -1
- package/dist/taro-components/{p-3a3d40de.system.entry.js → p-855619b6.system.entry.js} +1 -1
- package/dist/taro-components/{p-e2a22cd1.entry.js → p-8b0c9d3f.entry.js} +1 -1
- package/dist/taro-components/{p-d12b6a84.system.entry.js → p-91ee1f8a.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a6e93ed.entry.js → p-937a6c36.entry.js} +1 -1
- package/dist/taro-components/{p-90ee19f8.system.entry.js → p-938f9036.system.entry.js} +1 -1
- package/dist/taro-components/{p-4fcb258a.entry.js → p-93a2b2e9.entry.js} +1 -1
- package/dist/taro-components/p-93b02321.entry.js +1 -0
- package/dist/taro-components/p-9571836f.entry.js +1 -0
- package/dist/taro-components/{p-923aa1c8.system.entry.js → p-97b09fb4.system.entry.js} +1 -1
- package/dist/taro-components/{p-34ba9330.system.entry.js → p-9b6b17c4.system.entry.js} +1 -1
- package/dist/taro-components/{p-36ea0ac1.system.entry.js → p-9e359fff.system.entry.js} +1 -1
- package/dist/taro-components/{p-b3419d7f.system.entry.js → p-9f53e26c.system.entry.js} +1 -1
- package/dist/taro-components/{p-cee51d71.system.entry.js → p-a25aca16.system.entry.js} +1 -1
- package/dist/taro-components/{p-d184903b.entry.js → p-a50c6736.entry.js} +1 -1
- package/dist/taro-components/{p-1087c51a.system.entry.js → p-a96f8f60.system.entry.js} +1 -1
- package/dist/taro-components/{p-4b5f75b9.system.entry.js → p-a9ca8247.system.entry.js} +1 -1
- package/dist/taro-components/p-aabac550.entry.js +1 -0
- package/dist/taro-components/p-ab0e0366.system.entry.js +1 -0
- package/dist/taro-components/{p-48a84765.entry.js → p-ac2be5f3.entry.js} +1 -1
- package/dist/taro-components/{p-b0f12e64.system.entry.js → p-ac714300.system.entry.js} +1 -1
- package/dist/taro-components/{p-b66dfc82.system.entry.js → p-ac9fb309.system.entry.js} +1 -1
- package/dist/taro-components/p-acb113bd.entry.js +1 -0
- package/dist/taro-components/{p-6ffc9bda.system.entry.js → p-b087ad2a.system.entry.js} +1 -1
- package/dist/taro-components/{p-317c4cad.entry.js → p-b1f80b6b.entry.js} +1 -1
- package/dist/taro-components/{p-99440bcc.system.entry.js → p-b4577a12.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe8ee676.entry.js → p-b4c7bb48.entry.js} +1 -1
- package/dist/taro-components/{p-ec00e517.entry.js → p-ba11ef7d.entry.js} +1 -1
- package/dist/taro-components/{p-97177863.system.entry.js → p-ba5e7ec4.system.entry.js} +1 -1
- package/dist/taro-components/{p-49e9b2ff.entry.js → p-bb67318d.entry.js} +1 -1
- package/dist/taro-components/{p-92b7b545.entry.js → p-bd57edcd.entry.js} +1 -1
- package/dist/taro-components/{p-5b4de079.entry.js → p-be055537.entry.js} +1 -1
- package/dist/taro-components/{p-c0f16127.entry.js → p-be1701b2.entry.js} +1 -1
- package/dist/taro-components/{p-ba241824.system.entry.js → p-c056d527.system.entry.js} +1 -1
- package/dist/taro-components/{p-3a0a05fd.system.entry.js → p-c0c567e5.system.entry.js} +1 -1
- package/dist/taro-components/{p-f662c928.entry.js → p-c3dc7072.entry.js} +1 -1
- package/dist/taro-components/{p-6f1034a6.system.entry.js → p-c677414d.system.entry.js} +1 -1
- package/dist/taro-components/{p-fa9dbb6f.system.entry.js → p-c71d5745.system.entry.js} +1 -1
- package/dist/taro-components/{p-50b21f94.entry.js → p-c7836e2b.entry.js} +1 -1
- package/dist/taro-components/{p-55e54f2a.system.entry.js → p-c7d8c076.system.entry.js} +1 -1
- package/dist/taro-components/{p-8bde1f48.entry.js → p-c8cd6e16.entry.js} +1 -1
- package/dist/taro-components/{p-2d382d0e.entry.js → p-c95d2b90.entry.js} +1 -1
- package/dist/taro-components/{p-c863ac7f.system.entry.js → p-ca6a5916.system.entry.js} +1 -1
- package/dist/taro-components/{p-5c0f97d3.system.entry.js → p-cae6c5d0.system.entry.js} +1 -1
- package/dist/taro-components/{p-80fa706c.system.entry.js → p-cafbb3d9.system.entry.js} +1 -1
- package/dist/taro-components/{p-5f4c6ca5.entry.js → p-ccbaba23.entry.js} +1 -1
- package/dist/taro-components/{p-69e70cd5.system.entry.js → p-d05eb105.system.entry.js} +1 -1
- package/dist/taro-components/{p-19b993d8.system.entry.js → p-d2203687.system.entry.js} +1 -1
- package/dist/taro-components/{p-5dbabb65.entry.js → p-d5603857.entry.js} +1 -1
- package/dist/taro-components/{p-82d52f00.system.entry.js → p-d73b3a94.system.entry.js} +1 -1
- package/dist/taro-components/{p-ebbbdde5.entry.js → p-d87a68f6.entry.js} +1 -1
- package/dist/taro-components/{p-7e3f0837.entry.js → p-d973d536.entry.js} +1 -1
- package/dist/taro-components/{p-b3129dec.entry.js → p-d9884371.entry.js} +1 -1
- package/dist/taro-components/{p-82c5b9d3.entry.js → p-dc08715a.entry.js} +1 -1
- package/dist/taro-components/{p-13bf0192.entry.js → p-dc25fa81.entry.js} +1 -1
- package/dist/taro-components/{p-5186ab96.system.entry.js → p-dcf5747c.system.entry.js} +1 -1
- package/dist/taro-components/{p-de1d495a.system.entry.js → p-ddf75d6a.system.entry.js} +1 -1
- package/dist/taro-components/{p-562eace8.system.entry.js → p-ded98693.system.entry.js} +1 -1
- package/dist/taro-components/{p-4ffae31c.entry.js → p-dedf50a9.entry.js} +1 -1
- package/dist/taro-components/{p-ee9d6467.system.entry.js → p-df7c6216.system.entry.js} +1 -1
- package/dist/taro-components/{p-b4707cdd.entry.js → p-e1cce2f1.entry.js} +1 -1
- package/dist/taro-components/{p-895982a4.entry.js → p-e2e7bc16.entry.js} +1 -1
- package/dist/taro-components/{p-f6743078.system.entry.js → p-e3d825d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-111fadd7.system.entry.js → p-e5ef41f2.system.entry.js} +1 -1
- package/dist/taro-components/{p-6f3187bc.entry.js → p-e681d764.entry.js} +1 -1
- package/dist/taro-components/{p-b259a558.system.entry.js → p-e853a2c8.system.entry.js} +1 -1
- package/dist/taro-components/{p-e5a80896.system.entry.js → p-ebad862a.system.entry.js} +1 -1
- package/dist/taro-components/{p-b43fa9b0.entry.js → p-ebb1ae64.entry.js} +1 -1
- package/dist/taro-components/{p-a2f848cc.entry.js → p-f034a433.entry.js} +1 -1
- package/dist/taro-components/{p-39b3e34d.entry.js → p-f168fffc.entry.js} +1 -1
- package/dist/taro-components/p-f367a754.entry.js +1 -0
- package/dist/taro-components/{p-0132e803.entry.js → p-f43f26cf.entry.js} +1 -1
- package/dist/taro-components/{p-15c1ce79.entry.js → p-f5f3a111.entry.js} +1 -1
- package/dist/taro-components/{p-13e80cf7.entry.js → p-f8f2461f.entry.js} +1 -1
- package/dist/taro-components/p-f9935901.system.entry.js +1 -0
- package/dist/taro-components/{p-019124ae.system.entry.js → p-fa31b2de.system.entry.js} +1 -1
- package/dist/taro-components/p-fab63183.entry.js +1 -0
- package/dist/taro-components/{p-93b39a89.system.entry.js → p-fbf13159.system.entry.js} +1 -1
- package/dist/taro-components/{p-f7198b67.system.entry.js → p-fe5eefdc.system.entry.js} +1 -1
- package/dist/taro-components/{p-adee7f1b.system.entry.js → p-feb89474.system.entry.js} +1 -1
- package/dist/taro-components/{p-76c0f443.entry.js → p-ff772345.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/tabbar/tabbar-item.d.ts +4 -4
- package/dist/types/components/tabbar/tabbar.d.ts +16 -15
- package/dist/types/components.d.ts +2 -3
- package/global.css +1 -0
- package/lib/react/component-lib/index.d.ts +53 -53
- package/lib/react/component-lib/input.d.ts +1 -1
- package/lib/react/component-lib/input.js.map +1 -1
- package/lib/react/component-lib/reactify-wc.d.ts +1 -1
- package/lib/react/component-lib/reactify-wc.js.map +1 -1
- package/lib/react/components.d.ts +92 -92
- package/lib/react/components.js +2 -0
- package/lib/react/components.js.map +1 -1
- package/lib/react/helper.d.ts +4 -2
- package/lib/react/helper.js.map +1 -1
- package/lib/react/index.d.ts +1 -1
- package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js +373 -0
- package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/react/react-component-lib/createComponent.d.ts +3 -3
- package/lib/react/react-component-lib/createComponent.js +1 -1
- package/lib/react/react-component-lib/createComponent.js.map +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -5
- package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/lib/react/react-component-lib/index.d.ts +2 -2
- package/lib/react/{interfaces-f526f1a2.d.ts → react-component-lib/interfaces.d.ts} +4 -5
- package/lib/react/react-component-lib/utils/attachProps.d.ts +6 -6
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/react/react-component-lib/utils/case.d.ts +2 -3
- package/lib/react/react-component-lib/utils/dev.d.ts +6 -0
- package/lib/react/react-component-lib/utils/index.d.ts +9 -10
- package/lib/react/react-component-lib/utils/index.js.map +1 -1
- package/lib/solid/component-lib/index.d.ts +53 -0
- package/lib/solid/component-lib/index.js +69 -0
- package/lib/solid/component-lib/index.js.map +1 -0
- package/lib/solid/components.d.ts +92 -0
- package/lib/solid/components.js +102 -0
- package/lib/solid/components.js.map +1 -0
- package/lib/solid/helper.d.ts +3 -0
- package/lib/solid/helper.js +7 -0
- package/lib/solid/helper.js.map +1 -0
- package/lib/solid/index.d.ts +1 -0
- package/lib/solid/solid-component-lib/createComponent.d.ts +10 -0
- package/lib/solid/solid-component-lib/createComponent.js +67 -0
- package/lib/solid/solid-component-lib/createComponent.js.map +1 -0
- package/lib/solid/solid-component-lib/index.d.ts +1 -0
- package/lib/solid/solid-component-lib/index.js +2 -0
- package/lib/solid/solid-component-lib/index.js.map +1 -0
- package/lib/solid/solid-component-lib/interfaces.d.ts +33 -0
- package/lib/solid/solid-component-lib/utils/case.d.ts +3 -0
- package/lib/solid/solid-component-lib/utils/case.js +6 -0
- package/lib/solid/solid-component-lib/utils/case.js.map +1 -0
- package/lib/solid/solid-component-lib/utils/element.d.ts +6 -0
- package/lib/solid/solid-component-lib/utils/element.js +48 -0
- package/lib/solid/solid-component-lib/utils/element.js.map +1 -0
- package/lib/solid/solid-component-lib/utils/index.d.ts +2 -0
- package/lib/solid/solid-component-lib/utils/index.js +3 -0
- package/lib/solid/solid-component-lib/utils/index.js.map +1 -0
- package/lib/vue3/component-lib/createComponent.d.ts +1 -2
- package/lib/vue3/component-lib/createFormsComponent.d.ts +1 -2
- package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
- package/lib/vue3/component-lib/forwardRef.d.ts +1 -2
- package/lib/vue3/component-lib/icon.d.ts +1 -1
- package/lib/vue3/component-lib/image.d.ts +1 -1
- package/lib/vue3/component-lib/index.d.ts +52 -53
- package/lib/vue3/component-lib/scroll-view.d.ts +1 -1
- package/lib/vue3/component-lib/scroll-view.js.map +1 -1
- package/lib/vue3/component-lib/text.d.ts +1 -1
- package/lib/vue3/components-loader.d.ts +1 -2
- package/lib/vue3/components-loader.js.map +1 -1
- package/lib/vue3/components.d.ts +93 -92
- package/lib/vue3/components.js +2 -0
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.d.ts +1 -1
- package/lib/vue3/vue-component-lib/utils.d.ts +2 -3
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +29 -24
- package/types/Button.d.ts +5 -5
- package/types/Camera.d.ts +1 -1
- package/types/Checkbox.d.ts +5 -5
- package/types/CoverImage.d.ts +1 -1
- package/types/Form.d.ts +2 -2
- package/types/Icon.d.ts +3 -3
- package/types/Image.d.ts +3 -2
- package/types/Input.d.ts +15 -15
- package/types/Label.d.ts +1 -1
- package/types/ListView.d.ts +1 -1
- package/types/NavigationBar.d.ts +4 -4
- package/types/Navigator.d.ts +1 -1
- package/types/PageMeta.d.ts +7 -7
- package/types/Picker.d.ts +20 -20
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +5 -5
- package/types/RadioGroup.d.ts +1 -1
- package/types/ScrollView.d.ts +5 -5
- package/types/Slider.d.ts +14 -14
- package/types/Slot.d.ts +1 -1
- package/types/StickyHeader.d.ts +1 -1
- package/types/StickySection.d.ts +1 -1
- package/types/Swiper.d.ts +9 -9
- package/types/SwiperItem.d.ts +1 -1
- package/types/Switch.d.ts +5 -5
- package/types/Text.d.ts +2 -2
- package/types/Textarea.d.ts +7 -7
- package/types/Video.d.ts +16 -16
- package/types/common.d.ts +7 -2
- package/dist/esm-es5/index-c3e4004b.js +0 -7
- package/dist/taro-components/p-25636983.entry.js +0 -1
- package/dist/taro-components/p-2ec68968.system.js +0 -7
- package/dist/taro-components/p-2f8ebd28.system.entry.js +0 -1
- package/dist/taro-components/p-33980e67.entry.js +0 -1
- package/dist/taro-components/p-378b504c.entry.js +0 -1
- package/dist/taro-components/p-3e4b5391.system.entry.js +0 -1
- package/dist/taro-components/p-4c30ea10.entry.js +0 -1
- package/dist/taro-components/p-518a9b73.entry.js +0 -1
- package/dist/taro-components/p-52ad5213.system.entry.js +0 -1
- package/dist/taro-components/p-6dd357b9.entry.js +0 -1
- package/dist/taro-components/p-751d42cb.entry.js +0 -1
- package/dist/taro-components/p-77e030e9.system.entry.js +0 -1
- package/dist/taro-components/p-9f1b0ae1.entry.js +0 -1
- package/dist/taro-components/p-d6bd1a5b.entry.js +0 -1
- package/dist/taro-components/p-de951a46.js +0 -7
- package/dist/taro-components/p-ec0d8c41.system.entry.js +0 -1
- package/dist/taro-components/p-ed081b3d.entry.js +0 -1
- package/dist/taro-components/p-f9a13a5c.entry.js +0 -1
- package/lib/vue2/component-lib/components.d.ts +0 -111
- package/lib/vue2/component-lib/components.js +0 -74
- package/lib/vue2/component-lib/components.js.map +0 -1
- package/lib/vue2/component-lib/createComponent.d.ts +0 -14
- package/lib/vue2/component-lib/createComponent.js +0 -23
- package/lib/vue2/component-lib/createComponent.js.map +0 -1
- package/lib/vue2/component-lib/createFormsComponent.d.ts +0 -22
- package/lib/vue2/component-lib/createFormsComponent.js +0 -53
- package/lib/vue2/component-lib/createFormsComponent.js.map +0 -1
- package/lib/vue2/component-lib/icon.d.ts +0 -16
- package/lib/vue2/component-lib/icon.js +0 -23
- package/lib/vue2/component-lib/icon.js.map +0 -1
- package/lib/vue2/component-lib/image.d.ts +0 -16
- package/lib/vue2/component-lib/image.js +0 -24
- package/lib/vue2/component-lib/image.js.map +0 -1
- package/lib/vue2/component-lib/index.d.ts +0 -1
- package/lib/vue2/component-lib/index.js +0 -25
- package/lib/vue2/component-lib/index.js.map +0 -1
- package/lib/vue2/component-lib/mixins/listeners.d.ts +0 -6
- package/lib/vue2/component-lib/mixins/listeners.js +0 -14
- package/lib/vue2/component-lib/mixins/listeners.js.map +0 -1
- package/lib/vue2/component-lib/mixins/refs.d.ts +0 -5
- package/lib/vue2/component-lib/mixins/refs.js +0 -53
- package/lib/vue2/component-lib/mixins/refs.js.map +0 -1
- package/lib/vue2/component-lib/picker.d.ts +0 -25
- package/lib/vue2/component-lib/picker.js +0 -41
- package/lib/vue2/component-lib/picker.js.map +0 -1
- package/lib/vue2/component-lib/scroll-view.d.ts +0 -17
- package/lib/vue2/component-lib/scroll-view.js +0 -35
- package/lib/vue2/component-lib/scroll-view.js.map +0 -1
- package/lib/vue2/component-lib/text.d.ts +0 -16
- package/lib/vue2/component-lib/text.js +0 -24
- package/lib/vue2/component-lib/text.js.map +0 -1
- package/lib/vue2/components-loader.d.ts +0 -2
- package/lib/vue2/components-loader.js +0 -21
- package/lib/vue2/components-loader.js.map +0 -1
- package/lib/vue2/components.d.ts +0 -408
- package/lib/vue2/components.js +0 -633
- package/lib/vue2/components.js.map +0 -1
- package/lib/vue2/index.d.ts +0 -1
- package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js +0 -4
- package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +0 -1
- package/lib/vue2/vue-component-lib/utils.d.ts +0 -10
- package/lib/vue2/vue-component-lib/utils.js +0 -51
- package/lib/vue2/vue-component-lib/utils.js.map +0 -1
- /package/dist/cjs/{index-5b029707.js → index-09efe07d.js} +0 -0
- /package/dist/esm/{index-ab3c86da.js → index-9924aee9.js} +0 -0
- /package/dist/esm-es5/{index-ab3c86da.js → index-9924aee9.js} +0 -0
- /package/dist/taro-components/{p-2b70c348.system.js → p-75d01c60.system.js} +0 -0
- /package/dist/taro-components/{p-dd7a128d.js → p-e62a1287.js} +0 -0
- /package/lib/{vue2 → solid}/index.js +0 -0
- /package/lib/{vue2 → solid}/index.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js"],(function(e){"use strict";var t,i,r,o;return{setters:[function(e){t=e.r;i=e.c;r=e.h;o=e.g}],execute:function(){var c='.weui-cell_switch{padding-top:6.5px;padding-bottom:6.5px}.weui-switch{-webkit-appearance:none;-moz-appearance:none;appearance:none}.weui-switch,.weui-switch-cp__box{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#dfdfdf;border:1px solid #dfdfdf;border-radius:16px;outline:0;width:52px;height:32px;-webkit-transition:background-color .1s,border .1s;transition:background-color .1s,border .1s;position:relative}.weui-switch:before,.weui-switch-cp__box:before{content:" ";background-color:#fdfdfd;border-radius:15px;width:50px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1), -webkit-transform .35s cubic-bezier(.45,1,.4,1);position:absolute;top:0;left:0}.weui-switch:after,.weui-switch-cp__box:after{content:" ";background-color:#fff;border-radius:15px;width:30px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35), -webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);position:absolute;top:0;left:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.weui-switch:checked,.weui-switch-cp__input:checked~.weui-switch-cp__box{background-color:#04be02;border-color:#04be02}.weui-switch:checked:before,.weui-switch-cp__input:checked~.weui-switch-cp__box:before{-webkit-transform:scale(0);transform:scale(0)}.weui-switch:checked:after,.weui-switch-cp__input:checked~.weui-switch-cp__box:after{-webkit-transform:translate(20px);transform:translate(20px)}.weui-switch-cp__input{position:absolute;left:-9999px}.weui-switch-cp__box{display:block}taro-switch-core{width:52px;height:32px;display:inline-block}taro-switch-core .weui-switch{width:100%;height:100%;display:block}';var n=e("taro_switch_core",function(){function e(e){var r=this;t(this,e);this.onChange=i(this,"change",7);this.switchChange=function(e){e.stopPropagation();var t=e.target.checked;r.checked=t;r.onChange.emit({value:t})};this.type="switch";this.checked=false;this.color="#04BE02";this.name=undefined;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.function=function(e){if(!this.isWillLoadCalled)return;if(this.inputRef.checked!==e){this.inputRef.checked=e}};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.checked},configurable:true})};e.prototype.render=function(){var e=this;var t=this,i=t.type,o=t.color,c=t.checked,n=t.name,s=t.disabled,a=t.nativeProps;var b=c?{borderColor:o||"04BE02",backgroundColor:o||"04BE02"}:{};return r("input",Object.assign({ref:function(t){e.inputRef=t},type:"checkbox",class:"weui-".concat(i),style:b,checked:c,name:n,disabled:s,onChange:this.switchChange},a))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["function"]}},enumerable:false,configurable:true});return e}());n.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as t}from"./p-
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-e62a1287.js";import{n as s}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("RtcRoom",this)}render(){return r(t,null)}};export{a as taro_rtc_room_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as t}from"./p-
|
|
1
|
+
import{r,h as o,H as t}from"./p-e62a1287.js";import{n as s}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){s("ListView",this)}render(){return o(t,null)}};export{a as taro_list_view_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,o,e;return{setters:[function(t){n=t.r;r=t.h;o=t.H},function(t){e=t.n},function(){}],execute:function(){var i=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("NavigationBar",this)};t.prototype.render=function(){return r(o,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as s}from"./p-
|
|
1
|
+
import{r,h as o,H as s}from"./p-e62a1287.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){t("KeyboardAccessory",this)}render(){return o(s,null)}};export{a as taro_keyboard_accessory_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as t}from"./p-
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-e62a1287.js";import{n as s}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("Slot",this)}render(){return r(t,null)}};export{a as taro_slot_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as s}from"./p-
|
|
1
|
+
import{r,h as o,H as s}from"./p-e62a1287.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const e=class{constructor(o){r(this,o)}componentDidLoad(){t("LivePusher",this)}render(){return o(s,null)}};export{e as taro_live_pusher_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as t}from"./p-
|
|
1
|
+
import{r,h as o,H as t}from"./p-e62a1287.js";import{n as a}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){a("MatchMedia",this)}render(){return o(t,null)}};export{s as taro_match_media_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,r,e;return{setters:[function(t){n=t.r;o=t.h;r=t.H},function(t){e=t.n},function(){}],execute:function(){var c=t("taro_follow_swan_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("FollowSwan",this)};t.prototype.render=function(){return o(r,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_block_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as t}from"./p-
|
|
1
|
+
import{r,h as o,H as t}from"./p-e62a1287.js";import{n as e}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){e("ShareElement",this)}render(){return o(t,null)}};export{s as taro_share_element_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js"],(function(t){"use strict";var i,e,n,h;return{setters:[function(t){i=t.r;e=t.c;n=t.h;h=t.g}],execute:function(){var o="taro-canvas-core{width:300px;height:150px;display:block;position:relative}";var s=500;var r=t("taro_canvas_core",function(){function t(t){var n=this;i(this,t);this.onLongTap=e(this,"longtap",7);this.onTouchStart=function(){n.timer=setTimeout((function(){n.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(n.timer)};this.onTouchEnd=function(){clearTimeout(n.timer)};this.canvasId=undefined;this.height=undefined;this.width=undefined;this.nativeProps={}}t.prototype.componentDidRender=function(){var t=this.el.children[0];if(!this.height||!this.width){var i=window.getComputedStyle(t);this.height||(this.height=i.height);this.width||(this.width=i.width)}t.height=parseInt(this.height);t.width=parseInt(this.width)};t.prototype.render=function(){var t=this,i=t.canvasId,e=t.nativeProps;return n("canvas",Object.assign({"canvas-id":i,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchCancel:this.onTouchEnd,onTouchEnd:this.onTouchEnd},e))};Object.defineProperty(t.prototype,"el",{get:function(){return h(this)},enumerable:false,configurable:true});return t}());r.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,e,o;return{setters:[function(t){n=t.r;r=t.h;e=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_list_builder_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("ListBuilder",this)};t.prototype.render=function(){return r(e,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as t}from"./p-
|
|
1
|
+
import{r,h as o,H as t}from"./p-e62a1287.js";import{n as s}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){s("Ad",this)}render(){return o(t,null)}};export{a as taro_ad_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.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 c=t("taro_draggable_sheet_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("DraggableSheet",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as a}from"./p-
|
|
1
|
+
import{r,h as o,H as a}from"./p-e62a1287.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){t("ArCamera",this)}render(){return o(a,null)}};export{s as taro_ar_camera_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as a}from"./p-
|
|
1
|
+
import{r as o,h as r,H as a}from"./p-e62a1287.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const n=class{constructor(r){o(this,r)}componentDidLoad(){t("FunctionalPageNavigator",this)}render(){return r(a,null)}};export{n as taro_functional_page_navigator_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-010faa87.system.js","./p-443b9a72.system.js"],(function(e){"use strict";var t,i,o,n,r,a,s;return{setters:[function(e){t=e.r;i=e.c;o=e.h;n=e.g;r=e.H},function(e){a=e.d},function(e){s=e.c}],execute:function(){function c(e){if(e){var t=/([\w-]*)\s*:\s*([^;]*)/g;var i={};var o=void 0;while(o=t.exec(e))i["".concat(o[1])]=o[2].trim();return i}}var l=".taro-picker-view-column-container{text-align:center;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;position:relative;overflow:hidden scroll}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";var d=e("taro_picker_view_column_core",function(){function e(e){var o=this;t(this,e);this.onChange=i(this,"onselect",7);this.onSelectStart=i(this,"onselectstart",7);this.onSelectEnd=i(this,"onselectend",7);this.handleSelected=a((function(){var e=o.el.childNodes;var t=0;var i="0";for(var n in e){var r=e[n];var a=r.offsetHeight;if(t+a/2>o.el.scrollTop){i=n;break}t+=a}o.el.scrollTo({top:t,behavior:"smooth"});o.onChange.emit({curIndex:o.col,selectedIndex:i});o.onSelectEnd.emit()}),500);this.col=undefined;this.initialPosition="0";this.paddingVertical=0;this.isInit=false}e.prototype.onTouchStart=function(){this.onSelectStart.emit()};e.prototype.onTouchEnd=function(){this.handleSelected()};e.prototype.componentDidLoad=function(){this.handleChange()};e.prototype.componentDidUpdate=function(){this.handleChange()};e.prototype.handleChange=function(){var e=this.el.childNodes;var t=0;var i=0;for(var o in e){var n=e[o];if(this.initialPosition===o||!n||typeof n.offsetHeight!=="number"){break}i+=n.offsetHeight;t++}this.el.scrollTo({top:i});if(t>=e.length){this.onChange.emit({curIndex:this.col,selectedIndex:t-1})}};e.prototype.render=function(){var e=this.paddingVertical,t=e===void 0?0:e;return o(r,{class:"taro-picker-view-column-container",style:{"padding-top":"".concat(t,"px"),"padding-bottom":"".concat(t,"px")}})};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());d.style=l;var p=".taro-picker-view-container{display:-ms-flexbox;display:flex;position:relative}.taro-picker-view-mask-container{pointer-events:none;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;position:absolute;inset:0}.taro-picker-view-mask-indicator{border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:50px;display:-ms-flexbox;display:flex}.taro-picker-view-mask-top{background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.95)),to(rgba(255,255,255,.6)));background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.6));-ms-flex:1;flex:1}.taro-picker-view-mask-bottom{background:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255,255,.95)));background:linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.95));-ms-flex:1;flex:1}";var h=e("taro_picker_view_core",function(){function e(e){t(this,e);this.onChange=i(this,"change",7);this.onPickStart=i(this,"pickstart",7);this.onPickEnd=i(this,"pickend",7);this.indicatorStyle=undefined;this.indicatorClass=undefined;this.value=undefined;this.maskStyle=undefined;this.maskClass=undefined}e.prototype.onPropsChange=function(){this.handleValueChange()};e.prototype.onSelect=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;var t=+e.detail.curIndex;var i=+e.detail.selectedIndex;this.value[t]=i;this.onChange.emit({value:this.value})};e.prototype.onSelectStart=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;this.onPickStart.emit()};e.prototype.onPickerColEnd=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;this.onPickEnd.emit()};e.prototype.componentDidLoad=function(){this.handleValueChange()};e.prototype.handleValueChange=function(){var e=this;var t=this.el.querySelectorAll("taro-picker-view-column-core");t.forEach((function(t,i){var o;t.setAttribute("col","".concat(i));var n=0;if(!!e.value&&e.value.length>i){n=e.value[i]}var r=e.el.getBoundingClientRect().height;var a=((o=e.indicator)===null||o===void 0?void 0:o.offsetHeight)||0;var s=(r-a)/2;t.setAttribute("initial-position","".concat(n));t.setAttribute("padding-vertical","".concat(s))}))};e.prototype.componentDidRender=function(){var e=this;this.el.childNodes.forEach((function(t){var i=t;if("TARO-PICKER-VIEW-COLUMN-CORE"!==i.tagName&&i.className!=="taro-picker-view-mask-container"){e.el.removeChild(t)}}))};e.prototype.render=function(){var e=this;var t=s("taro-picker-view-mask-indicator",this.indicatorClass);var i=s("taro-picker-view-mask-top",this.maskClass);var n=s("taro-picker-view-mask-bottom",this.maskClass);var a=c(this.indicatorStyle);var l=c(this.maskStyle);var d=c(this.maskStyle);return o(r,{class:"taro-picker-view-container"},o("slot",null),o("div",{class:"taro-picker-view-mask-container"},o("div",{class:i,style:l}),o("div",{class:t,style:a,ref:function(t){return e.indicator=t}}),o("div",{class:n,style:d})))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["onPropsChange"]}},enumerable:false,configurable:true});return e}());h.style=p}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var c=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}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.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_native_slot_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("NativeSlot",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as n,H as o}from"./p-
|
|
1
|
+
import{r,h as n,H as o}from"./p-e62a1287.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(n){r(this,n)}componentDidLoad(){t("InlinePaymentPanel",this)}render(){return n(o,null)}};export{a as taro_inline_payment_panel_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var c=t("taro_aweme_data_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("AwemeData",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(n){"use strict";var t,e,r,o;return{setters:[function(n){t=n.r;e=n.h;r=n.H},function(n){o=n.n},function(){}],execute:function(){var i=n("taro_inline_payment_panel_core",function(){function n(n){t(this,n)}n.prototype.componentDidLoad=function(){o("InlinePaymentPanel",this)};n.prototype.render=function(){return e(r,null)};return n}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as r}from"./p-
|
|
1
|
+
import{r as e,h as t,H as r}from"./p-e62a1287.js";const s=class{constructor(r){e(this,r),this.renderNode=e=>{if("type"in e&&"text"===e.type)return(e.text||"").replace(/ /g," ");if("name"in e&&e.name){const{name:r,attrs:s,children:c}=e,o={};let n=[];if(s&&"object"==typeof s)for(const e in s){const t=s[e];if("style"!==e||"string"!=typeof t)o[e]=t;else{const e=t.split(";").map((e=>e.trim())).filter((e=>e)),r={};e.forEach((e=>{if(!e)return;const t=/(.+): *(.+)/g.exec(e);if(!t)return;const[,s,c]=t,o=s.replace(/-([a-z])/g,((...e)=>e[1].toUpperCase()));r[o]=c})),Object.keys(r).length&&(o.style=r)}}return c&&c.length&&(n=c.map((e=>this.renderNode(e)))),t(r,o,n)}return null},this.nodes=void 0,this.selectable=!1,this.userSelect=!1,this.space=void 0}render(){const{nodes:e,renderNode:s}=this;return Array.isArray(e)?t(r,null,e.map((e=>s(e)))):t(r,{innerHTML:e})}};s.style="taro-rich-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}taro-rich-text-core[selectable=true],taro-rich-text-core[user-select=true]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;display:block}taro-rich-text-core[space]{white-space:pre-wrap}taro-rich-text-core[space=ensp]{word-spacing:.5em}taro-rich-text-core[space=nbsp]{word-spacing:1em}";export{s as taro_rich_text_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.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_animation_view_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("AnimationView",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as o,g as n}from"./p-dd7a128d.js";import e from"hammerjs";const a=class{constructor(s){t(this,s),this.onTap=i(this,"tap",7),this.currentRotation=0,this._getCenterLocation=t=>{this.map.getOverlays().forEach((t=>{t instanceof BMapGL.Marker&&t.isCenterMarker&&this.map.removeOverlay(t)})),t.iconPath="https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243";const i=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30)),s=[this.longitude,this.latitude],o=new BMapGL.Marker(new BMapGL.Point(this.longitude,this.latitude),{icon:i});return o.isCenterMarker=!0,this.map.addOverlay(o),s},this._setLocMarkerIcon=t=>{const i=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30)),s=new BMapGL.Point(116.404,39.915),o=new BMapGL.Marker(s,{icon:i});this.map.addOverlay(o)},this._translateMarker=t=>{let i=t.destination.latitude;const s=t.destination.longitude;i<-80&&i>=-90&&(i=t.destination.latitude+10);const o=new BMapGL.Point(s,i),n={flagId:!0,flagCoordinate:!0},e={errMsg:"animationEnd:ok"},a=this.map.getOverlays().find((i=>i instanceof BMapGL.Marker&&i.id===t.markerId));if(!a)return console.error(`Marker "${t.markerId}" not found.`),n.flagId=!1,n;if(i>90||i<-90||s>180||s<-180||isNaN(i)||isNaN(s))return n.flagCoordinate=!1,n;const h=a.getPosition(),l=(o.lng-h.lng)/(t.duration/16),r=(o.lat-h.lat)/(t.duration/16),d=a.getRotation(),p=t.rotate;this.currentRotation?this.currentRotation+=p:this.currentRotation=p;const c=(this.currentRotation-d)/(t.duration/16);let u=h,v=d;if(!t.moveWithRotate&&t.autoRotate){let i=0;const s=setInterval((()=>{if(u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),i++,i>=t.duration/16){clearInterval(s);let i=0;const o=setInterval((()=>{v+=c,a.setRotation(v),i++,i>=t.duration/16&&(clearInterval(o),null==t||t.animationEnd(e))}),16)}}),16)}else if(t.moveWithRotate&&t.autoRotate){let i=0;const s=setInterval((()=>{u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),v+=c,a.setRotation(v),i++,i>=t.duration/16&&(clearInterval(s),null==t||t.animationEnd(e))}),16)}else if(t.moveWithRotate&&!t.autoRotate){let i=0;const s=setInterval((()=>{u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),i++,i>=t.duration/16&&(clearInterval(s),null==t||t.animationEnd(e))}),16)}return n},this._includePoints=t=>{const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=this.map.getZoom(),o=this.map.getCenter(),n=this.map.getViewport(i);this.map.centerAndZoom(n.center,n.zoom);const e=this.map.getBounds();let a=!0;for(let t=0;t<i.length;t++)if(!e.containsPoint(i[t])){this.map.centerAndZoom(o,s),a=!1;break}return a},this._getRegion=()=>{const t=this.map.getBounds(),i=t.getSouthWest(),s=t.getNorthEast();return{southwest:{lat:i.lat,lng:i.lng},northeast:{lat:s.lat,lng:s.lng}}},this._getRotate=()=>{let t=this.rotate;return(t<0||t>360)&&(t=0),t},this._getSkew=()=>{let t=this.skew;return(t<0||t>40)&&(t=0),t},this._getScale=()=>this.scale,this._setCenterOffset=t=>{const[i,s]=t.offset,o=this.map.getSize(),n=Math.max(.25*o.width,Math.min(.75*o.width,i*o.width)),e=Math.max(.25*o.height,Math.min(.75*o.height,s*o.height)),a=new BMapGL.Pixel(n,e),h=this.map.pixelToPoint(a);this.map.panTo(h)},this._addMarkers=t=>{t.clear&&this.map.clearOverlays(this.markers),t.markers.forEach((i=>{var s,o,n,a,h,l,r,d,p,c,u,v,M,f;if(i.latitude&&i.longitude&&i.iconPath){const b=new BMapGL.Point(i.longitude,i.latitude),w=new BMapGL.Marker(b,{enableClicking:!0});if(this.map.addOverlay(w),w.id=i.id,w.alpha=i.alpha,i.zIndex&&w.setZIndex(i.zIndex),i.width&&i.height&&i.iconPath){const t=new BMapGL.Icon(i.iconPath,new BMapGL.Size(i.width,i.height));w.setIcon(t)}else{if(!i.iconPath)return void console.error("没有找到iconPath图片路径");{const t=new Image;t.src=i.iconPath,t.style.opacity=String(i.alpha),t.onload=()=>{const s=new BMapGL.Size(t.width,t.height),o=new BMapGL.Icon(t.src,s);o.imageOffset=new BMapGL.Size(0,0,i.alpha||1),w.setIcon(o)}}}const B=i.rotate?i.rotate:0;if(B&&w.setRotation(B),i.anchor){const t=(null!==(o=null===(s=i.anchor)||void 0===s?void 0:s.x)&&void 0!==o?o:0)*(i.width||0),e=(null!==(a=null===(n=i.anchor)||void 0===n?void 0:n.y)&&void 0!==a?a:0)*(i.height||0);w.setOffset(new BMapGL.Size(t,e))}if(!i.callout&&i.title&&new e(this.mapRef).on("tap",(i=>{const s=i.center,o=s.x,n=s.y;t.markers.forEach((t=>{const i=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),s=i.left,e=i.top,a=new BMapGL.Point(t.longitude,t.latitude),h=this.map.pointToPixel(a),l=h.y+e;if(Math.sqrt(Math.pow(o-(h.x+s),2)+Math.pow(n-l,2))<15&&t.id===w.id){const i=new BMapGL.InfoWindow(`<div style="text-align:center">${t.title}</div>`);this.map.openInfoWindow(i,b)}}))})),i.callout){const s=(null===(h=i.callout)||void 0===h?void 0:h.anchorX)?null===(l=i.callout)||void 0===l?void 0:l.anchorX:0,o=(null===(r=i.callout)||void 0===r?void 0:r.anchorY)?null===(d=i.callout)||void 0===d?void 0:d.anchorY:0,n=new BMapGL.InfoWindow(`<div style="\n padding: ${null===(p=i.callout)||void 0===p?void 0:p.padding}px;\n color:${null===(c=i.callout)||void 0===c?void 0:c.color};\n text-align:${null===(u=i.callout)||void 0===u?void 0:u.textAlign};"\n >\n <p style="font-size:${null===(v=i.callout)||void 0===v?void 0:v.fontSize}px">${(null===(M=i.callout)||void 0===M?void 0:M.content)||""}</p>\n </div>`,{width:200,height:100,offset:new BMapGL.Size(s-24,o-20)});if(w.callout=n,this.map.addOverlay(w),"ALWAYS"===(null===(f=i.callout)||void 0===f?void 0:f.display)){w.callout.disableCloseOnClick();const t=w.getPosition();w.callout.addEventListener("open",(function(){var s,o,n,e;console.log(w.callout);const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${t.lat-100}px; left: ${t.lng-20}px;display:none`);const r=null===(s=i.callout)||void 0===s?void 0:s.bgColor;let d=(null===(o=i.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=i.callout)||void 0===n?void 0:n.borderColor,c=null===(e=i.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${t.lat-120}px; left:${t.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(w.callout,b)}else new e(this.mapRef).on("tap",(i=>{const s=i.center,o=s.x,n=s.y;t.markers.forEach((t=>{const i=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),s=i.left,e=i.top,a=new BMapGL.Point(t.longitude,t.latitude),h=this.map.pointToPixel(a),l=h.y+e;if(Math.sqrt(Math.pow(o-(h.x+s),2)+Math.pow(n-l,2))<15&&t.id===w.id){const i=w.getPosition();w.callout.addEventListener("open",(function(){var s,o,n,e;console.log(w.callout);const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${i.lat-100}px; left: ${i.lng-20}px;display:none`);const r=null===(s=t.callout)||void 0===s?void 0:s.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${i.lat-120}px; left:${i.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(w.callout,b)}else w.callout.enableCloseOnClick()}))}))}if(i.label){const t=i.label.content||"",s={position:b,offset:new BMapGL.Size(i.label.anchorX||0,i.label.anchorY||0)},o=new BMapGL.Label(t,s);o.setStyle({color:i.label.color,fontSize:i.label.fontSize+"px",borderWidth:i.label.borderWidth+"px",borderColor:i.label.borderColor,borderRadius:i.label.borderRadius+"px",background:i.label.bgColor,padding:i.label.padding+"px"}),w.setLabel(o)}}}))},this._removeMarkers=t=>{const i=this.map.getOverlays();let s={};return t.markerIds.forEach((t=>{const o=i.find((i=>i instanceof BMapGL.Marker&&String(i.id)===t));s=o,this.map.removeOverlay(o)})),s},this._moveAlong=t=>{const i=t.path,s=t.markerId,o=t.duration,n=t.autoRotate,e=this.map.getOverlays().find((t=>t instanceof BMapGL.Marker&&t.id===s)),a=i.map((t=>new BMapGL.Point(t.longitude,t.latitude))),h={flagId:!0,flagCoordinate:!0};if(!e)return console.error(`Marker "${s}" not found.`),h.flagId=!1,h;for(let t=0;t<a.length;t++){const i=a[t];if(i.lat<-80&&i.lat>=-90&&(i.lat+=10),i.lng<-180||i.lng>180||i.lat<-90||i.lat>90||isNaN(i.lng)||isNaN(i.lat))return h.flagCoordinate=!1,h}if(h.flagId&&h.flagCoordinate){const t=performance.now(),i=s=>{const h=Math.min((s-t)/o,1),l=this.getPointOnPath(a,h);if(e.setPosition(l),n&&h<1){const t=this.getPointOnPath(a,Math.min(h+.01,1)),i=this.calculateRotation(l,t);e.setRotation(i)}h<1?requestAnimationFrame(i):(e.setPosition(a[a.length-1]),e.setRotation(0))};requestAnimationFrame(i)}return h},this.getPointOnPath=(t,i)=>{const s=this.calculateTotalLength(t)*i;let o=0;for(let i=0;i<t.length-1;i++){const n=this.map.getDistance(t[i],t[i+1]);if(o+n>=s){const e=(s-o)/n;return new BMapGL.Point(t[i].lng+(t[i+1].lng-t[i].lng)*e,t[i].lat+(t[i+1].lat-t[i].lat)*e)}o+=n}return t[t.length-1]},this.calculateTotalLength=t=>{let i=0;for(let s=0;s<t.length-1;s++)i+=this.map.getDistance(t[s],t[s+1]);return i},this.calculateRotation=(t,i)=>{let s=Math.atan2(i.lat-t.lat,i.lng-t.lng)*(180/Math.PI);return s=90-s,s},this._addGroundOverlay=t=>{const{src:i,opacity:s,bounds:o,visible:n,id:e,zIndex:a}=t;let h=!0;if(o.southwest.longitude>=o.northeast.longitude||o.southwest.latitude>=o.northeast.latitude)return void(h=!1);if(o.southwest.latitude>90||o.southwest.latitude<-90||o.southwest.longitude>180||o.southwest.longitude<-180||isNaN(o.southwest.latitude)||isNaN(o.southwest.longitude))return void(h=!1);if(o.northeast.latitude>90||o.northeast.latitude<-90||o.northeast.longitude>180||o.northeast.longitude<-180||isNaN(o.northeast.latitude)||isNaN(o.northeast.longitude))return void(h=!1);const l=new BMapGL.Bounds(new BMapGL.Point(o.southwest.longitude,o.southwest.latitude),new BMapGL.Point(o.northeast.longitude,o.northeast.latitude));function r(t,i,s,o,n,e,a){this._bounds=t,this._imageUrl=i,this._map=s,this._visible=o,this._opacity=n,this._zIndex=e,this._id=a}(r.prototype=new BMapGL.Overlay).initialize=function(t){if(document.getElementById(this._id)){const t=document.getElementById(this._id);null==t||t.remove()}if(this._map=t,!this._div){const t=document.createElement("div");t.id=this._id,t.style.position="absolute",t.style.border="none",t.style.zIndex=this._zIndex;const i=document.createElement("img");i.src=this._imageUrl,i.style.opacity=this._opacity<0?"1":this._opacity,t.appendChild(i),this._div=t}return t.addEventListener("zoomend",(()=>{const i=t.pointToOverlayPixel(this._bounds.getSouthWest()),s=t.pointToOverlayPixel(this._bounds.getNorthEast()),o=s.x-i.x,n=i.y-s.y;this._div.style.width=o+"px",this._div.style.height=n+"px";const e=this._div.querySelector("img");e.style.width=o+"px",e.style.height=n+"px"})),t.getPanes().labelPane.appendChild(this._div),this._div},r.prototype.draw=function(){const i=this._map.pointToOverlayPixel({lat:t.bounds.northeast.latitude,lng:t.bounds.southwest.longitude});this._div.style.left=i.x+"px",this._div.style.top=i.y+"px";const s=this._map.getBounds(),o=this._map.pointToPixel(s.getSouthWest()),n=this._map.pointToPixel(s.getNorthEast()),e=n.x-o.x,a=n.y-o.y,h=this._map.getZoom(),l=e*Math.pow(2,18-h),r=a*Math.pow(2,18-h);this._div.style.width=l+"px",this._div.style.height=r+"px",this._div.style.display=this._visible?"block":"none";const d=this._opacity<0?"1":this._opacity;this._div.getElementsByTagName("img")[0].style.opacity=d};const d=new r(l,i,this.map,n,s,a,e);this.map.addOverlay(d);const p=this.map.getOverlays().sort(((t,i)=>t._zIndex-i._zIndex));this.groundOverlay=d,p.forEach((t=>t.draw()));const c=this.map.getZoom();return c<20?(this.map.setZoom(c+1),this.map.setZoom(c)):(this.map.setZoom(c-1),this.map.setZoom(c)),h},this._updateGroundOverlay=t=>{const{src:i,opacity:s,bounds:o,visible:n,id:e,zIndex:a}=t;let h,l=!0,r=!0,d={};const p=this.map.getOverlays().find((t=>t._id===e));if(!p)return l=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d),h;if((o.southwest.longitude>=o.northeast.longitude||o.southwest.latitude>=o.northeast.latitude)&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),(o.southwest.latitude>90||o.southwest.latitude<-90||o.southwest.longitude>180||o.southwest.longitude<-180||isNaN(o.southwest.latitude)||isNaN(o.southwest.longitude))&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),(o.northeast.latitude>90||o.northeast.latitude<-90||o.northeast.longitude>180||o.northeast.longitude<-180||isNaN(o.northeast.latitude)||isNaN(o.northeast.longitude))&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),l&&r){const t=new BMapGL.Bounds(new BMapGL.Point(o.southwest.longitude,o.southwest.latitude),new BMapGL.Point(o.northeast.longitude,o.northeast.latitude)),c=this.map.getZoom();if(p){const o=document.getElementById(e);if(o){const e=o.querySelector("img");if(e){o.style.opacity=s<0?"1":s,e.style.display=n?"block":"none",o.style.zIndex=a;const h=new Image;h.onload=()=>{e.src=i;const s=t.getNorthEast().lng-t.getSouthWest().lng,o=this.map.getSize().width/Math.pow(2,18-c)*s,n=o*(h.naturalHeight/h.naturalWidth);e.style.width=`${o}px`,e.style.height=`${n}px`,p._bounds=t,p.draw(),this.map.panTo(this.map.getCenter()),p.draw()},h.src=i}}}else console.error(`未找到id为${e}的元素`);return d={flagId:l,flagCoordinate:r},h=Object.assign({},d),h}return h},this._removeGroundOverlay=t=>{let i="";const s=this.map.getOverlays().find((i=>i._id===t.id));return i=s,s&&this.map.removeOverlay(s),i},this._setBoundary=t=>{let i=t.northeast.latitude,s=t.southwest.latitude,o=!0;if(t.northeast.latitude<=-80&&t.northeast.latitude>=-90&&(i=t.northeast.latitude+10),t.southwest.latitude<=-80&&t.southwest.latitude>=-90&&(s=t.southwest.latitude+10),t.northeast.latitude<-90||t.northeast.latitude>90||t.northeast.longitude<-180||t.northeast.longitude>180||isNaN(t.northeast.latitude)||isNaN(t.northeast.longitude)||t.northeast.longitude<t.southwest.longitude||t.northeast.latitude<t.southwest.latitude)return void(o=!1);if(t.southwest.latitude<-90||t.southwest.latitude>90||t.southwest.longitude<-180||t.southwest.longitude>180||isNaN(t.southwest.latitude)||isNaN(t.southwest.longitude))return void(o=!1);const n=new BMapGL.Point(t.northeast.longitude,i),e=new BMapGL.Point(t.southwest.longitude,s),a=new BMapGL.Bounds(e,n),h=this.map.getViewport([n,e]);return this.map.centerAndZoom(new BMapGL.Point(h.center.lng,h.center.lat),h.zoom+2),this.map.addOverlay(new BMapGL.Polygon([new BMapGL.Point(a.sw.lng,a.sw.lat),new BMapGL.Point(a.sw.lng,a.ne.lat),new BMapGL.Point(a.ne.lng,a.ne.lat),new BMapGL.Point(a.ne.lng,a.sw.lat)],{fillOpacity:0})),BMapGLLib.AreaRestriction.setBounds(this.map,a),o},this.latitude=void 0,this.longitude=void 0,this.scale=void 0,this.minScale=void 0,this.maxScale=void 0,this.markers=void 0,this.polyline=void 0,this.circles=void 0,this.polygons=void 0,this.subkey=void 0,this.layerStyle=void 0,this.rotate=void 0,this.skew=void 0,this.showCompass=void 0,this.showScale=void 0,this.enableOverlooking=void 0,this.enableZoom=void 0,this.enableScroll=void 0,this.enableRotate=void 0,this.enableSatellite=void 0,this.enableTraffic=void 0,this.enableBuilding=void 0,this.enableAutoMaxOverlooking=void 0,this.enable3D=void 0,this.width="100%",this.height="100%"}async componentDidLoad(){if(await this.loadMapScript(),await this.LoadBmapLibScript(),this.mapRef){if(this.mapRef.addEventListener("touchmove",(t=>{t.cancelable&&t.preventDefault()})),this.map=new BMapGL.Map(this.mapRef),this.map.removeControl(this.map.getMapType()),this.latitude<-90||this.latitude>90||this.longitude<-180||this.longitude>180||isNaN(this.latitude)||isNaN(this.longitude))return void console.error("请正确设置中心经纬度");let t=isNaN(this.scale)?16:this.scale,i=isNaN(this.minScale)?3:this.minScale,s=isNaN(this.maxScale)?16:this.maxScale;const o=new BMapGL.Point(this.longitude,this.latitude);i<3||i>20?(i=3,this.map.setMinZoom(3)):this.map.setMinZoom(i),s>20||s<3?(s=20,this.map.setMaxZoom(20)):this.map.setMaxZoom(s),i>s&&(i=3,this.map.setMinZoom(3),s=20,this.map.setMaxZoom(20)),i<=16&&s>=16?(t>=i&&t<=s||(t=16),this.map.centerAndZoom(o,t)):t>=i&&t<=s?this.map.centerAndZoom(o,t):t<i?(t=i,this.map.centerAndZoom(o,i)):(t=s,this.map.centerAndZoom(o,s)),Array.isArray(this.markers)&&this.addMarkers(this.markers),Array.isArray(this.polyline)&&this.polyline.forEach((t=>{if(t.points){const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=new BMapGL.Polyline(i,{strokeColor:t.color,strokeWeight:t.width,strokeStyle:t.dottedLine?"dashed":"solid",strokeOpacity:1});this.map.addOverlay(s)}})),Array.isArray(this.circles)&&this.circles.forEach((t=>{if(t.latitude&&t.longitude&&t.radius){const i=new BMapGL.Point(t.longitude,t.latitude),s=new BMapGL.Circle(i,t.radius,{strokeColor:t.color,fillColor:t.fillColor,strokeWeight:t.strokeWidth});this.map.addOverlay(s)}})),Array.isArray(this.polygons)&&this.polygons.forEach((t=>{const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=new BMapGL.Polygon(i,{strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWidth});this.map.addOverlay(s)})),0===this.layerStyle?this.layerStyle&&this.map.setMapStyleV2({styleId:this.subkey}):1===(this.layerStyle?this.layerStyle:1)&&this.map.setMapStyleV2({styleId:this.subkey});const n=this.skew?this.skew:0;if(this.map.setTilt(!0===(!0===this.enable3D&&this.enable3D)?!0===(!0===this.enableOverlooking&&this.enableOverlooking)?!0===(!0===this.enableAutoMaxOverlooking&&this.enableAutoMaxOverlooking)?75:45:n>=0&&n<=40?n:0:0),!0===(!0===this.showCompass&&this.showCompass)){const t=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_TOP_RIGHT,type:3});this.map.addControl(t)}if(!0===(!0===this.showScale&&this.showScale)){const t=new BMapGL.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT});this.map.addControl(t)}if(!0===(!1!==this.enableZoom||this.enableZoom)&&this.map.enableScrollWheelZoom(this.enableZoom),!0===this.enableZoom&&this.mapRef?this.map.enablePinchToZoom():this.map.disablePinchToZoom(),!0===(!1!==this.enableScroll||this.enableScroll)?this.map.enableDragging():this.map.disableDragging(),this.map.setHeading((this.rotate?this.rotate:0)>=0&&this.rotate<=360?this.rotate:0),!0===this.enableRotate&&this.map.enableRotateGestures(),!0===(!0===this.enableSatellite&&this.enableSatellite)&&this.mapRef){const t=new BMapGL.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP]});this.map.addControl(t)}!0===(!0===this.enableTraffic&&this.enableTraffic)&&this.mapRef&&this.map.setTrafficOn(),!1===(!1!==this.enableBuilding||this.enableBuilding)&&this.map.setDisplayOptions({building:!1})}this.map&&new e(this.mapRef).on("tap",(t=>{const i=this.map.pixelToPoint({x:t.center.x,y:t.center.y});this.onTap.emit({longitude:i.lng,latitude:i.lat})}))}disconnectedCallback(){this.map&&this.map.destroy()}addMarkers(t){const i=[];t.forEach((t=>{var s,o,n,a,h,l,r,d,p,c,u,v,M,f;if(i.includes(t.id))console.error("请输入不同的marker的id");else if(i.push(t.id),t.latitude&&t.longitude&&t.iconPath&&t.id){if(t.latitude<-90||t.latitude>90||t.longitude<-180||t.longitude>180)return void console.error("请正确设置marker的经纬度");const i=new BMapGL.Point(t.longitude,t.latitude),b=new BMapGL.Marker(i,{enableClicking:!0});if(b.id=t.id,b.alpha=t.alpha,t.zIndex&&b.setZIndex(t.zIndex),t.width&&t.height){const i=document.createElement("canvas");i.width=2*t.width,i.height=2*t.height;const s=i.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.src=t.iconPath,o.onload=function(){s.drawImage(o,0,0,2*t.width,2*t.height);const n=new BMapGL.Icon(i.toDataURL(),new BMapGL.Size(t.width,t.height),{anchor:new BMapGL.Size(0,0)});b.setIcon(n)}}else{const i=new Image;i.src=t.iconPath,i.style.opacity=String(t.alpha),i.onload=()=>{const s=new BMapGL.Size(i.width,i.height),o=new BMapGL.Icon(i.src,s);o.imageOffset=new BMapGL.Size(0,0,t.alpha||1),b.setIcon(o)}}const w=t.rotate?t.rotate:0;w>=0&&w<=360&&b.setRotation(w);const B=null!==(o=null===(s=t.anchor)||void 0===s?void 0:s.x)&&void 0!==o?o:.5,L=null!==(a=null===(n=t.anchor)||void 0===n?void 0:n.y)&&void 0!==a?a:1;if(b.setOffset(B>=0&&B<=1&&L>=0&&L<=1?new BMapGL.Size(-B*(t.width||0),-L*(t.height||0)):new BMapGL.Size(-.5*(t.width||0),-1*(t.height||0))),!t.callout&&t.title&&new e(this.mapRef).on("tap",(t=>{const s=t.center,o=s.x,n=s.y;this.markers.forEach((t=>{const s=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),e=s.left,a=s.top,h=new BMapGL.Point(t.longitude,t.latitude),l=this.map.pointToPixel(h),r=l.y+a;if(Math.sqrt(Math.pow(o-(l.x+e),2)+Math.pow(n-r,2))<15&&t.id===b.id){const s=new BMapGL.InfoWindow(`<div style="text-align:center">${t.title}</div>`);this.map.openInfoWindow(s,i)}}))})),t.callout){const s=(null===(h=t.callout)||void 0===h?void 0:h.anchorX)?null===(l=t.callout)||void 0===l?void 0:l.anchorX:0,o=(null===(r=t.callout)||void 0===r?void 0:r.anchorY)?null===(d=t.callout)||void 0===d?void 0:d.anchorY:0,n=new BMapGL.InfoWindow(`<div style="\n padding: ${null===(p=t.callout)||void 0===p?void 0:p.padding}px;\n color:${null===(c=t.callout)||void 0===c?void 0:c.color};\n text-align:${null===(u=t.callout)||void 0===u?void 0:u.textAlign};"\n >\n <p style="font-size:${null===(v=t.callout)||void 0===v?void 0:v.fontSize}px">${(null===(M=t.callout)||void 0===M?void 0:M.content)||""}</p>\n </div>`,{width:200,height:100,offset:new BMapGL.Size(s-24,o-20)});if(b.callout=n,this.map.addOverlay(b),"ALWAYS"===(null===(f=t.callout)||void 0===f?void 0:f.display)){b.callout.disableCloseOnClick();const s=b.getPosition();b.callout.addEventListener("open",(function(){var i,o,n,e;const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${s.lat-100}px; left: ${s.lng-20}px;display:none`);const r=null===(i=t.callout)||void 0===i?void 0:i.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;borderLeft:${d}px solid transparent;borderRight:${d}px solid transparent;borderTop:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${s.lat-120}px; left:${s.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(b.callout,i)}else new e(this.mapRef).on("tap",(t=>{const s=t.center,o=s.x,n=s.y;this.markers.forEach((t=>{const s=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),e=s.left,a=s.top,h=new BMapGL.Point(t.longitude,t.latitude),l=this.map.pointToPixel(h),r=l.y+a;if(Math.sqrt(Math.pow(o-(l.x+e),2)+Math.pow(n-r,2))<15&&t.id===b.id){const s=b.getPosition();b.callout.addEventListener("open",(function(){var i,o,n,e;const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${s.lat-100}px; left: ${s.lng-20}px;display:none`);const r=null===(i=t.callout)||void 0===i?void 0:i.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${s.lat-120}px; left:${s.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(b.callout,i)}else b.callout.enableCloseOnClick()}))}))}if(t.label){const s=t.label.content||"",o={position:i,offset:new BMapGL.Size(t.label.anchorX||0,t.label.anchorY||0)},n=new BMapGL.Label(s,o);n.setStyle({color:t.label.color,fontSize:t.label.fontSize+"px",borderWidth:t.label.borderWidth+"px",borderColor:t.label.borderColor?t.label.borderColor:"white",borderRadius:t.label.borderRadius+"px",background:t.label.bgColor,padding:t.label.padding+"px"}),b.setLabel(n)}this.map.addOverlay(b)}else console.error("请检查marker经纬度和marker自定义图标路径和id值")}))}loadMapScript(){return new Promise(((t,i)=>{const s=document.createElement("script");s.src="https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo",s.defer=!0,s.onload=()=>t(),s.onerror=i,s.type="text/javascript",document.head.appendChild(s)}))}async LoadBmapLibScript(){return new Promise(((t,i)=>{const s=document.createElement("script");s.src="//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js",s.defer=!0,s.type="text/javascript",s.onload=()=>{t()},s.onerror=i,document.head.appendChild(s)}))}render(){return s(o,null,s("div",{id:"mapContainer",ref:t=>{t&&(this.mapRef=t)},style:{width:this.width,height:this.height}}))}get el(){return n(this)}};a.style=".BMap_cpyCtrl,.anchorBL img,.BMap_bubble_buttons{display:none}";export{a as taro_map_core}
|
|
1
|
+
import{r as t,c as i,h as s,H as o,g as n}from"./p-e62a1287.js";import e from"hammerjs";const a=class{constructor(s){t(this,s),this.onTap=i(this,"tap",7),this.currentRotation=0,this._getCenterLocation=t=>{this.map.getOverlays().forEach((t=>{t instanceof BMapGL.Marker&&t.isCenterMarker&&this.map.removeOverlay(t)})),t.iconPath="https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243";const i=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30)),s=[this.longitude,this.latitude],o=new BMapGL.Marker(new BMapGL.Point(this.longitude,this.latitude),{icon:i});return o.isCenterMarker=!0,this.map.addOverlay(o),s},this._setLocMarkerIcon=t=>{const i=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30)),s=new BMapGL.Point(116.404,39.915),o=new BMapGL.Marker(s,{icon:i});this.map.addOverlay(o)},this._translateMarker=t=>{let i=t.destination.latitude;const s=t.destination.longitude;i<-80&&i>=-90&&(i=t.destination.latitude+10);const o=new BMapGL.Point(s,i),n={flagId:!0,flagCoordinate:!0},e={errMsg:"animationEnd:ok"},a=this.map.getOverlays().find((i=>i instanceof BMapGL.Marker&&i.id===t.markerId));if(!a)return console.error(`Marker "${t.markerId}" not found.`),n.flagId=!1,n;if(i>90||i<-90||s>180||s<-180||isNaN(i)||isNaN(s))return n.flagCoordinate=!1,n;const h=a.getPosition(),l=(o.lng-h.lng)/(t.duration/16),r=(o.lat-h.lat)/(t.duration/16),d=a.getRotation(),p=t.rotate;this.currentRotation?this.currentRotation+=p:this.currentRotation=p;const c=(this.currentRotation-d)/(t.duration/16);let u=h,v=d;if(!t.moveWithRotate&&t.autoRotate){let i=0;const s=setInterval((()=>{if(u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),i++,i>=t.duration/16){clearInterval(s);let i=0;const o=setInterval((()=>{v+=c,a.setRotation(v),i++,i>=t.duration/16&&(clearInterval(o),null==t||t.animationEnd(e))}),16)}}),16)}else if(t.moveWithRotate&&t.autoRotate){let i=0;const s=setInterval((()=>{u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),v+=c,a.setRotation(v),i++,i>=t.duration/16&&(clearInterval(s),null==t||t.animationEnd(e))}),16)}else if(t.moveWithRotate&&!t.autoRotate){let i=0;const s=setInterval((()=>{u=new BMapGL.Point(u.lng+l,u.lat+r),a.setPosition(u),i++,i>=t.duration/16&&(clearInterval(s),null==t||t.animationEnd(e))}),16)}return n},this._includePoints=t=>{const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=this.map.getZoom(),o=this.map.getCenter(),n=this.map.getViewport(i);this.map.centerAndZoom(n.center,n.zoom);const e=this.map.getBounds();let a=!0;for(let t=0;t<i.length;t++)if(!e.containsPoint(i[t])){this.map.centerAndZoom(o,s),a=!1;break}return a},this._getRegion=()=>{const t=this.map.getBounds(),i=t.getSouthWest(),s=t.getNorthEast();return{southwest:{lat:i.lat,lng:i.lng},northeast:{lat:s.lat,lng:s.lng}}},this._getRotate=()=>{let t=this.rotate;return(t<0||t>360)&&(t=0),t},this._getSkew=()=>{let t=this.skew;return(t<0||t>40)&&(t=0),t},this._getScale=()=>this.scale,this._setCenterOffset=t=>{const[i,s]=t.offset,o=this.map.getSize(),n=Math.max(.25*o.width,Math.min(.75*o.width,i*o.width)),e=Math.max(.25*o.height,Math.min(.75*o.height,s*o.height)),a=new BMapGL.Pixel(n,e),h=this.map.pixelToPoint(a);this.map.panTo(h)},this._addMarkers=t=>{t.clear&&this.map.clearOverlays(this.markers),t.markers.forEach((i=>{var s,o,n,a,h,l,r,d,p,c,u,v,M,f;if(i.latitude&&i.longitude&&i.iconPath){const b=new BMapGL.Point(i.longitude,i.latitude),w=new BMapGL.Marker(b,{enableClicking:!0});if(this.map.addOverlay(w),w.id=i.id,w.alpha=i.alpha,i.zIndex&&w.setZIndex(i.zIndex),i.width&&i.height&&i.iconPath){const t=new BMapGL.Icon(i.iconPath,new BMapGL.Size(i.width,i.height));w.setIcon(t)}else{if(!i.iconPath)return void console.error("没有找到iconPath图片路径");{const t=new Image;t.src=i.iconPath,t.style.opacity=String(i.alpha),t.onload=()=>{const s=new BMapGL.Size(t.width,t.height),o=new BMapGL.Icon(t.src,s);o.imageOffset=new BMapGL.Size(0,0,i.alpha||1),w.setIcon(o)}}}const B=i.rotate?i.rotate:0;if(B&&w.setRotation(B),i.anchor){const t=(null!==(o=null===(s=i.anchor)||void 0===s?void 0:s.x)&&void 0!==o?o:0)*(i.width||0),e=(null!==(a=null===(n=i.anchor)||void 0===n?void 0:n.y)&&void 0!==a?a:0)*(i.height||0);w.setOffset(new BMapGL.Size(t,e))}if(!i.callout&&i.title&&new e(this.mapRef).on("tap",(i=>{const s=i.center,o=s.x,n=s.y;t.markers.forEach((t=>{const i=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),s=i.left,e=i.top,a=new BMapGL.Point(t.longitude,t.latitude),h=this.map.pointToPixel(a),l=h.y+e;if(Math.sqrt(Math.pow(o-(h.x+s),2)+Math.pow(n-l,2))<15&&t.id===w.id){const i=new BMapGL.InfoWindow(`<div style="text-align:center">${t.title}</div>`);this.map.openInfoWindow(i,b)}}))})),i.callout){const s=(null===(h=i.callout)||void 0===h?void 0:h.anchorX)?null===(l=i.callout)||void 0===l?void 0:l.anchorX:0,o=(null===(r=i.callout)||void 0===r?void 0:r.anchorY)?null===(d=i.callout)||void 0===d?void 0:d.anchorY:0,n=new BMapGL.InfoWindow(`<div style="\n padding: ${null===(p=i.callout)||void 0===p?void 0:p.padding}px;\n color:${null===(c=i.callout)||void 0===c?void 0:c.color};\n text-align:${null===(u=i.callout)||void 0===u?void 0:u.textAlign};"\n >\n <p style="font-size:${null===(v=i.callout)||void 0===v?void 0:v.fontSize}px">${(null===(M=i.callout)||void 0===M?void 0:M.content)||""}</p>\n </div>`,{width:200,height:100,offset:new BMapGL.Size(s-24,o-20)});if(w.callout=n,this.map.addOverlay(w),"ALWAYS"===(null===(f=i.callout)||void 0===f?void 0:f.display)){w.callout.disableCloseOnClick();const t=w.getPosition();w.callout.addEventListener("open",(function(){var s,o,n,e;console.log(w.callout);const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${t.lat-100}px; left: ${t.lng-20}px;display:none`);const r=null===(s=i.callout)||void 0===s?void 0:s.bgColor;let d=(null===(o=i.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=i.callout)||void 0===n?void 0:n.borderColor,c=null===(e=i.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${t.lat-120}px; left:${t.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(w.callout,b)}else new e(this.mapRef).on("tap",(i=>{const s=i.center,o=s.x,n=s.y;t.markers.forEach((t=>{const i=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),s=i.left,e=i.top,a=new BMapGL.Point(t.longitude,t.latitude),h=this.map.pointToPixel(a),l=h.y+e;if(Math.sqrt(Math.pow(o-(h.x+s),2)+Math.pow(n-l,2))<15&&t.id===w.id){const i=w.getPosition();w.callout.addEventListener("open",(function(){var s,o,n,e;console.log(w.callout);const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${i.lat-100}px; left: ${i.lng-20}px;display:none`);const r=null===(s=t.callout)||void 0===s?void 0:s.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${i.lat-120}px; left:${i.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(w.callout,b)}else w.callout.enableCloseOnClick()}))}))}if(i.label){const t=i.label.content||"",s={position:b,offset:new BMapGL.Size(i.label.anchorX||0,i.label.anchorY||0)},o=new BMapGL.Label(t,s);o.setStyle({color:i.label.color,fontSize:i.label.fontSize+"px",borderWidth:i.label.borderWidth+"px",borderColor:i.label.borderColor,borderRadius:i.label.borderRadius+"px",background:i.label.bgColor,padding:i.label.padding+"px"}),w.setLabel(o)}}}))},this._removeMarkers=t=>{const i=this.map.getOverlays();let s={};return t.markerIds.forEach((t=>{const o=i.find((i=>i instanceof BMapGL.Marker&&String(i.id)===t));s=o,this.map.removeOverlay(o)})),s},this._moveAlong=t=>{const i=t.path,s=t.markerId,o=t.duration,n=t.autoRotate,e=this.map.getOverlays().find((t=>t instanceof BMapGL.Marker&&t.id===s)),a=i.map((t=>new BMapGL.Point(t.longitude,t.latitude))),h={flagId:!0,flagCoordinate:!0};if(!e)return console.error(`Marker "${s}" not found.`),h.flagId=!1,h;for(let t=0;t<a.length;t++){const i=a[t];if(i.lat<-80&&i.lat>=-90&&(i.lat+=10),i.lng<-180||i.lng>180||i.lat<-90||i.lat>90||isNaN(i.lng)||isNaN(i.lat))return h.flagCoordinate=!1,h}if(h.flagId&&h.flagCoordinate){const t=performance.now(),i=s=>{const h=Math.min((s-t)/o,1),l=this.getPointOnPath(a,h);if(e.setPosition(l),n&&h<1){const t=this.getPointOnPath(a,Math.min(h+.01,1)),i=this.calculateRotation(l,t);e.setRotation(i)}h<1?requestAnimationFrame(i):(e.setPosition(a[a.length-1]),e.setRotation(0))};requestAnimationFrame(i)}return h},this.getPointOnPath=(t,i)=>{const s=this.calculateTotalLength(t)*i;let o=0;for(let i=0;i<t.length-1;i++){const n=this.map.getDistance(t[i],t[i+1]);if(o+n>=s){const e=(s-o)/n;return new BMapGL.Point(t[i].lng+(t[i+1].lng-t[i].lng)*e,t[i].lat+(t[i+1].lat-t[i].lat)*e)}o+=n}return t[t.length-1]},this.calculateTotalLength=t=>{let i=0;for(let s=0;s<t.length-1;s++)i+=this.map.getDistance(t[s],t[s+1]);return i},this.calculateRotation=(t,i)=>{let s=Math.atan2(i.lat-t.lat,i.lng-t.lng)*(180/Math.PI);return s=90-s,s},this._addGroundOverlay=t=>{const{src:i,opacity:s,bounds:o,visible:n,id:e,zIndex:a}=t;let h=!0;if(o.southwest.longitude>=o.northeast.longitude||o.southwest.latitude>=o.northeast.latitude)return void(h=!1);if(o.southwest.latitude>90||o.southwest.latitude<-90||o.southwest.longitude>180||o.southwest.longitude<-180||isNaN(o.southwest.latitude)||isNaN(o.southwest.longitude))return void(h=!1);if(o.northeast.latitude>90||o.northeast.latitude<-90||o.northeast.longitude>180||o.northeast.longitude<-180||isNaN(o.northeast.latitude)||isNaN(o.northeast.longitude))return void(h=!1);const l=new BMapGL.Bounds(new BMapGL.Point(o.southwest.longitude,o.southwest.latitude),new BMapGL.Point(o.northeast.longitude,o.northeast.latitude));function r(t,i,s,o,n,e,a){this._bounds=t,this._imageUrl=i,this._map=s,this._visible=o,this._opacity=n,this._zIndex=e,this._id=a}(r.prototype=new BMapGL.Overlay).initialize=function(t){if(document.getElementById(this._id)){const t=document.getElementById(this._id);null==t||t.remove()}if(this._map=t,!this._div){const t=document.createElement("div");t.id=this._id,t.style.position="absolute",t.style.border="none",t.style.zIndex=this._zIndex;const i=document.createElement("img");i.src=this._imageUrl,i.style.opacity=this._opacity<0?"1":this._opacity,t.appendChild(i),this._div=t}return t.addEventListener("zoomend",(()=>{const i=t.pointToOverlayPixel(this._bounds.getSouthWest()),s=t.pointToOverlayPixel(this._bounds.getNorthEast()),o=s.x-i.x,n=i.y-s.y;this._div.style.width=o+"px",this._div.style.height=n+"px";const e=this._div.querySelector("img");e.style.width=o+"px",e.style.height=n+"px"})),t.getPanes().labelPane.appendChild(this._div),this._div},r.prototype.draw=function(){const i=this._map.pointToOverlayPixel({lat:t.bounds.northeast.latitude,lng:t.bounds.southwest.longitude});this._div.style.left=i.x+"px",this._div.style.top=i.y+"px";const s=this._map.getBounds(),o=this._map.pointToPixel(s.getSouthWest()),n=this._map.pointToPixel(s.getNorthEast()),e=n.x-o.x,a=n.y-o.y,h=this._map.getZoom(),l=e*Math.pow(2,18-h),r=a*Math.pow(2,18-h);this._div.style.width=l+"px",this._div.style.height=r+"px",this._div.style.display=this._visible?"block":"none";const d=this._opacity<0?"1":this._opacity;this._div.getElementsByTagName("img")[0].style.opacity=d};const d=new r(l,i,this.map,n,s,a,e);this.map.addOverlay(d);const p=this.map.getOverlays().sort(((t,i)=>t._zIndex-i._zIndex));this.groundOverlay=d,p.forEach((t=>t.draw()));const c=this.map.getZoom();return c<20?(this.map.setZoom(c+1),this.map.setZoom(c)):(this.map.setZoom(c-1),this.map.setZoom(c)),h},this._updateGroundOverlay=t=>{const{src:i,opacity:s,bounds:o,visible:n,id:e,zIndex:a}=t;let h,l=!0,r=!0,d={};const p=this.map.getOverlays().find((t=>t._id===e));if(!p)return l=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d),h;if((o.southwest.longitude>=o.northeast.longitude||o.southwest.latitude>=o.northeast.latitude)&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),(o.southwest.latitude>90||o.southwest.latitude<-90||o.southwest.longitude>180||o.southwest.longitude<-180||isNaN(o.southwest.latitude)||isNaN(o.southwest.longitude))&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),(o.northeast.latitude>90||o.northeast.latitude<-90||o.northeast.longitude>180||o.northeast.longitude<-180||isNaN(o.northeast.latitude)||isNaN(o.northeast.longitude))&&(r=!1,d={flagId:l,flagCoordinate:r},h=Object.assign({},d)),l&&r){const t=new BMapGL.Bounds(new BMapGL.Point(o.southwest.longitude,o.southwest.latitude),new BMapGL.Point(o.northeast.longitude,o.northeast.latitude)),c=this.map.getZoom();if(p){const o=document.getElementById(e);if(o){const e=o.querySelector("img");if(e){o.style.opacity=s<0?"1":s,e.style.display=n?"block":"none",o.style.zIndex=a;const h=new Image;h.onload=()=>{e.src=i;const s=t.getNorthEast().lng-t.getSouthWest().lng,o=this.map.getSize().width/Math.pow(2,18-c)*s,n=o*(h.naturalHeight/h.naturalWidth);e.style.width=`${o}px`,e.style.height=`${n}px`,p._bounds=t,p.draw(),this.map.panTo(this.map.getCenter()),p.draw()},h.src=i}}}else console.error(`未找到id为${e}的元素`);return d={flagId:l,flagCoordinate:r},h=Object.assign({},d),h}return h},this._removeGroundOverlay=t=>{let i="";const s=this.map.getOverlays().find((i=>i._id===t.id));return i=s,s&&this.map.removeOverlay(s),i},this._setBoundary=t=>{let i=t.northeast.latitude,s=t.southwest.latitude,o=!0;if(t.northeast.latitude<=-80&&t.northeast.latitude>=-90&&(i=t.northeast.latitude+10),t.southwest.latitude<=-80&&t.southwest.latitude>=-90&&(s=t.southwest.latitude+10),t.northeast.latitude<-90||t.northeast.latitude>90||t.northeast.longitude<-180||t.northeast.longitude>180||isNaN(t.northeast.latitude)||isNaN(t.northeast.longitude)||t.northeast.longitude<t.southwest.longitude||t.northeast.latitude<t.southwest.latitude)return void(o=!1);if(t.southwest.latitude<-90||t.southwest.latitude>90||t.southwest.longitude<-180||t.southwest.longitude>180||isNaN(t.southwest.latitude)||isNaN(t.southwest.longitude))return void(o=!1);const n=new BMapGL.Point(t.northeast.longitude,i),e=new BMapGL.Point(t.southwest.longitude,s),a=new BMapGL.Bounds(e,n),h=this.map.getViewport([n,e]);return this.map.centerAndZoom(new BMapGL.Point(h.center.lng,h.center.lat),h.zoom+2),this.map.addOverlay(new BMapGL.Polygon([new BMapGL.Point(a.sw.lng,a.sw.lat),new BMapGL.Point(a.sw.lng,a.ne.lat),new BMapGL.Point(a.ne.lng,a.ne.lat),new BMapGL.Point(a.ne.lng,a.sw.lat)],{fillOpacity:0})),BMapGLLib.AreaRestriction.setBounds(this.map,a),o},this.latitude=void 0,this.longitude=void 0,this.scale=void 0,this.minScale=void 0,this.maxScale=void 0,this.markers=void 0,this.polyline=void 0,this.circles=void 0,this.polygons=void 0,this.subkey=void 0,this.layerStyle=void 0,this.rotate=void 0,this.skew=void 0,this.showCompass=void 0,this.showScale=void 0,this.enableOverlooking=void 0,this.enableZoom=void 0,this.enableScroll=void 0,this.enableRotate=void 0,this.enableSatellite=void 0,this.enableTraffic=void 0,this.enableBuilding=void 0,this.enableAutoMaxOverlooking=void 0,this.enable3D=void 0,this.width="100%",this.height="100%"}async componentDidLoad(){if(await this.loadMapScript(),await this.LoadBmapLibScript(),this.mapRef){if(this.mapRef.addEventListener("touchmove",(t=>{t.cancelable&&t.preventDefault()})),this.map=new BMapGL.Map(this.mapRef),this.map.removeControl(this.map.getMapType()),this.latitude<-90||this.latitude>90||this.longitude<-180||this.longitude>180||isNaN(this.latitude)||isNaN(this.longitude))return void console.error("请正确设置中心经纬度");let t=isNaN(this.scale)?16:this.scale,i=isNaN(this.minScale)?3:this.minScale,s=isNaN(this.maxScale)?16:this.maxScale;const o=new BMapGL.Point(this.longitude,this.latitude);i<3||i>20?(i=3,this.map.setMinZoom(3)):this.map.setMinZoom(i),s>20||s<3?(s=20,this.map.setMaxZoom(20)):this.map.setMaxZoom(s),i>s&&(i=3,this.map.setMinZoom(3),s=20,this.map.setMaxZoom(20)),i<=16&&s>=16?(t>=i&&t<=s||(t=16),this.map.centerAndZoom(o,t)):t>=i&&t<=s?this.map.centerAndZoom(o,t):t<i?(t=i,this.map.centerAndZoom(o,i)):(t=s,this.map.centerAndZoom(o,s)),Array.isArray(this.markers)&&this.addMarkers(this.markers),Array.isArray(this.polyline)&&this.polyline.forEach((t=>{if(t.points){const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=new BMapGL.Polyline(i,{strokeColor:t.color,strokeWeight:t.width,strokeStyle:t.dottedLine?"dashed":"solid",strokeOpacity:1});this.map.addOverlay(s)}})),Array.isArray(this.circles)&&this.circles.forEach((t=>{if(t.latitude&&t.longitude&&t.radius){const i=new BMapGL.Point(t.longitude,t.latitude),s=new BMapGL.Circle(i,t.radius,{strokeColor:t.color,fillColor:t.fillColor,strokeWeight:t.strokeWidth});this.map.addOverlay(s)}})),Array.isArray(this.polygons)&&this.polygons.forEach((t=>{const i=t.points.map((t=>new BMapGL.Point(t.longitude,t.latitude))),s=new BMapGL.Polygon(i,{strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWidth});this.map.addOverlay(s)})),0===this.layerStyle?this.layerStyle&&this.map.setMapStyleV2({styleId:this.subkey}):1===(this.layerStyle?this.layerStyle:1)&&this.map.setMapStyleV2({styleId:this.subkey});const n=this.skew?this.skew:0;if(this.map.setTilt(!0===(!0===this.enable3D&&this.enable3D)?!0===(!0===this.enableOverlooking&&this.enableOverlooking)?!0===(!0===this.enableAutoMaxOverlooking&&this.enableAutoMaxOverlooking)?75:45:n>=0&&n<=40?n:0:0),!0===(!0===this.showCompass&&this.showCompass)){const t=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_TOP_RIGHT,type:3});this.map.addControl(t)}if(!0===(!0===this.showScale&&this.showScale)){const t=new BMapGL.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT});this.map.addControl(t)}if(!0===(!1!==this.enableZoom||this.enableZoom)&&this.map.enableScrollWheelZoom(this.enableZoom),!0===this.enableZoom&&this.mapRef?this.map.enablePinchToZoom():this.map.disablePinchToZoom(),!0===(!1!==this.enableScroll||this.enableScroll)?this.map.enableDragging():this.map.disableDragging(),this.map.setHeading((this.rotate?this.rotate:0)>=0&&this.rotate<=360?this.rotate:0),!0===this.enableRotate&&this.map.enableRotateGestures(),!0===(!0===this.enableSatellite&&this.enableSatellite)&&this.mapRef){const t=new BMapGL.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP]});this.map.addControl(t)}!0===(!0===this.enableTraffic&&this.enableTraffic)&&this.mapRef&&this.map.setTrafficOn(),!1===(!1!==this.enableBuilding||this.enableBuilding)&&this.map.setDisplayOptions({building:!1})}this.map&&new e(this.mapRef).on("tap",(t=>{const i=this.map.pixelToPoint({x:t.center.x,y:t.center.y});this.onTap.emit({longitude:i.lng,latitude:i.lat})}))}disconnectedCallback(){this.map&&this.map.destroy()}addMarkers(t){const i=[];t.forEach((t=>{var s,o,n,a,h,l,r,d,p,c,u,v,M,f;if(i.includes(t.id))console.error("请输入不同的marker的id");else if(i.push(t.id),t.latitude&&t.longitude&&t.iconPath&&t.id){if(t.latitude<-90||t.latitude>90||t.longitude<-180||t.longitude>180)return void console.error("请正确设置marker的经纬度");const i=new BMapGL.Point(t.longitude,t.latitude),b=new BMapGL.Marker(i,{enableClicking:!0});if(b.id=t.id,b.alpha=t.alpha,t.zIndex&&b.setZIndex(t.zIndex),t.width&&t.height){const i=document.createElement("canvas");i.width=2*t.width,i.height=2*t.height;const s=i.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.src=t.iconPath,o.onload=function(){s.drawImage(o,0,0,2*t.width,2*t.height);const n=new BMapGL.Icon(i.toDataURL(),new BMapGL.Size(t.width,t.height),{anchor:new BMapGL.Size(0,0)});b.setIcon(n)}}else{const i=new Image;i.src=t.iconPath,i.style.opacity=String(t.alpha),i.onload=()=>{const s=new BMapGL.Size(i.width,i.height),o=new BMapGL.Icon(i.src,s);o.imageOffset=new BMapGL.Size(0,0,t.alpha||1),b.setIcon(o)}}const w=t.rotate?t.rotate:0;w>=0&&w<=360&&b.setRotation(w);const B=null!==(o=null===(s=t.anchor)||void 0===s?void 0:s.x)&&void 0!==o?o:.5,L=null!==(a=null===(n=t.anchor)||void 0===n?void 0:n.y)&&void 0!==a?a:1;if(b.setOffset(B>=0&&B<=1&&L>=0&&L<=1?new BMapGL.Size(-B*(t.width||0),-L*(t.height||0)):new BMapGL.Size(-.5*(t.width||0),-1*(t.height||0))),!t.callout&&t.title&&new e(this.mapRef).on("tap",(t=>{const s=t.center,o=s.x,n=s.y;this.markers.forEach((t=>{const s=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),e=s.left,a=s.top,h=new BMapGL.Point(t.longitude,t.latitude),l=this.map.pointToPixel(h),r=l.y+a;if(Math.sqrt(Math.pow(o-(l.x+e),2)+Math.pow(n-r,2))<15&&t.id===b.id){const s=new BMapGL.InfoWindow(`<div style="text-align:center">${t.title}</div>`);this.map.openInfoWindow(s,i)}}))})),t.callout){const s=(null===(h=t.callout)||void 0===h?void 0:h.anchorX)?null===(l=t.callout)||void 0===l?void 0:l.anchorX:0,o=(null===(r=t.callout)||void 0===r?void 0:r.anchorY)?null===(d=t.callout)||void 0===d?void 0:d.anchorY:0,n=new BMapGL.InfoWindow(`<div style="\n padding: ${null===(p=t.callout)||void 0===p?void 0:p.padding}px;\n color:${null===(c=t.callout)||void 0===c?void 0:c.color};\n text-align:${null===(u=t.callout)||void 0===u?void 0:u.textAlign};"\n >\n <p style="font-size:${null===(v=t.callout)||void 0===v?void 0:v.fontSize}px">${(null===(M=t.callout)||void 0===M?void 0:M.content)||""}</p>\n </div>`,{width:200,height:100,offset:new BMapGL.Size(s-24,o-20)});if(b.callout=n,this.map.addOverlay(b),"ALWAYS"===(null===(f=t.callout)||void 0===f?void 0:f.display)){b.callout.disableCloseOnClick();const s=b.getPosition();b.callout.addEventListener("open",(function(){var i,o,n,e;const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${s.lat-100}px; left: ${s.lng-20}px;display:none`);const r=null===(i=t.callout)||void 0===i?void 0:i.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;borderLeft:${d}px solid transparent;borderRight:${d}px solid transparent;borderTop:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${s.lat-120}px; left:${s.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(b.callout,i)}else new e(this.mapRef).on("tap",(t=>{const s=t.center,o=s.x,n=s.y;this.markers.forEach((t=>{const s=document.getElementsByClassName("bmap-container")[0].getBoundingClientRect(),e=s.left,a=s.top,h=new BMapGL.Point(t.longitude,t.latitude),l=this.map.pointToPixel(h),r=l.y+a;if(Math.sqrt(Math.pow(o-(l.x+e),2)+Math.pow(n-r,2))<15&&t.id===b.id){const s=b.getPosition();b.callout.addEventListener("open",(function(){var i,o,n,e;const a=document.querySelector(".BMap_bubble_pop");if(a){let h=a.querySelector(".triangle");h||(h=document.createElement("div"),h.className="triangle",a.appendChild(h));const l=document.querySelector(".BMap_bubble_pop>img");l&&l.setAttribute("style",`position: absolute;transform: translate(-50%, 0); top: ${s.lat-100}px; left: ${s.lng-20}px;display:none`);const r=null===(i=t.callout)||void 0===i?void 0:i.bgColor;let d=(null===(o=t.callout)||void 0===o?void 0:o.borderWidth)||5;const p=null===(n=t.callout)||void 0===n?void 0:n.borderColor,c=null===(e=t.callout)||void 0===e?void 0:e.borderRadius;d=Math.min(d,15),h.setAttribute("style",`width:0;height:0;border-left:${d}px solid transparent;border-right:${d}px solid transparent;border-top:${d}px solid ${p};position:absolute;left:83px;bottom:-${2*d}px`),a.setAttribute("style",`background-color:${r};top:${s.lat-120}px; left:${s.lng-100}px;position: absolute;border: ${d}px solid ${p};border-radius:${c}px; `)}})),this.map.openInfoWindow(b.callout,i)}else b.callout.enableCloseOnClick()}))}))}if(t.label){const s=t.label.content||"",o={position:i,offset:new BMapGL.Size(t.label.anchorX||0,t.label.anchorY||0)},n=new BMapGL.Label(s,o);n.setStyle({color:t.label.color,fontSize:t.label.fontSize+"px",borderWidth:t.label.borderWidth+"px",borderColor:t.label.borderColor?t.label.borderColor:"white",borderRadius:t.label.borderRadius+"px",background:t.label.bgColor,padding:t.label.padding+"px"}),b.setLabel(n)}this.map.addOverlay(b)}else console.error("请检查marker经纬度和marker自定义图标路径和id值")}))}loadMapScript(){return new Promise(((t,i)=>{const s=document.createElement("script");s.src="https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo",s.defer=!0,s.onload=()=>t(),s.onerror=i,s.type="text/javascript",document.head.appendChild(s)}))}async LoadBmapLibScript(){return new Promise(((t,i)=>{const s=document.createElement("script");s.src="//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js",s.defer=!0,s.type="text/javascript",s.onload=()=>{t()},s.onerror=i,document.head.appendChild(s)}))}render(){return s(o,null,s("div",{id:"mapContainer",ref:t=>{t&&(this.mapRef=t)},style:{width:this.width,height:this.height}}))}get el(){return n(this)}};a.style=".BMap_cpyCtrl,.anchorBL img,.BMap_bubble_buttons{display:none}";export{a as taro_map_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as i,g as l}from"./p-
|
|
1
|
+
import{r as t,c as s,h as o,H as i,g as l}from"./p-e62a1287.js";import{c as r}from"./p-160d710a.js";import{d as e}from"./p-5893c3ed.js";import{h}from"./p-dbdb9de9.js";import"@tarojs/taro";function c(t,s,o=500,i){if(t===s||"number"!=typeof t)return;const l=s-t,r=Date.now(),e=s>=t;!function h(){var c;c=Date.now()-r,t=l*c/o+t,e&&t>=s||!e&&s>=t?i(s):(i(t),requestAnimationFrame(h))}()}const a=class{constructor(o){t(this,o),this.onScroll=s(this,"scroll",3),this.onScrollToUpper=s(this,"scrolltoupper",3),this.onScrollToLower=s(this,"scrolltolower",3),this._scrollLeft=0,this._scrollTop=0,this.upperAndLower=e((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r}=this.el,e=Number(this.lowerThreshold),h=Number(this.upperThreshold);!isNaN(e)&&(this.scrollY&&s+i+e>=l||this.scrollX&&t+o+e>=r)&&this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""}),!isNaN(h)&&(this.scrollY&&i<=h||this.scrollX&&o<=h)&&this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}),200),this.scrollX=!1,this.scrollY=!1,this.upperThreshold=50,this.lowerThreshold=50,this.mpScrollTop=void 0,this.mpScrollLeft=void 0,this.mpScrollIntoView=void 0,this.mpScrollIntoViewAlignment=void 0,this.animated=!1}watchScrollLeft(t){const s=Number(t),{animated:o}=this;this.mpScrollToMethod({left:s,animated:o})}watchScrollTop(t){const s=Number(t),{animated:o}=this;this.mpScrollToMethod({top:s,animated:o})}watchScrollIntoView(t){this.mpScrollIntoViewMethod(t)}handleScroll(t){var s;if(t instanceof CustomEvent)return;t.stopPropagation(),null===(s=t.stopImmediatePropagation)||void 0===s||s.call(t);const{scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r}=this.el;this._scrollLeft=o,this._scrollTop=i,this.upperAndLower(),this.onScroll.emit({scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r})}handleTouchMove(t){t instanceof CustomEvent||t.stopPropagation()}async mpScrollToMethod(t){let{top:s,left:o,duration:i,animated:l=!1}=t;this.scrollY&&"number"==typeof s&&!isNaN(s)&&s!==this._scrollTop&&(l?c(this._scrollTop,s,i,(t=>this.el.scrollTop=t)):this.el.scrollTop=s,this._scrollTop=s),this.scrollX&&"number"==typeof o&&!isNaN(o)&&o!==this._scrollLeft&&(l?c(this._scrollLeft,o,i,(t=>this.el.scrollLeft=t)):this.el.scrollLeft=o,this._scrollLeft=o)}async mpScrollIntoViewMethod(t){var s;"string"==typeof t&&t&&(null===(s=document.querySelector(`#${t}`))||void 0===s||s.scrollIntoView({behavior:this.animated?"smooth":"auto",block:this.scrollY&&this.mpScrollIntoViewAlignment||"center",inline:this.scrollX&&this.mpScrollIntoViewAlignment||"start"}))}componentDidLoad(){const t=Number(this.mpScrollTop),s=Number(this.mpScrollLeft),{animated:o}=this;this.mpScrollToMethod({top:t,left:s,animated:o})}componentDidRender(){h(this.el)}render(){const{scrollX:t,scrollY:s}=this,l=r({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":s});return o(i,{class:l},o("slot",null))}get el(){return l(this)}static get watchers(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}}};a.style="taro-scroll-view-core{-webkit-overflow-scrolling:auto;width:100%;display:block}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow:scroll hidden}.taro-scroll-view__scroll-y{overflow:hidden scroll}";export{a as taro_scroll_view_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as o,h as s}from"./p-
|
|
1
|
+
import{r,c as o,h as s}from"./p-e62a1287.js";const t=class{constructor(s){r(this,s),this.onLoad=o(this,"load",7),this.onError=o(this,"error",7),this.src=void 0}render(){const{src:r,onLoad:o,onError:t}=this;return s("iframe",{class:"taro-webview",onLoad:s=>{s.stopPropagation(),o.emit({src:r})},onError:o=>{o.stopPropagation(),t.emit({src:r})},src:r})}};t.style="iframe{border:none}.taro-webview{z-index:999;width:100%;height:100%;position:fixed;top:0;bottom:0}";export{t as taro_web_view_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as r,H as e}from"./p-
|
|
1
|
+
import{r as s,h as r,H as e}from"./p-e62a1287.js";const i=class{constructor(r){s(this,r),this.percent=0,this.showInfo=!1,this.borderRadius=0,this.fontSize=16,this.strokeWidth=6,this.activeColor="#09BB07",this.backgroundColor="#EBEBEB",this.active=!1}render(){const{percent:s,showInfo:i,borderRadius:o,fontSize:t,strokeWidth:a,activeColor:n,backgroundColor:l,active:p}=this,c=s>100?100:s<0?0:s,h=p?"width 1s ease-in-out":"none";return r(e,{class:"weui-progress"},r("div",{class:"weui-progress__bar",style:{height:a+"px",backgroundColor:l}},r("div",{class:"weui-progress__inner-bar",style:{width:`${c}%`,transition:h,WebkitTransition:h,backgroundColor:n,borderRadius:o?`${o}px`:"0px"}})),i&&r("div",{class:"weui-progress__opr",style:{"font-size":`${t}px`}},r("span",null,c,"%")))}};i.style=".weui-progress{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-progress__bar{background-color:#ebebeb;-ms-flex:1;flex:1;height:3px}.weui-progress__inner-bar{background-color:#09bb07;width:0;height:100%}.weui-progress__opr{margin-left:15px;font-size:0;display:block}";export{i as taro_progress_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-e62a1287.js";var r,o=function(t,i,e,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!r:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(t,e):r?r.value=e:i.set(t,e),e},h=function(t,i,e,s){if("a"===e&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?s:"a"===e?s.call(t):s?s.value:i.get(t)};const n=class{constructor(e){t(this,e),this.onSubmit=i(this,"submit",7),r.set(this,{})}onButtonSubmit(t){t.stopPropagation(),o(this,r,this.getFormValue(),"f"),this.onSubmit.emit({value:h(this,r,"f")})}onButtonReset(t){t.stopPropagation(),this.form.reset()}componentDidLoad(){o(this,r,this.getFormValue(),"f"),Object.defineProperty(this.el,"value",{get:()=>h(this,r,"f"),configurable:!0})}componentDidRender(){if(this.originalAppendChild||(this.originalAppendChild=this.el.appendChild,this.originalInsertBefore=this.el.insertBefore,this.originalReplaceChild=this.el.replaceChild,this.originalRemoveChild=this.el.removeChild),!this.form)return this.el.appendChild=this.originalAppendChild,this.el.insertBefore=this.originalInsertBefore,this.el.replaceChild=this.originalReplaceChild,void(this.el.removeChild=this.originalRemoveChild);this.el.appendChild=t=>this.form.appendChild(t),this.el.insertBefore=(t,i)=>this.form.insertBefore(t,i),this.el.replaceChild=(t,i)=>this.form.replaceChild(t,i),this.el.removeChild=t=>this.form.removeChild(t)}getFormValue(){const t=this.el,i=[],e=t.getElementsByTagName("input");for(let t=0;t<e.length;t++)i.push(e[t]);const s={},r={};i.forEach((t=>{"string"==typeof t.name&&(-1===t.className.indexOf("weui-switch")?"radio"!==t.type?"checkbox"!==t.type?s[t.name]=t.value:t.checked?r[t.name]?s[t.name].push(t.value):(r[t.name]=!0,s[t.name]=[t.value]):r[t.name]||(s[t.name]=[]):t.checked?(r[t.name]=!0,s[t.name]=t.value):r[t.name]||(s[t.name]=""):s[t.name]=t.checked)}));const o=t.getElementsByTagName("textarea"),h=[];for(let t=0;t<o.length;t++)h.push(o[t]);return h.forEach((t=>{"string"==typeof t.name&&(s[t.name]=t.value)})),s}render(){return e("form",{ref:t=>{this.form=t}},e("slot",null))}get el(){return s(this)}};r=new WeakMap;export{n as taro_form_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.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_nested_scroll_body_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("NestedScrollBody",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var c=t("taro_live_player_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("LivePlayer",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js"],(function(e){"use strict";var t,i,r,n,o;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;o=e.g}],execute:function(){var a=e("taro_radio_core",function(){function e(e){var r=this;t(this,e);this.onChange=i(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(r.disabled)return;if(!r.checked)r.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,o=t.name,a=t.value,c=t.disabled,u=t.nativeProps;return r(n,{className:"weui-cells_checkbox",onClick:this.handleClick},r("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:o,value:a,class:"weui-check",checked:i,disabled:c,onChange:function(e){return e.stopPropagation()}},u)),r("i",{class:"weui-icon-checked"}),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}());var c=undefined&&undefined.__classPrivateFieldSet||function(e,t,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(e,i):n?n.value=i:t.set(e,i),i};var u=undefined&&undefined.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var s;var l=e("taro_radio_group_core",function(){function e(e){t(this,e);this.onChange=i(this,"change",7);this.uniqueName=Date.now().toString(36);s.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));c(this,s,e.detail.value,"f");this.onChange.emit({value:u(this,s,"f")})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!u(e,s,"f")){var t=e.el.querySelectorAll("taro-radio-core");c(e,s,e.getValues(t),"f")}return u(e,s,"f")},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return r(n,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s=new WeakMap}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as h}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as h}from"./p-e62a1287.js";import{c as o}from"./p-160d710a.js";const e=class{constructor(i){t(this,i),this.onLongPress=s(this,"longpress",7),this.startTime=0,this.animation=void 0,this.hoverClass=void 0,this.hoverStartTime=50,this.hoverStayTime=400,this.hover=!1,this.touch=!1}onTouchStart(){this.hoverClass&&(this.touch=!0,setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime)),this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350),this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){Date.now()-this.startTime<350&&clearTimeout(this.timeoutEvent),this.hoverClass&&(this.touch=!1,setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime))}render(){const t=o({[`${this.hoverClass}`]:this.hover});let s={};return this.animation&&(s.animation=this.animation,s["data-animation"]=this.animation),i(h,Object.assign({class:t},s),i("slot",null))}};e.style="taro-cover-view-core{display:block}";export{e as taro_cover_view_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,e,r;return{setters:[function(t){n=t.r;o=t.h;e=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_animation_video_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("AnimationVideo",this)};t.prototype.render=function(){return o(e,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as i,h as l,H as r,g as o}from"./p-
|
|
1
|
+
import{r as e,c as i,h as l,H as r,g as o}from"./p-e62a1287.js";const t=class{constructor(l){e(this,l),this.onChange=i(this,"checkboxchange",7),this.handleChange=e=>{e.stopPropagation(),this.onChange.emit({value:this.value})},this.name=void 0,this.value="",this.color=void 0,this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchId(e){this.isWillLoadCalled&&e&&this.inputEl.setAttribute("id",e)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidRender(){this.id&&this.el.removeAttribute("id")}render(){const{checked:e,name:i,color:o,value:t,disabled:c,nativeProps:a}=this;return l(r,{className:"weui-cells_checkbox"},l("input",Object.assign({ref:e=>{e&&(this.inputEl=e,this.id&&e.setAttribute("id",this.id))},type:"checkbox",value:t,name:i,class:"taro-checkbox_checked",style:{color:o},checked:e,disabled:c,onChange:this.handleChange},a)),l("slot",null))}get el(){return o(this)}static get watchers(){return{id:["watchId"]}}};t.style='page,body{--weui-cellMarginLR:16px;--weui-cellPaddingLR:16px}.weui-cells__group{border:0}.weui-cells__group:first-child{margin-top:0}.weui-cells__group_form{margin-top:24px}.weui-cells__group_form .weui-cells{margin-left:var(--weui-cellMarginLR);margin-right:var(--weui-cellMarginLR)}.weui-cells__group_form .weui-cells:before,.weui-cells__group_form .weui-cells:after{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell{padding:16px var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:before{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__hd{padding-right:16px}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__ft{padding-left:16px}.weui-cells__group_form .weui-cells__title{margin-top:24px;margin-bottom:8px;padding:0 32px}.weui-cells__group_form:first-child .weui-cells__title{margin-top:0}.weui-cells__group_form .weui-cells__tips{padding:0 calc(var(--weui-cellMarginLR) + var(--weui-cellPaddingLR));color:var(--weui-FG-2);margin-top:8px}.weui-cells__group_form .weui-cells__tips a{font-weight:700}.weui-cells__group_form .weui-cells__tips_warn{color:var(--weui-RED)}.weui-cells__group_form .weui-label{max-width:5em;margin-right:8px}.weui-cells__group_form .weui-cell_access:active:after,.weui-cells__group_form .weui-cell_active:active:after{border-radius:8px}.weui-cells__group_form .weui-cell_warn input{color:#e64340}.weui-cells__group_form .weui-icon-warn,.weui-cells__group_form .weui-cell_switch:active:after,.weui-cells__group_form .weui-cell_vcode:active:after,.weui-cells__group_form .weui-cell_readonly:active:after,.weui-cells__group_form .weui-cell_disabled:active:after{display:none}.weui-cells__group_form input,.weui-cells__group_form textarea,.weui-cells__group_form label[for]{-webkit-tap-highlight-color:transparent}.weui-cells__group_form .weui-cell_wrap{-ms-flex-align:initial;align-items:initial;padding-top:8px;padding-bottom:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_wrap .weui-label{margin-top:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__bd{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-cells__group_form .weui-cell__control{margin:8px 0 8px 16px}.weui-cells__group_form .weui-cell__control_flex{-ms-flex:1;flex:1;min-width:30vw}.weui-cells__group_form .weui-vcode-btn{color:#000;background-color:#f8f8f8;border-radius:6px;width:auto;height:auto;padding:0 12px;font-size:16px;line-height:2}.weui-cells__group_form .weui-vcode-btn:before{display:none}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap{padding-top:4px;padding-bottom:4px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-label{margin-top:12px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-input{min-height:1.88235em;font-size:17px}.weui-cells__group_form .weui-cells_checkbox .weui-check__label:before{left:calc(40px + var(--weui-cellPaddingLR))}.weui-cells__group_form .weui-cell_select{padding:0}.weui-cells__group_form .weui-cell_select-before .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_switch{padding:12px 16px}.weui-cells__group_form-primary{margin-top:32px}.weui-cells__group_form-primary .weui-cells{background:var(--weui-BG-1);border-radius:8px;overflow:hidden}.weui-cells__group_form-primary .weui-cells:before,.weui-cells__group_form-primary .weui-cells:after{display:none}.weui-cells__group_form-primary .weui-cell_access:active:after,.weui-cells__group_form-primary .weui-cell_active:active:after{border-radius:0}.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{-webkit-appearance:none;-moz-appearance:none;appearance:none;vertical-align:0;color:#1aad19;background-color:#fff;border:1px solid #d1d1d1;border-radius:3px;outline:0;width:23px;height:23px;min-height:0;font-size:23px;display:inline-block;position:relative;top:5px}.taro-checkbox_checked:checked:before{vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-variant:normal;font-family:weui;font-style:normal;font-weight:400;font-size:inherit;color:inherit;content:"";speak:none;display:inline-block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-48%)scale(.73);transform:translate(-50%,-48%)scale(.73)}';var c,a=function(e,i,l,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?e!==i||!o:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,l):o?o.value=l:i.set(e,l),l},u=function(e,i,l,r){if("a"===l&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?e!==i||!r:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===l?r:"a"===l?r.call(e):r?r.value:i.get(e)};const s=class{constructor(l){e(this,l),this.onChange=i(this,"change",7),this.uniqueName=Date.now().toString(36),c.set(this,void 0),this.name=void 0}function(e){if(e.stopPropagation(),"TARO-CHECKBOX-CORE"!==e.target.tagName)return;const i=this.el.querySelectorAll("taro-checkbox-core");a(this,c,this.getValues(i),"f"),this.onChange.emit({value:u(this,c,"f")})}componentDidLoad(){this.el.querySelectorAll("taro-checkbox-core").forEach((e=>{e.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!u(this,c,"f")){const e=this.el.querySelectorAll("taro-checkbox-core");a(this,c,this.getValues(e),"f")}return u(this,c,"f")},configurable:!0})}getValues(e){return Array.from(e).filter((e=>{const i=e.querySelector("input");return null==i?void 0:i.checked})).map((e=>e.value))}render(){return l(r,null)}get el(){return o(this)}};c=new WeakMap;export{t as taro_checkbox_core,s as taro_checkbox_group_core}
|