@tarojs/components 3.4.8 → 3.5.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-cd258c8b.js} +62 -53
- package/dist/cjs/loader.cjs.js +2 -2
- 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-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-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.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +12 -13
- 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 +1 -1
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkbox/style/index.css +1 -2
- package/dist/collection/components/tabbar/tabbar.js +11 -12
- package/dist/esm/{index-5bd7cbab.js → index-1d67274c.js} +62 -53
- 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-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-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.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm/taro-picker-view-core.entry.js +1 -1
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +12 -13
- 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 +1 -1
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/{index-5bd7cbab.js → index-1d67274c.js} +1 -1
- 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-audio-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-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-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-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-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-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.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-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-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-06352f55.entry.js} +1 -1
- package/dist/taro-components/{p-b6d6c744.entry.js → p-085c4322.entry.js} +1 -1
- package/dist/taro-components/{p-3c0230ba.entry.js → p-087d704b.entry.js} +1 -1
- package/dist/taro-components/{p-aae3e479.entry.js → p-0afc53da.entry.js} +1 -1
- package/dist/taro-components/{p-8f90fca9.system.entry.js → p-13359eb6.system.entry.js} +1 -1
- package/dist/taro-components/{p-8e0150eb.system.entry.js → p-1398c59d.system.entry.js} +1 -1
- package/dist/taro-components/{p-94502fc3.entry.js → p-13d03572.entry.js} +1 -1
- package/dist/taro-components/p-14484d41.entry.js +1 -0
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-176374d6.system.entry.js} +1 -1
- package/dist/taro-components/{p-2d066d28.entry.js → p-17b78ad7.entry.js} +1 -1
- package/dist/taro-components/{p-0ee69803.entry.js → p-1fbf755f.entry.js} +1 -1
- package/dist/taro-components/{p-336f2b2a.system.entry.js → p-221bffa0.system.entry.js} +1 -1
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-24cc05ea.system.entry.js} +1 -1
- package/dist/taro-components/{p-fbd45c24.system.entry.js → p-2afb4d49.system.entry.js} +1 -1
- package/dist/taro-components/{p-0c2982fc.system.entry.js → p-2c4dea36.system.entry.js} +1 -1
- package/dist/taro-components/{p-5c6aeb55.entry.js → p-34d60fc8.entry.js} +1 -1
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-37ac3d2b.system.entry.js} +1 -1
- package/dist/taro-components/{p-33c5efb5.entry.js → p-3b067d1f.entry.js} +1 -1
- package/dist/taro-components/{p-7721e046.entry.js → p-3e7aced1.entry.js} +1 -1
- package/dist/taro-components/{p-8bea1c4d.system.entry.js → p-3efae2a3.system.entry.js} +1 -1
- package/dist/taro-components/{p-b2d01686.system.js → p-44996bd6.system.js} +1 -1
- package/dist/taro-components/{p-ebf5b2eb.system.entry.js → p-45574a38.system.entry.js} +1 -1
- package/dist/taro-components/{p-cdffee54.system.entry.js → p-45b92229.system.entry.js} +1 -1
- package/dist/taro-components/{p-b0bd2cf1.system.entry.js → p-49df1b65.system.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-4a0599c1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-4cb60cf0.system.entry.js} +1 -1
- package/dist/taro-components/{p-ed3bf934.system.entry.js → p-52cbf36e.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a618935.system.entry.js → p-546f5965.system.entry.js} +1 -1
- package/dist/taro-components/p-549636ca.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-55646f03.entry.js} +1 -1
- package/dist/taro-components/{p-3593c5f1.system.entry.js → p-5656b308.system.entry.js} +1 -1
- package/dist/taro-components/{p-e6298500.entry.js → p-58cbfd17.entry.js} +1 -1
- package/dist/taro-components/{p-c06f1610.system.entry.js → p-5e48f1b4.system.entry.js} +1 -1
- package/dist/taro-components/{p-b93ca09d.entry.js → p-5f276ea1.entry.js} +1 -1
- package/dist/taro-components/{p-cb395e7d.entry.js → p-615b87e8.entry.js} +1 -1
- package/dist/taro-components/{p-3643d8f7.system.entry.js → p-617f5e2a.system.entry.js} +1 -1
- package/dist/taro-components/{p-ff032a23.system.entry.js → p-64f6f87c.system.entry.js} +1 -1
- package/dist/taro-components/p-68246408.entry.js +1 -0
- package/dist/taro-components/{p-03eb37e5.system.entry.js → p-6946f166.system.entry.js} +1 -1
- package/dist/taro-components/{p-288b38f9.system.entry.js → p-6e12bd70.system.entry.js} +1 -1
- package/dist/taro-components/{p-d19aeb27.entry.js → p-7419e765.entry.js} +1 -1
- package/dist/taro-components/{p-264b7229.system.entry.js → p-79495606.system.entry.js} +1 -1
- package/dist/taro-components/{p-07062966.entry.js → p-7d457a6a.entry.js} +1 -1
- package/dist/taro-components/{p-8b2bf902.system.entry.js → p-7df1437d.system.entry.js} +1 -1
- package/dist/taro-components/{p-6c211370.system.entry.js → p-7f2d456b.system.entry.js} +1 -1
- package/dist/taro-components/p-7f726d39.entry.js +1 -0
- package/dist/taro-components/{p-3633bb84.entry.js → p-7f8ddefe.entry.js} +1 -1
- package/dist/taro-components/{p-d1c2481c.system.entry.js → p-81e33437.system.entry.js} +1 -1
- package/dist/taro-components/{p-9d0ab7c4.entry.js → p-880791ee.entry.js} +1 -1
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-884e6eab.entry.js} +1 -1
- package/dist/taro-components/{p-61c0caae.entry.js → p-88e3bc92.entry.js} +1 -1
- package/dist/taro-components/{p-3334ac67.system.entry.js → p-88ee404a.system.entry.js} +1 -1
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-899c6b73.system.entry.js} +1 -1
- package/dist/taro-components/{p-55b0a30b.entry.js → p-8a2b7701.entry.js} +1 -1
- package/dist/taro-components/p-8c6d8802.entry.js +1 -0
- package/dist/taro-components/p-8c7cf814.js +1 -0
- package/dist/taro-components/p-8ca394d6.entry.js +1 -0
- package/dist/taro-components/{p-7d848382.system.entry.js → p-8cdc809b.system.entry.js} +1 -1
- package/dist/taro-components/{p-58623cdd.system.entry.js → p-8e0529f2.system.entry.js} +1 -1
- package/dist/taro-components/{p-fb0959c1.system.entry.js → p-8ea9ceb6.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-90f11b84.system.entry.js} +1 -1
- package/dist/taro-components/{p-554e1039.entry.js → p-917185f3.entry.js} +1 -1
- package/dist/taro-components/{p-edcb9726.entry.js → p-92f26e22.entry.js} +1 -1
- package/dist/taro-components/{p-7423fc3b.system.entry.js → p-96706c5c.system.entry.js} +1 -1
- package/dist/taro-components/p-97af3986.system.entry.js +1 -0
- package/dist/taro-components/{p-0472e474.system.entry.js → p-9c0f3f24.system.entry.js} +1 -1
- package/dist/taro-components/{p-3fa99b92.system.entry.js → p-9dcfe647.system.entry.js} +1 -1
- package/dist/taro-components/p-9ff180ae.entry.js +1 -0
- package/dist/taro-components/{p-3aad572a.system.entry.js → p-a16053fa.system.entry.js} +1 -1
- package/dist/taro-components/{p-33ee636a.system.js → p-a2fd3c03.system.js} +1 -1
- package/dist/taro-components/{p-26bdffd7.entry.js → p-a9a84796.entry.js} +1 -1
- package/dist/taro-components/{p-f5fe8711.entry.js → p-a9c3e575.entry.js} +1 -1
- package/dist/taro-components/{p-527a38ee.system.entry.js → p-ac4c4975.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-aca73ca4.entry.js} +1 -1
- package/dist/taro-components/{p-50be38a1.system.entry.js → p-acb07924.system.entry.js} +1 -1
- package/dist/taro-components/{p-1e4f1702.system.entry.js → p-acfcb861.system.entry.js} +1 -1
- package/dist/taro-components/p-b31e6cf0.entry.js +1 -0
- package/dist/taro-components/{p-cfbfeee8.entry.js → p-b455351e.entry.js} +1 -1
- package/dist/taro-components/{p-065ec61d.entry.js → p-b640bd56.entry.js} +1 -1
- package/dist/taro-components/{p-0c18bd18.system.entry.js → p-b7128eac.system.entry.js} +1 -1
- package/dist/taro-components/{p-df5a19b0.system.entry.js → p-ba984b34.system.entry.js} +1 -1
- package/dist/taro-components/{p-00089605.entry.js → p-bb3d337d.entry.js} +1 -1
- package/dist/taro-components/p-c0875abf.entry.js +1 -0
- package/dist/taro-components/{p-42eb4f16.entry.js → p-c1642977.entry.js} +1 -1
- package/dist/taro-components/p-c33b552b.entry.js +1 -0
- package/dist/taro-components/p-c6d14c2b.entry.js +1 -0
- package/dist/taro-components/p-c995a3aa.entry.js +1 -0
- package/dist/taro-components/{p-06af26db.system.entry.js → p-cde242bb.system.entry.js} +1 -1
- package/dist/taro-components/p-de726095.entry.js +1 -0
- package/dist/taro-components/p-de95c6ac.system.entry.js +1 -0
- package/dist/taro-components/{p-a05d66d1.system.entry.js → p-deef9af1.system.entry.js} +1 -1
- package/dist/taro-components/{p-99cb65a6.system.entry.js → p-e5486e8c.system.entry.js} +1 -1
- package/dist/taro-components/{p-15bea37d.entry.js → p-e56a303b.entry.js} +1 -1
- package/dist/taro-components/{p-668a6262.entry.js → p-e5fdbc1c.entry.js} +1 -1
- package/dist/taro-components/{p-14dbbb42.entry.js → p-e6ec7abc.entry.js} +1 -1
- package/dist/taro-components/{p-7cdad34e.system.entry.js → p-ed69dc55.system.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-ee1ffbb0.entry.js} +1 -1
- package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-efc892d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-e61d2113.system.entry.js → p-f0c5c933.system.entry.js} +1 -1
- package/dist/taro-components/{p-b87cf623.entry.js → p-f425f3b5.entry.js} +1 -1
- package/dist/taro-components/{p-e3c9421d.entry.js → p-f5377a15.entry.js} +1 -1
- package/dist/taro-components/{p-e03fa2d5.system.entry.js → p-f675e927.system.entry.js} +1 -1
- package/dist/taro-components/p-fc28dbdd.entry.js +1 -0
- package/dist/taro-components/p-fee2ad82.entry.js +1 -0
- package/dist/taro-components/{p-e2f6448d.system.entry.js → p-ff792cf7.system.entry.js} +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.d.ts +3 -2
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/index.js +1 -46
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/index.js +23 -26
- package/dist-h5/vue3/components/index.js +64 -0
- package/dist-h5/vue3/index.js +10 -64
- package/package.json +21 -9
- package/types/Block.d.ts +5 -2
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +10 -10
- package/types/Form.d.ts +6 -6
- package/types/Label.d.ts +2 -2
- package/types/OfficialAccount.d.ts +3 -3
- package/types/PickerViewColumn.d.ts +3 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RichText.d.ts +1 -1
- package/types/ScrollView.d.ts +6 -6
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +2 -2
- package/types/Switch.d.ts +1 -1
- package/types/Text.d.ts +2 -2
- package/types/View.d.ts +2 -2
- package/types/WebView.d.ts +1 -1
- package/types/common.d.ts +2 -0
- package/types/index.d.ts +53 -52
- package/types/index.vue3.d.ts +70 -72
- package/types/props.ts +73 -0
- package/vue3.d.ts +3 -0
- package/dist/taro-components/p-0303f9e0.entry.js +0 -1
- package/dist/taro-components/p-3dfb1807.entry.js +0 -1
- package/dist/taro-components/p-431080b8.entry.js +0 -1
- package/dist/taro-components/p-51401bdc.entry.js +0 -1
- package/dist/taro-components/p-59d38db0.entry.js +0 -1
- package/dist/taro-components/p-7fdd59f0.entry.js +0 -1
- package/dist/taro-components/p-92a31933.system.entry.js +0 -1
- package/dist/taro-components/p-92e95d3f.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-bc97b854.system.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-cd2af8b4.entry.js +0 -1
- package/dist/taro-components/p-cf55a63c.entry.js +0 -1
- package/dist/taro-components/p-d0c608a8.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-1d67274c.js";var indexCss="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";var Switch=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.type="switch";this.checked=false;this.color="#04BE02";this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false;this.switchChange=function(e){e.stopPropagation();var i=e.target.checked;t.isChecked=i;t.onChange.emit({value:i})}}e.prototype.function=function(e,t){if(!this.isWillLoadCalled)return;if(e!==t)this.isChecked=e};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.isChecked=this.checked};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.isChecked},configurable:true})};e.prototype.render=function(){var e=this,t=e.type,i=e.color,n=e.isChecked,r=e.name,s=e.disabled,o=e.nativeProps;var c=n?{borderColor:i||"04BE02",backgroundColor:i||"04BE02"}:{};return h("input",Object.assign({type:"checkbox",class:"weui-"+t,style:c,checked:n,name:r,disabled:s,onChange:this.switchChange},o))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["function"]}},enumerable:false,configurable:true});return e}();Switch.style=indexCss;export{Switch as taro_switch_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,a){for(var t=0,r=a.length,o=e.length;t<r;t++,o++)e[o]=a[t];return e};import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-5bd7cbab.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-cd1a2d33.js";var splitUrl=function(e){var a=e||"";var t;var r={path:null,query:null,fragment:null};t=a.indexOf("#");if(t>-1){r.fragment=a.substring(t+1);a=a.substring(0,t)}t=a.indexOf("?");if(t>-1){r.query=a.substring(t+1);a=a.substring(0,t)}r.path=a;return r};function isAbsolute(e){return e.charAt(0)==="/"}function spliceOne(e,a){for(var t=a,r=t+1,o=e.length;r<o;t+=1,r+=1){e[t]=e[r]}e.pop()}function resolvePathname(e,a){if(a===undefined)a="";var t=e&&e.split("/")||[];var r=a&&a.split("/")||[];var o=e&&isAbsolute(e);var n=a&&isAbsolute(a);var s=o||n;if(e&&isAbsolute(e)){r=t}else if(t.length){r.pop();r=r.concat(t)}if(!r.length)return"/";var i;if(r.length){var l=r[r.length-1];i=l==="."||l===".."||l===""}else{i=false}var d=0;for(var b=r.length;b>=0;b--){var h=r[b];if(h==="."){spliceOne(r,b)}else if(h===".."){spliceOne(r,b);d++}else if(d){spliceOne(r,b);d--}}if(!s)for(;d--;d)r.unshift("..");if(s&&r[0]!==""&&(!r[0]||!isAbsolute(r[0])))r.unshift("");var c=r.join("/");if(i&&c.substr(-1)!=="/")c+="/";return c}var TabbarItem=function(e){var a=e.index,t=e.isSelected,r=t===void 0?false:t,o=e.textColor,n=e.iconPath,s=e.badgeText,i=e.showRedDot,l=i===void 0?false:i,d=e.text,b=e.onSelect;var c=classnames("weui-tabbar__item",{"weui-bar__item_on":r});var f={position:"absolute",top:"-2px",right:"-13px"};var u={position:"absolute",top:"0",right:"-6px"};function v(){b(a)}return h("a",{key:a,href:"javascript:;",class:c,onClick:v},h("span",{style:{display:"inline-block",position:"relative"}},h("img",{src:n,alt:"",class:"weui-tabbar__icon"}),!!s&&h("span",{class:"weui-badge taro-tabbar-badge",style:f},s),l&&h("span",{class:"weui-badge weui-badge_dot",style:u})),h("p",{class:"weui-tabbar__label",style:{color:o}},d))};var indexCss="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var addLeadingSlash=function(e){return e[0]==="/"?e:"/"+e};var hasBasename=function(e,a){return new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(e)};var stripBasename=function(e,a){return hasBasename(e,a)?e.substr(a.length):e};var STATUS_SHOW=0;var STATUS_HIDE=1;var STATUS_SLIDEOUT=2;var basicTabBarClassName="taro-tabbar__tabbar";var hideTabBarClassName="taro-tabbar__tabbar-hide";var hideTabBarWithAnimationClassName="taro-tabbar__tabbar-slideout";var Tabbar=function(){function e(e){var a=this;registerInstance(this,e);this.onLongPress=createEvent(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=STATUS_SHOW;this.getOriginUrl=function(e){var t=a.customRoutes.filter((function(a){var t=a[1];var r=splitUrl(t).path;var o=splitUrl(e).path;return r===o}));return t.length?t[0][0]:e};this.getSelectedIndex=function(e){var t=-1;a.list.forEach((function(a,r){var o=a.pagePath;var n=splitUrl(e).path;var s=splitUrl(o).path;if(n===s){t=r}}));return t};this.switchTab=function(e){a.selectedIndex=e;Taro.switchTab({url:a.list[e].pagePath})};this.switchTabHandler=function(e){var t=e.url,r=e.successHandler,o=e.errorHandler;var n=a.getOriginUrl(a.getCurrentUrl()||a.homePage);var s=resolvePathname(t,n);var i=a.getSelectedIndex(s);if(i>-1){a.switchTab(i);r({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+s+'" is not found'})}};this.routerChangeHandler=function(e){var t;var r;if(e){t=e.toLocation}if(t&&t.path){var o=addLeadingSlash(t.path);r=stripBasename(o==="/"?a.homePage:o,a.conf.basename||"/")}else{r=a.getCurrentUrl()}a.selectedIndex=a.getSelectedIndex(a.getOriginUrl(r))};this.setTabBarBadgeHandler=function(e){var t=e.index,r=e.text,o=e.successHandler,n=e.errorHandler;var s=__spreadArray([],a.list);if(t in s){s[t].showRedDot=false;s[t].badgeText=r;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}a.list=s};this.removeTabBarBadgeHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].badgeText=null;r({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}a.list=n};this.showTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].showRedDot=true;r({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}a.list=n};this.hideTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].showRedDot=false;r({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}a.list=n};this.showTabBarHandler=function(e){var t=e.successHandler;a.status=STATUS_SHOW;t({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var t=e.animation,r=e.successHandler;a.status=t?STATUS_SLIDEOUT:STATUS_HIDE;r({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var t=e.color,r=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,s=e.successHandler;if(o)a.backgroundColor=o;if(n)a.borderStyle=n;if(t)a.color=t;if(r)a.selectedColor=r;s({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var t=e.index,r=e.iconPath,o=e.selectedIconPath,n=e.text,s=e.successHandler,i=e.errorHandler;var l=__spreadArray([],a.list);if(t in l){if(r)l[t].iconPath=r;if(o)l[t].selectedIconPath=o;if(n)l[t].text=n;s({errMsg:"setTabBarItem:ok"})}else{i({errMsg:"setTabBarItem:fail tabbar item not found"})}a.list=l};var t=this.conf.list;var r=this.conf.customRoutes;if(Object.prototype.toString.call(t)!=="[object Array]"||t.length<2||t.length>5){throw new Error("tabBar 配置错误")}this.homePage=addLeadingSlash(this.conf.homePage);var o=function(e){var a;var t=r[e];e=addLeadingSlash(e);if(typeof t==="string"){n.customRoutes.push([e,addLeadingSlash(t)])}else if((t===null||t===void 0?void 0:t.length)>0){(a=n.customRoutes).push.apply(a,t.map((function(a){return[e,addLeadingSlash(a)]})))}};var n=this;for(var s in r){o(s)}t.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=t;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var a=this.conf.basename||"/";var t;if(e==="hash"){var r=window.location.href;var o=r.indexOf("#");t=o===-1?"":r.substring(o+1)}else{t=location.pathname}var n=addLeadingSlash(stripBasename(t,a));return n==="/"?this.homePage:n};e.prototype.bindEvent=function(){Taro.eventCenter.on("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.on("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){Taro.eventCenter.off("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.off("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,a;var t=this;var r=this.tabbarPos,o=r===void 0?"bottom":r;var n=this.status;var s=classnames("weui-tabbar",(e={},e["taro-tabbar__border-"+(this.borderStyle||"black")]=true,e));var i=this.selectedIndex===-1||n===STATUS_HIDE;var l=n===STATUS_SLIDEOUT;return h(Host,{class:classnames(basicTabBarClassName,basicTabBarClassName+"-"+o,(a={},a[hideTabBarClassName]=i,a[hideTabBarWithAnimationClassName]=l,a))},h("div",{class:s,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,a){var r=t.selectedIndex===a;var o;var n;if(r){o=t.selectedColor||"";n=e.selectedIconPath}else{o=t.color||"";n=e.iconPath}return h(TabbarItem,{index:a,onSelect:t.switchTab.bind(t),isSelected:r,textColor:o,iconPath:n,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Tabbar.style=indexCss;export{Tabbar as taro_tabbar};
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,a){for(var t=0,r=a.length,o=e.length;t<r;t++,o++)e[o]=a[t];return e};import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-1d67274c.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-cd1a2d33.js";var splitUrl=function(e){var a=e||"";var t;var r={path:null,query:null,fragment:null};t=a.indexOf("#");if(t>-1){r.fragment=a.substring(t+1);a=a.substring(0,t)}t=a.indexOf("?");if(t>-1){r.query=a.substring(t+1);a=a.substring(0,t)}r.path=a;return r};function isAbsolute(e){return e.charAt(0)==="/"}function spliceOne(e,a){for(var t=a,r=t+1,o=e.length;r<o;t+=1,r+=1){e[t]=e[r]}e.pop()}function resolvePathname(e,a){if(a===undefined)a="";var t=e&&e.split("/")||[];var r=a&&a.split("/")||[];var o=e&&isAbsolute(e);var n=a&&isAbsolute(a);var s=o||n;if(e&&isAbsolute(e)){r=t}else if(t.length){r.pop();r=r.concat(t)}if(!r.length)return"/";var i;if(r.length){var l=r[r.length-1];i=l==="."||l===".."||l===""}else{i=false}var d=0;for(var b=r.length;b>=0;b--){var h=r[b];if(h==="."){spliceOne(r,b)}else if(h===".."){spliceOne(r,b);d++}else if(d){spliceOne(r,b);d--}}if(!s)for(;d--;d)r.unshift("..");if(s&&r[0]!==""&&(!r[0]||!isAbsolute(r[0])))r.unshift("");var c=r.join("/");if(i&&c.substr(-1)!=="/")c+="/";return c}var TabbarItem=function(e){var a=e.index,t=e.isSelected,r=t===void 0?false:t,o=e.textColor,n=e.iconPath,s=e.badgeText,i=e.showRedDot,l=i===void 0?false:i,d=e.text,b=e.onSelect;var c=classnames("weui-tabbar__item",{"weui-bar__item_on":r});var f={position:"absolute",top:"-2px",right:"-13px"};var u={position:"absolute",top:"0",right:"-6px"};function v(){b(a)}return h("a",{key:a,href:"javascript:;",class:c,onClick:v},h("span",{style:{display:"inline-block",position:"relative"}},h("img",{src:n,alt:"",class:"weui-tabbar__icon"}),!!s&&h("span",{class:"weui-badge taro-tabbar-badge",style:f},s),l&&h("span",{class:"weui-badge weui-badge_dot",style:u})),h("p",{class:"weui-tabbar__label",style:{color:o}},d))};var indexCss="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var addLeadingSlash=function(e){if(e===void 0){e=""}return e[0]==="/"?e:"/"+e};var hasBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(e)};var stripBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return hasBasename(e,a)?e.substr(a.length):e};var stripSuffix=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return e.includes(a)?e.substring(0,e.length-a.length):e};var STATUS_SHOW=0;var STATUS_HIDE=1;var STATUS_SLIDEOUT=2;var basicTabBarClassName="taro-tabbar__tabbar";var hideTabBarClassName="taro-tabbar__tabbar-hide";var hideTabBarWithAnimationClassName="taro-tabbar__tabbar-slideout";var Tabbar=function(){function e(e){var a=this;registerInstance(this,e);this.onLongPress=createEvent(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=STATUS_SHOW;this.getOriginUrl=function(e){var t=a.customRoutes.filter((function(a){var t=a[1];var r=splitUrl(t).path;var o=splitUrl(e).path;return r===o}));return stripSuffix(t.length?t[0][0]:e,".html")};this.getSelectedIndex=function(e){var t=-1;a.list.forEach((function(a,r){var o=a.pagePath;var n=splitUrl(e).path;var s=splitUrl(o).path;if(n===s){t=r}}));return t};this.switchTab=function(e){a.selectedIndex=e;Taro.switchTab({url:a.list[e].pagePath})};this.switchTabHandler=function(e){var t=e.url,r=e.successHandler,o=e.errorHandler;var n=a.getOriginUrl(a.getCurrentUrl()||a.homePage);var s=resolvePathname(t,n);var i=a.getSelectedIndex(s);if(i>-1){a.switchTab(i);r({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+s+'" is not found'})}};this.routerChangeHandler=function(e){var t;var r=(t=e===null||e===void 0?void 0:e.toLocation)===null||t===void 0?void 0:t.path;var o;if(typeof r==="string"){var n=a.conf.basename||"/";o=stripBasename(addLeadingSlash(r||a.homePage),n)}else{o=a.getCurrentUrl()}a.selectedIndex=a.getSelectedIndex(a.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var t=e.index,r=e.text,o=e.successHandler,n=e.errorHandler;var s=__spreadArray([],a.list);if(t in s){s[t].showRedDot=false;s[t].badgeText=r;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}a.list=s};this.removeTabBarBadgeHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].badgeText=null;r({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}a.list=n};this.showTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].showRedDot=true;r({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}a.list=n};this.hideTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].showRedDot=false;r({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}a.list=n};this.showTabBarHandler=function(e){var t=e.successHandler;a.status=STATUS_SHOW;t({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var t=e.animation,r=e.successHandler;a.status=t?STATUS_SLIDEOUT:STATUS_HIDE;r({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var t=e.color,r=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,s=e.successHandler;if(o)a.backgroundColor=o;if(n)a.borderStyle=n;if(t)a.color=t;if(r)a.selectedColor=r;s({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var t=e.index,r=e.iconPath,o=e.selectedIconPath,n=e.text,s=e.successHandler,i=e.errorHandler;var l=__spreadArray([],a.list);if(t in l){if(r)l[t].iconPath=r;if(o)l[t].selectedIconPath=o;if(n)l[t].text=n;s({errMsg:"setTabBarItem:ok"})}else{i({errMsg:"setTabBarItem:fail tabbar item not found"})}a.list=l};var t=this.conf.list;var r=this.conf.customRoutes;if(Object.prototype.toString.call(t)!=="[object Array]"||t.length<2||t.length>5){throw new Error("tabBar 配置错误")}this.homePage=addLeadingSlash(this.conf.homePage);var o=function(e){var a;var t=r[e];e=addLeadingSlash(e);if(typeof t==="string"){n.customRoutes.push([e,addLeadingSlash(t)])}else if((t===null||t===void 0?void 0:t.length)>0){(a=n.customRoutes).push.apply(a,t.map((function(a){return[e,addLeadingSlash(a)]})))}};var n=this;for(var s in r){o(s)}t.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=t;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var a=this.conf.basename||"/";var t;if(e==="hash"){var r=window.location.href;var o=r.indexOf("#");t=o===-1?"":r.substring(o+1)}else{t=location.pathname}var n=addLeadingSlash(stripBasename(t,a));return decodeURI(n==="/"?this.homePage:n)};e.prototype.bindEvent=function(){Taro.eventCenter.on("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.on("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){Taro.eventCenter.off("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.off("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,a;var t=this;var r=this.tabbarPos,o=r===void 0?"bottom":r;var n=this.status;var s=classnames("weui-tabbar",(e={},e["taro-tabbar__border-"+(this.borderStyle||"black")]=true,e));var i=this.selectedIndex===-1||n===STATUS_HIDE;var l=n===STATUS_SLIDEOUT;return h(Host,{class:classnames(basicTabBarClassName,basicTabBarClassName+"-"+o,(a={},a[hideTabBarClassName]=i,a[hideTabBarWithAnimationClassName]=l,a))},h("div",{class:s,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,a){var r=t.selectedIndex===a;var o;var n;if(r){o=t.selectedColor||"";n=e.selectedIconPath}else{o=t.color||"";n=e.iconPath}return h(TabbarItem,{index:a,onSelect:t.switchTab.bind(t),isSelected:r,textColor:o,iconPath:n,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Tabbar.style=indexCss;export{Tabbar as taro_tabbar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-1d67274c.js";import{c as classnames}from"./index-cd1a2d33.js";var indexCss="taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";var Text=function(){function e(e){registerInstance(this,e);this.selectable=false}e.prototype.render=function(){var e=classnames({"taro-text__selectable":this.selectable});return h(Host,{class:e},h("slot",null))};return e}();Text.style=indexCss;export{Text as taro_text_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-1d67274c.js";var indexCss="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Textarea=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onChange=createEvent(this,"change",7);this.onLineChange=createEvent(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();t.handleLineChange();t.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=t.getNumberOfLines();if(e!==t.line){t.line=e;t.onLineChange.emit({height:t.textareaRef.clientHeight,lineCount:t.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,a=e.offsetHeight,i=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(a>=i){e.style.minHeight=0;e.style.height=a+t+"px";e.style.overflow="hidden";if(i<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(a-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=a+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return a}}else{return i}};this.getNumberOfLines=function(){var e=t.textareaRef,n=window.getComputedStyle?window.getComputedStyle(e):e.style,a=parseInt(n.lineHeight,10),i=t.calculateContentHeight(e,a),o=Math.floor(i/a);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,i=t.disabled,o=t.maxlength,r=t.autoFocus,l=t.autoHeight,s=t.name,u=t.nativeProps,c=t.handleInput,g=t.handleFocus,f=t.handleBlur,p=t.handleChange;var d={};if(l){d.rows=this.line}return h("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(l?"auto-height":""),value:fixControlledValue(n),placeholder:a,name:s,disabled:i,maxlength:o,autofocus:r,onInput:c,onFocus:g,onBlur:f,onChange:p},u,d))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Textarea.style=indexCss;export{Textarea as taro_textarea_core};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,i=t.length,a=e.length;r<i;r++,a++)e[a]=t[r];return e};import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-
|
|
1
|
+
var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,i=t.length,a=e.length;r<i;r++,a++)e[a]=t[r];return e};import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-1d67274c.js";import{a as createCommonjsModule,b as commonjsGlobal,g as getDefaultExportFromCjs,c as classnames}from"./index-cd1a2d33.js";import{t as throttle}from"./index-cad8203e.js";var formatTime=function(e){if(!e)return"";var t=Math.round(e%60);var r=Math.round((e-t)/60);return(r<10?"0"+r:r)+":"+(t<10?"0"+t:t)};var calcDist=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))};var normalizeNumber=function(e){return Math.max(-1,Math.min(e,1))};var screenFn=function(){var e;var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var r=["webkitEnterFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"];var i=0;var a=t.length;var n={};for(;i<a;i++){e=t[i];if(e&&e[1]in document){for(i=0;i<e.length;i++){n[t[0][i]]=e[i]}return n}}if(!n[t[0][0]]){for(i=0;i<r.length;i++){n[t[0][i]]=r[i]}}return n}();var isHls=function(e){return/\.(m3u8)($|\?)/i.test(e)};var __awaiter$2=undefined&&undefined.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function o(e){try{l(i["throw"](e))}catch(e){n(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,o)}l((i=i.apply(e,t||[])).next())}))};var VideoControl=function(){function e(e){var t=this;registerInstance(this,e);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=function(e){var r=e-t.progressDimensions.left;r=Math.max(r,0);r=Math.min(r,t.progressDimensions.width);return r/t.progressDimensions.width};this.onDragProgressBallStart=function(){t.isDraggingProgressBall=true;t.hideControlsTimer&&clearTimeout(t.hideControlsTimer)};this.onClickProgress=function(e){e.stopPropagation();var r=t.calcPercentage(e.pageX);t.seekFunc(r*t.duration);t.toggleVisibility(true)}}e.prototype.onDocumentTouchMove=function(e){if(!this.isDraggingProgressBall)return;var t=e.touches[0].pageX;this.percentage=this.calcPercentage(t);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};e.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};e.prototype.setProgressBall=function(e){return __awaiter$2(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.progressBallRef){this.progressBallRef.style.left=e*100+"%"}return[2]}))}))};e.prototype.toggleVisibility=function(e){return __awaiter$2(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(i){t=e===undefined?!this.visible:e;if(t){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){r.toggleVisibility(false)}),2e3)}this.controlsRef.style.visibility="visible"}else{this.controlsRef.style.visibility="hidden"}this.visible=!!t;return[2]}))}))};e.prototype.getIsDraggingProgressBall=function(){return __awaiter$2(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.isDraggingProgressBall]}))}))};e.prototype.setCurrentTime=function(e){return __awaiter$2(this,void 0,void 0,(function(){return __generator(this,(function(t){this.currentTimeRef.innerHTML=formatTime(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,r=t.controls,i=t.currentTime,a=t.duration,n=t.isPlaying,s=t.pauseFunc,o=t.playFunc,l=t.showPlayBtn,u=t.showProgress;var f=formatTime(a);var c;if(!l){c=null}else if(n){c=h("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:s})}else{c=h("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:o})}return h(Host,{class:"taro-video-bar taro-video-bar-full"},r&&h("div",{class:"taro-video-controls"},c,u&&h("div",{class:"taro-video-current-time",ref:function(t){return e.currentTimeRef=t}},formatTime(i)),u&&h("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},h("div",{class:"taro-video-progress",ref:function(t){if(!t)return;var r=t.getBoundingClientRect();e.progressDimensions.left=r.left;e.progressDimensions.width=r.width}},h("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),h("div",{class:"taro-video-ball",ref:function(t){return e.progressBallRef=t},onTouchStart:this.onDragProgressBallStart,style:{left:(f?this.currentTime/a*100:0)+"%"}},h("div",{class:"taro-video-inner"})))),u&&h("div",{class:"taro-video-duration"},f)),h("slot",null))};Object.defineProperty(e.prototype,"controlsRef",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();var hls=createCommonjsModule((function(e,t){typeof window!=="undefined"&&function t(r,i){e.exports=i()}(commonjsGlobal,(function(){return function(e){var t={};function r(i){if(t[i]){return t[i].exports}var a=t[i]={i:i,l:false,exports:{}};e[i].call(a.exports,a,a.exports,r);a.l=true;return a.exports}r.m=e;r.c=t;r.d=function(e,t,i){if(!r.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:i})}};r.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};r.t=function(e,t){if(t&1)e=r(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var i=Object.create(null);r.r(i);Object.defineProperty(i,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="/dist/";return r(r.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
|
|
2
2
|
/*!*********************************************!*\
|
|
3
3
|
!*** ./node_modules/eventemitter3/index.js ***!
|
|
4
4
|
\*********************************************/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1d67274c.js";import{c as classnames}from"./index-cd1a2d33.js";var indexCss="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var View=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(e){if(e.nodeType===document.COMMENT_NODE)t.removeChild(e)}))};t.prototype.render=function(){var t;var e=classnames((t={},t[""+this.hoverClass]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return h(Host,Object.assign({class:e},i),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();View.style=indexCss;export{View as taro_view_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-1d67274c.js";var VoipRoom=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){console.error("H5 暂不支持 VoipRoom 组件!")};o.prototype.render=function(){return h(Host,null)};return o}();export{VoipRoom as taro_voip_room_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./index-1d67274c.js";var indexCss="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;z-index:999;width:100%;height:100%}";var WebView=function(){function e(e){registerInstance(this,e);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7)}e.prototype.render=function(){var e=this,r=e.src,t=e.onLoad,o=e.onError;return h("iframe",{class:"taro-webview",onLoad:function(e){e.stopPropagation();t.emit({src:r})},onError:function(e){e.stopPropagation();o.emit({src:r})},src:r})};return e}();WebView.style=indexCss;export{WebView as taro_web_view_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as r,H as o}from"./p-
|
|
1
|
+
import{r as s,h as r,H as o}from"./p-8c7cf814.js";let t=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:t,borderRadius:i,fontSize:e,strokeWidth:a,activeColor:n,backgroundColor:c,active:h}=this,l=s>100?100:s<0?0:s,p=h?"width 1s ease-in-out":"none";return r(o,{class:"weui-progress"},r("div",{class:"weui-progress__bar",style:{height:a+"px",backgroundColor:c}},r("div",{class:"weui-progress__inner-bar",style:{width:`${l}%`,transition:p,WebkitTransition:p,backgroundColor:n,borderRadius:i?`${i}px`:"0px"}})),t&&r("div",{class:"weui-progress__opr",style:{"font-size":`${e}px`}},r("span",null,l,"%")))}};export{t as taro_progress_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as e}from"./p-
|
|
1
|
+
import{r as o,h as r,H as e}from"./p-8c7cf814.js";let n=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 PageContainer 组件!")}render(){return r(e,null)}};export{n as taro_page_container_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as a,H as r}from"./p-
|
|
1
|
+
import{r as o,h as a,H as r}from"./p-8c7cf814.js";let t=class{constructor(a){o(this,a)}componentDidLoad(){console.error("H5 暂不支持 FunctionalPageNavigator 组件!")}render(){return a(r,null)}};export{t as taro_functional_page_navigator_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,g as e,H as o}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,g as e,H as o}from"./p-8c7cf814.js";import{d as n}from"./p-5746d7ce.js";let r=class{constructor(i){t(this,i),this.onChange=s(this,"onselect",7),this.onSelectStart=s(this,"onselectstart",7),this.onSelectEnd=s(this,"onselectend",7),this.initialPosition="0",this.paddingVertical=0,this.isInit=!1,this.isMove=!1,this.handleSelected=n((()=>{const t=this.el.childNodes;let s=0,i="0";for(const e in t){const o=t[e].offsetHeight;if(s+o/2>this.el.scrollTop){i=e;break}s+=o}this.el.scrollTo({top:s,behavior:"smooth"}),this.onChange.emit({curIndex:this.col,selectedIndex:i}),this.onSelectEnd.emit()}),500)}onScroll(t){this.isMove||(this.isMove=!0,this.onSelectStart.emit()),this.handleSelected()}onMouseEnd(){this.isMove&&(this.isMove=!1,this.handleSelected())}onTouchEnd(){this.isMove=!1,this.handleSelected()}componentDidUpdate(){if(!this.isInit){this.isInit=!0;const t=this.el.childNodes;let s=0,i=0;for(const e in t){const o=t[e];if(this.initialPosition===e||!o||"number"!=typeof o.offsetHeight)break;i+=o.offsetHeight,s++}this.el.scrollTo({top:i}),s>=t.length&&this.onChange.emit({curIndex:this.col,selectedIndex:s-1})}}render(){const{paddingVertical:t=0}=this;return i(o,{class:"taro-picker-view-column-container",style:{"padding-top":`${t}px`,"padding-bottom":`${t}px`}})}get el(){return e(this)}};r.style=".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";export{r as taro_picker_view_column_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.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
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var n,o,e,i;return{setters:[function(t){n=t.r;o=t.c;e=t.h;i=t.g}],execute:function(){var r="taro-canvas-core{display:block;position:relative;width:300px;height:150px}";var s=500;var c=t("taro_canvas_core",function(){function t(t){var e=this;n(this,t);this.onLongTap=o(this,"longtap",7);this.nativeProps={};this.onTouchStart=function(){e.timer=setTimeout((function(){e.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(e.timer)};this.onTouchEnd=function(){clearTimeout(e.timer)}}t.prototype.render=function(){var t=this,n=t.canvasId,o=t.nativeProps;return e("canvas",Object.assign({"canvas-id":n,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},o))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());c.style=r}}}));
|
|
@@ -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-8c7cf814.js";let e=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 Editor 组件!")}render(){return r(t,null)}};export{e as taro_editor_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-8c7cf814.js";let a=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 MatchMedia 组件!")}render(){return r(t,null)}};export{a as taro_match_media_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(r){"use strict";var s,t,e;return{setters:[function(r){s=r.r;t=r.h;e=r.H}],execute:function(){var o=r("taro_progress_core",function(){function r(r){s(this,r);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}r.prototype.render=function(){var r=this,s=r.percent,o=r.showInfo,i=r.borderRadius,n=r.fontSize,a=r.strokeWidth,u=r.activeColor,c=r.backgroundColor,d=r.active;var h=s>100?100:s<0?0:s;var l={height:a+"px",backgroundColor:c};var p=d?"width 1s ease-in-out":"none";var v={width:h+"%",transition:p,WebkitTransition:p,backgroundColor:u,borderRadius:i?i+"px":"0px"};return t(e,{class:"weui-progress"},t("div",{class:"weui-progress__bar",style:l},t("div",{class:"weui-progress__inner-bar",style:v})),o&&t("div",{class:"weui-progress__opr",style:{"font-size":n+"px"}},t("span",null,h,"%")))};return r}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as r,H as a,g as e}from"./p-
|
|
1
|
+
import{r as o,c as t,h as r,H as a,g as e}from"./p-8c7cf814.js";import{c as i}from"./p-7e5d2d7a.js";let n=class{constructor(r){o(this,r),this.onSubmit=t(this,"tarobuttonsubmit",7),this.onReset=t(this,"tarobuttonreset",7),this.hoverClass="button-hover",this.type="",this.hoverStartTime=20,this.hoverStayTime=70,this.loading=!1,this.formType=null,this.hover=!1,this.touch=!1}onTouchStart(){this.disabled||(this.touch=!0,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime))}onTouchEnd(){this.disabled||(this.touch=!1,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime),"submit"===this.formType?this.onSubmit.emit():"reset"===this.formType&&this.onReset.emit())}render(){const{disabled:o,hoverClass:t,type:e,size:n,plain:b,loading:c,hover:d}=this,l=i({[`${t}`]:d&&!o});return r(a,{class:l,type:e,plain:b,loading:c,size:n,disabled:o},c&&r("i",{class:"weui-loading"}),r("slot",null))}get el(){return e(this)}};n.style='taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:" ";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}';export{n as taro_button_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as e,H as o}from"./p-
|
|
1
|
+
import{r,h as e,H as o}from"./p-8c7cf814.js";let s=class{constructor(e){r(this,e)}componentDidLoad(){console.error("H5 暂不支持 LivePusher 组件!")}render(){return e(o,null)}};export{s as taro_live_pusher_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.h;r=e.H}],execute:function(){var o=e("taro_share_element_core",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){console.error("H5 暂不支持 ShareElement 组件!")};e.prototype.render=function(){return n(r,null)};return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(e){"use strict";var t,r,n,i;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.g}],execute:function(){var o=e("taro_form_core",function(){function e(e){t(this,e);this.onSubmit=r(this,"submit",7);this.value={}}e.prototype.watchSlotParent=function(e){if(!this.orginalAppendChild){this.orginalAppendChild=this.el.appendChild;this.orginalInsertBefore=this.el.insertBefore;this.orginalReplaceChild=this.el.replaceChild;this.orginalRemoveChild=this.el.removeChild}if(!e){this.el.appendChild=this.orginalAppendChild;this.el.insertBefore=this.orginalInsertBefore;this.el.replaceChild=this.orginalReplaceChild;this.el.removeChild=this.orginalRemoveChild;return}this.el.appendChild=function(t){return e.appendChild(t)};this.el.insertBefore=function(t,r){return e.insertBefore(t,r)};this.el.replaceChild=function(t,r){return e.replaceChild(t,r)};this.el.removeChild=function(t){return e.removeChild(t)}};e.prototype.onButtonSubmit=function(e){e.stopPropagation();this.value=this.getFormValue();this.onSubmit.emit({value:this.value})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;this.value=this.getFormValue();Object.defineProperty(this.el,"value",{get:function(){return e.value},configurable:true})};e.prototype.componentDidRender=function(){this.setSlotParent(this.form)};e.prototype.getFormValue=function(){var e=this.el;var t=[];var r=e.getElementsByTagName("input");for(var n=0;n<r.length;n++){t.push(r[n])}var i={};var o={};t.forEach((function(e){if(e.className.indexOf("weui-switch")!==-1){i[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){o[e.name]=true;i[e.name]=e.value}else{if(!o[e.name]){i[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(o[e.name]){i[e.name].push(e.value)}else{o[e.name]=true;i[e.name]=[e.value]}}else{if(!o[e.name]){i[e.name]=[]}}return}i[e.name]=e.value}));var a=e.getElementsByTagName("textarea");var l=[];for(var s=0;s<a.length;s++){l.push(a[s])}l.forEach((function(e){i[e.name]=e.value}));return i};e.prototype.setSlotParent=function(e){this.slotParent=e};e.prototype.render=function(){var e=this;return n("form",{ref:function(t){if(t){e.form=t}}},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{slotParent:["watchSlotParent"]}},enumerable:false,configurable:true});return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js","./p-5f4d0d5b.system.js"],(function(o){"use strict";var t,r,e,a,i,n;return{setters:[function(o){t=o.r;r=o.c;e=o.h;a=o.H;i=o.g},function(o){n=o.c}],execute:function(){var c='taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:" ";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}';var b=o("taro_button_core",function(){function o(o){t(this,o);this.onSubmit=r(this,"tarobuttonsubmit",7);this.onReset=r(this,"tarobuttonreset",7);this.hoverClass="button-hover";this.type="";this.hoverStartTime=20;this.hoverStayTime=70;this.loading=false;this.formType=null;this.hover=false;this.touch=false}o.prototype.onTouchStart=function(){var o=this;if(this.disabled){return}this.touch=true;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(o.touch){o.hover=true}}),this.hoverStartTime)}};o.prototype.onTouchEnd=function(){var o=this;if(this.disabled){return}this.touch=false;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(!o.touch){o.hover=false}}),this.hoverStayTime)}if(this.formType==="submit"){this.onSubmit.emit()}else if(this.formType==="reset"){this.onReset.emit()}};o.prototype.render=function(){var o;var t=this,r=t.disabled,i=t.hoverClass,c=t.type,b=t.size,l=t.plain,d=t.loading,s=t.hover;var u=n((o={},o[""+i]=s&&!r,o));return e(a,{class:u,type:c,plain:l,loading:d,size:b,disabled:r},d&&e("i",{class:"weui-loading"}),e("slot",null))};Object.defineProperty(o.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return o}());b.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(r){"use strict";var e,t,o;return{setters:[function(r){e=r.r;t=r.h;o=r.H}],execute:function(){var n=r("taro_keyboard_accessory_core",function(){function r(r){e(this,r)}r.prototype.componentDidLoad=function(){console.error("H5 暂不支持 KeyboardAccessory 组件!")};r.prototype.render=function(){return t(o,null)};return r}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as h}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i,g as h}from"./p-8c7cf814.js";function s(t){return null!=t?t:""}let a=class{constructor(i){t(this,i),this.onInput=e(this,"input",7),this.onFocus=e(this,"focus",7),this.onBlur=e(this,"blur",7),this.onChange=e(this,"change",7),this.onLineChange=e(this,"linechange",7),this.disabled=!1,this.maxlength=140,this.autoFocus=!1,this.autoHeight=!1,this.nativeProps={},this.line=1,this.handleInput=t=>{t.stopPropagation(),this.handleLineChange(),this.onInput.emit({value:t.target.value,cursor:t.target.value.length})},this.handleFocus=t=>{this.onFocus.emit({value:t.target.value})},this.handleBlur=t=>{this.onBlur.emit({value:t.target.value})},this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:t.target.value})},this.handleLineChange=()=>{const t=this.getNumberOfLines();t!==this.line&&(this.line=t,this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line}))},this.calculateContentHeight=(t,e)=>{let i=t.style.height,h=t.offsetHeight,s=t.scrollHeight,a=t.style.overflow,o=t.style.minHeight||null;if(!(h>=s))return s;if(t.style.minHeight=0,t.style.height=h+e+"px",t.style.overflow="hidden",s<t.scrollHeight){for(;t.offsetHeight>=t.scrollHeight;)t.style.height=(h-=e)+"px";for(;t.offsetHeight<t.scrollHeight;)t.style.height=h+++"px";return t.style.height=i,t.style.overflow=a,t.style.minHeight=o,h}},this.getNumberOfLines=()=>{const t=this.textareaRef,e=window.getComputedStyle?window.getComputedStyle(t):t.style,i=parseInt(e.lineHeight,10),h=this.calculateContentHeight(t,i);return Math.floor(h/i)}}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.textareaRef.value,set:t=>this.value=t,configurable:!0}),this.autoFocus&&this.textareaRef.focus()}render(){const{value:t,placeholder:e,disabled:h,maxlength:a,autoFocus:o,autoHeight:n,name:r,nativeProps:l,handleInput:u,handleFocus:c,handleBlur:p,handleChange:d}=this,g={};return n&&(g.rows=this.line),i("textarea",Object.assign({ref:t=>{t&&(this.textareaRef=t)},class:"taro-textarea "+(n?"auto-height":""),value:s(t),placeholder:e,name:r,disabled:h,maxlength:a,autofocus:o,onInput:u,onFocus:c,onBlur:p,onChange:d},l,g))}get el(){return h(this)}};a.style="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";export{a as taro_textarea_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.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 o=t("taro_camera_core",function(){function t(t){r(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 Camera 组件!")};t.prototype.render=function(){return e(n,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as e,h as t,H as a}from"./p-
|
|
1
|
+
import{r as s,c as e,h as t,H as a}from"./p-8c7cf814.js";import r from"@tarojs/taro";import{c as i}from"./p-7e5d2d7a.js";let o=class{constructor(t){s(this,t),this.onSuccess=e(this,"cuccess",7),this.onFail=e(this,"fail",7),this.onComplete=e(this,"Complete",7),this.openType="navigate",this.isHover=!1,this.delta=0}onClick(){const{openType:s,onSuccess:e,onFail:t,onComplete:a}=this;let i=Promise.resolve();switch(s){case"navigate":i=r.navigateTo({url:this.url});break;case"redirect":i=r.redirectTo({url:this.url});break;case"switchTab":i=r.switchTab({url:this.url});break;case"reLaunch":i=r.reLaunch({url:this.url});break;case"navigateBack":i=r.navigateBack({delta:this.delta});break;case"exit":i=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'))}i&&i.then((s=>{e.emit(s)})).catch((s=>{t.emit(s)})).finally((()=>{a.emit()}))}render(){const{isHover:s,hoverClass:e}=this;return t(a,{class:i({[e]:s})})}};o.style=".navigator-hover{background:#efefef}";export{o as taro_navigator_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,H as r}from"./p-
|
|
1
|
+
import{r as e,h as o,H as r}from"./p-8c7cf814.js";let t=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 PageMeta 组件!")}render(){return o(r,null)}};export{t as taro_page_meta_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js","./p-5f4d0d5b.system.js"],(function(t){"use strict";var i,e,o,s,n;return{setters:[function(t){i=t.r;e=t.c;o=t.h;s=t.H},function(t){n=t.c}],execute:function(){var r="taro-cover-view-core{display:block}";var h=t("taro_cover_view_core",function(){function t(t){i(this,t);this.onLongPress=e(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var i=Date.now()-this.startTime;if(i<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.render=function(){var t;var i=n((t={},t[""+this.hoverClass]=this.hover,t));var e={};if(!!this.animation){e["animation"]=this.animation;e["data-animation"]=this.animation}return o(s,Object.assign({class:i},e),o("slot",null))};return t}());h.style=r}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function l(e){try{s(t.next(e))}catch(e){i(e)}}function o(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(l,o)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(n)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r){for(var n=0,t=r.length,a=e.length;n<t;n++,a++)e[a]=r[n];return e};System.register([],(function(e,r){"use strict";return{execute:function(){var n=this;var t="taro-components";var a;var i;var l=false;var o=false;var s=false;var f=false;var $=false;var u=typeof window!=="undefined"?window:{};var c=u.document||{head:{}};var v={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var d=e("p",(function(e){return Promise.resolve(e)}));var p=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var h=function(e,r,n,t){if(n){n.map((function(n){var t=n[0],a=n[1],i=n[2];var l=g(e,t);var o=m(r,i);var s=y(t);v.ael(l,a,o,s);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return v.rel(l,a,o,s)}))}))}};var m=function(e,r){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[r](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,n])}}}catch(e){Ee(e)}}};var g=function(e,r){if(r&4)return c;return e};var y=function(e){return(e&2)!==0};var b="{visibility:hidden}.hydrated{visibility:inherit}";var w="http://www.w3.org/1999/xlink";var N=function(e,r){if(r===void 0){r=""}{return function(){return}}};var _=function(e,r){{return function(){return}}};var R=new WeakMap;var k=function(e,r,n){var t=je.get(e);if(p&&n){t=t||new CSSStyleSheet;t.replace(r)}else{t=r}je.set(e,t)};var S=function(e,r,n,t){var a=T(r);var i=je.get(a);e=e.nodeType===11?e:c;if(i){if(typeof i==="string"){e=e.head||e;var l=R.get(e);var o=void 0;if(!l){R.set(e,l=new Set)}if(!l.has(a)){{{o=c.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[i])}}return a};var x=function(e){var r=e.$cmpMeta$;var n=e.$hostElement$;var t=N("attachStyles",r.$tagName$);S(n.getRootNode(),r);t()};var T=function(e,r){return"sc-"+e.$tagName$};var C={};var E=function(e){e=typeof e;return e==="object"||e==="function"};var L=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var a=null;var i=null;var l=null;var o=false;var s=false;var f=[];var $=function(r){for(var n=0;n<r.length;n++){a=r[n];if(Array.isArray(a)){$(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!E(a)){a=String(a)}if(o&&s){f[f.length-1].$text$+=a}else{f.push(o?P(null,a):a)}s=o}}};$(n);if(r){if(r.key){i=r.key}if(r.name){l=r.name}{var u=r.className||r.class;if(u){r.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,f,M)}var c=P(e,null);c.$attrs$=r;if(f.length>0){c.$children$=f}{c.$key$=i}{c.$name$=l}return c}));var P=function(e,r){var n={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var A=function(e){return e&&e.$tag$===j};var M={forEach:function(e,r){return e.map(I).forEach(r)},map:function(e,r){return e.map(I).map(r).map(O)}};var I=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var O=function(e){if(typeof e.vtag==="function"){var r=Object.assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return L.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[]))}var n=P(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,r,n,t,a,i){if(n!==t){var l=Ce(e,r);var o=r.toLowerCase();if(r==="class"){var s=e.classList;var f=U(n);var $=U(t);s.remove.apply(s,f.filter((function(e){return e&&!$.includes(e)})));s.add.apply(s,$.filter((function(e){return e&&!f.includes(e)})))}else if(r==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){e.style.setProperty(c,t[c])}else{e.style[c]=t[c]}}}}else if(r==="key");else if(r==="ref"){if(t){t(e)}}else if(!l&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(Ce(u,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(n){v.rel(e,r,n,false)}if(t){v.ael(e,r,t,false)}}else{var d=E(t);if((l||d&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var p=t==null?"":t;if(r==="list"){l=false}else if(n==null||e[r]!=p){e[r]=p}}else{e[r]=t}}catch(e){}}var h=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){r=o;h=true}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(w,r)}else{e.removeAttribute(r)}}}else if((!l||i&4||a)&&!d){t=t===true?"":t;if(h){e.setAttributeNS(w,r,t)}else{e.setAttribute(r,t)}}}}};var z=/\s/;var U=function(e){return!e?[]:e.split(z)};var q=function(e,r,n,t){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||C;var l=r.$attrs$||C;{for(t in i){if(!(t in l)){B(a,t,i[t],undefined,n,r.$flags$)}}}for(t in l){B(a,t,i[t],l[t],n,r.$flags$)}};var H=function(e,r,n,t){var o=r.$children$[n];var $=0;var u;var v;var d;if(!l){s=true;if(o.$tag$==="slot"){o.$flags$|=o.$children$?2:1}}if(o.$text$!==null){u=o.$elm$=c.createTextNode(o.$text$)}else if(o.$flags$&1){u=o.$elm$=c.createTextNode("")}else{u=o.$elm$=c.createElement(o.$flags$&2?"slot-fb":o.$tag$);{q(null,o,f)}if(o.$children$){for($=0;$<o.$children$.length;++$){v=H(e,o,$);if(v){u.appendChild(v)}}}}{u["s-hn"]=i;if(o.$flags$&(2|1)){u["s-sr"]=true;u["s-cr"]=a;u["s-sn"]=o.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===o.$tag$&&e.$elm$){V(e.$elm$,false)}}}return u};var V=function(e,r){v.$flags$|=1;var n=e.childNodes;for(var t=n.length-1;t>=0;t--){var a=n[t];if(a["s-hn"]!==i&&a["s-ol"]){K(a).insertBefore(a,J(a));a["s-ol"].remove();a["s-ol"]=undefined;s=true}if(r){V(a,r)}}v.$flags$&=~1};var W=function(e,r,n,t,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var o;for(;a<=i;++a){if(t[a]){o=H(null,n,a);if(o){t[a].$elm$=o;l.insertBefore(o,J(r))}}}};var D=function(e,r,n,t,a){for(;r<=n;++r){if(t=e[r]){a=t.$elm$;re(t);{o=true;if(a["s-ol"]){a["s-ol"].remove()}else{V(a,true)}}a.remove()}}};var F=function(e,r,n,t){var a=0;var i=0;var l=0;var o=0;var s=r.length-1;var f=r[0];var $=r[s];var u=t.length-1;var c=t[0];var v=t[u];var d;var p;while(a<=s&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--s]}else if(c==null){c=t[++i]}else if(v==null){v=t[--u]}else if(G(f,c)){Q(f,c);f=r[++a];c=t[++i]}else if(G($,v)){Q($,v);$=r[--s];v=t[--u]}else if(G(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){V(f.$elm$.parentNode,false)}Q(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=t[--u]}else if(G($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){V($.$elm$.parentNode,false)}Q($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--s];c=t[++i]}else{l=-1;{for(o=a;o<=s;++o){if(r[o]&&r[o].$key$!==null&&r[o].$key$===c.$key$){l=o;break}}}if(l>=0){p=r[l];if(p.$tag$!==c.$tag$){d=H(r&&r[i],n,l)}else{Q(p,c);r[l]=undefined;d=p.$elm$}c=t[++i]}else{d=H(r&&r[i],n,i);c=t[++i]}if(d){{K(f.$elm$).insertBefore(d,J(f.$elm$))}}}}if(a>s){W(e,t[u+1]==null?null:t[u+1].$elm$,n,t,i,u)}else if(i>u){D(r,a,s)}};var G=function(e,r){if(e.$tag$===r.$tag$){if(e.$tag$==="slot"){return e.$name$===r.$name$}{return e.$key$===r.$key$}}return false};var J=function(e){return e&&e["s-ol"]||e};var K=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var Q=function(e,r){var n=r.$elm$=e.$elm$;var t=e.$children$;var a=r.$children$;var i=r.$tag$;var l=r.$text$;var o;if(l===null){{if(i==="slot");else{q(e,r,f)}}if(t!==null&&a!==null){F(n,t,r,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}W(n,null,r,a,0,a.length-1)}else if(t!==null){D(t,0,t.length-1)}}else if(o=n["s-cr"]){o.parentNode.textContent=l}else if(e.$text$!==l){n.data=l}};var X=function(e){var r=e.childNodes;var n;var t;var a;var i;var l;var o;for(t=0,a=r.length;t<a;t++){n=r[t];if(n.nodeType===1){if(n["s-sr"]){l=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){o=r[i].nodeType;if(r[i]["s-hn"]!==n["s-hn"]||l!==""){if(o===1&&l===r[i].getAttribute("slot")){n.hidden=true;break}}else{if(o===1||o===3&&r[i].textContent.trim()!==""){n.hidden=true;break}}}}X(n)}}};var Y=[];var Z=function(e){var r;var n;var t;var a;var i;var l;var s=0;var f=e.childNodes;var $=f.length;for(;s<$;s++){r=f[s];if(r["s-sr"]&&(n=r["s-cr"])&&n.parentNode){t=n.parentNode.childNodes;a=r["s-sn"];for(l=t.length-1;l>=0;l--){n=t[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==r["s-hn"]){if(ee(n,a)){i=Y.find((function(e){return e.$nodeToRelocate$===n}));o=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=r}else{Y.push({$slotRefNode$:r,$nodeToRelocate$:n})}if(n["s-sr"]){Y.map((function(e){if(ee(e.$nodeToRelocate$,n["s-sn"])){i=Y.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!Y.some((function(e){return e.$nodeToRelocate$===n}))){Y.push({$nodeToRelocate$:n})}}}}if(r.nodeType===1){Z(r)}}};var ee=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var re=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(re)}};var ne=function(e,r){var n=e.$hostElement$;var t=e.$cmpMeta$;var f=e.$vnode$||P(null,null);var $=A(r)?r:L(null,null,r);i=n.tagName;$.$tag$=null;$.$flags$|=4;e.$vnode$=$;$.$elm$=f.$elm$=n;{a=n["s-cr"];l=(t.$flags$&1)!==0;o=false}Q(f,$);{v.$flags$|=1;if(s){Z($.$elm$);var u=void 0;var d=void 0;var p=void 0;var h=void 0;var m=void 0;var g=void 0;var y=0;for(;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(!d["s-ol"]){p=c.createTextNode("");p["s-nr"]=d;d.parentNode.insertBefore(d["s-ol"]=p,d)}}for(y=0;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(u.$slotRefNode$){h=u.$slotRefNode$.parentNode;m=u.$slotRefNode$.nextSibling;p=d["s-ol"];while(p=p.previousSibling){g=p["s-nr"];if(g&&g["s-sn"]===d["s-sn"]&&h===g.parentNode){g=g.nextSibling;if(!g||!g["s-nr"]){m=g;break}}}if(!m&&h!==d.parentNode||d.nextSibling!==m){if(d!==m){if(!d["s-hn"]&&d["s-ol"]){d["s-hn"]=d["s-ol"].parentNode.nodeName}h.insertBefore(d,m)}}}else{if(d.nodeType===1){d.hidden=true}}}}if(o){X($.$elm$)}v.$flags$&=~1;Y.length=0}};var te=e("g",(function(e){return Se(e).$hostElement$}));var ae=e("c",(function(e,r,n){var t=te(e);return{emit:function(e){return ie(t,r,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var ie=function(e,r,n){var t=v.ce(r,n);e.dispatchEvent(t);return t};var le=function(e,r){if(r&&!e.$onRenderResolve$&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.$onRenderResolve$=r})))}};var oe=function(e,r){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}le(e,e.$ancestorComponent$);var n=function(){return se(e,r)};return Ue(n)};var se=function(e,r){var n=N("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(r){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var r=e[0],n=e[1];return ve(t,r,n)}));e.$queuedListeners$=null}}{a=ve(t,"componentWillLoad")}}else{{a=ve(t,"componentWillUpdate")}}n();return de(a,(function(){return fe(e,t,r)}))};var fe=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,a,i,l,o,s;return __generator(this,(function(f){n=e.$hostElement$;a=N("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(t){x(e)}l=N("render",e.$cmpMeta$.$tagName$);{$e(e,r)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}l();a();{o=n["s-p"];s=function(){return ue(e)};if(o.length===0){s()}else{Promise.all(o).then(s);e.$flags$|=4;o.length=0}}return[2]}))}))};var $e=function(e,r,n){try{r=r.render();{e.$flags$&=~16}{e.$flags$|=2}{{{ne(e,r)}}}}catch(r){Ee(r,e.$hostElement$)}return null};var ue=function(e){var r=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var t=N("postUpdate",r);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{ve(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{pe(n)}{ve(a,"componentDidLoad")}t();{e.$onReadyResolve$(n);if(!i){ce()}}}else{{ve(a,"componentDidUpdate")}t()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){ze((function(){return oe(e,false)}))}e.$flags$&=~(4|512)}};var ce=function(e){{pe(c.documentElement)}ze((function(){return ie(u,"appload",{detail:{namespace:t}})}))};var ve=function(e,r,n){if(e&&e[r]){try{return e[r](n)}catch(e){Ee(e)}}return undefined};var de=function(e,r){return e&&e.then?e.then(r):r()};var pe=function(e){return e.classList.add("hydrated")};var he=function(e,r){if(e!=null&&!E(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var me=function(e,r){return Se(e).$instanceValues$.get(r)};var ge=function(e,r,n,t){var a=Se(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(r);var o=a.$flags$;var s=a.$lazyInstance$;n=he(n,t.$members$[r][0]);if((!(o&8)||l===undefined)&&n!==l){a.$instanceValues$.set(r,n);if(s){if(t.$watchers$&&o&128){var f=t.$watchers$[r];if(f){f.map((function(e){try{s[e](n,l,r)}catch(e){Ee(e,i)}}))}}if((o&(2|16))===2){oe(a,false)}}}};var ye=function(e,r,n){if(r.$members$){if(e.watchers){r.$watchers$=e.watchers}var t=Object.entries(r.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(e){ge(this,t,e,r)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var n=Se(this);return n.$onInstancePromise$.then((function(){var r;return(r=n.$lazyInstance$)[t].apply(r,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,r,n){var t=this;v.jmp((function(){var r=i.get(e);if(t.hasOwnProperty(r)){n=t[r];delete t[r]}t[r]=n===null&&typeof t[r]==="boolean"?false:n}))};e.observedAttributes=t.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var r=e[0],n=e[1];var t=n[1]||r;i.set(t,r);return t}))}}return e};var be=function(e,r,t,a,i){return __awaiter(n,void 0,void 0,(function(){var e,n,a,l,o,s,f;return __generator(this,(function($){switch($.label){case 0:if(!((r.$flags$&32)===0))return[3,3];r.$flags$|=32;i=Pe(t);if(!i.then)return[3,2];e=_();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){{t.$watchers$=i.watchers}ye(i,t,2);i.isProxied=true}n=N("createInstance",t.$tagName$);{r.$flags$|=8}try{new i(r)}catch(e){Ee(e)}{r.$flags$&=~8}{r.$flags$|=128}n();if(i.style){a=i.style;l=T(t);if(!je.has(l)){o=N("registerStyles",t.$tagName$);k(l,a,!!(t.$flags$&1));o()}}$.label=3;case 3:s=r.$ancestorComponent$;f=function(){return oe(r,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var we=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$cmpMeta$;var t=N("connectedCallback",n.$tagName$);if(!(r.$flags$&1)){r.$flags$|=1;{if(n.$flags$&(4|8)){Ne(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){le(r,r.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{be(e,r,n)}}else{h(e,r,n.$listeners$)}t()}};var Ne=function(e){var r=e["s-cr"]=c.createComment("");r["s-cn"]=true;e.insertBefore(r,e.firstChild)};var _e=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$lazyInstance$;{if(r.$rmListeners$){r.$rmListeners$.map((function(e){return e()}));r.$rmListeners$=undefined}}{ve(n,"disconnectedCallback")}}};var Re=e("b",(function(e,r){if(r===void 0){r={}}var n=N();var t=[];var a=r.exclude||[];var i=u.customElements;var l=c.head;var o=l.querySelector("meta[charset]");var s=c.createElement("style");var f=[];var $;var d=true;Object.assign(v,r);v.$resourcesUrl$=new URL(r.resourcesUrl||"./",c.baseURI).href;e.map((function(e){return e[1].map((function(r){var n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3]};{n.$members$=r[2]}{n.$listeners$=r[3]}{n.$watchers$={}}var l=n.$tagName$;var o=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;Te(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(d){f.push(this)}else{v.jmp((function(){return we(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;v.jmp((function(){return _e(e)}))};r.prototype.componentOnReady=function(){return Se(this).$onReadyPromise$};return r}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){t.push(l);i.define(l,ye(o,n,1))}}))}));{s.innerHTML=t+b;s.setAttribute("data-styles","");l.insertBefore(s,o?o.nextSibling:l.firstChild)}d=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{v.jmp((function(){return $=setTimeout(ce,30)}))}}n()}));var ke=new WeakMap;var Se=function(e){return ke.get(e)};var xe=e("r",(function(e,r){return ke.set(r.$lazyInstance$=e,r)}));var Te=function(e,r){var n={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}h(e,n,r.$listeners$);return ke.set(e,n)};var Ce=function(e,r){return r in e};var Ee=function(e,r){return(0,console.error)(e,r)};var Le=new Map;var Pe=function(e,n,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Le.get(i);if(l){return l[a]}return r.import("./"+i+".entry.js"+"").then((function(e){{Le.set(i,e)}return e[a]}),Ee)};var je=new Map;var Ae=[];var Me=[];var Ie=function(e,r){return function(n){e.push(n);if(!$){$=true;if(r&&v.$flags$&4){ze(Be)}else{v.raf(Be)}}}};var Oe=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){Ee(e)}}e.length=0};var Be=function(){Oe(Ae);{Oe(Me);if($=Ae.length>0){v.raf(Be)}}};var ze=function(e){return d().then(e)};var Ue=Ie(Me,true)}}}));
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function l(e){try{s(t.next(e))}catch(e){i(e)}}function o(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(l,o)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(n)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r){for(var n=0,t=r.length,a=e.length;n<t;n++,a++)e[a]=r[n];return e};System.register([],(function(e,r){"use strict";return{execute:function(){var n=this;var t="taro-components";var a;var i;var l=false;var o=false;var s=false;var f=false;var $=false;var u=typeof window!=="undefined"?window:{};var c=u.document||{head:{}};var v={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var d=e("p",(function(e){return Promise.resolve(e)}));var p=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var h=function(e,r,n,t){if(n){n.map((function(n){var t=n[0],a=n[1],i=n[2];var l=g(e,t);var o=m(r,i);var s=y(t);v.ael(l,a,o,s);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return v.rel(l,a,o,s)}))}))}};var m=function(e,r){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[r](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,n])}}}catch(e){Ee(e)}}};var g=function(e,r){if(r&4)return c;return e};var y=function(e){return(e&2)!==0};var b="{visibility:hidden}.hydrated{visibility:inherit}";var w="http://www.w3.org/1999/xlink";var N=function(e,r){if(r===void 0){r=""}{return function(){return}}};var _=function(e,r){{return function(){return}}};var R=new WeakMap;var k=function(e,r,n){var t=je.get(e);if(p&&n){t=t||new CSSStyleSheet;t.replace(r)}else{t=r}je.set(e,t)};var S=function(e,r,n,t){var a=T(r);var i=je.get(a);e=e.nodeType===11?e:c;if(i){if(typeof i==="string"){e=e.head||e;var l=R.get(e);var o=void 0;if(!l){R.set(e,l=new Set)}if(!l.has(a)){{{o=c.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[i])}}return a};var x=function(e){var r=e.$cmpMeta$;var n=e.$hostElement$;var t=N("attachStyles",r.$tagName$);S(n.getRootNode(),r);t()};var T=function(e,r){return"sc-"+e.$tagName$};var C={};var E=function(e){e=typeof e;return e==="object"||e==="function"};var L=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var a=null;var i=null;var l=null;var o=false;var s=false;var f=[];var $=function(r){for(var n=0;n<r.length;n++){a=r[n];if(Array.isArray(a)){$(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!E(a)){a=String(a)}if(o&&s){f[f.length-1].$text$+=a}else{f.push(o?P(null,a):a)}s=o}}};$(n);if(r){if(r.key){i=r.key}if(r.name){l=r.name}{var u=r.className||r.class;if(u){r.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,f,M)}var c=P(e,null);c.$attrs$=r;if(f.length>0){c.$children$=f}{c.$key$=i}{c.$name$=l}return c}));var P=function(e,r){var n={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var A=function(e){return e&&e.$tag$===j};var M={forEach:function(e,r){return e.map(O).forEach(r)},map:function(e,r){return e.map(O).map(r).map(I)}};var O=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var I=function(e){if(typeof e.vtag==="function"){var r=Object.assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return L.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[]))}var n=P(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,r,n,t,a,i){if(n!==t){var l=Ce(e,r);var o=r.toLowerCase();if(r==="class"){var s=e.classList;var f=U(n);var $=U(t);s.remove.apply(s,f.filter((function(e){return e&&!$.includes(e)})));s.add.apply(s,$.filter((function(e){return e&&!f.includes(e)})))}else if(r==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){e.style.setProperty(c,t[c])}else{e.style[c]=t[c]}}}}else if(r==="key");else if(r==="ref"){if(t){t(e)}}else if(!l&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(Ce(u,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(n){v.rel(e,r,n,false)}if(t){v.ael(e,r,t,false)}}else{var d=E(t);if((l||d&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var p=t==null?"":t;if(r==="list"){l=false}else if(n==null||e[r]!=p){e[r]=p}}else{e[r]=t}}catch(e){}}var h=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){r=o;h=true}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(w,r)}else{e.removeAttribute(r)}}}else if((!l||i&4||a)&&!d){t=t===true?"":t;if(h){e.setAttributeNS(w,r,t)}else{e.setAttribute(r,t)}}}}};var z=/\s/;var U=function(e){return!e?[]:e.split(z)};var q=function(e,r,n,t){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||C;var l=r.$attrs$||C;{for(t in i){if(!(t in l)){B(a,t,i[t],undefined,n,r.$flags$)}}}for(t in l){B(a,t,i[t],l[t],n,r.$flags$)}};var H=function(e,r,n,t){var o=r.$children$[n];var $=0;var u;var v;var d;if(!l){s=true;if(o.$tag$==="slot"){o.$flags$|=o.$children$?2:1}}if(o.$text$!==null){u=o.$elm$=c.createTextNode(o.$text$)}else if(o.$flags$&1){u=o.$elm$=c.createTextNode("")}else{u=o.$elm$=c.createElement(o.$flags$&2?"slot-fb":o.$tag$);{q(null,o,f)}if(o.$children$){for($=0;$<o.$children$.length;++$){v=H(e,o,$);if(v){u.appendChild(v)}}}}{u["s-hn"]=i;if(o.$flags$&(2|1)){u["s-sr"]=true;u["s-cr"]=a;u["s-sn"]=o.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===o.$tag$&&e.$elm$){V(e.$elm$,false)}}}return u};var V=function(e,r){v.$flags$|=1;var n=e.childNodes;for(var t=n.length-1;t>=0;t--){var a=n[t];if(a["s-hn"]!==i&&a["s-ol"]){K(a).insertBefore(a,J(a));a["s-ol"].remove();a["s-ol"]=undefined;s=true}if(r){V(a,r)}}v.$flags$&=~1};var W=function(e,r,n,t,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var o;for(;a<=i;++a){if(t[a]){o=H(null,n,a);if(o){t[a].$elm$=o;l.insertBefore(o,J(r))}}}};var D=function(e,r,n,t,a){for(;r<=n;++r){if(t=e[r]){a=t.$elm$;re(t);{o=true;if(a["s-ol"]){a["s-ol"].remove()}else{V(a,true)}}a.remove()}}};var F=function(e,r,n,t){var a=0;var i=0;var l=0;var o=0;var s=r.length-1;var f=r[0];var $=r[s];var u=t.length-1;var c=t[0];var v=t[u];var d;var p;while(a<=s&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--s]}else if(c==null){c=t[++i]}else if(v==null){v=t[--u]}else if(G(f,c)){Q(f,c);f=r[++a];c=t[++i]}else if(G($,v)){Q($,v);$=r[--s];v=t[--u]}else if(G(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){V(f.$elm$.parentNode,false)}Q(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=t[--u]}else if(G($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){V($.$elm$.parentNode,false)}Q($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--s];c=t[++i]}else{l=-1;{for(o=a;o<=s;++o){if(r[o]&&r[o].$key$!==null&&r[o].$key$===c.$key$){l=o;break}}}if(l>=0){p=r[l];if(p.$tag$!==c.$tag$){d=H(r&&r[i],n,l)}else{Q(p,c);r[l]=undefined;d=p.$elm$}c=t[++i]}else{d=H(r&&r[i],n,i);c=t[++i]}if(d){{K(f.$elm$).insertBefore(d,J(f.$elm$))}}}}if(a>s){W(e,t[u+1]==null?null:t[u+1].$elm$,n,t,i,u)}else if(i>u){D(r,a,s)}};var G=function(e,r){if(e.$tag$===r.$tag$){if(e.$tag$==="slot"){return e.$name$===r.$name$}{return e.$key$===r.$key$}}return false};var J=function(e){return e&&e["s-ol"]||e};var K=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var Q=function(e,r){var n=r.$elm$=e.$elm$;var t=e.$children$;var a=r.$children$;var i=r.$tag$;var l=r.$text$;var o;if(l===null){{if(i==="slot");else{q(e,r,f)}}if(t!==null&&a!==null){F(n,t,r,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}W(n,null,r,a,0,a.length-1)}else if(t!==null){D(t,0,t.length-1)}}else if(o=n["s-cr"]){o.parentNode.textContent=l}else if(e.$text$!==l){n.data=l}};var X=function(e){var r=e.childNodes;var n;var t;var a;var i;var l;var o;for(t=0,a=r.length;t<a;t++){n=r[t];if(n.nodeType===1){if(n["s-sr"]){l=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){o=r[i].nodeType;if(r[i]["s-hn"]!==n["s-hn"]||l!==""){if(o===1&&l===r[i].getAttribute("slot")){n.hidden=true;break}}else{if(o===1||o===3&&r[i].textContent.trim()!==""){n.hidden=true;break}}}}X(n)}}};var Y=[];var Z=function(e){var r;var n;var t;var a;var i;var l;var s=0;var f=e.childNodes;var $=f.length;for(;s<$;s++){r=f[s];if(r["s-sr"]&&(n=r["s-cr"])&&n.parentNode){t=n.parentNode.childNodes;a=r["s-sn"];for(l=t.length-1;l>=0;l--){n=t[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==r["s-hn"]){if(ee(n,a)){i=Y.find((function(e){return e.$nodeToRelocate$===n}));o=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=r}else{Y.push({$slotRefNode$:r,$nodeToRelocate$:n})}if(n["s-sr"]){Y.map((function(e){if(ee(e.$nodeToRelocate$,n["s-sn"])){i=Y.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!Y.some((function(e){return e.$nodeToRelocate$===n}))){Y.push({$nodeToRelocate$:n})}}}}if(r.nodeType===1){Z(r)}}};var ee=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var re=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(re)}};var ne=function(e,r){var n=e.$hostElement$;var t=e.$cmpMeta$;var f=e.$vnode$||P(null,null);var $=A(r)?r:L(null,null,r);i=n.tagName;$.$tag$=null;$.$flags$|=4;e.$vnode$=$;$.$elm$=f.$elm$=n;{a=n["s-cr"];l=(t.$flags$&1)!==0;o=false}Q(f,$);{v.$flags$|=1;if(s){Z($.$elm$);var u=void 0;var d=void 0;var p=void 0;var h=void 0;var m=void 0;var g=void 0;var y=0;for(;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(!d["s-ol"]){p=c.createTextNode("");p["s-nr"]=d;d.parentNode.insertBefore(d["s-ol"]=p,d)}}for(y=0;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(u.$slotRefNode$){h=u.$slotRefNode$.parentNode;m=u.$slotRefNode$.nextSibling;p=d["s-ol"];while(p=p.previousSibling){g=p["s-nr"];if(g&&g["s-sn"]===d["s-sn"]&&h===g.parentNode){g=g.nextSibling;if(!g||!g["s-nr"]){m=g;break}}}if(!m&&h!==d.parentNode||d.nextSibling!==m){if(d!==m){if(!d["s-hn"]&&d["s-ol"]){d["s-hn"]=d["s-ol"].parentNode.nodeName}h.insertBefore(d,m)}}}else{if(d.nodeType===1){d.hidden=true}}}}if(o){X($.$elm$)}v.$flags$&=~1;Y.length=0}};var te=e("g",(function(e){return Se(e).$hostElement$}));var ae=e("c",(function(e,r,n){var t=te(e);return{emit:function(e){return ie(t,r,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var ie=function(e,r,n){var t=v.ce(r,n);e.dispatchEvent(t);return t};var le=function(e,r){if(r&&!e.$onRenderResolve$&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.$onRenderResolve$=r})))}};var oe=function(e,r){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}le(e,e.$ancestorComponent$);var n=function(){return se(e,r)};return Ue(n)};var se=function(e,r){var n=N("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(r){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var r=e[0],n=e[1];return ve(t,r,n)}));e.$queuedListeners$=null}}{a=ve(t,"componentWillLoad")}}else{{a=ve(t,"componentWillUpdate")}}n();return de(a,(function(){return fe(e,t,r)}))};var fe=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,a,i,l,o,s;return __generator(this,(function(f){n=e.$hostElement$;a=N("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(t){x(e)}l=N("render",e.$cmpMeta$.$tagName$);{$e(e,r)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}l();a();{o=n["s-p"];s=function(){return ue(e)};if(o.length===0){s()}else{Promise.all(o).then(s);e.$flags$|=4;o.length=0}}return[2]}))}))};var $e=function(e,r,n){try{r=r.render();{e.$flags$&=~16}{e.$flags$|=2}{{{ne(e,r)}}}}catch(r){Ee(r,e.$hostElement$)}return null};var ue=function(e){var r=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var t=N("postUpdate",r);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{ve(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{pe(n)}{ve(a,"componentDidLoad")}t();{e.$onReadyResolve$(n);if(!i){ce()}}}else{{ve(a,"componentDidUpdate")}t()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){ze((function(){return oe(e,false)}))}e.$flags$&=~(4|512)}};var ce=function(e){{pe(c.documentElement)}ze((function(){return ie(u,"appload",{detail:{namespace:t}})}))};var ve=function(e,r,n){if(e&&e[r]){try{return e[r](n)}catch(e){Ee(e)}}return undefined};var de=function(e,r){return e&&e.then?e.then(r):r()};var pe=function(e){return e.classList.add("hydrated")};var he=function(e,r){if(e!=null&&!E(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var me=function(e,r){return Se(e).$instanceValues$.get(r)};var ge=function(e,r,n,t){var a=Se(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(r);var o=a.$flags$;var s=a.$lazyInstance$;n=he(n,t.$members$[r][0]);if((!(o&8)||l===undefined)&&n!==l){a.$instanceValues$.set(r,n);if(s){if(t.$watchers$&&o&128){var f=t.$watchers$[r];if(f){f.map((function(e){try{s[e](n,l,r)}catch(e){Ee(e,i)}}))}}if((o&(2|16))===2){oe(a,false)}}}};var ye=function(e,r,n){if(r.$members$){if(e.watchers){r.$watchers$=e.watchers}var t=Object.entries(r.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(e){ge(this,t,e,r)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var n=Se(this);return n.$onInstancePromise$.then((function(){var r;return(r=n.$lazyInstance$)[t].apply(r,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,r,n){var t=this;v.jmp((function(){var r=i.get(e);if(t.hasOwnProperty(r)){n=t[r];delete t[r]}else if(a.hasOwnProperty(r)&&typeof t[r]==="number"&&t[r]==n){return}t[r]=n===null&&typeof t[r]==="boolean"?false:n}))};e.observedAttributes=t.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var r=e[0],n=e[1];var t=n[1]||r;i.set(t,r);return t}))}}return e};var be=function(e,r,t,a,i){return __awaiter(n,void 0,void 0,(function(){var e,n,a,l,o,s,f;return __generator(this,(function($){switch($.label){case 0:if(!((r.$flags$&32)===0))return[3,3];r.$flags$|=32;i=Pe(t);if(!i.then)return[3,2];e=_();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){{t.$watchers$=i.watchers}ye(i,t,2);i.isProxied=true}n=N("createInstance",t.$tagName$);{r.$flags$|=8}try{new i(r)}catch(e){Ee(e)}{r.$flags$&=~8}{r.$flags$|=128}n();if(i.style){a=i.style;l=T(t);if(!je.has(l)){o=N("registerStyles",t.$tagName$);k(l,a,!!(t.$flags$&1));o()}}$.label=3;case 3:s=r.$ancestorComponent$;f=function(){return oe(r,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var we=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$cmpMeta$;var t=N("connectedCallback",n.$tagName$);if(!(r.$flags$&1)){r.$flags$|=1;{if(n.$flags$&(4|8)){Ne(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){le(r,r.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{be(e,r,n)}}else{h(e,r,n.$listeners$)}t()}};var Ne=function(e){var r=e["s-cr"]=c.createComment("");r["s-cn"]=true;e.insertBefore(r,e.firstChild)};var _e=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$lazyInstance$;{if(r.$rmListeners$){r.$rmListeners$.map((function(e){return e()}));r.$rmListeners$=undefined}}{ve(n,"disconnectedCallback")}}};var Re=e("b",(function(e,r){if(r===void 0){r={}}var n=N();var t=[];var a=r.exclude||[];var i=u.customElements;var l=c.head;var o=l.querySelector("meta[charset]");var s=c.createElement("style");var f=[];var $;var d=true;Object.assign(v,r);v.$resourcesUrl$=new URL(r.resourcesUrl||"./",c.baseURI).href;e.map((function(e){e[1].map((function(r){var n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3]};{n.$members$=r[2]}{n.$listeners$=r[3]}{n.$watchers$={}}var l=n.$tagName$;var o=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;Te(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(d){f.push(this)}else{v.jmp((function(){return we(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;v.jmp((function(){return _e(e)}))};r.prototype.componentOnReady=function(){return Se(this).$onReadyPromise$};return r}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){t.push(l);i.define(l,ye(o,n,1))}}))}));{s.innerHTML=t+b;s.setAttribute("data-styles","");l.insertBefore(s,o?o.nextSibling:l.firstChild)}d=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{v.jmp((function(){return $=setTimeout(ce,30)}))}}n()}));var ke=new WeakMap;var Se=function(e){return ke.get(e)};var xe=e("r",(function(e,r){return ke.set(r.$lazyInstance$=e,r)}));var Te=function(e,r){var n={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}h(e,n,r.$listeners$);return ke.set(e,n)};var Ce=function(e,r){return r in e};var Ee=function(e,r){return(0,console.error)(e,r)};var Le=new Map;var Pe=function(e,n,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Le.get(i);if(l){return l[a]}return r.import("./"+i+".entry.js"+"").then((function(e){{Le.set(i,e)}return e[a]}),Ee)};var je=new Map;var Ae=[];var Me=[];var Oe=function(e,r){return function(n){e.push(n);if(!$){$=true;if(r&&v.$flags$&4){ze(Be)}else{v.raf(Be)}}}};var Ie=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){Ee(e)}}e.length=0};var Be=function(){Ie(Ae);{Ie(Me);if($=Ae.length>0){v.raf(Be)}}};var ze=function(e){return d().then(e)};var Ue=Oe(Me,true)}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.r;r=t.h;e=t.H}],execute:function(){var o=t("taro_map_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 Map 组件!")};t.prototype.render=function(){return r(e,null)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.r;n=t.h;r=t.H}],execute:function(){var o=t("taro_match_media_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 MatchMedia 组件!")};t.prototype.render=function(){return n(r,null)};return t}())}}}));
|