@tarojs/components 4.2.1-beta.1 → 4.2.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{image-32205a1d.js → image-315b9040.js} +4 -8
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/collection/components/image/image.js +3 -8
- package/dist/collection/components/image/style/index.css +1 -1
- package/dist/components/taro-image-core.js +4 -9
- package/dist/esm/{image-9c1a61f3.js → image-a2d81773.js} +4 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/hydrate/index.js +4 -9
- package/dist/taro-components/index.esm.js +1 -1
- package/dist/taro-components/p-3e521c50.entry.js +1 -0
- package/dist/taro-components/p-b28231cc.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/image/image.d.ts +0 -1
- package/package.json +5 -5
- package/types/Audio.d.ts +13 -13
- package/types/Button.d.ts +50 -16
- package/types/Camera.d.ts +7 -7
- package/types/Canvas.d.ts +10 -10
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +2 -2
- package/types/CoverImage.d.ts +42 -4
- package/types/CoverView.d.ts +21 -1
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Editor.d.ts +20 -8
- package/types/Form.d.ts +3 -3
- package/types/Icon.d.ts +4 -4
- package/types/Image.d.ts +6 -6
- package/types/Input.d.ts +16 -16
- package/types/Label.d.ts +2 -2
- package/types/Map.d.ts +21 -17
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +16 -16
- package/types/Navigator.d.ts +8 -8
- package/types/Picker.d.ts +26 -26
- package/types/PickerView.d.ts +7 -7
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +13 -13
- package/types/Radio.d.ts +5 -5
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +4 -4
- package/types/ScrollView.d.ts +16 -16
- package/types/Slider.d.ts +14 -14
- package/types/Swiper.d.ts +14 -14
- package/types/SwiperItem.d.ts +2 -2
- package/types/Switch.d.ts +7 -7
- package/types/Text.d.ts +4 -4
- package/types/Textarea.d.ts +13 -13
- package/types/Video.d.ts +37 -37
- package/types/View.d.ts +5 -5
- package/types/WebView.d.ts +4 -4
- package/dist/taro-components/p-acf31ef0.js +0 -1
- package/dist/taro-components/p-eeec4f43.entry.js +0 -1
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"interval\":[2],\"duration\":[2],\"circular\":[4],\"vertical\":[4],\"previousMargin\":[1,\"previous-margin\"],\"nextMargin\":[1,\"next-margin\"],\"displayMultipleItems\":[2,\"display-multiple-items\"],\"full\":[4],\"zoom\":[4],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core\",[[0,\"taro-block-core\"]]],[\"taro-button-core\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core\",[[4,\"taro-cover-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-custom-wrapper-core\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"disableDefaultSize\":[4,\"disable-default-size\"],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core\",[[0,\"taro-open-data-core\"]]],[\"taro-open-embedded-atomicservice-core\",[[0,\"taro-open-embedded-atomicservice-core\"]]],[\"taro-page-container-core\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core\",[[0,\"taro-progress-core\",{\"percent\":[2],\"showInfo\":[4,\"show-info\"],\"borderRadius\":[8,\"border-radius\"],\"fontSize\":[8,\"font-size\"],\"strokeWidth\":[8,\"stroke-width\"],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"active\":[4]}]]],[\"taro-pull-to-refresh-core\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"compositionValue\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core\",[[4,\"taro-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-voip-room-core\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"pickerValue\":[32],\"height\":[32],\"hidden\":[32],\"fadeOut\":[32],\"isWillLoadCalled\":[32]}],[0,\"taro-picker-group\",{\"mode\":[1],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"height\":[2],\"columnId\":[1,\"column-id\"],\"updateHeight\":[16],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3\",[[0,\"taro-video-core\",{\"src\":[1],\"duration\":[2],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"initialTime\":[2,\"initial-time\"],\"poster\":[1],\"objectFit\":[1,\"object-fit\"],\"showProgress\":[4,\"show-progress\"],\"showFullscreenBtn\":[4,\"show-fullscreen-btn\"],\"showPlayBtn\":[4,\"show-play-btn\"],\"showCenterPlayBtn\":[4,\"show-center-play-btn\"],\"showMuteBtn\":[4,\"show-mute-btn\"],\"danmuList\":[16],\"danmuBtn\":[4,\"danmu-btn\"],\"enableDanmu\":[4,\"enable-danmu\"],\"enablePlayGesture\":[4,\"enable-play-gesture\"],\"enableProgressGesture\":[4,\"enable-progress-gesture\"],\"vslideGesture\":[4,\"vslide-gesture\"],\"vslideGestureInFullscreen\":[4,\"vslide-gesture-in-fullscreen\"],\"nativeProps\":[16],\"_duration\":[32],\"_enableDanmu\":[32],\"isPlaying\":[32],\"isFirst\":[32],\"isFullScreen\":[32],\"fullScreenTimestamp\":[32],\"isMute\":[32],\"getHlsObject\":[64],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"requestFullScreen\":[64],\"exitFullScreen\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[4,\"taro-video-control\",{\"controls\":[4],\"currentTime\":[2,\"current-time\"],\"duration\":[2],\"isPlaying\":[4,\"is-playing\"],\"pauseFunc\":[16],\"playFunc\":[16],\"seekFunc\":[16],\"showPlayBtn\":[4,\"show-play-btn\"],\"showProgress\":[4,\"show-progress\"],\"setProgressBall\":[64],\"toggleVisibility\":[64],\"getIsDraggingProgressBall\":[64],\"setCurrentTime\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[0,\"taro-video-danmu\",{\"enable\":[4],\"danmuList\":[32],\"sendDanmu\":[64],\"tick\":[64]}]]]]"), options);
|
|
17
|
+
return bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"interval\":[2],\"duration\":[2],\"circular\":[4],\"vertical\":[4],\"previousMargin\":[1,\"previous-margin\"],\"nextMargin\":[1,\"next-margin\"],\"displayMultipleItems\":[2,\"display-multiple-items\"],\"full\":[4],\"zoom\":[4],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core\",[[0,\"taro-block-core\"]]],[\"taro-button-core\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core\",[[4,\"taro-cover-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-custom-wrapper-core\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"disableDefaultSize\":[4,\"disable-default-size\"],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core\",[[0,\"taro-open-data-core\"]]],[\"taro-open-embedded-atomicservice-core\",[[0,\"taro-open-embedded-atomicservice-core\"]]],[\"taro-page-container-core\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core\",[[0,\"taro-progress-core\",{\"percent\":[2],\"showInfo\":[4,\"show-info\"],\"borderRadius\":[8,\"border-radius\"],\"fontSize\":[8,\"font-size\"],\"strokeWidth\":[8,\"stroke-width\"],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"active\":[4]}]]],[\"taro-pull-to-refresh-core\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"compositionValue\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core\",[[4,\"taro-view-core\",{\"animation\":[1],\"hoverClass\":[1,\"hover-class\"],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"hover\":[32],\"touch\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-voip-room-core\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"pickerValue\":[32],\"height\":[32],\"hidden\":[32],\"fadeOut\":[32],\"isWillLoadCalled\":[32]}],[0,\"taro-picker-group\",{\"mode\":[1],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"height\":[2],\"columnId\":[1,\"column-id\"],\"updateHeight\":[16],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3\",[[0,\"taro-video-core\",{\"src\":[1],\"duration\":[2],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"initialTime\":[2,\"initial-time\"],\"poster\":[1],\"objectFit\":[1,\"object-fit\"],\"showProgress\":[4,\"show-progress\"],\"showFullscreenBtn\":[4,\"show-fullscreen-btn\"],\"showPlayBtn\":[4,\"show-play-btn\"],\"showCenterPlayBtn\":[4,\"show-center-play-btn\"],\"showMuteBtn\":[4,\"show-mute-btn\"],\"danmuList\":[16],\"danmuBtn\":[4,\"danmu-btn\"],\"enableDanmu\":[4,\"enable-danmu\"],\"enablePlayGesture\":[4,\"enable-play-gesture\"],\"enableProgressGesture\":[4,\"enable-progress-gesture\"],\"vslideGesture\":[4,\"vslide-gesture\"],\"vslideGestureInFullscreen\":[4,\"vslide-gesture-in-fullscreen\"],\"nativeProps\":[16],\"_duration\":[32],\"_enableDanmu\":[32],\"isPlaying\":[32],\"isFirst\":[32],\"isFullScreen\":[32],\"fullScreenTimestamp\":[32],\"isMute\":[32],\"getHlsObject\":[64],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"requestFullScreen\":[64],\"exitFullScreen\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[4,\"taro-video-control\",{\"controls\":[4],\"currentTime\":[2,\"current-time\"],\"duration\":[2],\"isPlaying\":[4,\"is-playing\"],\"pauseFunc\":[16],\"playFunc\":[16],\"seekFunc\":[16],\"showPlayBtn\":[4,\"show-play-btn\"],\"showProgress\":[4,\"show-progress\"],\"setProgressBall\":[64],\"toggleVisibility\":[64],\"getIsDraggingProgressBall\":[64],\"setCurrentTime\":[64]},[[5,\"touchmove\",\"onDocumentTouchMove\"],[5,\"touchend\",\"onDocumentTouchEnd\"],[5,\"touchcancel\",\"onDocumentTouchEnd\"]]],[0,\"taro-video-danmu\",{\"enable\":[4],\"danmuList\":[32],\"sendDanmu\":[64],\"tick\":[64]}]]]]"), options);
|
|
18
18
|
});
|
package/dist/hydrate/index.js
CHANGED
|
@@ -7058,7 +7058,7 @@ class Icon {
|
|
|
7058
7058
|
}; }
|
|
7059
7059
|
}
|
|
7060
7060
|
|
|
7061
|
-
const indexCss$h = "img[src=\"\"]{opacity:0}:where(taro-image-core){width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}:where(taro-image-core.taro-img__disable-default-size){width:auto;height:auto}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{
|
|
7061
|
+
const indexCss$h = "img[src=\"\"]{opacity:0}:where(taro-image-core){width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}:where(taro-image-core.taro-img__disable-default-size){width:auto;height:auto}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{object-fit:cover;width:100%;height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
|
|
7062
7062
|
|
|
7063
7063
|
class Image$1 {
|
|
7064
7064
|
constructor(hostRef) {
|
|
@@ -7070,7 +7070,6 @@ class Image$1 {
|
|
|
7070
7070
|
this.lazyLoad = false;
|
|
7071
7071
|
this.nativeProps = {};
|
|
7072
7072
|
this.disableDefaultSize = false;
|
|
7073
|
-
this.aspectFillMode = 'width';
|
|
7074
7073
|
this.didLoad = false;
|
|
7075
7074
|
}
|
|
7076
7075
|
componentDidLoad() {
|
|
@@ -7091,27 +7090,24 @@ class Image$1 {
|
|
|
7091
7090
|
// 防止组件已卸载或 img 已被移除时 ref 为 null(如列表滚动、src 清空、lazyLoad 时序等)
|
|
7092
7091
|
if (!this.imgRef)
|
|
7093
7092
|
return;
|
|
7094
|
-
const { width, height
|
|
7093
|
+
const { width, height } = this.imgRef;
|
|
7095
7094
|
this.onLoad.emit({
|
|
7096
7095
|
width,
|
|
7097
7096
|
height
|
|
7098
7097
|
});
|
|
7099
|
-
this.aspectFillMode = naturalWidth > naturalHeight ? 'width' : 'height';
|
|
7100
7098
|
}
|
|
7101
7099
|
imageOnError(e) {
|
|
7102
7100
|
this.onError.emit(e);
|
|
7103
7101
|
}
|
|
7104
7102
|
render() {
|
|
7105
|
-
const { src, lazyLoad = false,
|
|
7103
|
+
const { src, lazyLoad = false, imageOnLoad, imageOnError, nativeProps, didLoad } = this;
|
|
7106
7104
|
// mode="" 按默认值处理
|
|
7107
7105
|
const mode = this.mode || 'scaleToFill';
|
|
7108
7106
|
const cls = classnames({
|
|
7109
7107
|
'taro-img__widthfix': mode === 'widthFix',
|
|
7110
7108
|
'taro-img__disable-default-size': this.disableDefaultSize,
|
|
7111
7109
|
});
|
|
7112
|
-
const imgCls =
|
|
7113
|
-
[`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
|
|
7114
|
-
});
|
|
7110
|
+
const imgCls = `taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`;
|
|
7115
7111
|
return (hAsync(Host, { class: cls }, src ? (hAsync("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
|
|
7116
7112
|
}
|
|
7117
7113
|
static get style() { return indexCss$h; }
|
|
@@ -7124,7 +7120,6 @@ class Image$1 {
|
|
|
7124
7120
|
"lazyLoad": [4, "lazy-load"],
|
|
7125
7121
|
"nativeProps": [16],
|
|
7126
7122
|
"disableDefaultSize": [4, "disable-default-size"],
|
|
7127
|
-
"aspectFillMode": [32],
|
|
7128
7123
|
"didLoad": [32]
|
|
7129
7124
|
},
|
|
7130
7125
|
"$listeners$": undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Ad}from"./p-9d4a6732.js";export{A as AdCustom}from"./p-915aa78c.js";export{A as AnimationVideo}from"./p-f6e5beeb.js";export{A as AnimationView}from"./p-a5798672.js";export{A as ArCamera}from"./p-c3a8af99.js";export{A as Audio}from"./p-cae824d1.js";export{A as AwemeData}from"./p-2f7b8388.js";export{B as Block}from"./p-e3de8581.js";export{B as Button}from"./p-61cec685.js";export{C as Camera}from"./p-245fcd36.js";export{C as Canvas}from"./p-24ef5f8c.js";export{C as ChannelLive}from"./p-27622761.js";export{C as ChannelVideo}from"./p-150a55a3.js";export{a as Checkbox,C as CheckboxGroup}from"./p-046319d8.js";export{C as CommentDetail}from"./p-fff1a810.js";export{C as CommentList}from"./p-febc484e.js";export{C as ContactButton}from"./p-36e83be9.js";export{C as CoverImage}from"./p-d5773721.js";export{C as CoverView}from"./p-c7f9e228.js";export{C as CustomWrapper}from"./p-a293fa24.js";export{D as DoubleTapGestureHandler}from"./p-4bb83c7d.js";export{D as DraggableSheet}from"./p-6c93b540.js";export{E as Editor}from"./p-31c75fd5.js";export{F as FollowSwan}from"./p-b9446784.js";export{F as ForcePressGestureHandler}from"./p-64a5e7a7.js";export{F as Form}from"./p-a6c178f3.js";export{F as FunctionalPageNavigator}from"./p-3a6ec908.js";export{G as GridBuilder}from"./p-c3cf4884.js";export{G as GridView}from"./p-d5f0d48c.js";export{H as HorizontalDragGestureHandler}from"./p-8e3bac82.js";export{I as Icon}from"./p-53b69659.js";export{I as Image}from"./p-
|
|
1
|
+
export{A as Ad}from"./p-9d4a6732.js";export{A as AdCustom}from"./p-915aa78c.js";export{A as AnimationVideo}from"./p-f6e5beeb.js";export{A as AnimationView}from"./p-a5798672.js";export{A as ArCamera}from"./p-c3a8af99.js";export{A as Audio}from"./p-cae824d1.js";export{A as AwemeData}from"./p-2f7b8388.js";export{B as Block}from"./p-e3de8581.js";export{B as Button}from"./p-61cec685.js";export{C as Camera}from"./p-245fcd36.js";export{C as Canvas}from"./p-24ef5f8c.js";export{C as ChannelLive}from"./p-27622761.js";export{C as ChannelVideo}from"./p-150a55a3.js";export{a as Checkbox,C as CheckboxGroup}from"./p-046319d8.js";export{C as CommentDetail}from"./p-fff1a810.js";export{C as CommentList}from"./p-febc484e.js";export{C as ContactButton}from"./p-36e83be9.js";export{C as CoverImage}from"./p-d5773721.js";export{C as CoverView}from"./p-c7f9e228.js";export{C as CustomWrapper}from"./p-a293fa24.js";export{D as DoubleTapGestureHandler}from"./p-4bb83c7d.js";export{D as DraggableSheet}from"./p-6c93b540.js";export{E as Editor}from"./p-31c75fd5.js";export{F as FollowSwan}from"./p-b9446784.js";export{F as ForcePressGestureHandler}from"./p-64a5e7a7.js";export{F as Form}from"./p-a6c178f3.js";export{F as FunctionalPageNavigator}from"./p-3a6ec908.js";export{G as GridBuilder}from"./p-c3cf4884.js";export{G as GridView}from"./p-d5f0d48c.js";export{H as HorizontalDragGestureHandler}from"./p-8e3bac82.js";export{I as Icon}from"./p-53b69659.js";export{I as Image}from"./p-b28231cc.js";export{I as InlinePaymentPanel}from"./p-99863698.js";export{I as Input}from"./p-fa9a3a11.js";export{K as KeyboardAccessory}from"./p-137eb06b.js";export{L as Label}from"./p-8b1b513a.js";export{L as Lifestyle}from"./p-af5e0304.js";export{L as Like}from"./p-a17695f9.js";export{L as ListBuilder}from"./p-4cf49968.js";export{L as ListView}from"./p-52c6b16d.js";export{L as LivePlayer}from"./p-2884aec2.js";export{L as LivePusher}from"./p-582cbc31.js";export{L as Login}from"./p-b74ad8e4.js";export{L as LongPressGestureHandler}from"./p-1d3cfd13.js";export{L as Lottie}from"./p-5fe2d7cb.js";export{M as Map}from"./p-b2979101.js";export{M as MatchMedia}from"./p-2e5daff6.js";export{M as MovableArea,a as MovableView}from"./p-45c3b3bf.js";export{N as NavigationBar}from"./p-d11af89d.js";export{N as Navigator}from"./p-3d450082.js";export{N as NestedScrollBody}from"./p-ee9bae70.js";export{N as NestedScrollHeader}from"./p-f441b5e7.js";export{O as OfficialAccount}from"./p-50ffadb4.js";export{O as OpenContainer}from"./p-96f65f1d.js";export{O as OpenData}from"./p-c872ed50.js";export{P as PageContainer}from"./p-1c19d1dd.js";export{P as PageMeta}from"./p-c9a01a1f.js";export{P as PanGestureHandler}from"./p-7ea32cac.js";export{P as Picker,T as TaroPickerGroup}from"./p-13d455f5.js";export{a as PickerView,P as PickerViewColumn}from"./p-d1a1274a.js";export{P as Progress}from"./p-bd7613d0.js";export{P as PullToRefresh}from"./p-67c4cf7e.js";export{a as Radio,R as RadioGroup}from"./p-4818a4aa.js";export{R as RichText}from"./p-553b9dc1.js";export{R as RootPortal}from"./p-08cfc9f4.js";export{R as RtcRoomItem}from"./p-c48b7222.js";export{R as RtcRoom}from"./p-79d3e109.js";export{S as ScaleGestureHandler}from"./p-956bc9d5.js";export{S as Script}from"./p-baed3510.js";export{S as ScrollView}from"./p-5108ba78.js";export{S as ShareElement}from"./p-7bb097de.js";export{S as Slider}from"./p-35aac6e0.js";export{N as NativeSlot}from"./p-49e4d6ae.js";export{S as Slot}from"./p-680d07ac.js";export{S as Snapshot}from"./p-99383bc2.js";export{S as Span}from"./p-a2cb2d73.js";export{S as StickyHeader}from"./p-2e841a1d.js";export{S as StickySection}from"./p-da4fcba5.js";export{a as Swiper,S as SwiperItem}from"./p-8d26b600.js";export{S as Switch}from"./p-4d79a974.js";export{a as Tabbar,T as TabbarItem}from"./p-8d996705.js";export{T as TabItem}from"./p-2bf24716.js";export{T as Tabs}from"./p-93e3cefb.js";export{T as TapGestureHandler}from"./p-5bd1aed9.js";export{T as Text}from"./p-1c317d71.js";export{T as Textarea}from"./p-52de1cec.js";export{V as VerticalDragGestureHandler}from"./p-2f9a4db4.js";export{b as Video,V as VideoControl,a as VideoDanmu}from"./p-465dbd80.js";export{V as View}from"./p-c5666cb2.js";export{V as VoipRoom}from"./p-c0687b94.js";export{W as WebView}from"./p-8635925e.js";export{O as OpenEmbeddedAtomicservice}from"./p-3534d37d.js";import"./p-f72fcd8c.js";import"./p-dbdb9de9.js";import"@tarojs/taro";import"./p-160d710a.js";import"hammerjs";import"./p-5893c3ed.js";import"swiper/bundle";import"@tarojs/runtime";import"resolve-pathname";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{I as taro_image_core}from"./p-b28231cc.js";import"./p-f72fcd8c.js";import"./p-160d710a.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as o,H as s}from"./p-f72fcd8c.js";import{c as e}from"./p-160d710a.js";const r=class{constructor(o){t(this,o),this.onLoad=i(this,"load",7),this.onError=i(this,"error",7),this.src=void 0,this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.disableDefaultSize=!1,this.didLoad=!1}componentDidLoad(){if(!this.lazyLoad||!this.imgRef)return;const t=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(this.imgRef&&t.unobserve(this.imgRef),this.didLoad=!0)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){if(!this.imgRef)return;const{width:t,height:i}=this.imgRef;this.onLoad.emit({width:t,height:i})}imageOnError(t){this.onError.emit(t)}render(){const{src:t,lazyLoad:i=!1,imageOnLoad:r,imageOnError:a,nativeProps:h,didLoad:m}=this,n=this.mode||"scaleToFill",d=e({"taro-img__widthfix":"widthFix"===n,"taro-img__disable-default-size":this.disableDefaultSize}),g=`taro-img__mode-${n.toLowerCase().replace(/\s/g,"")}`;return o(s,{class:d},t?o("img",Object.assign({ref:t=>this.imgRef=t,class:g,src:i&&!m?void 0:t,onLoad:r.bind(this),onError:a.bind(this)},h)):"")}};r.style='img[src=""]{opacity:0}:where(taro-image-core){width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}:where(taro-image-core.taro-img__disable-default-size){width:auto;height:auto}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{object-fit:cover;width:100%;height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';export{r as I}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-f72fcd8c.js";export{s as setNonce}from"./p-f72fcd8c.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-aca7aea1",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-14795db7",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-127391cb",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df86c576",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-b70027b2",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7c455a65",[[0,"taro-ad-core"]]],["p-38598f5b",[[0,"taro-ad-custom-core"]]],["p-0f829f27",[[0,"taro-animation-video-core"]]],["p-92a39ad9",[[0,"taro-animation-view-core"]]],["p-b19ea38d",[[0,"taro-ar-camera-core"]]],["p-6223811d",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-922047dd",[[0,"taro-aweme-data-core"]]],["p-4f4b08df",[[0,"taro-block-core"]]],["p-71384476",[[4,"taro-button-core",{"disabled":[516],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-773bed49",[[0,"taro-camera-core"]]],["p-1ad94bf6",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-e0de8e35",[[0,"taro-channel-live-core"]]],["p-094ba888",[[0,"taro-channel-video-core"]]],["p-c66f2363",[[0,"taro-comment-detail-core"]]],["p-a0ff43d9",[[0,"taro-comment-list-core"]]],["p-74ac6c91",[[0,"taro-contact-button-core"]]],["p-5ea030de",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-80fa0c7c",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eac9f475",[[0,"taro-custom-wrapper-core"]]],["p-806e3c4f",[[0,"taro-double-tap-gesture-handler-core"]]],["p-65c51f07",[[0,"taro-draggable-sheet-core"]]],["p-03b54b0b",[[0,"taro-editor-core"]]],["p-3f650751",[[0,"taro-follow-swan-core"]]],["p-145ba514",[[0,"taro-force-press-gesture-handler-core"]]],["p-69147844",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-0741aa7f",[[0,"taro-functional-page-navigator-core"]]],["p-f57bed55",[[0,"taro-grid-builder-core"]]],["p-61b23b53",[[0,"taro-grid-view-core"]]],["p-c5c71b89",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-d45a75d9",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-eeec4f43",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"disableDefaultSize":[4,"disable-default-size"],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0a92117d",[[0,"taro-inline-payment-panel-core"]]],["p-256ab08a",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"readonly":[4],"nativeProps":[16],"focus":[64]}]]],["p-168a6355",[[0,"taro-keyboard-accessory-core"]]],["p-2602cd28",[[4,"taro-label-core",{"for":[1]}]]],["p-1d2b2125",[[0,"taro-lifestyle-core"]]],["p-e87d4a75",[[0,"taro-like-core"]]],["p-e6565988",[[0,"taro-list-builder-core"]]],["p-ae203a0b",[[0,"taro-list-view-core"]]],["p-975f1b0c",[[0,"taro-live-player-core"]]],["p-3f4449b0",[[0,"taro-live-pusher-core"]]],["p-8837c166",[[0,"taro-login-core"]]],["p-eee2d2f9",[[0,"taro-long-press-gesture-handler-core"]]],["p-2ff21d39",[[0,"taro-lottie-core"]]],["p-5bd11f73",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-9581e63b",[[0,"taro-match-media-core"]]],["p-b89414d7",[[0,"taro-native-slot-core"]]],["p-5b216b21",[[0,"taro-navigation-bar-core"]]],["p-ab09cecf",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-ad865966",[[0,"taro-nested-scroll-body-core"]]],["p-e6643dc0",[[0,"taro-nested-scroll-header-core"]]],["p-fe1c20a9",[[0,"taro-official-account-core"]]],["p-edab4852",[[0,"taro-open-container-core"]]],["p-bcceaa84",[[0,"taro-open-data-core"]]],["p-51a09562",[[0,"taro-open-embedded-atomicservice-core"]]],["p-582a0e0f",[[0,"taro-page-container-core"]]],["p-c09eb36f",[[0,"taro-page-meta-core"]]],["p-496a9932",[[0,"taro-pan-gesture-handler-core"]]],["p-f52b25aa",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-931bba41",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-9f953e69",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-e298a2c3",[[0,"taro-root-portal-core"]]],["p-cdeebf36",[[0,"taro-rtc-room-core"]]],["p-8f2a4c66",[[0,"taro-rtc-room-item-core"]]],["p-c3d39813",[[0,"taro-scale-gesture-handler-core"]]],["p-2c48f6cb",[[0,"taro-script-core"]]],["p-a5f2ce14",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"enhanced":[4],"showScrollbar":[4,"show-scrollbar"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a3b266d5",[[0,"taro-share-element-core"]]],["p-d6be1ceb",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-fa398c76",[[0,"taro-slot-core"]]],["p-8c520f1e",[[0,"taro-snapshot-core"]]],["p-06b4ba14",[[0,"taro-span-core"]]],["p-3837f853",[[0,"taro-sticky-header-core"]]],["p-ea5d6d41",[[0,"taro-sticky-section-core"]]],["p-5cbc249f",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-31f2f332",[[0,"taro-tab-item-core"]]],["p-2b8fae1c",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-c84153ae",[[0,"taro-tabs-core"]]],["p-8bc13e66",[[0,"taro-tap-gesture-handler-core"]]],["p-73aae58b",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-65063e2f",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"compositionValue":[32],"focus":[64]}]]],["p-0ecccbb4",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-88048df9",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-ffcacf9a",[[0,"taro-voip-room-core"]]],["p-85e84cde",[[0,"taro-web-view-core",{"src":[1]}]]],["p-b90499e4",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-905410a9",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as o}from"./p-f72fcd8c.js";export{s as setNonce}from"./p-f72fcd8c.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-aca7aea1",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-14795db7",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-127391cb",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df86c576",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-b70027b2",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7c455a65",[[0,"taro-ad-core"]]],["p-38598f5b",[[0,"taro-ad-custom-core"]]],["p-0f829f27",[[0,"taro-animation-video-core"]]],["p-92a39ad9",[[0,"taro-animation-view-core"]]],["p-b19ea38d",[[0,"taro-ar-camera-core"]]],["p-6223811d",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-922047dd",[[0,"taro-aweme-data-core"]]],["p-4f4b08df",[[0,"taro-block-core"]]],["p-71384476",[[4,"taro-button-core",{"disabled":[516],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-773bed49",[[0,"taro-camera-core"]]],["p-1ad94bf6",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-e0de8e35",[[0,"taro-channel-live-core"]]],["p-094ba888",[[0,"taro-channel-video-core"]]],["p-c66f2363",[[0,"taro-comment-detail-core"]]],["p-a0ff43d9",[[0,"taro-comment-list-core"]]],["p-74ac6c91",[[0,"taro-contact-button-core"]]],["p-5ea030de",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-80fa0c7c",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eac9f475",[[0,"taro-custom-wrapper-core"]]],["p-806e3c4f",[[0,"taro-double-tap-gesture-handler-core"]]],["p-65c51f07",[[0,"taro-draggable-sheet-core"]]],["p-03b54b0b",[[0,"taro-editor-core"]]],["p-3f650751",[[0,"taro-follow-swan-core"]]],["p-145ba514",[[0,"taro-force-press-gesture-handler-core"]]],["p-69147844",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-0741aa7f",[[0,"taro-functional-page-navigator-core"]]],["p-f57bed55",[[0,"taro-grid-builder-core"]]],["p-61b23b53",[[0,"taro-grid-view-core"]]],["p-c5c71b89",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-d45a75d9",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-3e521c50",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"disableDefaultSize":[4,"disable-default-size"],"didLoad":[32]}]]],["p-0a92117d",[[0,"taro-inline-payment-panel-core"]]],["p-256ab08a",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"readonly":[4],"nativeProps":[16],"focus":[64]}]]],["p-168a6355",[[0,"taro-keyboard-accessory-core"]]],["p-2602cd28",[[4,"taro-label-core",{"for":[1]}]]],["p-1d2b2125",[[0,"taro-lifestyle-core"]]],["p-e87d4a75",[[0,"taro-like-core"]]],["p-e6565988",[[0,"taro-list-builder-core"]]],["p-ae203a0b",[[0,"taro-list-view-core"]]],["p-975f1b0c",[[0,"taro-live-player-core"]]],["p-3f4449b0",[[0,"taro-live-pusher-core"]]],["p-8837c166",[[0,"taro-login-core"]]],["p-eee2d2f9",[[0,"taro-long-press-gesture-handler-core"]]],["p-2ff21d39",[[0,"taro-lottie-core"]]],["p-5bd11f73",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-9581e63b",[[0,"taro-match-media-core"]]],["p-b89414d7",[[0,"taro-native-slot-core"]]],["p-5b216b21",[[0,"taro-navigation-bar-core"]]],["p-ab09cecf",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-ad865966",[[0,"taro-nested-scroll-body-core"]]],["p-e6643dc0",[[0,"taro-nested-scroll-header-core"]]],["p-fe1c20a9",[[0,"taro-official-account-core"]]],["p-edab4852",[[0,"taro-open-container-core"]]],["p-bcceaa84",[[0,"taro-open-data-core"]]],["p-51a09562",[[0,"taro-open-embedded-atomicservice-core"]]],["p-582a0e0f",[[0,"taro-page-container-core"]]],["p-c09eb36f",[[0,"taro-page-meta-core"]]],["p-496a9932",[[0,"taro-pan-gesture-handler-core"]]],["p-f52b25aa",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-931bba41",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-9f953e69",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-e298a2c3",[[0,"taro-root-portal-core"]]],["p-cdeebf36",[[0,"taro-rtc-room-core"]]],["p-8f2a4c66",[[0,"taro-rtc-room-item-core"]]],["p-c3d39813",[[0,"taro-scale-gesture-handler-core"]]],["p-2c48f6cb",[[0,"taro-script-core"]]],["p-a5f2ce14",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"enhanced":[4],"showScrollbar":[4,"show-scrollbar"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a3b266d5",[[0,"taro-share-element-core"]]],["p-d6be1ceb",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-fa398c76",[[0,"taro-slot-core"]]],["p-8c520f1e",[[0,"taro-snapshot-core"]]],["p-06b4ba14",[[0,"taro-span-core"]]],["p-3837f853",[[0,"taro-sticky-header-core"]]],["p-ea5d6d41",[[0,"taro-sticky-section-core"]]],["p-5cbc249f",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-31f2f332",[[0,"taro-tab-item-core"]]],["p-2b8fae1c",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-c84153ae",[[0,"taro-tabs-core"]]],["p-8bc13e66",[[0,"taro-tap-gesture-handler-core"]]],["p-73aae58b",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-65063e2f",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"compositionValue":[32],"focus":[64]}]]],["p-0ecccbb4",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-88048df9",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-ffcacf9a",[[0,"taro-voip-room-core"]]],["p-85e84cde",[[0,"taro-web-view-core",{"src":[1]}]]],["p-b90499e4",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-905410a9",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "4.2.1-beta.
|
|
3
|
+
"version": "4.2.1-beta.2",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"resolve-pathname": "^3.0.0",
|
|
41
41
|
"swiper": "11.1.15",
|
|
42
42
|
"tslib": "^2.6.2",
|
|
43
|
-
"@tarojs/runtime": "4.2.1-beta.
|
|
44
|
-
"@tarojs/shared": "4.2.1-beta.
|
|
45
|
-
"@tarojs/taro": "4.2.1-beta.
|
|
43
|
+
"@tarojs/runtime": "4.2.1-beta.2",
|
|
44
|
+
"@tarojs/shared": "4.2.1-beta.2",
|
|
45
|
+
"@tarojs/taro": "4.2.1-beta.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/generator": "^7.21.4",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jest-cli": "27.5.1",
|
|
69
69
|
"jest-runner": "27.5.1",
|
|
70
70
|
"jest-environment-node": "27.5.1",
|
|
71
|
-
"@tarojs/helper": "4.2.1-beta.
|
|
71
|
+
"@tarojs/helper": "4.2.1-beta.2"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@types/react": {
|
package/types/Audio.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface AudioProps extends StandardProps {
|
|
4
4
|
/** audio 组件的唯一标识符
|
|
5
|
-
* @supported weapp, swan, qq
|
|
5
|
+
* @supported weapp, swan, qq, ascf
|
|
6
6
|
*/
|
|
7
7
|
id?: string
|
|
8
8
|
/** 要播放音频的资源地址
|
|
9
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
9
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
10
10
|
*/
|
|
11
11
|
src?: string
|
|
12
12
|
/** 是否循环播放
|
|
13
13
|
* @default false
|
|
14
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
14
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
15
15
|
*/
|
|
16
16
|
loop?: boolean
|
|
17
17
|
/** 是否静音播放
|
|
@@ -21,21 +21,21 @@ interface AudioProps extends StandardProps {
|
|
|
21
21
|
muted?: boolean
|
|
22
22
|
/** 是否显示默认控件
|
|
23
23
|
* @default false
|
|
24
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
24
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
25
25
|
*/
|
|
26
26
|
controls?: boolean
|
|
27
27
|
/** 默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效
|
|
28
|
-
* @supported weapp, swan, qq
|
|
28
|
+
* @supported weapp, swan, qq, ascf
|
|
29
29
|
*/
|
|
30
30
|
poster?: string
|
|
31
31
|
/** 默认控件上的音频名字,如果 controls 属性值为 false 则设置 name 无效
|
|
32
32
|
* @default "未知音频"
|
|
33
|
-
* @supported weapp, swan, qq
|
|
33
|
+
* @supported weapp, swan, qq, ascf
|
|
34
34
|
*/
|
|
35
35
|
name?: string
|
|
36
36
|
/** 默认控件上的作者名字,如果 controls 属性值为 false 则设置 author 无效
|
|
37
37
|
* @default "未知作者"
|
|
38
|
-
* @supported weapp, swan, qq
|
|
38
|
+
* @supported weapp, swan, qq, ascf
|
|
39
39
|
*/
|
|
40
40
|
author?: string
|
|
41
41
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
@@ -43,23 +43,23 @@ interface AudioProps extends StandardProps {
|
|
|
43
43
|
*/
|
|
44
44
|
nativeProps?: Record<string, unknown>
|
|
45
45
|
/** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
|
|
46
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
46
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
47
47
|
*/
|
|
48
48
|
onError?: CommonEventFunction<AudioProps.onErrorEventDetail>
|
|
49
49
|
/** 当开始/继续播放时触发play事件
|
|
50
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
50
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
51
51
|
*/
|
|
52
52
|
onPlay?: CommonEventFunction
|
|
53
53
|
/** 当暂停播放时触发 pause 事件
|
|
54
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
54
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
55
55
|
*/
|
|
56
56
|
onPause?: CommonEventFunction
|
|
57
57
|
/** 当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}
|
|
58
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
58
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
59
59
|
*/
|
|
60
60
|
onTimeUpdate?: CommonEventFunction<AudioProps.onTimeUpdateEventDetail>
|
|
61
61
|
/** 当播放到末尾时触发 ended 事件
|
|
62
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
62
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
63
63
|
*/
|
|
64
64
|
onEnded?: CommonEventFunction
|
|
65
65
|
}
|
|
@@ -89,7 +89,7 @@ declare namespace AudioProps {
|
|
|
89
89
|
/** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
|
|
90
90
|
* @classification media
|
|
91
91
|
* @deprecated
|
|
92
|
-
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
92
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid, ascf
|
|
93
93
|
* @example_react
|
|
94
94
|
* ```tsx
|
|
95
95
|
* export default class PageView extends Component {
|
package/types/Button.d.ts
CHANGED
|
@@ -3,44 +3,69 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native'
|
|
4
4
|
interface ButtonProps extends StandardProps {
|
|
5
5
|
/** 按钮的大小
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
7
7
|
* @default default
|
|
8
8
|
*/
|
|
9
9
|
size?: keyof ButtonProps.Size
|
|
10
10
|
/** 按钮的样式类型
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
12
12
|
* @default default
|
|
13
13
|
*/
|
|
14
14
|
type?: keyof ButtonProps.Type
|
|
15
15
|
/** 按钮是否镂空,背景色透明
|
|
16
|
-
* @supported weapp, alipay, swan, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
16
|
+
* @supported weapp, alipay, swan, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
19
|
plain?: boolean
|
|
20
20
|
/** 是否禁用
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
24
24
|
disabled?: boolean
|
|
25
25
|
/** 名称前是否带 loading 图标
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
loading?: boolean
|
|
30
30
|
/** 用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件
|
|
31
|
-
* @supported weapp, alipay, swan, tt, qq, jd, harmony
|
|
31
|
+
* @supported weapp, alipay, swan, tt, qq, jd, harmony, ascf
|
|
32
32
|
*/
|
|
33
33
|
formType?: keyof ButtonProps.FormType
|
|
34
34
|
/** 微信开放能力
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
35
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
36
36
|
*/
|
|
37
37
|
openType?: ButtonProps.OpenType
|
|
38
38
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
39
39
|
* @default button-hover
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
41
41
|
* @rn 支持 hoverStyle 属性,但框架未支持 hoverClass
|
|
42
42
|
*/
|
|
43
43
|
hoverClass?: string
|
|
44
|
+
/** open-type=launchApp时有效,表示待启动Ability所在的应用Bundle名称。
|
|
45
|
+
* @default none
|
|
46
|
+
* @supported ascf
|
|
47
|
+
*/
|
|
48
|
+
appBundleName?: string
|
|
49
|
+
/** open-type=launchApp时有效,表示待启动Ability所属的模块名称。
|
|
50
|
+
* @default none
|
|
51
|
+
* @supported ascf
|
|
52
|
+
*/
|
|
53
|
+
appModuleName?: string
|
|
54
|
+
/** open-type=launchApp时有效,表示待启动Ability名称。
|
|
55
|
+
* @default none
|
|
56
|
+
* @supported ascf
|
|
57
|
+
*/
|
|
58
|
+
appAbilityName?: string
|
|
59
|
+
/** open-type=launchApp时有效,表示启动Ability时的自定义参数。
|
|
60
|
+
* @default none
|
|
61
|
+
* @supported ascf
|
|
62
|
+
*/
|
|
63
|
+
appParameters?: Object
|
|
64
|
+
/** open-type=liveActivity时有效,表示子场景ID,当open-type=liveActivity时,该参数必填。
|
|
65
|
+
* @default none
|
|
66
|
+
* @supported ascf
|
|
67
|
+
*/
|
|
68
|
+
activityType?: string
|
|
44
69
|
/** 由于 RN 不支持 hoverClass,故 RN 端的 Button 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
45
70
|
* @default none
|
|
46
71
|
* @supported rn
|
|
@@ -48,17 +73,17 @@ interface ButtonProps extends StandardProps {
|
|
|
48
73
|
hoverStyle?: StyleProp<ViewStyle>
|
|
49
74
|
/** 指定是否阻止本节点的祖先节点出现点击态
|
|
50
75
|
* @default false
|
|
51
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
76
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
52
77
|
*/
|
|
53
78
|
hoverStopPropagation?: boolean
|
|
54
79
|
/** 按住后多久出现点击态,单位毫秒
|
|
55
80
|
* @default 20
|
|
56
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
81
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
57
82
|
*/
|
|
58
83
|
hoverStartTime?: number
|
|
59
84
|
/** 手指松开后点击态保留时间,单位毫秒
|
|
60
85
|
* @default 70
|
|
61
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
86
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
62
87
|
*/
|
|
63
88
|
hoverStayTime?: number
|
|
64
89
|
/** 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。
|
|
@@ -197,7 +222,7 @@ interface ButtonProps extends StandardProps {
|
|
|
197
222
|
/** 获取用户手机号回调
|
|
198
223
|
*
|
|
199
224
|
* 生效时机:`open-type="getPhoneNumber"`
|
|
200
|
-
* @supported weapp, alipay, swan, tt, jd
|
|
225
|
+
* @supported weapp, alipay, swan, tt, jd, ascf
|
|
201
226
|
*/
|
|
202
227
|
onGetPhoneNumber?: CommonEventFunction<ButtonProps.onGetPhoneNumberEventDetail>
|
|
203
228
|
/** 获取手机号和风险等级的回调
|
|
@@ -206,6 +231,12 @@ interface ButtonProps extends StandardProps {
|
|
|
206
231
|
* @supported ascf
|
|
207
232
|
*/
|
|
208
233
|
onGetPhoneNumberAndRiskLevel?: CommonEventFunction<ButtonProps.onGetPhoneNumberAndRiskLevelEventDetail>
|
|
234
|
+
/** 获取服务动态授权码的回调
|
|
235
|
+
*
|
|
236
|
+
* 生效时机:`open-type="liveActivity"`
|
|
237
|
+
* @supported ascf
|
|
238
|
+
*/
|
|
239
|
+
onCreateLiveActivity?: CommonEventFunction<ButtonProps.onCreateLiveActivityEventDetail>
|
|
209
240
|
/**
|
|
210
241
|
* 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效
|
|
211
242
|
* @supported weapp
|
|
@@ -214,19 +245,19 @@ interface ButtonProps extends StandardProps {
|
|
|
214
245
|
/** 当使用开放能力时,发生错误的回调
|
|
215
246
|
*
|
|
216
247
|
* 生效时机:`open-type="launchApp"`
|
|
217
|
-
* @supported weapp, alipay, qq, jd
|
|
248
|
+
* @supported weapp, alipay, qq, jd, ascf
|
|
218
249
|
*/
|
|
219
250
|
onError?: CommonEventFunction
|
|
220
251
|
/** 在打开授权设置页后回调
|
|
221
252
|
*
|
|
222
253
|
* 生效时机:`open-type="openSetting"`
|
|
223
|
-
* @supported weapp, swan, tt, qq, jd
|
|
254
|
+
* @supported weapp, swan, tt, qq, jd, ascf
|
|
224
255
|
*/
|
|
225
256
|
onOpenSetting?: CommonEventFunction<ButtonProps.onOpenSettingEventDetail>
|
|
226
257
|
/** 打开 APP 成功的回调
|
|
227
258
|
*
|
|
228
259
|
* 生效时机:`open-type="launchApp"`
|
|
229
|
-
* @supported weapp, qq
|
|
260
|
+
* @supported weapp, qq, ascf
|
|
230
261
|
*/
|
|
231
262
|
onLaunchApp?: CommonEventFunction
|
|
232
263
|
/** 获取用户头像回调
|
|
@@ -539,6 +570,9 @@ declare namespace ButtonProps {
|
|
|
539
570
|
interface onGetPhoneNumberAndRiskLevelEventDetail {
|
|
540
571
|
code: string
|
|
541
572
|
}
|
|
573
|
+
interface onCreateLiveActivityEventDetail {
|
|
574
|
+
code: string
|
|
575
|
+
}
|
|
542
576
|
interface onGetRealTimePhoneNumberEventDetail {
|
|
543
577
|
code: string
|
|
544
578
|
}
|
|
@@ -551,7 +585,7 @@ declare namespace ButtonProps {
|
|
|
551
585
|
}
|
|
552
586
|
/** 按钮
|
|
553
587
|
* @classification forms
|
|
554
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
588
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
555
589
|
* @example_react
|
|
556
590
|
* ```tsx
|
|
557
591
|
* export default class PageButton extends Component {
|
package/types/Camera.d.ts
CHANGED
|
@@ -8,17 +8,17 @@ interface CameraProps extends StandardProps {
|
|
|
8
8
|
mode?: keyof CameraProps.Mode
|
|
9
9
|
/** 分辨率,不支持动态修改
|
|
10
10
|
* @default "medium"
|
|
11
|
-
* @supported weapp, tt
|
|
11
|
+
* @supported weapp, tt, ascf
|
|
12
12
|
*/
|
|
13
13
|
resolution?: keyof CameraProps.Resolution
|
|
14
14
|
/** 摄像头朝向
|
|
15
15
|
* @default "back"
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
|
|
17
17
|
*/
|
|
18
18
|
devicePosition?: keyof CameraProps.DevicePosition
|
|
19
19
|
/** 闪光灯
|
|
20
20
|
* @default "auto"
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
|
|
22
22
|
*/
|
|
23
23
|
flash?: keyof CameraProps.Flash
|
|
24
24
|
/** 指定期望的相机帧数据尺寸
|
|
@@ -33,15 +33,15 @@ interface CameraProps extends StandardProps {
|
|
|
33
33
|
outputDimension?: '360P' | '540P' | '720P' | '1080P' | 'max'
|
|
34
34
|
/** 摄像头在非正常终止时触发,
|
|
35
35
|
* 如退出后台等情况
|
|
36
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
36
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
|
|
37
37
|
*/
|
|
38
38
|
onStop?: CommonEventFunction
|
|
39
39
|
/** 用户不允许使用摄像头时触发
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
|
|
41
41
|
*/
|
|
42
42
|
onError?: CommonEventFunction
|
|
43
43
|
/** 相机初始化完成时触发
|
|
44
|
-
* @supported weapp, tt, rn
|
|
44
|
+
* @supported weapp, tt, rn, ascf
|
|
45
45
|
*/
|
|
46
46
|
onInitDone?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
|
|
47
47
|
/** 相机初始化成功时触发。
|
|
@@ -121,7 +121,7 @@ declare namespace CameraProps {
|
|
|
121
121
|
}
|
|
122
122
|
/** 系统相机
|
|
123
123
|
* @classification media
|
|
124
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
124
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
|
|
125
125
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
126
126
|
*/
|
|
127
127
|
declare const Camera: ComponentType<CameraProps>
|