@tarojs/components 3.6.0-canary.4 → 3.6.0-canary.6
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/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +20 -0
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +2 -0
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-components.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/react/component-lib/input.js +2 -2
- package/dist/react/component-lib/reactify-wc.js +13 -13
- package/dist/react/helper.js +1 -1
- package/dist/react/react-component-lib/createComponent.js +10 -10
- package/dist/react/react-component-lib/createOverlayComponent.js +18 -16
- package/dist/react/react-component-lib/utils/attachProps.js +1 -1
- package/dist/react/react-component-lib/utils/index.js +7 -6
- package/dist/taro-components/{p-1cd1c507.system.entry.js → p-6831f7b1.system.entry.js} +2 -2
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +1 -1
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -1
- package/dist/taro-components/{p-a2aab820.entry.js → p-d388c097.entry.js} +2 -2
- package/dist/taro-components/p-d388c097.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -1
- package/dist/types/components/swiper/swiper.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/vue2/component-lib/createComponent.js +1 -1
- package/dist/vue2/component-lib/createFormsComponent.js +2 -2
- package/dist/vue2/component-lib/index.js +1 -1
- package/dist/vue2/component-lib/mixins/listeners.js +1 -1
- package/dist/vue2/component-lib/mixins/refs.js +1 -1
- package/dist/vue2/component-lib/picker.js +1 -1
- package/dist/vue2/component-lib/scroll-view.js +1 -1
- package/dist/vue2/components.js +3 -2
- package/dist/vue2/index.js +2 -2
- package/dist/vue2/vue-component-lib/utils.js +2 -2
- package/dist/vue3/component-lib/createComponent.js +1 -1
- package/dist/vue3/component-lib/createFormsComponent.js +3 -3
- package/dist/vue3/components.js +1 -1
- package/dist/vue3/index.js +1 -1
- package/dist/vue3/vue-component-lib/utils.js +3 -3
- package/package.json +4 -4
- package/types/Ad.d.ts +1 -1
- package/types/Audio.d.ts +1 -1
- package/types/Button.d.ts +1 -1
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +102 -4
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Form.d.ts +1 -1
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +1 -1
- package/types/Input.d.ts +71 -8
- package/types/LivePlayer.d.ts +1 -1
- package/types/LivePusher.d.ts +1 -1
- package/types/Lottie.d.ts +0 -6
- package/types/Map.d.ts +1 -1
- package/types/MatchMedia.d.ts +1 -1
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +17 -17
- package/types/Navigator.d.ts +1 -1
- package/types/OpenData.d.ts +1 -1
- package/types/PageContainer.d.ts +28 -18
- package/types/PageMeta.d.ts +1 -1
- package/types/Picker.d.ts +1 -1
- package/types/PickerView.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +1 -1
- package/types/RootPortal.d.ts +11 -2
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +20 -10
- package/types/Slider.d.ts +1 -1
- package/types/Swiper.d.ts +13 -1
- package/types/SwiperItem.d.ts +3 -2
- package/types/Switch.d.ts +1 -1
- package/types/Text.d.ts +1 -1
- package/types/Textarea.d.ts +7 -1
- package/types/Video.d.ts +7 -1
- package/types/View.d.ts +1 -1
- package/types/WebView.d.ts +1 -1
- package/types/index.vue3.d.ts +268 -259
- package/dist/taro-components/p-1cd1c507.system.entry.js.map +0 -1
- package/dist/taro-components/p-a2aab820.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-5bfefd19.js";const a=()=>{const o=import.meta.url;const a={};if(o!==""){a.resourcesUrl=new URL(".",o).href}return e(a)};a().then((e=>o(JSON.parse('[["p-c3bb8fa6",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-8231e748",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-b10cb428",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df862d0c",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-a2aab820",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-4b05e003",[[0,"taro-ad-core"]]],["p-3e6b29c6",[[0,"taro-ad-custom-core"]]],["p-6cd941bc",[[0,"taro-animation-video-core"]]],["p-386b9de8",[[0,"taro-animation-view-core"]]],["p-d6441fd8",[[0,"taro-ar-camera-core"]]],["p-beea63a7",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-37d71e63",[[0,"taro-aweme-data-core"]]],["p-93cc7adc",[[0,"taro-block-core"]]],["p-f120c272",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-6af8be19",[[0,"taro-camera-core"]]],["p-17657dca",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-7bafbe22",[[0,"taro-comment-detail-core"]]],["p-5bd1c1a1",[[0,"taro-comment-list-core"]]],["p-70defa84",[[0,"taro-contact-button-core"]]],["p-01dc54a5",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-de762042",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-be3f5ac0",[[0,"taro-custom-wrapper-core"]]],["p-96a784f1",[[0,"taro-editor-core"]]],["p-876edf66",[[0,"taro-follow-swan-core"]]],["p-e4f1cc50",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-ba743573",[[0,"taro-functional-page-navigator-core"]]],["p-55519002",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-5b552407",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-65971d99",[[0,"taro-inline-payment-panel-core"]]],["p-9e20c25c",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-1cb76199",[[0,"taro-keyboard-accessory-core"]]],["p-b832f4e8",[[4,"taro-label-core",{"for":[1]}]]],["p-62d750a7",[[0,"taro-lifestyle-core"]]],["p-73106bc9",[[0,"taro-like-core"]]],["p-20ec6387",[[0,"taro-live-player-core"]]],["p-0d36ef6b",[[0,"taro-live-pusher-core"]]],["p-7e7a1e62",[[0,"taro-login-core"]]],["p-7afc274a",[[0,"taro-lottie-core"]]],["p-ab105c26",[[0,"taro-map-core"]]],["p-12e4b019",[[0,"taro-match-media-core"]]],["p-51040638",[[0,"taro-native-slot-core"]]],["p-cd6a7eea",[[0,"taro-navigation-bar-core"]]],["p-3c256e0e",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-d85b216d",[[0,"taro-official-account-core"]]],["p-0a896bc7",[[0,"taro-open-data-core"]]],["p-0ee6a068",[[0,"taro-page-container-core"]]],["p-b90926cc",[[0,"taro-page-meta-core"]]],["p-29f04296",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-570222e2",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-6ea2995b",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-3b9a1125",[[0,"taro-root-portal-core"]]],["p-a4961ddd",[[0,"taro-rtc-room-core"]]],["p-f81d14ad",[[0,"taro-rtc-room-item-core"]]],["p-427a2872",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]},[[3,"scroll","handleScroll"]]]]],["p-e59f999e",[[0,"taro-share-element-core"]]],["p-b4ec48c3",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-186ad7ff",[[0,"taro-slot-core"]]],["p-2243a376",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-28dade4f",[[0,"taro-tab-item-core"]]],["p-e0d6b00b",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-281a2bcf",[[0,"taro-tabs-core"]]],["p-2096bc5f",[[4,"taro-text-core",{"selectable":[4]}]]],["p-ffc44634",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-19afe402",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-6f8af69f",[[0,"taro-voip-room-core"]]],["p-1b64d2a2",[[0,"taro-web-view-core",{"src":[1]}]]],["p-d7f4b10f",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-4b71c926",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as o}from"./p-5bfefd19.js";const r=()=>{const o=import.meta.url;const r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return e(r)};r().then((e=>o(JSON.parse('[["p-c3bb8fa6",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-8231e748",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-b10cb428",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df862d0c",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-d388c097",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-4b05e003",[[0,"taro-ad-core"]]],["p-3e6b29c6",[[0,"taro-ad-custom-core"]]],["p-6cd941bc",[[0,"taro-animation-video-core"]]],["p-386b9de8",[[0,"taro-animation-view-core"]]],["p-d6441fd8",[[0,"taro-ar-camera-core"]]],["p-beea63a7",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-37d71e63",[[0,"taro-aweme-data-core"]]],["p-93cc7adc",[[0,"taro-block-core"]]],["p-f120c272",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-6af8be19",[[0,"taro-camera-core"]]],["p-17657dca",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-7bafbe22",[[0,"taro-comment-detail-core"]]],["p-5bd1c1a1",[[0,"taro-comment-list-core"]]],["p-70defa84",[[0,"taro-contact-button-core"]]],["p-01dc54a5",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-de762042",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-be3f5ac0",[[0,"taro-custom-wrapper-core"]]],["p-96a784f1",[[0,"taro-editor-core"]]],["p-876edf66",[[0,"taro-follow-swan-core"]]],["p-e4f1cc50",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-ba743573",[[0,"taro-functional-page-navigator-core"]]],["p-55519002",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-5b552407",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-65971d99",[[0,"taro-inline-payment-panel-core"]]],["p-9e20c25c",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-1cb76199",[[0,"taro-keyboard-accessory-core"]]],["p-b832f4e8",[[4,"taro-label-core",{"for":[1]}]]],["p-62d750a7",[[0,"taro-lifestyle-core"]]],["p-73106bc9",[[0,"taro-like-core"]]],["p-20ec6387",[[0,"taro-live-player-core"]]],["p-0d36ef6b",[[0,"taro-live-pusher-core"]]],["p-7e7a1e62",[[0,"taro-login-core"]]],["p-7afc274a",[[0,"taro-lottie-core"]]],["p-ab105c26",[[0,"taro-map-core"]]],["p-12e4b019",[[0,"taro-match-media-core"]]],["p-51040638",[[0,"taro-native-slot-core"]]],["p-cd6a7eea",[[0,"taro-navigation-bar-core"]]],["p-3c256e0e",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-d85b216d",[[0,"taro-official-account-core"]]],["p-0a896bc7",[[0,"taro-open-data-core"]]],["p-0ee6a068",[[0,"taro-page-container-core"]]],["p-b90926cc",[[0,"taro-page-meta-core"]]],["p-29f04296",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-570222e2",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-6ea2995b",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-3b9a1125",[[0,"taro-root-portal-core"]]],["p-a4961ddd",[[0,"taro-rtc-room-core"]]],["p-f81d14ad",[[0,"taro-rtc-room-item-core"]]],["p-427a2872",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]},[[3,"scroll","handleScroll"]]]]],["p-e59f999e",[[0,"taro-share-element-core"]]],["p-b4ec48c3",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-186ad7ff",[[0,"taro-slot-core"]]],["p-2243a376",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-28dade4f",[[0,"taro-tab-item-core"]]],["p-e0d6b00b",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-281a2bcf",[[0,"taro-tabs-core"]]],["p-2096bc5f",[[4,"taro-text-core",{"selectable":[4]}]]],["p-ffc44634",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-19afe402",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-6f8af69f",[[0,"taro-voip-room-core"]]],["p-1b64d2a2",[[0,"taro-web-view-core",{"src":[1]}]]],["p-d7f4b10f",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-4b71c926",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
|
|
2
2
|
//# sourceMappingURL=taro-components.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../node_modules/.pnpm/registry.npmjs.org+@stencil+core@2.19.2/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"mappings":"2CAMA,MAAMA,EAAe,KA6BjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,EAAeJ,IC9D1BL,IAAeU,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,
|
|
1
|
+
{"version":3,"sources":["../../node_modules/.pnpm/registry.npmjs.org+@stencil+core@2.19.2/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"mappings":"2CAMA,MAAMA,EAAe,KA6BjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,EAAeJ,IC9D1BL,IAAeU,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,2zTAAuCH","sourcesContent":["/*\n Stencil Client Patch Browser v2.19.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
|
|
@@ -57,6 +57,10 @@ export declare class Swiper implements ComponentInterface {
|
|
|
57
57
|
* 给 previewImage API 使用,全屏显示 swiper
|
|
58
58
|
*/
|
|
59
59
|
full: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 给 previewImage API 使用,缩放支持
|
|
62
|
+
*/
|
|
63
|
+
zoom: boolean;
|
|
60
64
|
onChange: EventEmitter;
|
|
61
65
|
onAnimationFinish: EventEmitter;
|
|
62
66
|
watchCurrent(newVal: any): void;
|
|
@@ -379,6 +379,10 @@ export namespace Components {
|
|
|
379
379
|
* 滑动方向是否为纵向
|
|
380
380
|
*/
|
|
381
381
|
"vertical": boolean;
|
|
382
|
+
/**
|
|
383
|
+
* 给 previewImage API 使用,缩放支持
|
|
384
|
+
*/
|
|
385
|
+
"zoom": boolean;
|
|
382
386
|
}
|
|
383
387
|
interface TaroSwiperItemCore {
|
|
384
388
|
"itemId": string;
|
|
@@ -1612,6 +1616,10 @@ declare namespace LocalJSX {
|
|
|
1612
1616
|
* 滑动方向是否为纵向
|
|
1613
1617
|
*/
|
|
1614
1618
|
"vertical"?: boolean;
|
|
1619
|
+
/**
|
|
1620
|
+
* 给 previewImage API 使用,缩放支持
|
|
1621
|
+
*/
|
|
1622
|
+
"zoom"?: boolean;
|
|
1615
1623
|
}
|
|
1616
1624
|
interface TaroSwiperItemCore {
|
|
1617
1625
|
"itemId"?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _toConsumableArray from "
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import { listeners } from './mixins/listeners';
|
|
3
3
|
import { refs } from './mixins/refs';
|
|
4
4
|
export default function createComponent(name) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _toConsumableArray from "
|
|
2
|
-
import _objectSpread from "
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import { listeners } from './mixins/listeners';
|
|
4
4
|
import { refs } from './mixins/refs';
|
|
5
5
|
export default function createFormsComponent(name, event) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _slicedToArray from "
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import Vue from 'vue';
|
|
3
3
|
import components from './components';
|
|
4
4
|
import createComponent from './createComponent';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread from "
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
export var listeners = {
|
|
3
3
|
computed: {
|
|
4
4
|
listeners: function listeners() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _typeof from "
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
2
|
export var refs = {
|
|
3
3
|
mounted: function mounted() {
|
|
4
4
|
if (this.$parent && _typeof(this.$parent.$refs) === 'object' && Object.keys(this.$parent.$refs).length) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread from "
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import { listeners } from './mixins/listeners';
|
|
3
3
|
import { refs } from './mixins/refs';
|
|
4
4
|
export default {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread from "
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import { listeners } from './mixins/listeners';
|
|
3
3
|
import { refs } from './mixins/refs';
|
|
4
4
|
export default {
|
package/dist/vue2/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _toConsumableArray from "
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
@@ -404,7 +404,8 @@ export var Swiper = /*@__PURE__*/Vue.extend({
|
|
|
404
404
|
previousMargin: {},
|
|
405
405
|
nextMargin: {},
|
|
406
406
|
displayMultipleItems: {},
|
|
407
|
-
full: {}
|
|
407
|
+
full: {},
|
|
408
|
+
zoom: {}
|
|
408
409
|
},
|
|
409
410
|
render: createCommonRender('taro-swiper-core', ['change', 'animationfinish'])
|
|
410
411
|
});
|
package/dist/vue2/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _slicedToArray from "
|
|
2
|
-
import _toConsumableArray from "
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import Vue from 'vue';
|
|
4
4
|
import * as components from './components';
|
|
5
5
|
export function initVue2Components() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "
|
|
2
|
-
import _objectSpread from "
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
export var createCommonRender = function createCommonRender(tagName) {
|
|
4
4
|
var eventNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
5
5
|
return function (createElement) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _toConsumableArray from "
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import { h } from 'vue';
|
|
3
3
|
import { useForwardRef } from './forwardRef';
|
|
4
4
|
export default function createComponent(name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _toConsumableArray from "
|
|
2
|
-
import _objectSpread from "
|
|
3
|
-
import _defineProperty from "
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import { computed, h, toRefs } from 'vue';
|
|
5
5
|
import { useForwardRef } from './forwardRef';
|
|
6
6
|
export default function createFormsComponent(name, eventName) {
|
package/dist/vue3/components.js
CHANGED
|
@@ -66,7 +66,7 @@ export var ScrollView = /*@__PURE__*/defineContainer('taro-scroll-view-core', un
|
|
|
66
66
|
export var ShareElement = /*@__PURE__*/defineContainer('taro-share-element-core', undefined);
|
|
67
67
|
export var Slider = /*@__PURE__*/defineContainer('taro-slider-core', undefined, ['min', 'max', 'step', 'disabled', 'value', 'activeColor', 'backgroundColor', 'blockSize', 'blockColor', 'showValue', 'name', 'change', 'changing']);
|
|
68
68
|
export var Slot = /*@__PURE__*/defineContainer('taro-slot-core', undefined);
|
|
69
|
-
export var Swiper = /*@__PURE__*/defineContainer('taro-swiper-core', undefined, ['indicatorDots', 'indicatorColor', 'indicatorActiveColor', 'autoplay', 'current', 'interval', 'duration', 'circular', 'vertical', 'previousMargin', 'nextMargin', 'displayMultipleItems', 'full', 'change', 'animationfinish']);
|
|
69
|
+
export var Swiper = /*@__PURE__*/defineContainer('taro-swiper-core', undefined, ['indicatorDots', 'indicatorColor', 'indicatorActiveColor', 'autoplay', 'current', 'interval', 'duration', 'circular', 'vertical', 'previousMargin', 'nextMargin', 'displayMultipleItems', 'full', 'zoom', 'change', 'animationfinish']);
|
|
70
70
|
export var SwiperItem = /*@__PURE__*/defineContainer('taro-swiper-item-core', undefined, ['itemId']);
|
|
71
71
|
export var Switch = /*@__PURE__*/defineContainer('taro-switch-core', undefined, ['type', 'checked', 'color', 'name', 'disabled', 'nativeProps', 'change']);
|
|
72
72
|
export var TabItem = /*@__PURE__*/defineContainer('taro-tab-item-core', undefined);
|
package/dist/vue3/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _slicedToArray from "
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import * as components from './components';
|
|
3
3
|
export function initVue3Components(app) {
|
|
4
4
|
app.config.isCustomElement = function (tag) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "
|
|
2
|
-
import _objectSpread from "
|
|
3
|
-
import _toConsumableArray from "
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
import { defineComponent, getCurrentInstance, h, inject, ref } from 'vue';
|
|
5
5
|
var UPDATE_VALUE_EVENT = 'update:modelValue';
|
|
6
6
|
var MODEL_VALUE = 'modelValue';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.6.0-canary.
|
|
3
|
+
"version": "3.6.0-canary.6",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"resolve-pathname": "^3.0.0",
|
|
36
36
|
"swiper": "6.8.0",
|
|
37
37
|
"weui": "^1.1.2",
|
|
38
|
-
"@tarojs/router": "3.6.0-canary.
|
|
39
|
-
"@tarojs/taro": "3.6.0-canary.
|
|
38
|
+
"@tarojs/router": "3.6.0-canary.6",
|
|
39
|
+
"@tarojs/taro": "3.6.0-canary.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/generator": "^7.14.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"csstype": "^3.1.1",
|
|
54
54
|
"jquery": "^3.4.1",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
|
-
"miniapp-types": "1.1.
|
|
56
|
+
"miniapp-types": "1.1.21",
|
|
57
57
|
"puppeteer": "^19.2.0",
|
|
58
58
|
"stencil-vue2-output-target": "0.0.4",
|
|
59
59
|
"ts-node": "^10.9.1",
|
package/types/Ad.d.ts
CHANGED
package/types/Audio.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ declare namespace AudioProps {
|
|
|
107
107
|
/** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
|
|
108
108
|
* @classification media
|
|
109
109
|
* @deprecated
|
|
110
|
-
* @supported weapp,
|
|
110
|
+
* @supported weapp, swan, qq, h5
|
|
111
111
|
* @example_react
|
|
112
112
|
* ```tsx
|
|
113
113
|
* export default class PageView extends Component {
|
package/types/Button.d.ts
CHANGED
|
@@ -526,7 +526,7 @@ declare namespace ButtonProps {
|
|
|
526
526
|
|
|
527
527
|
/** 按钮
|
|
528
528
|
* @classification forms
|
|
529
|
-
* @supported weapp,
|
|
529
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
530
530
|
* @example_react
|
|
531
531
|
* ```tsx
|
|
532
532
|
* export default class PageButton extends Component {
|
package/types/Camera.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare namespace CameraProps {
|
|
|
149
149
|
|
|
150
150
|
/** 系统相机
|
|
151
151
|
* @classification media
|
|
152
|
-
* @supported weapp,
|
|
152
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
153
153
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
154
154
|
*/
|
|
155
155
|
declare const Camera: ComponentType<CameraProps>
|
package/types/Canvas.d.ts
CHANGED
package/types/Checkbox.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
43
43
|
|
|
44
44
|
/** 多选项目
|
|
45
45
|
* @classification forms
|
|
46
|
-
* @supported weapp, h5, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
47
47
|
* @example_react
|
|
48
48
|
* ```tsx
|
|
49
49
|
* export default class PageCheckbox extends Component {
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
16
16
|
|
|
17
17
|
/** 多项选择器,内部由多个checkbox组成
|
|
18
18
|
* @classification forms
|
|
19
|
-
* @supported weapp,
|
|
19
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
20
20
|
* @example
|
|
21
21
|
* ```tsx
|
|
22
22
|
* export default class PageCheckbox extends Component {
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface CoverImageProps extends StandardProps {
|
|
|
59
59
|
|
|
60
60
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
|
61
61
|
* @classification viewContainer
|
|
62
|
-
* @supported weapp, swan,
|
|
62
|
+
* @supported weapp, alipay, swan, qq, h5
|
|
63
63
|
* @example_react
|
|
64
64
|
* ```tsx
|
|
65
65
|
* // js
|
package/types/CoverView.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CommonEventFunction } from './common'
|
|
|
3
3
|
import { ViewProps } from './View'
|
|
4
4
|
interface CoverViewProps extends ViewProps {
|
|
5
5
|
/** 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效
|
|
6
|
-
* @supported weapp, swan, qq
|
|
6
|
+
* @supported weapp, alipay, swan, qq
|
|
7
7
|
*/
|
|
8
8
|
scrollTop?: number
|
|
9
9
|
|
|
@@ -37,15 +37,113 @@ interface CoverViewProps extends ViewProps {
|
|
|
37
37
|
*/
|
|
38
38
|
ariaLabel?: string
|
|
39
39
|
|
|
40
|
-
/**
|
|
40
|
+
/** 允许横向滚动。
|
|
41
41
|
* @supported alipay
|
|
42
|
+
* @default false
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
scrollX?: boolean
|
|
45
|
+
|
|
46
|
+
/** 允许纵向滚动。
|
|
47
|
+
* @supported alipay
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
scrollY?: boolean
|
|
51
|
+
|
|
52
|
+
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件。
|
|
53
|
+
* @supported alipay
|
|
54
|
+
* @default 50
|
|
55
|
+
*/
|
|
56
|
+
upperThreshold?: number
|
|
57
|
+
|
|
58
|
+
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件。
|
|
59
|
+
* @supported alipay
|
|
60
|
+
* @default 50
|
|
61
|
+
*/
|
|
62
|
+
lowerThreshold?: number
|
|
63
|
+
|
|
64
|
+
/** 设置横向滚动条位置。
|
|
65
|
+
* @supported alipay
|
|
66
|
+
*/
|
|
67
|
+
scrollLeft?: number
|
|
68
|
+
|
|
69
|
+
/** 滚动到子元素,值应为某子元素的 id。当滚动到该元素时,元素顶部对齐滚动区域顶部。
|
|
70
|
+
* 说明:scroll-into-view 的优先级高于 scroll-top。
|
|
71
|
+
* @supported alipay
|
|
72
|
+
*/
|
|
73
|
+
scrollIntoView?: string
|
|
74
|
+
|
|
75
|
+
/** 在设置滚动条位置时使用动画过渡。
|
|
76
|
+
* @supported alipay
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
scrollWithAnimation?: boolean
|
|
80
|
+
|
|
81
|
+
/** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
|
|
82
|
+
* @supported alipay
|
|
83
|
+
*/
|
|
84
|
+
scrollAnimationDuration?: number
|
|
85
|
+
|
|
86
|
+
/** 当点击 iOS 顶部状态栏或者双击 Android 标题栏时,滚动条返回顶部,只支持竖向。
|
|
87
|
+
* @supported alipay
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
enableBackToTop?: boolean
|
|
91
|
+
|
|
92
|
+
/** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
|
|
93
|
+
* @supported alipay
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
trapScroll?: boolean
|
|
97
|
+
|
|
98
|
+
/** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
|
|
99
|
+
* @supported alipay
|
|
100
|
+
*/
|
|
101
|
+
disableLowerScroll?: string
|
|
102
|
+
|
|
103
|
+
/** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
|
|
104
|
+
* @supported alipay
|
|
105
|
+
*/
|
|
106
|
+
disableUpperScroll?: string
|
|
107
|
+
|
|
108
|
+
/** 滚动到顶部/左边,会触发 scrolltoupper 事件。
|
|
109
|
+
* @supported alipay
|
|
110
|
+
*/
|
|
111
|
+
onScrollToUpper?: CommonEventFunction
|
|
112
|
+
|
|
113
|
+
/** 滚动到底部/右边,会触发 scrolltolower事件。
|
|
114
|
+
* @supported alipay
|
|
115
|
+
*/
|
|
116
|
+
onScrollToLower?: CommonEventFunction
|
|
117
|
+
|
|
118
|
+
/** 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth}。
|
|
119
|
+
* @supported alipay
|
|
120
|
+
*/
|
|
121
|
+
onScroll?: CommonEventFunction
|
|
122
|
+
|
|
123
|
+
/** 触摸动作开始。
|
|
124
|
+
* @supported alipay
|
|
125
|
+
*/
|
|
126
|
+
onTouchStart?: CommonEventFunction
|
|
127
|
+
|
|
128
|
+
/** 触摸后移动。
|
|
129
|
+
* @supported alipay
|
|
130
|
+
*/
|
|
131
|
+
onTouchMove?: CommonEventFunction
|
|
132
|
+
|
|
133
|
+
/** 触摸动作结束。
|
|
134
|
+
* @supported alipay
|
|
135
|
+
*/
|
|
136
|
+
onTouchEnd?: CommonEventFunction
|
|
137
|
+
|
|
138
|
+
/** 触摸动作被打断,如来电提醒、弹窗。
|
|
139
|
+
* @supported alipay
|
|
140
|
+
*/
|
|
141
|
+
onTouchCancel?: CommonEventFunction
|
|
44
142
|
}
|
|
45
143
|
|
|
46
144
|
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
|
|
47
145
|
* @classification viewContainer
|
|
48
|
-
* @supported weapp, swan,
|
|
146
|
+
* @supported weapp, alipay, swan, qq, h5
|
|
49
147
|
* @example_react
|
|
50
148
|
* ```tsx
|
|
51
149
|
* // js
|
package/types/CustomWrapper.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface CustomWrapperProps extends StandardProps {
|
|
|
6
6
|
|
|
7
7
|
/** custom-wrapper 自定义组件包裹器
|
|
8
8
|
* 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少
|
|
9
|
-
* @supported weapp, swan, alipay, tt, jd, qq
|
|
9
|
+
* @supported weapp, swan, alipay, tt, jd, qq, h5
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
12
12
|
* import { Component } from 'react'
|
package/types/Form.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare namespace FormProps {
|
|
|
66
66
|
*
|
|
67
67
|
* 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
|
|
68
68
|
* @classification forms
|
|
69
|
-
* @supported weapp, h5, rn
|
|
69
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
70
70
|
* @example_react
|
|
71
71
|
* ```tsx
|
|
72
72
|
* class App extends Component {
|
package/types/Icon.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare namespace IconProps {
|
|
|
62
62
|
|
|
63
63
|
/** 图标。组件属性的长度单位默认为 px
|
|
64
64
|
* @classification base
|
|
65
|
-
* @supported weapp,
|
|
65
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
66
66
|
* @example_react
|
|
67
67
|
* ```tsx
|
|
68
68
|
* export default class PageView extends Component {
|
package/types/Image.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare namespace ImageProps {
|
|
|
155
155
|
*
|
|
156
156
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
157
157
|
* @classification media
|
|
158
|
-
* @supported weapp,
|
|
158
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
159
159
|
* @example_react
|
|
160
160
|
* ```tsx
|
|
161
161
|
* export default class PageView extends Component {
|