@tarojs/components 3.5.8 → 3.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/cjs/taro-view-core.cjs.entry.js +6 -2
  2. package/dist/collection/components/view/view.js +6 -3
  3. package/dist/esm/taro-view-core.entry.js +6 -2
  4. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  5. package/dist/taro-components/p-0380841f.system.js +1 -1
  6. package/dist/taro-components/{p-8475421b.system.entry.js → p-7431b2e1.system.entry.js} +1 -1
  7. package/dist/taro-components/p-8b1dfd32.entry.js +1 -0
  8. package/dist/taro-components/taro-components.esm.js +1 -1
  9. package/package.json +4 -4
  10. package/types/Ad.d.ts +1 -1
  11. package/types/Audio.d.ts +1 -1
  12. package/types/Button.d.ts +1 -1
  13. package/types/Camera.d.ts +1 -1
  14. package/types/Canvas.d.ts +1 -1
  15. package/types/Checkbox.d.ts +1 -1
  16. package/types/CheckboxGroup.d.ts +1 -1
  17. package/types/CoverImage.d.ts +1 -1
  18. package/types/CoverView.d.ts +102 -4
  19. package/types/CustomWrapper.d.ts +1 -1
  20. package/types/Form.d.ts +1 -1
  21. package/types/Icon.d.ts +1 -1
  22. package/types/Image.d.ts +1 -1
  23. package/types/Input.d.ts +71 -8
  24. package/types/LivePlayer.d.ts +1 -1
  25. package/types/LivePusher.d.ts +1 -1
  26. package/types/Map.d.ts +1 -1
  27. package/types/MatchMedia.d.ts +1 -1
  28. package/types/MovableArea.d.ts +2 -2
  29. package/types/MovableView.d.ts +17 -17
  30. package/types/Navigator.d.ts +1 -1
  31. package/types/OpenData.d.ts +1 -1
  32. package/types/PageContainer.d.ts +28 -18
  33. package/types/PageMeta.d.ts +1 -1
  34. package/types/Picker.d.ts +1 -1
  35. package/types/PickerView.d.ts +1 -1
  36. package/types/Progress.d.ts +1 -1
  37. package/types/Radio.d.ts +1 -1
  38. package/types/RadioGroup.d.ts +1 -1
  39. package/types/RootPortal.d.ts +11 -2
  40. package/types/ScrollView.d.ts +1 -1
  41. package/types/ShareElement.d.ts +20 -10
  42. package/types/Slider.d.ts +1 -1
  43. package/types/Swiper.d.ts +1 -1
  44. package/types/SwiperItem.d.ts +3 -2
  45. package/types/Switch.d.ts +1 -1
  46. package/types/Text.d.ts +1 -1
  47. package/types/Textarea.d.ts +7 -1
  48. package/types/Video.d.ts +7 -1
  49. package/types/View.d.ts +1 -1
  50. package/types/WebView.d.ts +1 -1
  51. package/types/index.vue3.d.ts +2 -1
  52. package/dist/taro-components/p-5a2305e7.entry.js +0 -1
