@tarojs/components 3.5.7 → 3.5.9

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 (110) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/taro-button-core.cjs.entry.js +5 -0
  3. package/dist/cjs/taro-components.cjs.js +1 -1
  4. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-movable-view-core.cjs.entry.js +18 -43
  6. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +5 -0
  7. package/dist/cjs/taro-video-control_3.cjs.entry.js +98 -181
  8. package/dist/collection/components/button/button.js +11 -0
  9. package/dist/collection/components/movable-area/area.css +2 -2
  10. package/dist/collection/components/movable-area/movable-view.js +18 -33
  11. package/dist/collection/components/swiper/swiper.js +23 -0
  12. package/dist/collection/components/video/video-control.js +22 -39
  13. package/dist/collection/components/video/video-danmu.js +39 -52
  14. package/dist/collection/components/video/video.js +37 -60
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/taro-button-core.entry.js +5 -0
  17. package/dist/esm/taro-components.js +1 -1
  18. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  19. package/dist/esm/taro-movable-view-core.entry.js +18 -43
  20. package/dist/esm/taro-swiper-core_2.entry.js +5 -0
  21. package/dist/esm/taro-video-control_3.entry.js +98 -181
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  24. package/dist/esm-es5/taro-components.js +1 -1
  25. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  26. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  27. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  28. package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
  29. package/dist/taro-components/p-0380841f.system.js +1 -1
  30. package/dist/taro-components/{p-a94524c9.system.entry.js → p-06b9d39c.system.entry.js} +1 -1
  31. package/dist/taro-components/{p-63a0c6b0.entry.js → p-34178401.entry.js} +1 -1
  32. package/dist/taro-components/p-3549b6d2.entry.js +1 -0
  33. package/dist/taro-components/p-4262d1b6.entry.js +1 -0
  34. package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
  35. package/dist/taro-components/{p-f81a74bb.system.entry.js → p-4c1a7cae.system.entry.js} +81 -81
  36. package/dist/taro-components/{p-3744e978.entry.js → p-99d17a1a.entry.js} +52 -52
  37. package/dist/taro-components/{p-13f0b11f.system.entry.js → p-a5496bf5.system.entry.js} +1 -1
  38. package/dist/taro-components/p-f40e1218.system.entry.js +1 -0
  39. package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
  40. package/dist/taro-components/taro-components.esm.js +1 -1
  41. package/dist/types/components/button/button.d.ts +1 -0
  42. package/dist/types/components/swiper/swiper.d.ts +4 -0
  43. package/dist/types/components.d.ts +8 -0
  44. package/package.json +15 -12
  45. package/types/Ad.d.ts +21 -22
  46. package/types/AnimationVideo.d.ts +62 -0
  47. package/types/AnimationView.d.ts +45 -0
  48. package/types/ArCamera.d.ts +50 -0
  49. package/types/Audio.d.ts +6 -6
  50. package/types/AwemeData.d.ts +43 -0
  51. package/types/Button.d.ts +68 -71
  52. package/types/Camera.d.ts +16 -17
  53. package/types/Canvas.d.ts +23 -28
  54. package/types/Checkbox.d.ts +8 -8
  55. package/types/CheckboxGroup.d.ts +1 -1
  56. package/types/CommentDetail.d.ts +72 -0
  57. package/types/CommentList.d.ts +128 -0
  58. package/types/ContactButton.d.ts +53 -0
  59. package/types/CoverImage.d.ts +16 -16
  60. package/types/CoverView.d.ts +105 -7
  61. package/types/CustomWrapper.d.ts +1 -1
  62. package/types/FollowSwan.d.ts +28 -0
  63. package/types/Form.d.ts +11 -11
  64. package/types/Icon.d.ts +1 -1
  65. package/types/Image.d.ts +21 -21
  66. package/types/InlinePaymentPanel.d.ts +58 -0
  67. package/types/Input.d.ts +93 -28
  68. package/types/Lifestyle.d.ts +26 -0
  69. package/types/Like.d.ts +107 -0
  70. package/types/LivePlayer.d.ts +32 -26
  71. package/types/LivePusher.d.ts +6 -6
  72. package/types/Login.d.ts +45 -0
  73. package/types/Lottie.d.ts +113 -0
  74. package/types/Map.d.ts +67 -72
  75. package/types/MatchMedia.d.ts +1 -1
  76. package/types/MovableArea.d.ts +2 -2
  77. package/types/MovableView.d.ts +20 -29
  78. package/types/NativeSlot.d.ts +32 -0
  79. package/types/Navigator.d.ts +11 -11
  80. package/types/OpenData.d.ts +6 -6
  81. package/types/PageContainer.d.ts +31 -24
  82. package/types/PageMeta.d.ts +15 -15
  83. package/types/Picker.d.ts +2 -6
  84. package/types/PickerView.d.ts +12 -22
  85. package/types/Progress.d.ts +6 -6
  86. package/types/Radio.d.ts +1 -1
  87. package/types/RadioGroup.d.ts +6 -6
  88. package/types/RichText.d.ts +17 -17
  89. package/types/RootPortal.d.ts +11 -2
  90. package/types/RtcRoom.d.ts +104 -0
  91. package/types/RtcRoomItem.d.ts +26 -0
  92. package/types/ScrollView.d.ts +47 -31
  93. package/types/ShareElement.d.ts +20 -10
  94. package/types/Slider.d.ts +11 -11
  95. package/types/Slot.d.ts +1 -1
  96. package/types/Swiper.d.ts +32 -20
  97. package/types/SwiperItem.d.ts +3 -2
  98. package/types/Switch.d.ts +6 -6
  99. package/types/TabItem.d.ts +35 -0
  100. package/types/Tabs.d.ts +58 -0
  101. package/types/Text.d.ts +1 -1
  102. package/types/Textarea.d.ts +39 -33
  103. package/types/Video.d.ts +123 -108
  104. package/types/View.d.ts +21 -14
  105. package/types/VoipRoom.d.ts +5 -5
  106. package/types/WebView.d.ts +12 -6
  107. package/types/index.vue3.d.ts +268 -259
  108. package/dist/taro-components/p-6800ac6f.entry.js +0 -1
  109. package/dist/taro-components/p-7f93fa08.entry.js +0 -1
  110. package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function o(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):a(t.value).then(s,o)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-44cbb351.system.js"],(function(t){"use strict";var e,i,n,a,r;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.g;r=t.H}],execute:function(){var s="taro-movable-view-core{display:inline-block;position:absolute;left:0;top:0;width:10px;height:10px}";var o=t("taro_movable_view_core",function(){function t(t){var n=this;e(this,t);this.onChange=i(this,"change",7);this.onScale=i(this,"scale",7);this.onHTouchMove=i(this,"htouchmove",7);this.onVTouchMove=i(this,"vtouchmove",7);this.x=0;this.y=0;this.direction="none";this.outOfBounds=false;this.inertia=false;this.friction=2;this.damping=20;this.disabled=false;this.scale=false;this.scaleMin=.5;this.scaleMax=10;this.scaleValue=1;this.animation=true;this.translateX=0;this.translateY=0;this.origin={x:0,y:0};this.area={width:0,height:0};this.originScale=1;this.currentScale=1;this.width=0;this.height=0;this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.baseX=0;this.baseY=0;this.offset={x:0,y:0};this.scaleOffset={x:0,y:0};this.getLimitXY=function(t,e){var i=false;t>n.maxX?(t=n.maxX,i=true):t<n.minX&&(t=n.minX,i=true);e>n.maxY?(e=n.maxY,i=true):e<n.minY&&(e=n.minY,i=true);return{x:t,y:e,outOfBounds:i}};this.animationTo=function(t,e,i,a,r,s,o){if(n.animation){n.setTransform(t,e,i,a,r,s);o===null||o===void 0?void 0:o()}else{n.setTransform(t,e,i,a,r,s)}};this.setTransform=function(t,e,i,a,r,s){t=Number(t.toFixed(1));e=Number(e.toFixed(1));i=Number((i!==null&&i!==void 0?i:n.currentScale).toFixed(3));if(!n.outOfBounds){var o=n.getLimitXY(t,e);t=o.x;e=o.y}var c=function(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)};var u=c(t,n.scaleOffset.x);var l=c(e,n.scaleOffset.y);if(n.translateX!==t||n.translateY!==e){!r&&n.onChange.emit({x:u,y:l,source:a})}if(i!==n.currentScale){s&&n.onScale.emit({scale:i,x:u,y:l})}var h="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+i+")";n.element.style.transform=h;n.element.style.webkitTransform=h;n.translateX=t;n.translateY=e;n.currentScale=i};this.updateOffset=function(){var t=function(e,i){if(e===i||!e.offsetParent){return{left:0,top:0}}var n=t(e.offsetParent,i);return{left:e.offsetLeft+n.left,top:e.offsetTop+n.top}};if(!n.parent){return}var e=t(n.element,n.parent);n.offset.x=e.left;n.offset.y=e.top};this.updateScaleOffset=function(t){if(t===void 0){t=n.currentScale}var e=n.element.getBoundingClientRect();n.height=e.height/n.currentScale;n.width=e.width/n.currentScale;n.scaleOffset.x=(n.width*t-n.width)/2;n.scaleOffset.y=(n.height*t-n.height)/2};this.updateBoundary=function(){var t=0-n.offset.x+n.scaleOffset.x;var e=n.area.width-n.width-n.offset.x-n.scaleOffset.x;n.minX=Math.min(t,e);n.maxX=Math.max(t,e);var i=0-n.offset.y+n.scaleOffset.y;var a=n.area.height-n.height-n.offset.y-n.scaleOffset.y;n.minY=Math.min(i,a);n.maxY=Math.max(i,a)};this.updateScale=function(t,e,i){if(!n.scale){return}var a=n.adjustScale(t);n.updateScaleOffset(a);n.updateBoundary();var r=n.getLimitXY(n.translateX,n.translateY),s=r.x,o=r.y;if(e){n.animationTo(s,o,a,"",true,true,i)}else if(!n.updating){n.updating=true;requestAnimationFrame((function(){n.setTransform(s,o,a,"",true,true);n.updating=false}))}};this.setOriginScale=function(t){n.originScale=t};this.adjustScale=function(t){return Math.min(10,n.scaleMax,Math.max(.5,n.scaleMin,t))};this.handleTouchStart=function(t){var e=t.touches;if(n.disabled||e.length>1||!n.element){return}var i=e[0];n.touching=true;n.firstMoveFireEvent=false;n.origin.x=i.screenX;n.origin.y=i.screenY;n.baseX=n.translateX;n.baseY=n.translateY;n.element.style.willChange="transform"};this.handleTouchMove=function(t){var e=t.touches;if(n.disabled||!n.element||n.scaling||!n.touching||e.length>1){return}t.preventDefault();var i=e[0];var a=i.screenX-n.origin.x;var r=i.screenY-n.origin.y;n.setTransform(n.xMove?a+n.baseX:0,n.yMove?r+n.baseY:0);if(!n.firstMoveFireEvent){n.firstMoveFireEvent=true;var s=Math.abs(a)>Math.abs(r)?n.onHTouchMove:n.onVTouchMove;s.emit({originalEvent:t,bubbles:false,capturePhase:false,composed:true,extraFields:{touches:t.touches||{},changedTouches:t.changedTouches||{}}})}};this.handleTouchEnd=function(t){var e=t.changedTouches[0];if(n.disabled||!n.touching||!e){return}n.touching=false;var i=e.screenX-n.origin.x;var a=e.screenY-n.origin.y;n.setTransform(n.xMove?i+n.baseX:0,n.yMove?a+n.baseY:0)}}t.prototype.watchX=function(t){this.setTransform(parseFloat(""+(t||0)),this.translateY)};t.prototype.watchY=function(t){this.setTransform(this.translateX,parseFloat(""+(t||0)))};t.prototype.watchScaleMinOrMax=function(){if(!this.scale)return false;this.updateScale(this.currentScale,true);this.setOriginScale(this.currentScale)};t.prototype.watchScaleValue=function(t){if(!this.scale){return false}this.updateScale(t,true);this.setOriginScale(t);return t};t.prototype.setParent=function(t){var e=t.element,i=t.area;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=this.scale?this.scaleValue:1;this.area=i;this.parent=e;this.updateOffset();this.updateScaleOffset(t);this.updateBoundary();this.setTransform(Number(this.x)+this.scaleOffset.x,Number(this.y)+this.scaleOffset.y,t,"",true);this.setOriginScale(t);return[2]}))}))};t.prototype.endScale=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scaling=false;this.setOriginScale(this.currentScale);return[2]}))}))};t.prototype.setScale=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.scale){return[2]}this.scaling=true;this.updateScale(t*this.originScale);return[2]}))}))};t.prototype.connectedCallback=function(){var t=this;this.observer=new MutationObserver((function(e){e.forEach((function(e){var i=e.attributeName;if(i&&["class","style"].includes(i)){var n=e.oldValue;var a=e.target.getAttribute(i);if(n===a){return}var r=function(t){return t===null||t===void 0?void 0:t.split(";").filter((function(t){return!["transform","will-change"].find((function(e){return t.trim().startsWith(e)}))})).join(";")};if(i==="style"&&r(a)===r(n)){return}t.updateOffset();t.updateScaleOffset();t.updateBoundary();t.setTransform(t.translateX,t.translateY)}}))}));this.observer.observe(this.element,{attributes:true,attributeOldValue:true})};t.prototype.disconnectedCallback=function(){var t;(t=this.observer)===null||t===void 0?void 0:t.disconnect()};t.prototype.componentDidLoad=function(){this.element.style.transformOrigin="center";this.xMove=["horizontal","all"].includes(this.direction);this.yMove=["vertical","all"].includes(this.direction);if(this.friction<=0){this.friction=2}if(this.x||this.y){var t=parseFloat(""+(this.x||0));var e=parseFloat(""+(this.y||0));this.setTransform(t,e)}};t.prototype.render=function(){return n(r,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{x:["watchX"],y:["watchY"],scaleMin:["watchScaleMinOrMax"],scaleMax:["watchScaleMinOrMax"],scaleValue:["watchScaleValue"]}},enumerable:false,configurable:true});return t}());o.style=s}}}));
