@tarojs/components 4.0.7 → 4.0.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
- package/dist/collection/components/swiper/swiper.js +2 -2
- package/dist/components/taro-swiper-core.js +2 -2
- package/dist/esm/taro-swiper-core_2.entry.js +2 -2
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/hydrate/index.js +2 -2
- package/dist/taro-components/{p-c4793deb.system.entry.js → p-bb3a760a.system.entry.js} +1 -1
- package/dist/taro-components/p-bd2bb986.entry.js +1 -0
- package/dist/taro-components/p-d9b9319b.system.js +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/package.json +6 -6
- package/types/DraggableSheet.d.ts +5 -0
- package/types/Image.d.ts +1 -1
- package/types/Input.d.ts +24 -0
- package/types/RichText.d.ts +5 -0
- package/types/ScrollView.d.ts +24 -0
- package/types/ShareElement.d.ts +3 -3
- package/types/StickyHeader.d.ts +6 -0
- package/types/Swiper.d.ts +72 -10
- package/types/Textarea.d.ts +21 -0
- package/types/gesture/DoubleTapGestureHandler.d.ts +34 -0
- package/types/gesture/ForcePressGestureHandler.d.ts +30 -0
- package/types/gesture/HorizontalDragGestureHandler.d.ts +34 -0
- package/types/gesture/LongPressGestureHandler.d.ts +34 -0
- package/types/gesture/PanGestureHandler.d.ts +34 -0
- package/types/gesture/ScaleGestureHandler.d.ts +34 -0
- package/types/gesture/TapGestureHandler.d.ts +34 -0
- package/types/gesture/VerticalDragGestureHandler.d.ts +34 -0
- package/types/gesture/common.d.ts +26 -0
- package/types/index.d.ts +9 -1
- package/dist/taro-components/p-269894f2.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-d0cabaaa.js";export{s as setNonce}from"./p-d0cabaaa.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-13773464",[[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-77dee229",[[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-bc4dbbfb",[[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-2ad41ae2",[[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-269894f2",[[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-a51c3fc6",[[0,"taro-ad-core"]]],["p-13f9d171",[[0,"taro-ad-custom-core"]]],["p-3779a716",[[0,"taro-animation-video-core"]]],["p-b4e5684a",[[0,"taro-animation-view-core"]]],["p-9d2e99b5",[[0,"taro-ar-camera-core"]]],["p-70283efb",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-493e2c9a",[[0,"taro-aweme-data-core"]]],["p-b8b1e967",[[0,"taro-block-core"]]],["p-3dc40ce0",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-e30dbf52",[[0,"taro-camera-core"]]],["p-71167112",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-92d5f74a",[[0,"taro-channel-live-core"]]],["p-7d115ac1",[[0,"taro-channel-video-core"]]],["p-5584c307",[[0,"taro-comment-detail-core"]]],["p-b8916511",[[0,"taro-comment-list-core"]]],["p-f922c742",[[0,"taro-contact-button-core"]]],["p-81f8a153",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-2338fbc5",[[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-1bb89572",[[0,"taro-custom-wrapper-core"]]],["p-da00c309",[[0,"taro-draggable-sheet-core"]]],["p-fa01bbca",[[0,"taro-editor-core"]]],["p-a1e9e6e9",[[0,"taro-follow-swan-core"]]],["p-2b0158fc",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-7ba8fbd4",[[0,"taro-functional-page-navigator-core"]]],["p-0711615a",[[0,"taro-grid-builder-core"]]],["p-31f20299",[[0,"taro-grid-view-core"]]],["p-7c78d193",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-eb7aa8ad",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0d965cb0",[[0,"taro-inline-payment-panel-core"]]],["p-a34fb684",[[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],"nativeProps":[16],"focus":[64]}]]],["p-725381f1",[[0,"taro-keyboard-accessory-core"]]],["p-e4b971a9",[[4,"taro-label-core",{"for":[1]}]]],["p-88bcad64",[[0,"taro-lifestyle-core"]]],["p-7d469e2e",[[0,"taro-like-core"]]],["p-f5cd77f9",[[0,"taro-list-builder-core"]]],["p-a8a443a5",[[0,"taro-list-view-core"]]],["p-c575464d",[[0,"taro-live-player-core"]]],["p-26792379",[[0,"taro-live-pusher-core"]]],["p-db885f6a",[[0,"taro-login-core"]]],["p-b1e74461",[[0,"taro-lottie-core"]]],["p-b03b164f",[[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-a89cb7e0",[[0,"taro-match-media-core"]]],["p-d2023e97",[[0,"taro-native-slot-core"]]],["p-932b1e72",[[0,"taro-navigation-bar-core"]]],["p-c0c4d551",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-3d163624",[[0,"taro-nested-scroll-body-core"]]],["p-88ded2fb",[[0,"taro-nested-scroll-header-core"]]],["p-62fcda43",[[0,"taro-official-account-core"]]],["p-b923d242",[[0,"taro-open-container-core"]]],["p-e6a85481",[[0,"taro-open-data-core"]]],["p-101c15ac",[[0,"taro-page-container-core"]]],["p-ea867ded",[[0,"taro-page-meta-core"]]],["p-f6d29525",[[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-310f27ae",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-1331d6e6",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-b139e0bb",[[0,"taro-root-portal-core"]]],["p-22140f38",[[0,"taro-rtc-room-core"]]],["p-96d58e6b",[[0,"taro-rtc-room-item-core"]]],["p-f26ddbc9",[[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"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a1368421",[[0,"taro-share-element-core"]]],["p-6f43d1a1",[[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-9b1be768",[[0,"taro-slot-core"]]],["p-6a54dc69",[[0,"taro-snapshot-core"]]],["p-646b6bb1",[[0,"taro-span-core"]]],["p-da3ae8b9",[[0,"taro-sticky-header-core"]]],["p-010113d5",[[0,"taro-sticky-section-core"]]],["p-48887552",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-6c314305",[[0,"taro-tab-item-core"]]],["p-177ab579",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-ea2ea074",[[0,"taro-tabs-core"]]],["p-b197f269",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-9cf98daf",[[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],"focus":[64]}]]],["p-757c9533",[[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-60c76b97",[[0,"taro-voip-room-core"]]],["p-a33c6ab4",[[0,"taro-web-view-core",{"src":[1]}]]],["p-39dd80dd",[[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-bd7d7771",[[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-d0cabaaa.js";export{s as setNonce}from"./p-d0cabaaa.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-13773464",[[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-77dee229",[[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-bc4dbbfb",[[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-2ad41ae2",[[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-bd2bb986",[[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-a51c3fc6",[[0,"taro-ad-core"]]],["p-13f9d171",[[0,"taro-ad-custom-core"]]],["p-3779a716",[[0,"taro-animation-video-core"]]],["p-b4e5684a",[[0,"taro-animation-view-core"]]],["p-9d2e99b5",[[0,"taro-ar-camera-core"]]],["p-70283efb",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-493e2c9a",[[0,"taro-aweme-data-core"]]],["p-b8b1e967",[[0,"taro-block-core"]]],["p-3dc40ce0",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-e30dbf52",[[0,"taro-camera-core"]]],["p-71167112",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-92d5f74a",[[0,"taro-channel-live-core"]]],["p-7d115ac1",[[0,"taro-channel-video-core"]]],["p-5584c307",[[0,"taro-comment-detail-core"]]],["p-b8916511",[[0,"taro-comment-list-core"]]],["p-f922c742",[[0,"taro-contact-button-core"]]],["p-81f8a153",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-2338fbc5",[[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-1bb89572",[[0,"taro-custom-wrapper-core"]]],["p-da00c309",[[0,"taro-draggable-sheet-core"]]],["p-fa01bbca",[[0,"taro-editor-core"]]],["p-a1e9e6e9",[[0,"taro-follow-swan-core"]]],["p-2b0158fc",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-7ba8fbd4",[[0,"taro-functional-page-navigator-core"]]],["p-0711615a",[[0,"taro-grid-builder-core"]]],["p-31f20299",[[0,"taro-grid-view-core"]]],["p-7c78d193",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-eb7aa8ad",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0d965cb0",[[0,"taro-inline-payment-panel-core"]]],["p-a34fb684",[[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],"nativeProps":[16],"focus":[64]}]]],["p-725381f1",[[0,"taro-keyboard-accessory-core"]]],["p-e4b971a9",[[4,"taro-label-core",{"for":[1]}]]],["p-88bcad64",[[0,"taro-lifestyle-core"]]],["p-7d469e2e",[[0,"taro-like-core"]]],["p-f5cd77f9",[[0,"taro-list-builder-core"]]],["p-a8a443a5",[[0,"taro-list-view-core"]]],["p-c575464d",[[0,"taro-live-player-core"]]],["p-26792379",[[0,"taro-live-pusher-core"]]],["p-db885f6a",[[0,"taro-login-core"]]],["p-b1e74461",[[0,"taro-lottie-core"]]],["p-b03b164f",[[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-a89cb7e0",[[0,"taro-match-media-core"]]],["p-d2023e97",[[0,"taro-native-slot-core"]]],["p-932b1e72",[[0,"taro-navigation-bar-core"]]],["p-c0c4d551",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-3d163624",[[0,"taro-nested-scroll-body-core"]]],["p-88ded2fb",[[0,"taro-nested-scroll-header-core"]]],["p-62fcda43",[[0,"taro-official-account-core"]]],["p-b923d242",[[0,"taro-open-container-core"]]],["p-e6a85481",[[0,"taro-open-data-core"]]],["p-101c15ac",[[0,"taro-page-container-core"]]],["p-ea867ded",[[0,"taro-page-meta-core"]]],["p-f6d29525",[[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-310f27ae",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-1331d6e6",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-b139e0bb",[[0,"taro-root-portal-core"]]],["p-22140f38",[[0,"taro-rtc-room-core"]]],["p-96d58e6b",[[0,"taro-rtc-room-item-core"]]],["p-f26ddbc9",[[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"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a1368421",[[0,"taro-share-element-core"]]],["p-6f43d1a1",[[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-9b1be768",[[0,"taro-slot-core"]]],["p-6a54dc69",[[0,"taro-snapshot-core"]]],["p-646b6bb1",[[0,"taro-span-core"]]],["p-da3ae8b9",[[0,"taro-sticky-header-core"]]],["p-010113d5",[[0,"taro-sticky-section-core"]]],["p-48887552",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-6c314305",[[0,"taro-tab-item-core"]]],["p-177ab579",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-ea2ea074",[[0,"taro-tabs-core"]]],["p-b197f269",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-9cf98daf",[[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],"focus":[64]}]]],["p-757c9533",[[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-60c76b97",[[0,"taro-voip-room-core"]]],["p-a33c6ab4",[[0,"taro-web-view-core",{"src":[1]}]]],["p-39dd80dd",[[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-bd7d7771",[[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.0.
|
|
3
|
+
"version": "4.0.8-alpha.0",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"resolve-pathname": "^3.0.0",
|
|
42
42
|
"swiper": "11.1.0",
|
|
43
43
|
"tslib": "^2.6.2",
|
|
44
|
-
"@tarojs/runtime": "4.0.
|
|
45
|
-
"@tarojs/
|
|
46
|
-
"@tarojs/
|
|
47
|
-
"@tarojs/
|
|
44
|
+
"@tarojs/runtime": "4.0.8-alpha.0",
|
|
45
|
+
"@tarojs/shared": "4.0.8-alpha.0",
|
|
46
|
+
"@tarojs/taro": "4.0.8-alpha.0",
|
|
47
|
+
"@tarojs/components-advanced": "4.0.8-alpha.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/generator": "^7.21.4",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"jest-cli": "27.5.1",
|
|
71
71
|
"jest-runner": "27.5.1",
|
|
72
72
|
"jest-environment-node": "27.5.1",
|
|
73
|
-
"@tarojs/helper": "4.0.
|
|
73
|
+
"@tarojs/helper": "4.0.8-alpha.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@types/react": {
|
|
@@ -32,6 +32,11 @@ interface DraggableSheetProps extends StandardProps {
|
|
|
32
32
|
* @default []
|
|
33
33
|
*/
|
|
34
34
|
snapSizes?: any[]
|
|
35
|
+
/**
|
|
36
|
+
* 尺寸发生变化时触发,仅支持 worklet 作为回调。event = {pixels, size}
|
|
37
|
+
* @supported weapp-skyline
|
|
38
|
+
*/
|
|
39
|
+
onSizeUpdateWorklet?: CommonEventFunction
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
/**
|
package/types/Image.d.ts
CHANGED
package/types/Input.d.ts
CHANGED
|
@@ -78,6 +78,10 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
78
78
|
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
|
79
79
|
*/
|
|
80
80
|
cursor?: number
|
|
81
|
+
/** 光标颜色。iOS 下的格式为十六进制颜色值 #000000,安卓下的只支持 default 和 green,Skyline 下无限制
|
|
82
|
+
* @supported weapp
|
|
83
|
+
*/
|
|
84
|
+
cursorColor?: string
|
|
81
85
|
/** 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
82
86
|
* @default -1
|
|
83
87
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
@@ -194,6 +198,26 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
194
198
|
* @supported weapp
|
|
195
199
|
*/
|
|
196
200
|
onNickNameReview?: CommonEventFunction
|
|
201
|
+
/** 选区改变事件, {selectionStart, selectionEnd}
|
|
202
|
+
* @supported weapp-skyline
|
|
203
|
+
*/
|
|
204
|
+
onSelectionChange?: CommonEventFunction
|
|
205
|
+
/** 输入法开始新的输入时触发 (仅当输入法支持时触发)
|
|
206
|
+
* @supported weapp-skyline
|
|
207
|
+
*/
|
|
208
|
+
onKeyboardCompositionStart?: CommonEventFunction
|
|
209
|
+
/** 输入法输入字符时触发(仅当输入法支持时触发)
|
|
210
|
+
* @supported weapp-skyline
|
|
211
|
+
*/
|
|
212
|
+
onKeyboardCompositionUpdate?: CommonEventFunction
|
|
213
|
+
/** 输入法输入结束时触发(仅当输入法支持时触发)
|
|
214
|
+
* @supported weapp-skyline
|
|
215
|
+
*/
|
|
216
|
+
onKeyboardCompositionEnd?: CommonEventFunction
|
|
217
|
+
/** 键盘高度变化时触发。event.detail = {height: height, pageBottomPadding: pageBottomPadding}; height: 键盘高度,pageBottomPadding: 页面上推高度
|
|
218
|
+
* @supported weapp-skyline
|
|
219
|
+
*/
|
|
220
|
+
onKeyoardHeightChangeWorklet?: CommonEventFunction
|
|
197
221
|
}
|
|
198
222
|
declare namespace InputProps {
|
|
199
223
|
/** Input 类型 */
|
package/types/RichText.d.ts
CHANGED
|
@@ -52,6 +52,11 @@ interface RichTextProps extends StandardProps {
|
|
|
52
52
|
* @supported alipay
|
|
53
53
|
*/
|
|
54
54
|
onLongtap?: CommonEventFunction
|
|
55
|
+
/** 布局兼容模式
|
|
56
|
+
* @supported weapp-skyline
|
|
57
|
+
* @default default
|
|
58
|
+
*/
|
|
59
|
+
mode?: 'default' | 'compat' | 'aggressive' | 'inline-block' | 'web'
|
|
55
60
|
}
|
|
56
61
|
/** 节点类型
|
|
57
62
|
* > 现支持两种节点,通过type来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的HTML节点 元素节点:type = node*
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -144,6 +144,14 @@ interface ScrollViewProps extends StandardProps {
|
|
|
144
144
|
* @default 'list'
|
|
145
145
|
*/
|
|
146
146
|
type?: 'list' | 'custom' | 'nested'
|
|
147
|
+
/** 关联的滚动容器
|
|
148
|
+
* draggable-sheet - 关联 draggable-sheet 组件 3.2.0
|
|
149
|
+
* nested-scroll-view - 关联 type=nested 嵌套模式 3.2.0
|
|
150
|
+
* pop-gesture - 关联 页面手势返回 3.4.0
|
|
151
|
+
* @supported weapp
|
|
152
|
+
* @default ''
|
|
153
|
+
*/
|
|
154
|
+
associativeContainer?: 'draggable-sheet' | 'nested-scroll-view' | 'pop-gesture'
|
|
147
155
|
/** 是否反向滚动。一般初始滚动位置是在顶部,反向滚动则是在底部。
|
|
148
156
|
* @supported weapp
|
|
149
157
|
* @default false
|
|
@@ -289,6 +297,22 @@ interface ScrollViewProps extends StandardProps {
|
|
|
289
297
|
* @supported alipay
|
|
290
298
|
*/
|
|
291
299
|
onTouchCancel?: CommonEventFunction
|
|
300
|
+
/** 同 bindscrollstart,但仅支持 worklet 作为回调
|
|
301
|
+
* @supported weapp-skyline
|
|
302
|
+
*/
|
|
303
|
+
onScrollStartWorklet?: CommonEventFunction
|
|
304
|
+
/** bindscroll ,但仅支持 worklet 作为回调
|
|
305
|
+
* @supported weapp-skyline
|
|
306
|
+
*/
|
|
307
|
+
onScrollUpdateWorklet?: CommonEventFunction
|
|
308
|
+
/** 同 bindscrollend,但仅支持 worklet 作为回调
|
|
309
|
+
* @supported weapp-skyline
|
|
310
|
+
*/
|
|
311
|
+
onScrollEndWorklet?: CommonEventFunction
|
|
312
|
+
/** 指定手指抬起时做惯性滚动的初速度。(velocity: number) => number
|
|
313
|
+
* @supported weapp-skyline
|
|
314
|
+
*/
|
|
315
|
+
adjustDecelerationVelocityWorklet?: TaroGeneral.TFunc
|
|
292
316
|
}
|
|
293
317
|
declare namespace ScrollViewProps {
|
|
294
318
|
interface onScrollDetail {
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -59,11 +59,11 @@ interface ShareElementProps extends StandardProps {
|
|
|
59
59
|
| 'bounceIn'
|
|
60
60
|
| 'bounceOut'
|
|
61
61
|
| 'bounceInOut'
|
|
62
|
-
| 'cubic-bezier(x1,'
|
|
62
|
+
| 'cubic-bezier(x1, y1, x2, y2)'
|
|
63
63
|
/** 动画帧回调
|
|
64
|
-
* @supported weapp
|
|
64
|
+
* @supported weapp-skyline
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
onFrameWorklet?: CommonEventFunction
|
|
67
67
|
}
|
|
68
68
|
/** 共享元素
|
|
69
69
|
*
|
package/types/StickyHeader.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ interface StickyHeaderProps extends StandardProps {
|
|
|
13
13
|
* @default [0, 0, 0, 0]
|
|
14
14
|
*/
|
|
15
15
|
padding?: [number, number, number, number]
|
|
16
|
+
/**
|
|
17
|
+
* 吸顶状态变化事件,仅支持非 worklet 的组件方法作为回调。event.detail = { isStickOnTop },当 sticky-header 吸顶时为 true,否则为 false。
|
|
18
|
+
* @supported weapp
|
|
19
|
+
* @version >=3.6.2
|
|
20
|
+
*/
|
|
21
|
+
onStickOnTopChange?: CommonEventFunction
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
/**
|
package/types/Swiper.d.ts
CHANGED
|
@@ -141,16 +141,6 @@ interface SwiperProps extends StandardProps {
|
|
|
141
141
|
* @supported swan
|
|
142
142
|
*/
|
|
143
143
|
disableTouchmove?: string
|
|
144
|
-
/** 改变 current 时使用动画过渡
|
|
145
|
-
* @supported weapp
|
|
146
|
-
* @default true
|
|
147
|
-
*/
|
|
148
|
-
scrollWithAnimation?: boolean
|
|
149
|
-
/** 缓存区域大小,值为 1 表示提前渲染上下各一屏区域(swiper 容器大小)
|
|
150
|
-
* @supported weapp
|
|
151
|
-
* @default 0
|
|
152
|
-
*/
|
|
153
|
-
cacheExtent?: number
|
|
154
144
|
/** swiper11 相关的动效参数,具体见文档 https://swiperjs.com/swiper-api#parameters
|
|
155
145
|
* @supported h5
|
|
156
146
|
*/
|
|
@@ -171,6 +161,78 @@ interface SwiperProps extends StandardProps {
|
|
|
171
161
|
* @supported alipay
|
|
172
162
|
*/
|
|
173
163
|
onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
|
|
164
|
+
/** 渲染模式
|
|
165
|
+
* @supported weapp-skyline
|
|
166
|
+
* @default normal
|
|
167
|
+
*/
|
|
168
|
+
layoutType?: 'normal' | 'stackLeft' | 'stackRight' | 'tinder' | 'transformer'
|
|
169
|
+
/** layout-type 为 transformer 时指定动画类型
|
|
170
|
+
* @supported weapp-skyline
|
|
171
|
+
* @default scaleAndFade
|
|
172
|
+
*/
|
|
173
|
+
transformerType?: 'scaleAndFade' | 'accordion' | 'threeD' | 'zoomIn' | 'zoomOut' | 'deepthPage'
|
|
174
|
+
/** 指示点动画类型
|
|
175
|
+
* @supported weapp-skyline
|
|
176
|
+
* @default normal
|
|
177
|
+
*/
|
|
178
|
+
indicatorType?: 'normal' | 'worm' | 'wormThin' | 'wormUnderground' | 'wormThinUnderground' | 'expand' | 'jump' | 'jumpWithOffset' | 'scroll' | 'scrollFixedCenter' | 'slide' | 'slideUnderground' | 'scale' | 'swap' | 'swapYRotation' | 'color'
|
|
179
|
+
/** 指示点四周边距
|
|
180
|
+
* @supported weapp-skyline
|
|
181
|
+
* @default 10
|
|
182
|
+
*/
|
|
183
|
+
indicatorMargin?: number
|
|
184
|
+
/** 指示点间距
|
|
185
|
+
* @supported weapp-skyline
|
|
186
|
+
* @default 4
|
|
187
|
+
*/
|
|
188
|
+
indicatorSpacing?: number
|
|
189
|
+
/** 指示点圆角大小
|
|
190
|
+
* @supported weapp-skyline
|
|
191
|
+
* @default 4
|
|
192
|
+
*/
|
|
193
|
+
indicatorRadius?: number
|
|
194
|
+
/** 指示点宽度
|
|
195
|
+
* @supported weapp-skyline
|
|
196
|
+
* @default 8
|
|
197
|
+
*/
|
|
198
|
+
indicatorWidth?: number
|
|
199
|
+
/** 指示点高度
|
|
200
|
+
* @supported weapp-skyline
|
|
201
|
+
* @default 8
|
|
202
|
+
*/
|
|
203
|
+
indicatorHeight?: number
|
|
204
|
+
/** 指示点的相对位置
|
|
205
|
+
* @supported weapp-skyline
|
|
206
|
+
* @default auto
|
|
207
|
+
*/
|
|
208
|
+
indicatorAlignment?: [number, number] | string
|
|
209
|
+
/** 指示点位置的偏移量
|
|
210
|
+
* @supported weapp-skyline
|
|
211
|
+
* @default [0, 0]
|
|
212
|
+
*/
|
|
213
|
+
indicatorOffset?: [number, number]
|
|
214
|
+
/** 改变 current 时使用动画过渡
|
|
215
|
+
* @supported weapp-skyline
|
|
216
|
+
* @default true
|
|
217
|
+
*/
|
|
218
|
+
scrollWithAnimation?: boolean
|
|
219
|
+
/** 缓存区域大小,值为 1 表示提前渲染上下各一屏区域(swiper 容器大小)
|
|
220
|
+
* @supported weapp-skyline
|
|
221
|
+
* @default 0
|
|
222
|
+
*/
|
|
223
|
+
cacheExtent?: number
|
|
224
|
+
/** 滑动开始时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
|
|
225
|
+
* @supported weapp-skyline
|
|
226
|
+
*/
|
|
227
|
+
onScrollStartWorklet?: CommonEventFunction
|
|
228
|
+
/** 滑动位置更新时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
|
|
229
|
+
* @supported weapp-skyline
|
|
230
|
+
*/
|
|
231
|
+
onScrollUpdateWorklet?: CommonEventFunction
|
|
232
|
+
/** 滑动结束时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
|
|
233
|
+
* @supported weapp-skyline
|
|
234
|
+
*/
|
|
235
|
+
onScrollEndWorklet?: CommonEventFunction
|
|
174
236
|
}
|
|
175
237
|
declare namespace SwiperProps {
|
|
176
238
|
/** 导致变更的原因 */
|
package/types/Textarea.d.ts
CHANGED
|
@@ -154,6 +154,27 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
154
154
|
* @supported weapp, tt, harmony
|
|
155
155
|
*/
|
|
156
156
|
onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
|
|
157
|
+
|
|
158
|
+
/** 需传入对象,格式为 { fontSize: number, fontWeight: string, color: string }
|
|
159
|
+
* @supported weapp-skyline
|
|
160
|
+
*/
|
|
161
|
+
placeholderStyle?: string
|
|
162
|
+
/** 选区改变事件, {selectionStart, selectionEnd}
|
|
163
|
+
* @supported weapp-skyline
|
|
164
|
+
*/
|
|
165
|
+
onSelectionChange?: CommonEventFunction
|
|
166
|
+
/** 输入法开始新的输入时触发 (仅当输入法支持时触发)
|
|
167
|
+
* @supported weapp-skyline
|
|
168
|
+
*/
|
|
169
|
+
onKeyboardCompositionStart?: CommonEventFunction
|
|
170
|
+
/** 输入法输入字符时触发(仅当输入法支持时触发)
|
|
171
|
+
* @supported weapp-skyline
|
|
172
|
+
*/
|
|
173
|
+
onKeyboardCompositionUpdate?: CommonEventFunction
|
|
174
|
+
/** 输入法输入结束时触发(仅当输入法支持时触发)
|
|
175
|
+
* @supported weapp-skyline
|
|
176
|
+
*/
|
|
177
|
+
onKeyboardCompositionEnd?: CommonEventFunction
|
|
157
178
|
}
|
|
158
179
|
declare namespace TextareaProps {
|
|
159
180
|
interface onFocusEventDetail {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface DoubleTapGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** 双击时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, DoubleTapGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <DoubleTapGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </DoubleTapGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const DoubleTapGestureHandler: ComponentType<DoubleTapGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { DoubleTapGestureHandler, DoubleTapGestureHandlerProps }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from './common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface ForcePressGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**iPhone 设备重按时触发手势
|
|
10
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
11
|
+
* @supported weapp-skyline
|
|
12
|
+
* @example_react
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { Component } from 'react'
|
|
15
|
+
* import { View, ForcePressGestureHandler } from '@tarojs/components'
|
|
16
|
+
*
|
|
17
|
+
* export function Index () {
|
|
18
|
+
* return (
|
|
19
|
+
* <View compileMode>
|
|
20
|
+
* <ForcePressGestureHandler onGestureWorklet="onGesture">
|
|
21
|
+
* <View className='circle'></View>
|
|
22
|
+
* </ForcePressGestureHandler>
|
|
23
|
+
* </View>
|
|
24
|
+
* )
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const ForcePressGestureHandler: ComponentType<ForcePressGestureHandlerProps>
|
|
29
|
+
|
|
30
|
+
export { ForcePressGestureHandler, ForcePressGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface HorizontalDragGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**横向滑动时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, HorizontalDragGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <HorizontalDragGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </HorizontalDragGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const HorizontalDragGestureHandler: ComponentType<HorizontalDragGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { HorizontalDragGestureHandler, HorizontalDragGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface LongPressGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**长按时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, LongPressGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <LongPressGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </LongPressGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const LongPressGestureHandler: ComponentType<LongPressGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { LongPressGestureHandler, LongPressGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface PanGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**拖动(横向/纵向)时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, PanGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <PanGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </PanGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const PanGestureHandler: ComponentType<PanGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { PanGestureHandler, PanGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface ScaleGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**多指缩放时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, ScaleGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <ScaleGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </ScaleGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const ScaleGestureHandler: ComponentType<ScaleGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { ScaleGestureHandler, ScaleGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface TapGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**点击时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, TapGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <TapGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </TapGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const TapGestureHandler: ComponentType<TapGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { TapGestureHandler, TapGestureHandlerProps }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from '../common'
|
|
4
|
+
import { CommonGestureProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface VerticalDragGestureHandlerProps extends CommonGestureProps, StandardProps {
|
|
7
|
+
/** 手指移动过程中手势是否响应
|
|
8
|
+
* @supported weapp-skyline
|
|
9
|
+
*/
|
|
10
|
+
shouldResponseOnMoveWorklet?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**纵向滑动时触发手势
|
|
14
|
+
* 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
|
15
|
+
* @supported weapp-skyline
|
|
16
|
+
* @example_react
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Component } from 'react'
|
|
19
|
+
* import { View, VerticalDragGestureHandler } from '@tarojs/components'
|
|
20
|
+
*
|
|
21
|
+
* export function Index () {
|
|
22
|
+
* return (
|
|
23
|
+
* <View compileMode>
|
|
24
|
+
* <VerticalDragGestureHandler onGestureWorklet="onGesture">
|
|
25
|
+
* <View className='circle'></View>
|
|
26
|
+
* </VerticalDragGestureHandler>
|
|
27
|
+
* </View>
|
|
28
|
+
* )
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const VerticalDragGestureHandler: ComponentType<VerticalDragGestureHandlerProps>
|
|
33
|
+
|
|
34
|
+
export { VerticalDragGestureHandler, VerticalDragGestureHandlerProps }
|