@@ -51,8 +51,12 @@ let View = class {
51
51
  componentDidRender() {
52
52
  const el = this.el;
53
53
  el.childNodes.forEach(item => {
54
- if (item.nodeType === document.COMMENT_NODE && item["s-cn"])
55
- item["s-cn"] = false;
54
+ // Note: ['s-cn'] Content Reference Node
55
+ if (item.nodeType === document.COMMENT_NODE && item['s-cn'])
56
+ item['s-cn'] = false;
57
+ // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)
58
+ if (item.nodeType !== document.COMMENT_NODE && item['s-sr'])
59
+ item['s-sr'] = false;
56
60
  });
57
61
  }
58
62
  render() {
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
1
  import { Component, Prop, h, Host, Listen, State, Event, Element } from '@stencil/core';
3
2
  import classNames from 'classnames';
4
3
  export class View {
@@ -43,8 +42,12 @@ export class View {
43
42
  componentDidRender() {
44
43
  const el = this.el;
45
44
  el.childNodes.forEach(item => {
46
- if (item.nodeType === document.COMMENT_NODE && item["s-cn"])
47
- item["s-cn"] = false;
45
+ // Note: ['s-cn'] Content Reference Node
46
+ if (item.nodeType === document.COMMENT_NODE && item['s-cn'])
47
+ item['s-cn'] = false;
48
+ // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)
49
+ if (item.nodeType !== document.COMMENT_NODE && item['s-sr'])
50
+ item['s-sr'] = false;
48
51
  });
49
52
  }
50
53
  render() {
@@ -47,8 +47,12 @@ let View = class {
47
47
  componentDidRender() {
48
48
  const el = this.el;
49
49
  el.childNodes.forEach(item => {
50
- if (item.nodeType === document.COMMENT_NODE && item["s-cn"])
51
- item["s-cn"] = false;
50
+ // Note: ['s-cn'] Content Reference Node
51
+ if (item.nodeType === document.COMMENT_NODE && item['s-cn'])
52
+ item['s-cn'] = false;
53
+ // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)
54
+ if (item.nodeType !== document.COMMENT_NODE && item['s-sr'])
55
+ item['s-sr'] = false;
52
56
  });
53
57
  }
54
58
  render() {
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-8809c729.js";import{c as classnames}from"./index-1d8e8acd.js";var indexCss="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var View=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false}))};t.prototype.render=function(){var t;var e=classnames((t={},t[""+this.hoverClass]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return h(Host,Object.assign({class:e},i),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();View.style=indexCss;export{View as taro_view_core};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-8809c729.js";import{c as classnames}from"./index-1d8e8acd.js";var indexCss="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var View=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false;if(t.nodeType!==document.COMMENT_NODE&&t["s-sr"])t["s-sr"]=false}))};t.prototype.render=function(){var t;var e=classnames((t={},t[""+this.hoverClass]=this.hover,t));var s={};if(!!this.animation){s["animation"]=this.animation;s["data-animation"]=this.animation}return h(Host,Object.assign({class:e},s),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();View.style=indexCss;export{View as taro_view_core};
@@ -1 +1 @@
1
- System.register(["./p-44cbb351.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(e){t=e.p;r=e.b}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r([["p-64447f5a.system",[[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-5c87902f.system",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-a5496bf5.system",[[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-f4ea8a56.system",[[0,"taro-ad-core"]]],["p-b7681c76.system",[[0,"taro-ad-custom-core"]]],["p-10c47df8.system",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-e671c8c5.system",[[0,"taro-block-core"]]],["p-06b9d39c.system",[[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:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-733cc64a.system",[[0,"taro-camera-core"]]],["p-67222d90.system",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-eeed74e3.system",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-82661d45.system",[[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-a63fbc50.system",[[0,"taro-custom-wrapper-core"]]],["p-d4da725f.system",[[0,"taro-editor-core"]]],["p-5f18259d.system",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-c5fd5c7f.system",[[0,"taro-functional-page-navigator-core"]]],["p-b3d961f9.system",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-44398c17.system",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-232ebfae.system",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-f7c80795.system",[[0,"taro-keyboard-accessory-core"]]],["p-5e223bab.system",[[4,"taro-label-core",{for:[1]}]]],["p-d075934f.system",[[0,"taro-live-player-core"]]],["p-8e2b048e.system",[[0,"taro-live-pusher-core"]]],["p-7e960ac3.system",[[0,"taro-map-core"]]],["p-075458e5.system",[[0,"taro-match-media-core"]]],["p-f5f1c3b7.system",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-f40e1218.system",[[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-c93bb915.system",[[0,"taro-navigation-bar-core"]]],["p-9afbb423.system",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-6ad59489.system",[[0,"taro-official-account-core"]]],["p-93eed5d7.system",[[0,"taro-open-data-core"]]],["p-07294134.system",[[0,"taro-page-container-core"]]],["p-d6662ab3.system",[[0,"taro-page-meta-core"]]],["p-8788dc46.system",[[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"]]]]],["p-ad6ad7e3.system",[[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-8cf86f31.system",[[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-3255f11f.system",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-692d986d.system",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b11aaf69.system",[[0,"taro-root-portal-core"]]],["p-275d883f.system",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-3e11c8cc.system",[[0,"taro-share-element-core"]]],["p-b9903f15.system",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-c92bafb6.system",[[0,"taro-slot-core"]]],["p-b7ac0b7f.system",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-27126803.system",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-fc9f4fd7.system",[[4,"taro-text-core",{selectable:[4]}]]],["p-06e6864b.system",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-8475421b.system",[[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-f2803c2e.system",[[0,"taro-voip-room-core"]]],["p-27c80869.system",[[0,"taro-web-view-core",{src:[1]}]]],["p-df3b544a.system",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],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]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-4c1a7cae.system",[[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
+ System.register(["./p-44cbb351.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(e){t=e.p;r=e.b}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r([["p-64447f5a.system",[[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-5c87902f.system",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-a5496bf5.system",[[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-f4ea8a56.system",[[0,"taro-ad-core"]]],["p-b7681c76.system",[[0,"taro-ad-custom-core"]]],["p-10c47df8.system",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-e671c8c5.system",[[0,"taro-block-core"]]],["p-06b9d39c.system",[[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:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-733cc64a.system",[[0,"taro-camera-core"]]],["p-67222d90.system",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-eeed74e3.system",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-82661d45.system",[[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-a63fbc50.system",[[0,"taro-custom-wrapper-core"]]],["p-d4da725f.system",[[0,"taro-editor-core"]]],["p-5f18259d.system",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-c5fd5c7f.system",[[0,"taro-functional-page-navigator-core"]]],["p-b3d961f9.system",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-44398c17.system",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-232ebfae.system",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-f7c80795.system",[[0,"taro-keyboard-accessory-core"]]],["p-5e223bab.system",[[4,"taro-label-core",{for:[1]}]]],["p-d075934f.system",[[0,"taro-live-player-core"]]],["p-8e2b048e.system",[[0,"taro-live-pusher-core"]]],["p-7e960ac3.system",[[0,"taro-map-core"]]],["p-075458e5.system",[[0,"taro-match-media-core"]]],["p-f5f1c3b7.system",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-f40e1218.system",[[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-c93bb915.system",[[0,"taro-navigation-bar-core"]]],["p-9afbb423.system",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-6ad59489.system",[[0,"taro-official-account-core"]]],["p-93eed5d7.system",[[0,"taro-open-data-core"]]],["p-07294134.system",[[0,"taro-page-container-core"]]],["p-d6662ab3.system",[[0,"taro-page-meta-core"]]],["p-8788dc46.system",[[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"]]]]],["p-ad6ad7e3.system",[[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-8cf86f31.system",[[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-3255f11f.system",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-692d986d.system",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b11aaf69.system",[[0,"taro-root-portal-core"]]],["p-275d883f.system",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-3e11c8cc.system",[[0,"taro-share-element-core"]]],["p-b9903f15.system",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-c92bafb6.system",[[0,"taro-slot-core"]]],["p-b7ac0b7f.system",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-27126803.system",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-fc9f4fd7.system",[[4,"taro-text-core",{selectable:[4]}]]],["p-06e6864b.system",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-7431b2e1.system",[[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-f2803c2e.system",[[0,"taro-voip-room-core"]]],["p-27c80869.system",[[0,"taro-web-view-core",{src:[1]}]]],["p-df3b544a.system",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],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]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-4c1a7cae.system",[[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 +1 @@
1
- System.register(["./p-44cbb351.system.js","./p-61f225ef.system.js"],(function(t){"use strict";var e,o,i,s,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;s=t.H;n=t.g},function(t){r=t.c}],execute:function(){var h="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var a=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=o(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false}))};t.prototype.render=function(){var t;var e=r((t={},t[""+this.hoverClass]=this.hover,t));var o={};if(!!this.animation){o["animation"]=this.animation;o["data-animation"]=this.animation}return i(s,Object.assign({class:e},o),i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());a.style=h}}}));
1
+ System.register(["./p-44cbb351.system.js","./p-61f225ef.system.js"],(function(t){"use strict";var e,o,i,s,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;s=t.H;n=t.g},function(t){r=t.c}],execute:function(){var a="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var h=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=o(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false;if(t.nodeType!==document.COMMENT_NODE&&t["s-sr"])t["s-sr"]=false}))};t.prototype.render=function(){var t;var e=r((t={},t[""+this.hoverClass]=this.hover,t));var o={};if(!!this.animation){o["animation"]=this.animation;o["data-animation"]=this.animation}return i(s,Object.assign({class:e},o),i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());h.style=a}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as i,g as o}from"./p-059912fd.js";import{c as h}from"./p-76724e58.js";let r=class{constructor(e){t(this,e),this.onLongPress=s(this,"longpress",7),this.hoverStartTime=50,this.hoverStayTime=400,this.hover=!1,this.touch=!1,this.startTime=0}onTouchStart(){this.hoverClass&&(this.touch=!0,setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime)),this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350),this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){Date.now()-this.startTime<350&&clearTimeout(this.timeoutEvent),this.hoverClass&&(this.touch=!1,setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime))}componentDidRender(){this.el.childNodes.forEach((t=>{t.nodeType===document.COMMENT_NODE&&t["s-cn"]&&(t["s-cn"]=!1),t.nodeType!==document.COMMENT_NODE&&t["s-sr"]&&(t["s-sr"]=!1)}))}render(){const t=h({[`${this.hoverClass}`]:this.hover});let s={};return this.animation&&(s.animation=this.animation,s["data-animation"]=this.animation),e(i,Object.assign({class:t},s),e("slot",null))}get el(){return o(this)}};r.style="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";export{r as taro_view_core}
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[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-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-34178401",[[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-2ec47545",[[0,"taro-ad-core"]]],["p-7d329ab0",[[0,"taro-ad-custom-core"]]],["p-8c8be53b",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-72f858e4",[[0,"taro-block-core"]]],["p-3549b6d2",[[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:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-9234cc1d",[[0,"taro-camera-core"]]],["p-ff84986d",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-ffefd74f",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-362998cf",[[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-8aea3de3",[[0,"taro-custom-wrapper-core"]]],["p-d5f3080c",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-cf048af9",[[0,"taro-functional-page-navigator-core"]]],["p-b2800ccd",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-888fac99",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-56c86512",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-afbcd093",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-55266a1f",[[0,"taro-live-player-core"]]],["p-028e2728",[[0,"taro-live-pusher-core"]]],["p-6aa557f0",[[0,"taro-map-core"]]],["p-7374537f",[[0,"taro-match-media-core"]]],["p-42630f45",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-4262d1b6",[[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-57a2a441",[[0,"taro-navigation-bar-core"]]],["p-3c6090fd",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-62fc514e",[[0,"taro-official-account-core"]]],["p-5a374cb9",[[0,"taro-open-data-core"]]],["p-b1ae9401",[[0,"taro-page-container-core"]]],["p-4d826fb7",[[0,"taro-page-meta-core"]]],["p-9a0e70b1",[[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"]]]]],["p-9b39a940",[[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-b3b677fc",[[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-eec00033",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7407013d",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b60820b4",[[0,"taro-root-portal-core"]]],["p-ef006b23",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-4cf436f9",[[0,"taro-share-element-core"]]],["p-886571e5",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-59d93770",[[0,"taro-slot-core"]]],["p-4ada10aa",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-5733124c",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-dff55efd",[[4,"taro-text-core",{selectable:[4]}]]],["p-bd706d39",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-5a2305e7",[[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-06178a0c",[[0,"taro-voip-room-core"]]],["p-25df0ce9",[[0,"taro-web-view-core",{src:[1]}]]],["p-fa2a9bab",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],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]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-99d17a1a",[[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-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[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-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-34178401",[[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-2ec47545",[[0,"taro-ad-core"]]],["p-7d329ab0",[[0,"taro-ad-custom-core"]]],["p-8c8be53b",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-72f858e4",[[0,"taro-block-core"]]],["p-3549b6d2",[[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:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-9234cc1d",[[0,"taro-camera-core"]]],["p-ff84986d",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-ffefd74f",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-362998cf",[[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-8aea3de3",[[0,"taro-custom-wrapper-core"]]],["p-d5f3080c",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-cf048af9",[[0,"taro-functional-page-navigator-core"]]],["p-b2800ccd",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-888fac99",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-56c86512",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-afbcd093",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-55266a1f",[[0,"taro-live-player-core"]]],["p-028e2728",[[0,"taro-live-pusher-core"]]],["p-6aa557f0",[[0,"taro-map-core"]]],["p-7374537f",[[0,"taro-match-media-core"]]],["p-42630f45",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-4262d1b6",[[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-57a2a441",[[0,"taro-navigation-bar-core"]]],["p-3c6090fd",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-62fc514e",[[0,"taro-official-account-core"]]],["p-5a374cb9",[[0,"taro-open-data-core"]]],["p-b1ae9401",[[0,"taro-page-container-core"]]],["p-4d826fb7",[[0,"taro-page-meta-core"]]],["p-9a0e70b1",[[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"]]]]],["p-9b39a940",[[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-b3b677fc",[[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-eec00033",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7407013d",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b60820b4",[[0,"taro-root-portal-core"]]],["p-ef006b23",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-4cf436f9",[[0,"taro-share-element-core"]]],["p-886571e5",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-59d93770",[[0,"taro-slot-core"]]],["p-4ada10aa",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-5733124c",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-dff55efd",[[4,"taro-text-core",{selectable:[4]}]]],["p-bd706d39",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-8b1dfd32",[[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-06178a0c",[[0,"taro-voip-room-core"]]],["p-25df0ce9",[[0,"taro-web-view-core",{src:[1]}]]],["p-fa2a9bab",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],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]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-99d17a1a",[[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)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.5.8",
3
+ "version": "3.5.10",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "resolve-pathname": "^3.0.0",
37
37
  "swiper": "6.8.0",
38
38
  "weui": "^1.1.2",
39
- "@tarojs/router": "3.5.8",
40
- "@tarojs/taro": "3.5.8"
39
+ "@tarojs/router": "3.5.10",
40
+ "@tarojs/taro": "3.5.10"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/generator": "^7.14.5",
@@ -53,7 +53,7 @@
53
53
  "jquery": "^3.4.1",
54
54
  "karmatic": "^2.1.0",
55
55
  "lodash": "^4.17.21",
56
- "miniapp-types": "1.1.20",
56
+ "miniapp-types": "1.1.21",
57
57
  "simulant": "^0.2.2",
58
58
  "style-loader": "1.3.0",
59
59
  "ts-node": "^10.9.1",
package/types/Ad.d.ts CHANGED
@@ -199,7 +199,7 @@ declare namespace AdProps {
199
199
 
200
200
  /** Banner 广告
201
201
  * @classification open
202
- * @supported weapp, tt
202
+ * @supported weapp, swan, tt, qq
203
203
  * @example_react
204
204
  * ```tsx
205
205
  * class App extends Component {
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, h5, swan
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, h5, rn, tt
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, rn, tt
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
@@ -88,7 +88,7 @@ declare namespace CanvasProps {
88
88
  *
89
89
  * `<Canvas />` 组件的 RN 版本尚未实现。
90
90
  * @classification canvas
91
- * @supported weapp, tt
91
+ * @supported weapp, alipay, swan, tt, qq, jd, h5
92
92
  * @example_react
93
93
  * ```tsx
94
94
  * class App extends Components {
@@ -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 {
@@ -16,7 +16,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
16
16
 
17
17
  /** 多项选择器,内部由多个checkbox组成
18
18
  * @classification forms
19
- * @supported weapp, h5, rn, tt
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
20
20
  * @example
21
21
  * ```tsx
22
22
  * export default class PageCheckbox extends Component {
@@ -59,7 +59,7 @@ interface CoverImageProps extends StandardProps {
59
59
 
60
60
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
61
61
  * @classification viewContainer
62
- * @supported weapp, swan, alipay, h5
62
+ * @supported weapp, alipay, swan, qq, h5
63
63
  * @example_react
64
64
  * ```tsx
65
65
  * // js
@@ -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
- onTap?: CommonEventFunction
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, alipay, h5
146
+ * @supported weapp, alipay, swan, qq, h5
49
147
  * @example_react
50
148
  * ```tsx
51
149
  * // js
@@ -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, swan, alipay, tt, h5, rn
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, h5, rn, swan, alipay, tt
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 {
package/types/Input.d.ts CHANGED
@@ -9,11 +9,11 @@ interface InputProps extends StandardProps, FormItemProps {
9
9
  /** input 的类型
10
10
  * @default "text"
11
11
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
12
- * @rn 部分支持
13
12
  */
14
- type?: 'text' | 'number' | 'idcard' | 'digit' | 'safe-password' | 'nickname'
13
+ type?: keyof InputProps.Type
15
14
 
16
15
  /** 是否是密码类型
16
+ * @default false
17
17
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
18
18
  */
19
19
  password?: boolean
@@ -40,6 +40,7 @@ interface InputProps extends StandardProps, FormItemProps {
40
40
  placeholderTextColor?: string
41
41
 
42
42
  /** 是否禁用
43
+ * @default false
43
44
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
44
45
  */
45
46
  disabled?: boolean
@@ -69,11 +70,12 @@ interface InputProps extends StandardProps, FormItemProps {
69
70
  */
70
71
  focus?: boolean
71
72
 
72
- /** 设置键盘右下角按钮的文字
73
+ /** 设置键盘右下角按钮的文字,仅在type='text'时生效
74
+ * @alipay confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system
73
75
  * @default done
74
76
  * @supported weapp, alipay, swan, tt, qq, jd, rn
75
77
  */
76
- confirmType?: 'send' | 'search' | 'next' | 'go' | 'done'
78
+ confirmType?: keyof InputProps.ConfirmType
77
79
 
78
80
  /** 点击键盘右下角按钮时是否保持键盘不收起
79
81
  * @default false
@@ -99,7 +101,7 @@ interface InputProps extends StandardProps, FormItemProps {
99
101
  selectionEnd?: number
100
102
 
101
103
  /** 键盘弹起时,是否自动上推页面
102
- * @default false
104
+ * @default true
103
105
  * @supported weapp, swan, tt, qq, jd
104
106
  */
105
107
  adjustPosition?: boolean
@@ -161,7 +163,9 @@ interface InputProps extends StandardProps, FormItemProps {
161
163
  randomNumber?: boolean
162
164
 
163
165
  /**
164
- * 是否为受控组件
166
+ * 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。
167
+ *
168
+ * 建议当 type 值为 text 时不要将 controlled 设置为 true,详见 [Bugs & Tips](https://opendocs.alipay.com/mini/component/input#Bug%20%26%20Tip)
165
169
  * @default false
166
170
  * @supported alipay
167
171
  */
@@ -178,9 +182,16 @@ interface InputProps extends StandardProps, FormItemProps {
178
182
  name?: string
179
183
 
180
184
  /** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
185
+ * @default false
181
186
  * @supported alipay
182
187
  */
183
- alwaysSystem?: string
188
+ alwaysSystem?: boolean
189
+
190
+ /** 使用原生键盘
191
+ * @default true
192
+ * @supported alipay
193
+ */
194
+ enableNative?: boolean
184
195
 
185
196
  /** 无障碍访问,(属性)元素的额外描述
186
197
  * @supported qq
@@ -214,6 +225,58 @@ interface InputProps extends StandardProps, FormItemProps {
214
225
  onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
215
226
  }
216
227
  declare namespace InputProps {
228
+ /** Input 类型 */
229
+ interface Type {
230
+ /** 文本输入键盘
231
+ * @supported weapp, alipay, h5, rn
232
+ */
233
+ text
234
+ /** 数字输入键盘
235
+ * @supported weapp, alipay, h5, rn
236
+ */
237
+ number
238
+ /** 身份证输入键盘
239
+ *@supported weapp, alipay, rn
240
+ */
241
+ idcard
242
+ /** 带小数点的数字键盘
243
+ * @supported weapp, alipay, h5, rn
244
+ */
245
+ digit
246
+ /** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
247
+ * @supported weapp, alipay
248
+ */
249
+ 'safe-password'
250
+ /** 昵称输入键盘
251
+ * @supported weapp, alipay
252
+ */
253
+ nickname
254
+ /** 数字输入键盘
255
+ * @supported alipay
256
+ */
257
+ numberpad
258
+ /** 带小数点的数字键盘
259
+ * @supported alipay
260
+ */
261
+ digitpad
262
+ /** 身份证输入键盘
263
+ * @supported alipay
264
+ */
265
+ idcardpad
266
+ }
267
+ /** Confirm 类型 */
268
+ interface ConfirmType {
269
+ /** 右下角按钮为“发送” */
270
+ send
271
+ /** 右下角按钮为“搜索” */
272
+ search
273
+ /** 右下角按钮为“下一个” */
274
+ next
275
+ /** 右下角按钮为“前往” */
276
+ go
277
+ /** 右下角按钮为“完成” */
278
+ done
279
+ }
217
280
  /** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
218
281
  interface inputEventDetail {
219
282
  /** 输入值 */
@@ -247,7 +310,7 @@ declare namespace InputProps {
247
310
 
248
311
  /** 输入框。该组件是原生组件,使用时请注意相关限制
249
312
  * @classification forms
250
- * @supported weapp, h5, rn
313
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
251
314
  * @example_react
252
315
  * ```tsx
253
316
  * class App extends Component {
@@ -271,7 +271,7 @@ declare namespace LivePlayerProps {
271
271
  *
272
272
  * 需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
273
273
  * @classification media
274
- * @supported weapp, tt
274
+ * @supported weapp, swan, tt, qq, jd
275
275
  * @example_react
276
276
  * ```tsx
277
277
  * class App extends Components {
@@ -365,7 +365,7 @@ declare namespace LivePusherProps {
365
365
  /** 实时音视频录制。需要用户授权 scope.camera、scope.record
366
366
  * 需要先通过类目审核,再在小程序管理后台,「开发」-「接口设置」中自助开通该组件权限。
367
367
  * @classification media
368
- * @supported weapp
368
+ * @supported weapp, qq
369
369
  * @example_react
370
370
  * ```tsx
371
371
  * class App extends Components {
package/types/Map.d.ts CHANGED
@@ -661,7 +661,7 @@ declare namespace MapProps {
661
661
 
662
662
  /** 地图。相关api Taro.createMapContext。
663
663
  * @classification maps
664
- * @supported weapp, alipay, swan
664
+ * @supported weapp, alipay, swan, tt, qq, jd
665
665
  * @example_react
666
666
  * ```tsx
667
667
  * class App extends Component {