@@ -1 +1 @@
1
- System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,a,i;return{setters:[function(e){t=e.r;n=e.h;a=e.g;i=e.H}],execute:function(){var r="taro-movable-area-core{display:block;height:10px;width:10px;position:relative}";var o=e("taro_movable_area_core",function(){function e(e){var n=this;t(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){n.views=[];var e=n.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){n.views.push(e)}));n.updateArea()};this.handleTouchStart=function(e){var t=e.touches;if(!t||t.length<=1){return}var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};n.scaleLength=Math.sqrt(a.width*a.width+a.height*a.height);if(n.scaleArea){return}var i=function(e,t){var n=function(e,t){if(!(e=e.parentNode)){return false}return(!(e instanceof HTMLElement)||e!==document.body)&&(e===t||e===t.element||e.element===t||n(e,t))};for(var a=0;a<t.length;a++){var i=t[a];if(e===i["element"]||n(e,i)){return i}}};var r=i(t[0].target,n.views);var o=i(t[1].target,n.views);n.scaleTarget=r&&r===o?r:undefined};this.handleTouchMove=function(e){var t=e.touches;if(!t||t.length<=1){return}e.preventDefault();var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};if(n.scaleLength>0){n.updateScale(Math.sqrt(a.width*a.width+a.height*a.height)/n.scaleLength)}};this.handleTouchEnd=function(e){var t,a;if(e.touches&&e.touches.length||!e.changedTouches){return}n.scaleLength=0;if(n.scaleArea){n.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["endScale"])===null||a===void 0?void 0:a.call(t)}n.scaleTarget=undefined};this.updateScale=function(e){var t,a;if(!e||e===1){return}if(n.scaleArea){n.views.forEach((function(t){var n;(n=t["setScale"])===null||n===void 0?void 0:n.call(t,e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["setScale"])===null||a===void 0?void 0:a.call(t,e)}};this.updateArea=function(){var e=window.getComputedStyle(n.element);var t=n.element.getBoundingClientRect();var a=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var i=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));n.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:n.element,area:{height:t.height-i[0]-i[1],width:t.width-a[0]-a[1]}})}))}}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n,a;if(t.attributeName==="class"||t.attributeName==="style"){var i=e.element.offsetWidth;var r=e.element.offsetHeight;if(i!==((n=e.offset)===null||n===void 0?void 0:n.width)||r!==((a=e.offset)===null||a===void 0?void 0:a.height)){e.updateArea()}e.offset={width:i,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());o.style=r}}}));
1
+ System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,a,i;return{setters:[function(e){t=e.r;n=e.h;a=e.g;i=e.H}],execute:function(){var r="taro-movable-area-core{display:block;position:relative;width:10px;height:10px}";var o=e("taro_movable_area_core",function(){function e(e){var n=this;t(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){n.views=[];var e=n.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){n.views.push(e)}));n.updateArea()};this.handleTouchStart=function(e){var t=e.touches;if(!t||t.length<=1){return}var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};n.scaleLength=Math.sqrt(a.width*a.width+a.height*a.height);if(n.scaleArea){return}var i=function(e,t){var n=function(e,t){if(!(e=e.parentNode)){return false}return(!(e instanceof HTMLElement)||e!==document.body)&&(e===t||e===t.element||e.element===t||n(e,t))};for(var a=0;a<t.length;a++){var i=t[a];if(e===i["element"]||n(e,i)){return i}}};var r=i(t[0].target,n.views);var o=i(t[1].target,n.views);n.scaleTarget=r&&r===o?r:undefined};this.handleTouchMove=function(e){var t=e.touches;if(!t||t.length<=1){return}e.preventDefault();var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};if(n.scaleLength>0){n.updateScale(Math.sqrt(a.width*a.width+a.height*a.height)/n.scaleLength)}};this.handleTouchEnd=function(e){var t,a;if(e.touches&&e.touches.length||!e.changedTouches){return}n.scaleLength=0;if(n.scaleArea){n.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["endScale"])===null||a===void 0?void 0:a.call(t)}n.scaleTarget=undefined};this.updateScale=function(e){var t,a;if(!e||e===1){return}if(n.scaleArea){n.views.forEach((function(t){var n;(n=t["setScale"])===null||n===void 0?void 0:n.call(t,e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["setScale"])===null||a===void 0?void 0:a.call(t,e)}};this.updateArea=function(){var e=window.getComputedStyle(n.element);var t=n.element.getBoundingClientRect();var a=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var i=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));n.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:n.element,area:{height:t.height-i[0]-i[1],width:t.width-a[0]-a[1]}})}))}}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n,a;if(t.attributeName==="class"||t.attributeName==="style"){var i=e.element.offsetWidth;var r=e.element.offsetHeight;if(i!==((n=e.offset)===null||n===void 0?void 0:n.width)||r!==((a=e.offset)===null||a===void 0?void 0:a.height)){e.updateArea()}e.offset={width:i,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());o.style=r}}}));
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().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-63a0c6b0",[[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-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-7f93fa08",[[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]},[[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-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-6800ac6f",[[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-3744e978",[[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-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)));
@@ -14,6 +14,7 @@ export declare class Button implements ComponentInterface {
14
14
  touch: boolean;
15
15
  onSubmit: EventEmitter;
16
16
  onReset: EventEmitter;
17
+ onClick(e: Event): void;
17
18
  onTouchStart(): void;
18
19
  onTouchEnd(): void;
19
20
  render(): any;
@@ -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;
@@ -343,6 +343,10 @@ export namespace Components {
343
343
  * 滑动方向是否为纵向
344
344
  */
345
345
  "vertical": boolean;
346
+ /**
347
+ * 给 previewImage API 使用,缩放支持
348
+ */
349
+ "zoom": boolean;
346
350
  }
347
351
  interface TaroSwiperItemCore {
348
352
  "itemId": string;
@@ -1305,6 +1309,10 @@ declare namespace LocalJSX {
1305
1309
  * 滑动方向是否为纵向
1306
1310
  */
1307
1311
  "vertical"?: boolean;
1312
+ /**
1313
+ * 给 previewImage API 使用,缩放支持
1314
+ */
1315
+ "zoom"?: boolean;
1308
1316
  }
1309
1317
  interface TaroSwiperItemCore {
1310
1318
  "itemId"?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.5.7",
4
- "description": "",
3
+ "version": "3.5.9",
4
+ "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
7
7
  "main": "dist/index.js",
@@ -30,31 +30,34 @@
30
30
  "author": "",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@stencil/core": "~2.13.0",
34
- "@stencil/sass": "1.5.2",
35
- "@tarojs/router": "3.5.7",
36
- "@tarojs/taro": "3.5.7",
37
- "better-scroll": "^1.14.1",
38
33
  "classnames": "^2.2.5",
39
34
  "hls.js": "^1.1.5",
40
35
  "intersection-observer": "^0.7.0",
41
36
  "resolve-pathname": "^3.0.0",
42
37
  "swiper": "6.8.0",
43
- "weui": "^1.1.2"
38
+ "weui": "^1.1.2",
39
+ "@tarojs/router": "3.5.9",
40
+ "@tarojs/taro": "3.5.9"
44
41
  },
45
42
  "devDependencies": {
43
+ "@babel/generator": "^7.14.5",
44
+ "@babel/parser": "^7.14.5",
45
+ "@babel/traverse": "^7.14.5",
46
+ "@babel/types": "^7.14.5",
47
+ "@stencil/core": "~2.13.0",
48
+ "@stencil/sass": "1.5.2",
46
49
  "@types/node": "^14.14.31",
50
+ "change-case": "^4.1.2",
47
51
  "css-loader": "3.4.2",
48
- "humps": "^2.0.1",
52
+ "csstype": "^3.1.1",
49
53
  "jquery": "^3.4.1",
50
54
  "karmatic": "^2.1.0",
51
55
  "lodash": "^4.17.21",
52
- "miniapp-types": "latest",
53
- "react": "^17.0.2",
54
- "react-dom": "^17.0.2",
56
+ "miniapp-types": "1.1.21",
55
57
  "simulant": "^0.2.2",
56
58
  "style-loader": "1.3.0",
57
59
  "ts-node": "^10.9.1",
60
+ "typescript": "^4.7.4",
58
61
  "webpack": "4.46.0",
59
62
  "workbox-build": "4.3.1"
60
63
  },
package/types/Ad.d.ts CHANGED
@@ -21,21 +21,6 @@ interface AdProps extends StandardProps {
21
21
  */
22
22
  adTheme?: 'white' | 'black'
23
23
 
24
- /** 广告加载成功的回调
25
- * @supported weapp, swan, tt, qq
26
- */
27
- onLoad?: CommonEventFunction
28
-
29
- /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象 event.detail = {errCode: 1002}
30
- * @supported weapp, swan, tt, qq
31
- */
32
- onError?: CommonEventFunction<AdProps.onErrorEventDetail>
33
-
34
- /** 广告关闭的回调
35
- * @supported weapp, swan, tt
36
- */
37
- onClose?: CommonEventFunction
38
-
39
24
  /** 小程序应用 ID
40
25
  * @supported swan
41
26
  */
@@ -57,11 +42,6 @@ interface AdProps extends StandardProps {
57
42
  */
58
43
  updatetime?: string
59
44
 
60
- /** 贴片类型广告播放期间触发
61
- * @supported swan
62
- */
63
- onStatus?: CommonEventFunction
64
-
65
45
  /** 广告是否在屏幕中固定展示
66
46
  * @supported tt
67
47
  */
@@ -111,6 +91,26 @@ interface AdProps extends StandardProps {
111
91
  */
112
92
  testBannerType?: 'one' | 'three'
113
93
 
94
+ /** 广告加载成功的回调
95
+ * @supported weapp, swan, tt, qq
96
+ */
97
+ onLoad?: CommonEventFunction
98
+
99
+ /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象 event.detail = {errCode: 1002}
100
+ * @supported weapp, swan, tt, qq
101
+ */
102
+ onError?: CommonEventFunction<AdProps.onErrorEventDetail>
103
+
104
+ /** 广告关闭的回调
105
+ * @supported weapp, swan, tt
106
+ */
107
+ onClose?: CommonEventFunction
108
+
109
+ /** 贴片类型广告播放期间触发
110
+ * @supported swan
111
+ */
112
+ onStatus?: CommonEventFunction
113
+
114
114
  /** type 为 feeds 时广告实际宽高回调
115
115
  * @supported qq
116
116
  */
@@ -191,7 +191,6 @@ declare namespace AdProps {
191
191
  */
192
192
  1008
193
193
  }
194
-
195
194
  interface onSizeEventDetail {
196
195
  width: number
197
196
  height: number
@@ -200,7 +199,7 @@ declare namespace AdProps {
200
199
 
201
200
  /** Banner 广告
202
201
  * @classification open
203
- * @supported weapp, tt
202
+ * @supported weapp, swan, tt, qq
204
203
  * @example_react
205
204
  * ```tsx
206
205
  * class App extends Component {
@@ -0,0 +1,62 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface AnimationVideoProps extends StandardProps {
4
+ /** 组件使用的 video 视频资源的宽度(单位:px)
5
+ * @supported swan
6
+ * @default 800
7
+ */
8
+ resourceWidth?: number
9
+
10
+ /** 组件使用的 video 视频资源的高度(单位:px)
11
+ * @supported swan
12
+ * @default 400
13
+ */
14
+ resourceHeight?: number
15
+
16
+ /** 用于设置动画画布的 CSS 样式
17
+ * @supported swan
18
+ * @default "width: 400px;height: 400px"
19
+ */
20
+ canvasStyle?: string
21
+
22
+ /** 动画资源地址,支持相对路径以及远程地址。如果是远程路径,注意 response header 里需要设置 Access-Control-Allow-Origin 来防止跨域问题
23
+ * @supported swan
24
+ */
25
+ path?: string
26
+
27
+ /** 动画是否循环播放
28
+ * @supported swan
29
+ * @default false
30
+ */
31
+ loop?: boolean
32
+
33
+ /** 动画是否自动播放
34
+ * @supported swan
35
+ * @default false
36
+ */
37
+ autoplay?: boolean
38
+
39
+ /** 视频资源中 alpha 通道的方向,left 表示 alpha 通道在资源的左边,right 表示 alpha 通道在资源的右边。详情请参考透明视频设计资源示例
40
+ * @supported swan
41
+ * @default "left"
42
+ */
43
+ alphaDirection?: string
44
+
45
+ /** 动画开始播放的回调
46
+ * @supported swan
47
+ */
48
+ onStarted?: CommonEventFunction
49
+
50
+ /** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及暂停动画不会触发)
51
+ * @supported swan
52
+ */
53
+ onEnded?: CommonEventFunction
54
+ }
55
+
56
+ /** 透明视频动画
57
+ * @classification media
58
+ * @supported swan
59
+ * @see https://smartprogram.baidu.com/docs/develop/component/animation-video/
60
+ */
61
+ declare const AnimationVideo: ComponentType<AnimationVideoProps>
62
+ export { AnimationVideo, AnimationVideoProps }
@@ -0,0 +1,45 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface AnimationViewProps extends StandardProps {
4
+ /** 动画资源地址,目前只支持绝对路径
5
+ * @supported swan
6
+ */
7
+ path?: string
8
+
9
+ /** 动画是否循环播放
10
+ * @supported swan
11
+ * @default false
12
+ */
13
+ loop?: boolean
14
+
15
+ /** 动画是否自动播放
16
+ * @supported swan
17
+ * @default true
18
+ */
19
+ autoplay?: boolean
20
+
21
+ /** 动画操作,可取值 play、pause、stop
22
+ * @supported swan
23
+ * @default "play"
24
+ */
25
+ action?: 'play' | 'pause' | 'stop'
26
+
27
+ /** 是否隐藏动画
28
+ * @supported swan
29
+ * @default true
30
+ */
31
+ hidden?: boolean
32
+
33
+ /** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发)
34
+ * @supported swan
35
+ */
36
+ onEnded?: CommonEventFunction
37
+ }
38
+
39
+ /** Lottie 动画
40
+ * @classification media
41
+ * @supported swan
42
+ * @see https://smartprogram.baidu.com/docs/develop/component/animation-view-Lottie/
43
+ */
44
+ declare const AnimationView: ComponentType<AnimationViewProps>
45
+ export { AnimationView, AnimationViewProps }
@@ -0,0 +1,50 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface ArCameraProps extends StandardProps {
4
+ /** AR 项目唯一标识,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Key
5
+ * @supported swan
6
+ */
7
+ key?: string
8
+
9
+ /** AR 相机类型,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Type:
10
+ * 2D 跟踪类型:0
11
+ * SLAM 类型:5
12
+ * IMU 类型:8
13
+ * @supported swan
14
+ */
15
+ type?: '0' | '5' | '8'
16
+
17
+ /** 闪光灯,值为 auto、on、off
18
+ * @supported swan
19
+ * @default "off"
20
+ */
21
+ flash?: 'auto' | 'on' | 'off'
22
+
23
+ /** 用户不允许使用摄像头或扫码失败时触发
24
+ * @supported swan
25
+ */
26
+ onError?: CommonEventFunction
27
+
28
+ /** AR 加载成功时触发
29
+ * @supported swan
30
+ */
31
+ onLoad?: CommonEventFunction
32
+
33
+ /** 开发者制作 AR 项目时可自定义按键,用户点击时会收到事件和数据,用户自定义事件格式参见代码示例 2:用户自定义事件
34
+ * @supported swan
35
+ */
36
+ onMessage?: CommonEventFunction
37
+
38
+ /** 扫描识图结束后触发
39
+ * @supported swan
40
+ */
41
+ onScanCode?: CommonEventFunction
42
+ }
43
+
44
+ /** AR 相机
45
+ * @classification media
46
+ * @supported swan
47
+ * @see https://smartprogram.baidu.com/docs/develop/component/media_ar-camera/
48
+ */
49
+ declare const ArCamera: ComponentType<ArCameraProps>
50
+ export { ArCamera, ArCameraProps }
package/types/Audio.d.ts CHANGED
@@ -46,6 +46,11 @@ interface AudioProps extends StandardProps {
46
46
  */
47
47
  author?: string
48
48
 
49
+ /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
50
+ * @supported h5
51
+ */
52
+ nativeProps?: Record<string, unknown>
53
+
49
54
  /** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
50
55
  * @supported weapp, swan, qq, h5
51
56
  */
@@ -70,11 +75,6 @@ interface AudioProps extends StandardProps {
70
75
  * @supported weapp, swan, qq, h5
71
76
  */
72
77
  onEnded?: CommonEventFunction
73
-
74
- /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
75
- * @supported h5
76
- */
77
- nativeProps?: Record<string, unknown>
78
78
  }
79
79
  declare namespace AudioProps {
80
80
  interface onErrorEventDetail {
@@ -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 {
@@ -0,0 +1,43 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface AwemeDataProps extends StandardProps {
4
+ /** 用户的抖音号,可以进入抖音 App 用户个人主页查看
5
+ * @supported tt
6
+ */
7
+ awemeId?: string
8
+
9
+ /** 类型,可以选择头像或昵称
10
+ * @supported tt
11
+ * @default "avatar"
12
+ */
13
+ type?: string
14
+
15
+ /** 禁用默认行为。点击头像时,如果用户处于直播状态下默认会跳转到直播间,非直播状态下跳转到个人主页。如果为 true,点击头像时不会有默认行为。
16
+ * @supported tt
17
+ * @default false
18
+ */
19
+ disableDefault?: boolean
20
+
21
+ /** 获取信息失败时显示的默认头像 url
22
+ * @supported tt
23
+ */
24
+ defaultAvatar?: string
25
+
26
+ /** 获取信息失败时显示的默认昵称文本
27
+ * @supported tt
28
+ */
29
+ defaultText?: string
30
+
31
+ /** 当错误发生时触发
32
+ * @supported tt
33
+ */
34
+ onError?: CommonEventFunction
35
+ }
36
+
37
+ /** 直播间状态组件
38
+ * @classification open
39
+ * @supported tt
40
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/aweme-data/
41
+ */
42
+ declare const AwemeData: ComponentType<AwemeDataProps>
43
+ export { AwemeData, AwemeDataProps }