@tarojs/components 3.5.9 → 3.5.11

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 (48) hide show
  1. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +24 -21
  2. package/dist/cjs/taro-view-core.cjs.entry.js +6 -2
  3. package/dist/collection/components/swiper/swiper.js +24 -22
  4. package/dist/collection/components/view/view.js +6 -3
  5. package/dist/esm/taro-swiper-core_2.entry.js +24 -21
  6. package/dist/esm/taro-view-core.entry.js +6 -2
  7. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  8. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  9. package/dist/taro-components/{p-a5496bf5.system.entry.js → p-0152fd40.system.entry.js} +1 -1
  10. package/dist/taro-components/p-0380841f.system.js +1 -1
  11. package/dist/taro-components/{p-8475421b.system.entry.js → p-7431b2e1.system.entry.js} +1 -1
  12. package/dist/taro-components/p-8b1dfd32.entry.js +1 -0
  13. package/dist/taro-components/{p-34178401.entry.js → p-c3bcd3b7.entry.js} +1 -1
  14. package/dist/taro-components/taro-components.esm.js +1 -1
  15. package/package.json +3 -3
  16. package/types/Button.d.ts +1 -1
  17. package/types/Camera.d.ts +1 -1
  18. package/types/Checkbox.d.ts +1 -1
  19. package/types/CheckboxGroup.d.ts +1 -1
  20. package/types/CoverImage.d.ts +1 -1
  21. package/types/CustomWrapper.d.ts +1 -0
  22. package/types/Form.d.ts +1 -1
  23. package/types/Icon.d.ts +1 -1
  24. package/types/Image.d.ts +1 -1
  25. package/types/Input.d.ts +15 -1
  26. package/types/Label.d.ts +1 -1
  27. package/types/NativeSlot.d.ts +1 -0
  28. package/types/NavigationBar.d.ts +2 -1
  29. package/types/Navigator.d.ts +1 -1
  30. package/types/Picker.d.ts +1 -1
  31. package/types/PickerView.d.ts +1 -1
  32. package/types/PickerViewColumn.d.ts +1 -1
  33. package/types/Progress.d.ts +1 -1
  34. package/types/Radio.d.ts +1 -1
  35. package/types/RadioGroup.d.ts +1 -1
  36. package/types/RichText.d.ts +1 -1
  37. package/types/ScrollView.d.ts +1 -1
  38. package/types/ShareElement.d.ts +3 -3
  39. package/types/Slider.d.ts +1 -1
  40. package/types/Slot.d.ts +2 -1
  41. package/types/Swiper.d.ts +1 -1
  42. package/types/SwiperItem.d.ts +1 -1
  43. package/types/Switch.d.ts +1 -1
  44. package/types/Textarea.d.ts +1 -1
  45. package/types/Video.d.ts +1 -1
  46. package/types/View.d.ts +1 -1
  47. package/types/WebView.d.ts +1 -1
  48. package/dist/taro-components/p-5a2305e7.entry.js +0 -1
@@ -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};