@tarojs/components 3.5.4-canary.0 → 3.5.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/collection/components/textarea/style/index.css +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/taro-components/p-0380841f.system.js +1 -1
- package/dist/taro-components/p-06e6864b.system.entry.js +1 -0
- package/dist/taro-components/{p-00201a61.entry.js → p-bd706d39.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist-h5/react/components/index.js +5 -5
- package/package.json +3 -3
- package/types/Map.d.ts +4 -5
- package/types/RootPortal.d.ts +2 -1
- package/types/Video.d.ts +12 -5
- package/types/index.vue3.d.ts +261 -138
- package/dist/taro-components/p-0a70de87.system.entry.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7c61bee9.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:
|
|
7
|
+
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";
|
|
8
8
|
|
|
9
9
|
function fixControlledValue(value) {
|
|
10
10
|
return value !== null && value !== void 0 ? value : '';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8809c729.js';
|
|
2
2
|
|
|
3
|
-
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:
|
|
3
|
+
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";
|
|
4
4
|
|
|
5
5
|
function fixControlledValue(value) {
|
|
6
6
|
return value !== null && value !== void 0 ? value : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-8809c729.js";var indexCss="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-8809c729.js";var indexCss="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Textarea=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onChange=createEvent(this,"change",7);this.onLineChange=createEvent(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();t.handleLineChange();t.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=t.getNumberOfLines();if(e!==t.line){t.line=e;t.onLineChange.emit({height:t.textareaRef.clientHeight,lineCount:t.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,a=e.offsetHeight,i=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(a>=i){e.style.minHeight=0;e.style.height=a+t+"px";e.style.overflow="hidden";if(i<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(a-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=a+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return a}}else{return i}};this.getNumberOfLines=function(){var e=t.textareaRef,n=window.getComputedStyle?window.getComputedStyle(e):e.style,a=parseInt(n.lineHeight,10),i=t.calculateContentHeight(e,a),o=Math.floor(i/a);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,i=t.disabled,o=t.maxlength,r=t.autoFocus,l=t.autoHeight,s=t.name,u=t.nativeProps,c=t.handleInput,g=t.handleFocus,f=t.handleBlur,p=t.handleChange;var d={};if(l){d.rows=this.line}return h("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(l?"auto-height":""),value:fixControlledValue(n),placeholder:a,name:s,disabled:i,maxlength:o,autofocus:r,onInput:c,onFocus:g,onBlur:f,onChange:p},u,d))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Textarea.style=indexCss;export{Textarea as taro_textarea_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-13f0b11f.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],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-10e5df98.system",[[0,"taro-ad-core"]]],["p-b83c3eca.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-a94524c9.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]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-0414632d.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-a8c9b126.system",[[0,"taro-editor-core"]]],["p-5f18259d.system",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-5e3bd0db.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-a39276ff.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-b3693ca2.system",[[0,"taro-keyboard-accessory-core"]]],["p-5e223bab.system",[[4,"taro-label-core",{for:[1]}]]],["p-1a638246.system",[[0,"taro-live-player-core"]]],["p-44fa48b9.system",[[0,"taro-live-pusher-core"]]],["p-14058364.system",[[0,"taro-map-core"]]],["p-89c876a6.system",[[0,"taro-match-media-core"]]],["p-1c775a11.system",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-24a66088.system",[[4,"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-9965cf11.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-4f0e98c0.system",[[0,"taro-official-account-core"]]],["p-481a8bc1.system",[[0,"taro-open-data-core"]]],["p-d72075ef.system",[[0,"taro-page-container-core"]]],["p-aa5d45de.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-4e8d4a72.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-7b96cec3.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-2fd0250d.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-
|
|
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-13f0b11f.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],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-10e5df98.system",[[0,"taro-ad-core"]]],["p-b83c3eca.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-a94524c9.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]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-0414632d.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-a8c9b126.system",[[0,"taro-editor-core"]]],["p-5f18259d.system",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-5e3bd0db.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-a39276ff.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-b3693ca2.system",[[0,"taro-keyboard-accessory-core"]]],["p-5e223bab.system",[[4,"taro-label-core",{for:[1]}]]],["p-1a638246.system",[[0,"taro-live-player-core"]]],["p-44fa48b9.system",[[0,"taro-live-pusher-core"]]],["p-14058364.system",[[0,"taro-map-core"]]],["p-89c876a6.system",[[0,"taro-match-media-core"]]],["p-1c775a11.system",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-24a66088.system",[[4,"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-9965cf11.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-4f0e98c0.system",[[0,"taro-official-account-core"]]],["p-481a8bc1.system",[[0,"taro-open-data-core"]]],["p-d72075ef.system",[[0,"taro-page-container-core"]]],["p-aa5d45de.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-4e8d4a72.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-7b96cec3.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-2fd0250d.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-840ef0c3.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-ed8c1bb8.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)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.g}],execute:function(){var o="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function r(e){return e!==null&&e!==void 0?e:""}var h=e("taro_textarea_core",function(){function e(e){var i=this;t(this,e);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onChange=n(this,"change",7);this.onLineChange=n(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();i.handleLineChange();i.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){i.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){i.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=i.getNumberOfLines();if(e!==i.line){i.line=e;i.onLineChange.emit({height:i.textareaRef.clientHeight,lineCount:i.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,i=e.offsetHeight,a=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(i>=a){e.style.minHeight=0;e.style.height=i+t+"px";e.style.overflow="hidden";if(a<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(i-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=i+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return i}}else{return a}};this.getNumberOfLines=function(){var e=i.textareaRef,t=window.getComputedStyle?window.getComputedStyle(e):e.style,n=parseInt(t.lineHeight,10),a=i.calculateContentHeight(e,n),o=Math.floor(a/n);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,o=t.disabled,h=t.maxlength,l=t.autoFocus,s=t.autoHeight,u=t.name,c=t.nativeProps,g=t.handleInput,f=t.handleFocus,p=t.handleBlur,d=t.handleChange;var v={};if(s){v.rows=this.line}return i("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(s?"auto-height":""),value:r(n),placeholder:a,name:u,disabled:o,maxlength:h,autofocus:l,onInput:g,onFocus:f,onBlur:p,onChange:d},c,v))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());h.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as h}from"./p-059912fd.js";function s(t){return null!=t?t:""}let a=class{constructor(i){t(this,i),this.onInput=e(this,"input",7),this.onFocus=e(this,"focus",7),this.onBlur=e(this,"blur",7),this.onChange=e(this,"change",7),this.onLineChange=e(this,"linechange",7),this.disabled=!1,this.maxlength=140,this.autoFocus=!1,this.autoHeight=!1,this.nativeProps={},this.line=1,this.handleInput=t=>{t.stopPropagation(),this.handleLineChange(),this.onInput.emit({value:t.target.value,cursor:t.target.value.length})},this.handleFocus=t=>{this.onFocus.emit({value:t.target.value})},this.handleBlur=t=>{this.onBlur.emit({value:t.target.value})},this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:t.target.value})},this.handleLineChange=()=>{const t=this.getNumberOfLines();t!==this.line&&(this.line=t,this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line}))},this.calculateContentHeight=(t,e)=>{let i=t.style.height,h=t.offsetHeight,s=t.scrollHeight,a=t.style.overflow,
|
|
1
|
+
import{r as t,c as e,h as i,g as h}from"./p-059912fd.js";function s(t){return null!=t?t:""}let a=class{constructor(i){t(this,i),this.onInput=e(this,"input",7),this.onFocus=e(this,"focus",7),this.onBlur=e(this,"blur",7),this.onChange=e(this,"change",7),this.onLineChange=e(this,"linechange",7),this.disabled=!1,this.maxlength=140,this.autoFocus=!1,this.autoHeight=!1,this.nativeProps={},this.line=1,this.handleInput=t=>{t.stopPropagation(),this.handleLineChange(),this.onInput.emit({value:t.target.value,cursor:t.target.value.length})},this.handleFocus=t=>{this.onFocus.emit({value:t.target.value})},this.handleBlur=t=>{this.onBlur.emit({value:t.target.value})},this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:t.target.value})},this.handleLineChange=()=>{const t=this.getNumberOfLines();t!==this.line&&(this.line=t,this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line}))},this.calculateContentHeight=(t,e)=>{let i=t.style.height,h=t.offsetHeight,s=t.scrollHeight,a=t.style.overflow,n=t.style.minHeight||null;if(!(h>=s))return s;if(t.style.minHeight=0,t.style.height=h+e+"px",t.style.overflow="hidden",s<t.scrollHeight){for(;t.offsetHeight>=t.scrollHeight;)t.style.height=(h-=e)+"px";for(;t.offsetHeight<t.scrollHeight;)t.style.height=h+++"px";return t.style.height=i,t.style.overflow=a,t.style.minHeight=n,h}},this.getNumberOfLines=()=>{const t=this.textareaRef,e=window.getComputedStyle?window.getComputedStyle(t):t.style,i=parseInt(e.lineHeight,10),h=this.calculateContentHeight(t,i);return Math.floor(h/i)}}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.textareaRef.value,set:t=>this.value=t,configurable:!0}),this.autoFocus&&this.textareaRef.focus()}render(){const{value:t,placeholder:e,disabled:h,maxlength:a,autoFocus:n,autoHeight:o,name:r,nativeProps:l,handleInput:u,handleFocus:c,handleBlur:p,handleChange:d}=this,g={};return o&&(g.rows=this.line),i("textarea",Object.assign({ref:t=>{t&&(this.textareaRef=t)},class:"taro-textarea "+(o?"auto-height":""),value:s(t),placeholder:e,name:r,disabled:h,maxlength:a,autofocus:n,onInput:u,onFocus:c,onBlur:p,onChange:d},l,g))}get el(){return h(this)}};a.style="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";export{a as taro_textarea_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,
|
|
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-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-7ab91097",[[0,"taro-ad-core"]]],["p-9fcb40a3",[[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-4f805045",[[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-db1f2db7",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-95a36917",[[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-1b356f4d",[[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-443fb8b0",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-c0c8b2be",[[0,"taro-live-player-core"]]],["p-e3f39099",[[0,"taro-live-pusher-core"]]],["p-3c7cdf6f",[[0,"taro-map-core"]]],["p-22e33350",[[0,"taro-match-media-core"]]],["p-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-1e530acd",[[4,"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-7e23b551",[[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-90a6c15a",[[0,"taro-official-account-core"]]],["p-c8da5c10",[[0,"taro-open-data-core"]]],["p-77ad7941",[[0,"taro-page-container-core"]]],["p-6da73376",[[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-410d449f",[[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-7325d380",[[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-7f0a12a9",[[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-49b64020",[[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-7e8943d8",[[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)));
|
|
@@ -37,12 +37,14 @@ export var Switch = reactifyWc('taro-switch-core');
|
|
|
37
37
|
export var Textarea = reactifyWc('taro-textarea-core'); // 导航
|
|
38
38
|
|
|
39
39
|
export var FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core');
|
|
40
|
-
export var Navigator = reactifyWc('taro-navigator-core');
|
|
40
|
+
export var Navigator = reactifyWc('taro-navigator-core');
|
|
41
|
+
export var NavigationBar = reactifyWc('taro-navigation-bar-core'); // 媒体组件
|
|
41
42
|
|
|
42
43
|
export var Audio = reactifyWc('taro-audio-core');
|
|
43
44
|
export var Camera = reactifyWc('taro-camera-core');
|
|
44
45
|
export var Image = reactifyWc('taro-image-core');
|
|
45
46
|
export var LivePlayer = reactifyWc('taro-live-player-core');
|
|
47
|
+
export var LivePusher = reactifyWc('taro-live-pusher-core');
|
|
46
48
|
export var Video = reactifyWc('taro-video-core');
|
|
47
49
|
export var VoipRoom = reactifyWc('taro-voip-room-core'); // 地图
|
|
48
50
|
|
|
@@ -50,13 +52,11 @@ export var Map = reactifyWc('taro-map-core'); // 画布
|
|
|
50
52
|
|
|
51
53
|
export var Canvas = reactifyWc('taro-canvas-core'); // 开放能力
|
|
52
54
|
|
|
53
|
-
export var WebView = reactifyWc('taro-web-view-core');
|
|
54
55
|
export var Ad = reactifyWc('taro-ad-core');
|
|
55
56
|
export var AdCustom = reactifyWc('taro-ad-custom-core');
|
|
56
57
|
export var OfficialAccount = reactifyWc('taro-official-account-core');
|
|
57
|
-
export var OpenData = reactifyWc('taro-open-data-core');
|
|
58
|
-
|
|
59
|
-
export var NavigationBar = reactifyWc('taro-navigation-bar-core'); // 页面属性配置节点
|
|
58
|
+
export var OpenData = reactifyWc('taro-open-data-core');
|
|
59
|
+
export var WebView = reactifyWc('taro-web-view-core'); // 页面属性配置节点
|
|
60
60
|
|
|
61
61
|
export var PageMeta = reactifyWc('taro-page-meta-core'); // 其他
|
|
62
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@stencil/core": "~2.13.0",
|
|
34
34
|
"@stencil/sass": "1.5.2",
|
|
35
|
-
"@tarojs/taro": "3.5.
|
|
36
|
-
"@tarojs/router": "3.5.
|
|
35
|
+
"@tarojs/taro": "3.5.5-alpha.0",
|
|
36
|
+
"@tarojs/router": "3.5.5-alpha.0",
|
|
37
37
|
"better-scroll": "^1.14.1",
|
|
38
38
|
"classnames": "^2.2.5",
|
|
39
39
|
"hls.js": "^1.1.5",
|
package/types/Map.d.ts
CHANGED
|
@@ -12,21 +12,20 @@ interface MapProps extends StandardProps {
|
|
|
12
12
|
*/
|
|
13
13
|
latitude: number
|
|
14
14
|
|
|
15
|
-
/** 缩放级别,取值范围为3-20
|
|
15
|
+
/** 缩放级别,取值范围为 3-20
|
|
16
16
|
* @default 16
|
|
17
17
|
* @supported weapp, swan, alipay, tt
|
|
18
18
|
* @swan 取值范围为4-21
|
|
19
19
|
* @alipay 取值范围为5-18
|
|
20
20
|
*/
|
|
21
21
|
scale?: number
|
|
22
|
-
/** 最小缩放级别3-20
|
|
22
|
+
/** 最小缩放级别 3-20
|
|
23
23
|
* @default 3
|
|
24
24
|
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
minScale?: number
|
|
27
|
-
/** 最大缩放级别3-20
|
|
28
|
-
*
|
|
29
|
-
* @default 20 (字节小程序默认为19)
|
|
27
|
+
/** 最大缩放级别 3-20
|
|
28
|
+
* @default 20
|
|
30
29
|
* @supported weapp, tt
|
|
31
30
|
*/
|
|
32
31
|
maxScale?: number
|
package/types/RootPortal.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { ComponentType } from 'react'
|
|
|
3
3
|
/** root-portal
|
|
4
4
|
* 使整个子树从页面中脱离出来,类似于在 CSS 中使用 fixed position 的效果。主要用于制作弹窗、弹出层等。
|
|
5
5
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/root-portal.html
|
|
6
|
+
* @classification viewContainer
|
|
6
7
|
* @supported weapp
|
|
7
|
-
* @
|
|
8
|
+
* @example_react
|
|
8
9
|
* ```tsx
|
|
9
10
|
* import { useState } from 'react'
|
|
10
11
|
* import { RootPortal, View, Button } from '@tarojs/components'
|
package/types/Video.d.ts
CHANGED
|
@@ -238,8 +238,6 @@ interface VideoProps extends StandardProps {
|
|
|
238
238
|
onEnded?: CommonEventFunction
|
|
239
239
|
|
|
240
240
|
/** 播放进度变化时触发, 触发频率 250ms 一次
|
|
241
|
-
*
|
|
242
|
-
* event.detail = {currentTime, duration}
|
|
243
241
|
* @supported weapp, h5, swan, alipay, tt, rn
|
|
244
242
|
*/
|
|
245
243
|
onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
|
|
@@ -266,13 +264,13 @@ interface VideoProps extends StandardProps {
|
|
|
266
264
|
*/
|
|
267
265
|
onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
|
|
268
266
|
|
|
269
|
-
/**
|
|
267
|
+
/** 视频元数据加载完成时触发
|
|
270
268
|
* @supported weapp, rn, tt
|
|
271
269
|
*/
|
|
272
|
-
onLoadedMetaData?: CommonEventFunction
|
|
270
|
+
onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
|
|
273
271
|
|
|
274
272
|
/**
|
|
275
|
-
* 切换 controls
|
|
273
|
+
* 切换 controls 显示隐藏时触发
|
|
276
274
|
* @supported weapp
|
|
277
275
|
*/
|
|
278
276
|
onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
|
|
@@ -351,6 +349,15 @@ declare namespace VideoProps {
|
|
|
351
349
|
buffered: number
|
|
352
350
|
}
|
|
353
351
|
|
|
352
|
+
interface onLoadedMetaDataEventDetail {
|
|
353
|
+
/** 视频宽度 */
|
|
354
|
+
width: number
|
|
355
|
+
/** 视频高度 */
|
|
356
|
+
height: number
|
|
357
|
+
/** 持续时间 */
|
|
358
|
+
duration: number
|
|
359
|
+
}
|
|
360
|
+
|
|
354
361
|
interface onControlsToggleEventDetail {
|
|
355
362
|
/** 是否显示 */
|
|
356
363
|
show: boolean
|
package/types/index.vue3.d.ts
CHANGED
|
@@ -10,149 +10,272 @@
|
|
|
10
10
|
* }
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
import * as CSS from 'csstype'
|
|
14
|
-
import {
|
|
13
|
+
import * as CSS from 'csstype'
|
|
14
|
+
import { DefineComponent } from 'vue'
|
|
15
15
|
|
|
16
|
-
import { StandardProps } from './common'
|
|
17
|
-
/** 视图容器 */
|
|
18
|
-
import { CoverImageProps } from './CoverImage'
|
|
19
|
-
import { CoverViewProps } from './CoverView'
|
|
20
|
-
import { MatchMediaProps } from './MatchMedia'
|
|
21
|
-
import { MovableAreaProps } from './MovableArea'
|
|
22
|
-
import { MovableViewProps } from './MovableView'
|
|
23
|
-
import { PageContainerProps } from './PageContainer'
|
|
24
|
-
import { ScrollViewProps } from './ScrollView'
|
|
25
|
-
import { ShareElementProps } from './ShareElement'
|
|
26
|
-
import { SwiperProps } from './Swiper'
|
|
27
|
-
import { SwiperItemProps } from './SwiperItem'
|
|
28
|
-
import { ViewProps } from './View'
|
|
29
|
-
/** 基础内容 */
|
|
30
|
-
import { IconProps } from './Icon'
|
|
31
|
-
import { ProgressProps } from './Progress'
|
|
32
|
-
import { RichTextProps } from './RichText'
|
|
33
|
-
import { TextProps } from './Text'
|
|
34
|
-
/** 表单组件 */
|
|
35
|
-
import { ButtonProps } from './Button'
|
|
36
|
-
import { CheckboxProps } from './Checkbox'
|
|
37
|
-
import { CheckboxGroupProps } from './CheckboxGroup'
|
|
38
|
-
import { EditorProps } from './Editor'
|
|
39
|
-
import { FormProps } from './Form'
|
|
40
|
-
import { InputProps } from './Input'
|
|
41
|
-
import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
42
|
-
import { LabelProps } from './Label'
|
|
43
|
-
import { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker'
|
|
44
|
-
import { PickerViewProps } from './PickerView'
|
|
45
|
-
import { RadioProps } from './Radio'
|
|
46
|
-
import { RadioGroupProps } from './RadioGroup'
|
|
47
|
-
import { SliderProps } from './Slider'
|
|
48
|
-
import { SwitchProps } from './Switch'
|
|
49
|
-
import { TextareaProps } from './Textarea'
|
|
50
|
-
/** 导航 */
|
|
51
|
-
import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
52
|
-
import { NavigatorProps } from './Navigator'
|
|
53
|
-
import { NavigationBarProps } from './NavigationBar'
|
|
54
|
-
/** 媒体组件 */
|
|
55
|
-
import { AudioProps } from './Audio'
|
|
56
|
-
import { CameraProps } from './Camera'
|
|
57
|
-
import { ImageProps } from './Image'
|
|
58
|
-
import { LivePlayerProps } from './LivePlayer'
|
|
59
|
-
import { LivePusherProps } from './LivePusher'
|
|
60
|
-
import { VideoProps } from './Video'
|
|
61
|
-
import { VoipRoomProps } from './VoipRoom'
|
|
62
|
-
/** 地图 */
|
|
63
|
-
import { MapProps } from './Map'
|
|
64
|
-
/** 画布 */
|
|
65
|
-
import { CanvasProps } from './Canvas'
|
|
66
|
-
/** 开放能力 */
|
|
67
|
-
import { AdProps } from './Ad'
|
|
68
|
-
import { AdCustomProps } from './AdCustom'
|
|
69
|
-
import { OfficialAccountProps } from './OfficialAccount'
|
|
70
|
-
import { OpenDataProps } from './OpenData'
|
|
71
|
-
import { WebViewProps } from './WebView'
|
|
72
|
-
/** 配置节点 */
|
|
73
|
-
import { PageMetaProps } from './PageMeta'
|
|
16
|
+
import { StandardProps } from './common'
|
|
17
|
+
/** 视图容器 */
|
|
18
|
+
import { CoverImageProps } from './CoverImage'
|
|
19
|
+
import { CoverViewProps } from './CoverView'
|
|
20
|
+
import { MatchMediaProps } from './MatchMedia'
|
|
21
|
+
import { MovableAreaProps } from './MovableArea'
|
|
22
|
+
import { MovableViewProps } from './MovableView'
|
|
23
|
+
import { PageContainerProps } from './PageContainer'
|
|
24
|
+
import { ScrollViewProps } from './ScrollView'
|
|
25
|
+
import { ShareElementProps } from './ShareElement'
|
|
26
|
+
import { SwiperProps } from './Swiper'
|
|
27
|
+
import { SwiperItemProps } from './SwiperItem'
|
|
28
|
+
import { ViewProps } from './View'
|
|
29
|
+
/** 基础内容 */
|
|
30
|
+
import { IconProps } from './Icon'
|
|
31
|
+
import { ProgressProps } from './Progress'
|
|
32
|
+
import { RichTextProps } from './RichText'
|
|
33
|
+
import { TextProps } from './Text'
|
|
34
|
+
/** 表单组件 */
|
|
35
|
+
import { ButtonProps } from './Button'
|
|
36
|
+
import { CheckboxProps } from './Checkbox'
|
|
37
|
+
import { CheckboxGroupProps } from './CheckboxGroup'
|
|
38
|
+
import { EditorProps } from './Editor'
|
|
39
|
+
import { FormProps } from './Form'
|
|
40
|
+
import { InputProps } from './Input'
|
|
41
|
+
import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
42
|
+
import { LabelProps } from './Label'
|
|
43
|
+
import { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker'
|
|
44
|
+
import { PickerViewProps } from './PickerView'
|
|
45
|
+
import { RadioProps } from './Radio'
|
|
46
|
+
import { RadioGroupProps } from './RadioGroup'
|
|
47
|
+
import { SliderProps } from './Slider'
|
|
48
|
+
import { SwitchProps } from './Switch'
|
|
49
|
+
import { TextareaProps } from './Textarea'
|
|
50
|
+
/** 导航 */
|
|
51
|
+
import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
52
|
+
import { NavigatorProps } from './Navigator'
|
|
53
|
+
import { NavigationBarProps } from './NavigationBar'
|
|
54
|
+
/** 媒体组件 */
|
|
55
|
+
import { AudioProps } from './Audio'
|
|
56
|
+
import { CameraProps } from './Camera'
|
|
57
|
+
import { ImageProps } from './Image'
|
|
58
|
+
import { LivePlayerProps } from './LivePlayer'
|
|
59
|
+
import { LivePusherProps } from './LivePusher'
|
|
60
|
+
import { VideoProps } from './Video'
|
|
61
|
+
import { VoipRoomProps } from './VoipRoom'
|
|
62
|
+
/** 地图 */
|
|
63
|
+
import { MapProps } from './Map'
|
|
64
|
+
/** 画布 */
|
|
65
|
+
import { CanvasProps } from './Canvas'
|
|
66
|
+
/** 开放能力 */
|
|
67
|
+
import { AdProps } from './Ad'
|
|
68
|
+
import { AdCustomProps } from './AdCustom'
|
|
69
|
+
import { OfficialAccountProps } from './OfficialAccount'
|
|
70
|
+
import { OpenDataProps } from './OpenData'
|
|
71
|
+
import { WebViewProps } from './WebView'
|
|
72
|
+
/** 配置节点 */
|
|
73
|
+
import { PageMetaProps } from './PageMeta'
|
|
74
74
|
|
|
75
|
-
import { CustomWrapperProps } from './CustomWrapper'
|
|
76
|
-
import { SlotProps } from './Slot'
|
|
75
|
+
import { CustomWrapperProps } from './CustomWrapper'
|
|
76
|
+
import { SlotProps } from './Slot'
|
|
77
77
|
|
|
78
|
-
/** 联合类型不能用omit(比如picker) */
|
|
79
|
-
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never
|
|
78
|
+
/** 联合类型不能用omit(比如picker) */
|
|
79
|
+
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never
|
|
80
80
|
|
|
81
|
-
interface SlimProps {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
81
|
+
interface SlimProps {
|
|
82
|
+
class?: any
|
|
83
|
+
style?: CSS.Properties<string | number>
|
|
84
|
+
innerHTML?: string
|
|
85
|
+
}
|
|
86
86
|
|
|
87
|
-
/** 转换 react 的类型到 vue */
|
|
88
|
-
type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
|
|
89
|
-
type TransformReact2VueType<P extends StandardProps = Record<string, never>> = DistributiveOmit<P, RemoveReactAttribute> & SlimProps
|
|
90
|
-
export type VueComponentType<P = Record<string, never>> =
|
|
87
|
+
/** 转换 react 的类型到 vue */
|
|
88
|
+
type RemoveReactAttribute = 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
|
|
89
|
+
type TransformReact2VueType<P extends StandardProps = Record<string, never>> = DistributiveOmit<P, RemoveReactAttribute> & SlimProps
|
|
90
|
+
export type VueComponentType<P = Record<string, never>> = DefineComponent<TransformReact2VueType<P>>
|
|
91
91
|
|
|
92
|
-
export * from './common'
|
|
93
|
-
export * from './event'
|
|
94
|
-
export * from './props'
|
|
92
|
+
export * from './common'
|
|
93
|
+
export * from './event'
|
|
94
|
+
export * from './props'
|
|
95
95
|
|
|
96
|
-
/** 视图容器 */
|
|
97
|
-
export declare const Block: VueComponentType<StandardProps>
|
|
98
|
-
export declare const CoverImage: VueComponentType<CoverImageProps>
|
|
99
|
-
export declare const CoverView: VueComponentType<CoverViewProps>
|
|
100
|
-
export declare const MatchMedia: VueComponentType<MatchMediaProps>
|
|
101
|
-
export declare const MovableArea: VueComponentType<MovableAreaProps>
|
|
102
|
-
export declare const MovableView: VueComponentType<MovableViewProps>
|
|
103
|
-
export declare const PageContainer: VueComponentType<PageContainerProps>
|
|
104
|
-
export declare const RootPortal: VueComponentType
|
|
105
|
-
export declare const ScrollView: VueComponentType<ScrollViewProps>
|
|
106
|
-
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
107
|
-
export declare const Swiper: VueComponentType<SwiperProps>
|
|
108
|
-
export declare const SwiperItem: VueComponentType<SwiperItemProps>
|
|
109
|
-
export declare const View: VueComponentType<ViewProps>
|
|
110
|
-
/** 基础内容 */
|
|
111
|
-
export declare const Icon: VueComponentType<IconProps>
|
|
112
|
-
export declare const Progress: VueComponentType<ProgressProps>
|
|
113
|
-
export declare const RichText: VueComponentType<RichTextProps>
|
|
114
|
-
export declare const Text: VueComponentType<TextProps>
|
|
115
|
-
/** 表单组件 */
|
|
116
|
-
export declare const Button: VueComponentType<ButtonProps>
|
|
117
|
-
export declare const Checkbox: VueComponentType<CheckboxProps>
|
|
118
|
-
export declare const CheckboxGroup: VueComponentType<CheckboxGroupProps>
|
|
119
|
-
export declare const Editor: VueComponentType<EditorProps>
|
|
120
|
-
export declare const Form: VueComponentType<FormProps>
|
|
121
|
-
export declare const Input: VueComponentType<InputProps>
|
|
122
|
-
export declare const KeyboardAccessory: VueComponentType<KeyboardAccessoryProps>
|
|
123
|
-
export declare const Label: VueComponentType<LabelProps>
|
|
124
|
-
export declare const Picker: VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
125
|
-
export declare const PickerView: VueComponentType<PickerViewProps>
|
|
126
|
-
export declare const PickerViewColumn: VueComponentType
|
|
127
|
-
export declare const Radio: VueComponentType<RadioProps>
|
|
128
|
-
export declare const RadioGroup: VueComponentType<RadioGroupProps>
|
|
129
|
-
export declare const Slider: VueComponentType<SliderProps>
|
|
130
|
-
export declare const Switch: VueComponentType<SwitchProps>
|
|
131
|
-
export declare const Textarea: VueComponentType<TextareaProps>
|
|
132
|
-
/** 导航 */
|
|
133
|
-
export declare const FunctionalPageNavigator: VueComponentType<FunctionalPageNavigatorProps>
|
|
134
|
-
export declare const Navigator: VueComponentType<NavigatorProps>
|
|
135
|
-
export declare const NavigationBar: VueComponentType<NavigationBarProps>
|
|
136
|
-
/** 媒体组件 */
|
|
137
|
-
export declare const Audio: VueComponentType<AudioProps>
|
|
138
|
-
export declare const Camera: VueComponentType<CameraProps>
|
|
139
|
-
export declare const Image: VueComponentType<ImageProps>
|
|
140
|
-
export declare const LivePlayer: VueComponentType<LivePlayerProps>
|
|
141
|
-
export declare const LivePusher: VueComponentType<LivePusherProps>
|
|
142
|
-
export declare const Video: VueComponentType<VideoProps>
|
|
143
|
-
export declare const VoipRoom: VueComponentType<VoipRoomProps>
|
|
144
|
-
/** 地图 */
|
|
145
|
-
export declare const Map: VueComponentType<MapProps>
|
|
146
|
-
/** 画布 */
|
|
147
|
-
export declare const Canvas: VueComponentType<CanvasProps>
|
|
148
|
-
/** 开放能力 */
|
|
149
|
-
export declare const Ad: VueComponentType<AdProps>
|
|
150
|
-
export declare const AdCustom: VueComponentType<AdCustomProps>
|
|
151
|
-
export declare const OfficialAccount: VueComponentType<OfficialAccountProps>
|
|
152
|
-
export declare const OpenData: VueComponentType<OpenDataProps>
|
|
153
|
-
export declare const WebView: VueComponentType<WebViewProps>
|
|
154
|
-
/** 配置节点 */
|
|
155
|
-
export declare const PageMeta: VueComponentType<PageMetaProps>
|
|
96
|
+
/** 视图容器 */
|
|
97
|
+
export declare const Block: VueComponentType<StandardProps>
|
|
98
|
+
export declare const CoverImage: VueComponentType<CoverImageProps>
|
|
99
|
+
export declare const CoverView: VueComponentType<CoverViewProps>
|
|
100
|
+
export declare const MatchMedia: VueComponentType<MatchMediaProps>
|
|
101
|
+
export declare const MovableArea: VueComponentType<MovableAreaProps>
|
|
102
|
+
export declare const MovableView: VueComponentType<MovableViewProps>
|
|
103
|
+
export declare const PageContainer: VueComponentType<PageContainerProps>
|
|
104
|
+
export declare const RootPortal: VueComponentType
|
|
105
|
+
export declare const ScrollView: VueComponentType<ScrollViewProps>
|
|
106
|
+
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
107
|
+
export declare const Swiper: VueComponentType<SwiperProps>
|
|
108
|
+
export declare const SwiperItem: VueComponentType<SwiperItemProps>
|
|
109
|
+
export declare const View: VueComponentType<ViewProps>
|
|
110
|
+
/** 基础内容 */
|
|
111
|
+
export declare const Icon: VueComponentType<IconProps>
|
|
112
|
+
export declare const Progress: VueComponentType<ProgressProps>
|
|
113
|
+
export declare const RichText: VueComponentType<RichTextProps>
|
|
114
|
+
export declare const Text: VueComponentType<TextProps>
|
|
115
|
+
/** 表单组件 */
|
|
116
|
+
export declare const Button: VueComponentType<ButtonProps>
|
|
117
|
+
export declare const Checkbox: VueComponentType<CheckboxProps>
|
|
118
|
+
export declare const CheckboxGroup: VueComponentType<CheckboxGroupProps>
|
|
119
|
+
export declare const Editor: VueComponentType<EditorProps>
|
|
120
|
+
export declare const Form: VueComponentType<FormProps>
|
|
121
|
+
export declare const Input: VueComponentType<InputProps>
|
|
122
|
+
export declare const KeyboardAccessory: VueComponentType<KeyboardAccessoryProps>
|
|
123
|
+
export declare const Label: VueComponentType<LabelProps>
|
|
124
|
+
export declare const Picker: VueComponentType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
125
|
+
export declare const PickerView: VueComponentType<PickerViewProps>
|
|
126
|
+
export declare const PickerViewColumn: VueComponentType
|
|
127
|
+
export declare const Radio: VueComponentType<RadioProps>
|
|
128
|
+
export declare const RadioGroup: VueComponentType<RadioGroupProps>
|
|
129
|
+
export declare const Slider: VueComponentType<SliderProps>
|
|
130
|
+
export declare const Switch: VueComponentType<SwitchProps>
|
|
131
|
+
export declare const Textarea: VueComponentType<TextareaProps>
|
|
132
|
+
/** 导航 */
|
|
133
|
+
export declare const FunctionalPageNavigator: VueComponentType<FunctionalPageNavigatorProps>
|
|
134
|
+
export declare const Navigator: VueComponentType<NavigatorProps>
|
|
135
|
+
export declare const NavigationBar: VueComponentType<NavigationBarProps>
|
|
136
|
+
/** 媒体组件 */
|
|
137
|
+
export declare const Audio: VueComponentType<AudioProps>
|
|
138
|
+
export declare const Camera: VueComponentType<CameraProps>
|
|
139
|
+
export declare const Image: VueComponentType<ImageProps>
|
|
140
|
+
export declare const LivePlayer: VueComponentType<LivePlayerProps>
|
|
141
|
+
export declare const LivePusher: VueComponentType<LivePusherProps>
|
|
142
|
+
export declare const Video: VueComponentType<VideoProps>
|
|
143
|
+
export declare const VoipRoom: VueComponentType<VoipRoomProps>
|
|
144
|
+
/** 地图 */
|
|
145
|
+
export declare const Map: VueComponentType<MapProps>
|
|
146
|
+
/** 画布 */
|
|
147
|
+
export declare const Canvas: VueComponentType<CanvasProps>
|
|
148
|
+
/** 开放能力 */
|
|
149
|
+
export declare const Ad: VueComponentType<AdProps>
|
|
150
|
+
export declare const AdCustom: VueComponentType<AdCustomProps>
|
|
151
|
+
export declare const OfficialAccount: VueComponentType<OfficialAccountProps>
|
|
152
|
+
export declare const OpenData: VueComponentType<OpenDataProps>
|
|
153
|
+
export declare const WebView: VueComponentType<WebViewProps>
|
|
154
|
+
/** 配置节点 */
|
|
155
|
+
export declare const PageMeta: VueComponentType<PageMetaProps>
|
|
156
156
|
|
|
157
|
-
export declare const CustomWrapper: VueComponentType<CustomWrapperProps>
|
|
158
|
-
export declare const Slot: VueComponentType<SlotProps>
|
|
157
|
+
export declare const CustomWrapper: VueComponentType<CustomWrapperProps>
|
|
158
|
+
export declare const Slot: VueComponentType<SlotProps>
|
|
159
|
+
|
|
160
|
+
declare global {
|
|
161
|
+
namespace JSX {
|
|
162
|
+
interface IntrinsicElements {
|
|
163
|
+
/** 视图容器 */
|
|
164
|
+
block: TransformReact2VueType<StandardProps>
|
|
165
|
+
'taro-block-core': TransformReact2VueType<StandardProps>
|
|
166
|
+
'cover-image': TransformReact2VueType<CoverImageProps>
|
|
167
|
+
'taro-cover-image-core': TransformReact2VueType<CoverImageProps>
|
|
168
|
+
'cover-view': TransformReact2VueType<CoverViewProps>
|
|
169
|
+
'taro-cover-view-core': TransformReact2VueType<CoverViewProps>
|
|
170
|
+
'match-media': TransformReact2VueType<MatchMediaProps>
|
|
171
|
+
'taro-match-media-core': TransformReact2VueType<MatchMediaProps>
|
|
172
|
+
'movable-area': TransformReact2VueType<MovableAreaProps>
|
|
173
|
+
'taro-movable-area-core': TransformReact2VueType<MovableAreaProps>
|
|
174
|
+
'movable-view': TransformReact2VueType<MovableViewProps>
|
|
175
|
+
'taro-movable-view-core': TransformReact2VueType<MovableViewProps>
|
|
176
|
+
'page-container': TransformReact2VueType<PageContainerProps>
|
|
177
|
+
'taro-page-container-core': TransformReact2VueType<PageContainerProps>
|
|
178
|
+
'root-portal': TransformReact2VueType
|
|
179
|
+
'taro-root-portal-core': TransformReact2VueType
|
|
180
|
+
'scroll-view': TransformReact2VueType<ScrollViewProps>
|
|
181
|
+
'taro-scroll-view-core': TransformReact2VueType<ScrollViewProps>
|
|
182
|
+
'share-element': TransformReact2VueType<ShareElementProps>
|
|
183
|
+
'taro-share-element-core': TransformReact2VueType<ShareElementProps>
|
|
184
|
+
swiper: TransformReact2VueType<SwiperProps>
|
|
185
|
+
'taro-swiper-core': TransformReact2VueType<SwiperProps>
|
|
186
|
+
'swiper-item': TransformReact2VueType<SwiperItemProps>
|
|
187
|
+
'taro-swiper-item-core': TransformReact2VueType<SwiperItemProps>
|
|
188
|
+
view: TransformReact2VueType<ViewProps>
|
|
189
|
+
'taro-view-core': TransformReact2VueType<ViewProps>
|
|
190
|
+
/** 基础内容 */
|
|
191
|
+
icon: TransformReact2VueType<IconProps>
|
|
192
|
+
'taro-icon-core': TransformReact2VueType<IconProps>
|
|
193
|
+
progress: TransformReact2VueType<ProgressProps>
|
|
194
|
+
'taro-progress-core': TransformReact2VueType<ProgressProps>
|
|
195
|
+
'rich-text': TransformReact2VueType<RichTextProps>
|
|
196
|
+
'taro-rich-text-core': TransformReact2VueType<RichTextProps>
|
|
197
|
+
text: TransformReact2VueType<TextProps>
|
|
198
|
+
'taro-text-core': TransformReact2VueType<TextProps>
|
|
199
|
+
/** 表单组件 */
|
|
200
|
+
button: TransformReact2VueType<ButtonProps>
|
|
201
|
+
'taro-button-core': TransformReact2VueType<ButtonProps>
|
|
202
|
+
checkbox: TransformReact2VueType<CheckboxProps>
|
|
203
|
+
'taro-checkbox-core': TransformReact2VueType<CheckboxProps>
|
|
204
|
+
'checkbox-group': TransformReact2VueType<CheckboxGroupProps>
|
|
205
|
+
'taro-checkbox-group-core': TransformReact2VueType<CheckboxGroupProps>
|
|
206
|
+
editor: TransformReact2VueType<EditorProps>
|
|
207
|
+
'taro-editor-core': TransformReact2VueType<EditorProps>
|
|
208
|
+
form: TransformReact2VueType<FormProps>
|
|
209
|
+
'taro-form-core': TransformReact2VueType<FormProps>
|
|
210
|
+
input: TransformReact2VueType<InputProps>
|
|
211
|
+
'taro-input-core': TransformReact2VueType<InputProps>
|
|
212
|
+
'keyboard-accessory': TransformReact2VueType<KeyboardAccessoryProps>
|
|
213
|
+
'taro-keyboard-accessory-core': TransformReact2VueType<KeyboardAccessoryProps>
|
|
214
|
+
label: TransformReact2VueType<LabelProps>
|
|
215
|
+
'taro-label-core': TransformReact2VueType<LabelProps>
|
|
216
|
+
picker: TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
217
|
+
'taro-picker-core': TransformReact2VueType<PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps>
|
|
218
|
+
'picker-view': TransformReact2VueType<PickerViewProps>
|
|
219
|
+
'taro-picker-view-core': TransformReact2VueType<PickerViewProps>
|
|
220
|
+
'picker-view-column': TransformReact2VueType
|
|
221
|
+
'taro-picker-view-column-core': TransformReact2VueType
|
|
222
|
+
radio: TransformReact2VueType<RadioProps>
|
|
223
|
+
'taro-radio-core': TransformReact2VueType<RadioProps>
|
|
224
|
+
'radio-group': TransformReact2VueType<RadioGroupProps>
|
|
225
|
+
'taro-radio-group-core': TransformReact2VueType<RadioGroupProps>
|
|
226
|
+
slider: TransformReact2VueType<SliderProps>
|
|
227
|
+
'taro-slider-core': TransformReact2VueType<SliderProps>
|
|
228
|
+
switch: TransformReact2VueType<SwitchProps>
|
|
229
|
+
'taro-switch-core': TransformReact2VueType<SwitchProps>
|
|
230
|
+
textarea: TransformReact2VueType<TextareaProps>
|
|
231
|
+
'taro-textarea-core': TransformReact2VueType<TextareaProps>
|
|
232
|
+
/** 导航 */
|
|
233
|
+
'functional-page-navigator': TransformReact2VueType<FunctionalPageNavigatorProps>
|
|
234
|
+
'taro-functional-page-navigator-core': TransformReact2VueType<FunctionalPageNavigatorProps>
|
|
235
|
+
navigator: TransformReact2VueType<NavigatorProps>
|
|
236
|
+
'taro-navigator-core': TransformReact2VueType<NavigatorProps>
|
|
237
|
+
'navigation-bar': TransformReact2VueType<NavigationBarProps>
|
|
238
|
+
'taro-navigation-bar-core': TransformReact2VueType<NavigationBarProps>
|
|
239
|
+
/** 媒体组件 */
|
|
240
|
+
audio: TransformReact2VueType<AudioProps>
|
|
241
|
+
'taro-audio-core': TransformReact2VueType<AudioProps>
|
|
242
|
+
camera: TransformReact2VueType<CameraProps>
|
|
243
|
+
'taro-camera-core': TransformReact2VueType<CameraProps>
|
|
244
|
+
image: TransformReact2VueType<ImageProps>
|
|
245
|
+
'taro-image-core': TransformReact2VueType<ImageProps>
|
|
246
|
+
'live-player': TransformReact2VueType<LivePlayerProps>
|
|
247
|
+
'taro-live-player-core': TransformReact2VueType<LivePlayerProps>
|
|
248
|
+
'live-pusher': TransformReact2VueType<LivePusherProps>
|
|
249
|
+
'taro-live-pusher-core': TransformReact2VueType<LivePusherProps>
|
|
250
|
+
video: TransformReact2VueType<VideoProps>
|
|
251
|
+
'taro-video-core': TransformReact2VueType<VideoProps>
|
|
252
|
+
'voip-room': TransformReact2VueType<VoipRoomProps>
|
|
253
|
+
'taro-voip-room-core': TransformReact2VueType<VoipRoomProps>
|
|
254
|
+
/** 地图 */
|
|
255
|
+
map: TransformReact2VueType<MapProps>
|
|
256
|
+
'taro-map-core': TransformReact2VueType<MapProps>
|
|
257
|
+
/** 画布 */
|
|
258
|
+
canvas: TransformReact2VueType<CanvasProps>
|
|
259
|
+
'taro-canvas-core': TransformReact2VueType<CanvasProps>
|
|
260
|
+
/** 开放能力 */
|
|
261
|
+
ad: TransformReact2VueType<AdProps>
|
|
262
|
+
'taro-ad-core': TransformReact2VueType<AdProps>
|
|
263
|
+
'ad-custom': TransformReact2VueType<AdCustomProps>
|
|
264
|
+
'taro-ad-custom-core': TransformReact2VueType<AdCustomProps>
|
|
265
|
+
'official-account': TransformReact2VueType<OfficialAccountProps>
|
|
266
|
+
'taro-official-account-core': TransformReact2VueType<OfficialAccountProps>
|
|
267
|
+
'open-data': TransformReact2VueType<OpenDataProps>
|
|
268
|
+
'taro-open-data-core': TransformReact2VueType<OpenDataProps>
|
|
269
|
+
'web-view': TransformReact2VueType<WebViewProps>
|
|
270
|
+
'taro-web-view-core': TransformReact2VueType<WebViewProps>
|
|
271
|
+
/** 配置节点 */
|
|
272
|
+
'page-meta': TransformReact2VueType<PageMetaProps>
|
|
273
|
+
'taro-page-meta-core': TransformReact2VueType<PageMetaProps>
|
|
274
|
+
|
|
275
|
+
'custom-wrapper': TransformReact2VueType<CustomWrapperProps>
|
|
276
|
+
'taro-custom-wrapper-core': TransformReact2VueType<CustomWrapperProps>
|
|
277
|
+
'slot': TransformReact2VueType<SlotProps>
|
|
278
|
+
'taro-slot-core': TransformReact2VueType<SlotProps>
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.g}],execute:function(){var o="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function r(e){return e!==null&&e!==void 0?e:""}var h=e("taro_textarea_core",function(){function e(e){var i=this;t(this,e);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onChange=n(this,"change",7);this.onLineChange=n(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();i.handleLineChange();i.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){i.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){i.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=i.getNumberOfLines();if(e!==i.line){i.line=e;i.onLineChange.emit({height:i.textareaRef.clientHeight,lineCount:i.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,i=e.offsetHeight,a=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(i>=a){e.style.minHeight=0;e.style.height=i+t+"px";e.style.overflow="hidden";if(a<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(i-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=i+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return i}}else{return a}};this.getNumberOfLines=function(){var e=i.textareaRef,t=window.getComputedStyle?window.getComputedStyle(e):e.style,n=parseInt(t.lineHeight,10),a=i.calculateContentHeight(e,n),o=Math.floor(a/n);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,o=t.disabled,h=t.maxlength,l=t.autoFocus,s=t.autoHeight,u=t.name,c=t.nativeProps,g=t.handleInput,f=t.handleFocus,p=t.handleBlur,d=t.handleChange;var v={};if(s){v.rows=this.line}return i("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(s?"auto-height":""),value:r(n),placeholder:a,name:u,disabled:o,maxlength:h,autofocus:l,onInput:g,onFocus:f,onBlur:p,onChange:d},c,v))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());h.style=o}}}));
|