@tarojs/components 4.1.10 → 4.1.11-beta.1
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/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/{textarea-3f14df1c.js → textarea-80e6b1d0.js} +59 -7
- package/dist/collection/components/textarea/textarea.js +61 -8
- package/dist/components/taro-textarea-core.js +60 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/{textarea-c722fd22.js → textarea-31371acd.js} +59 -7
- package/dist/hydrate/index.js +60 -7
- package/dist/taro-components/index.esm.js +1 -1
- package/dist/taro-components/p-66554c2d.entry.js +1 -0
- package/dist/taro-components/p-b8e1a7de.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/textarea/textarea.d.ts +8 -2
- package/package.json +5 -5
- package/types/List.d.ts +2 -2
- package/dist/taro-components/p-052dbbd9.entry.js +0 -1
- package/dist/taro-components/p-6e2f460d.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -87,7 +87,7 @@ const tabItem = require('./tab-item-cfa3339e.js');
|
|
|
87
87
|
const tabs = require('./tabs-be7f918d.js');
|
|
88
88
|
const script$7 = require('./script-2eb2d361.js');
|
|
89
89
|
const text = require('./text-642f2f48.js');
|
|
90
|
-
const textarea = require('./textarea-
|
|
90
|
+
const textarea = require('./textarea-80e6b1d0.js');
|
|
91
91
|
const script$8 = require('./script-66238de4.js');
|
|
92
92
|
const video = require('./video-cd8fa901.js');
|
|
93
93
|
const view = require('./view-609adfc6.js');
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2.cjs\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2.cjs\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2.cjs\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2.cjs\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2.cjs\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"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],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core.cjs\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core.cjs\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core.cjs\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core.cjs\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core.cjs\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core.cjs\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core.cjs\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core.cjs\",[[0,\"taro-block-core\"]]],[\"taro-button-core.cjs\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core.cjs\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core.cjs\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core.cjs\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core.cjs\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core.cjs\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core.cjs\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core.cjs\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core.cjs\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core.cjs\",[[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\"]]]]],[\"taro-custom-wrapper-core.cjs\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core.cjs\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core.cjs\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core.cjs\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core.cjs\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core.cjs\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core.cjs\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core.cjs\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core.cjs\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core.cjs\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core.cjs\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core.cjs\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core.cjs\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core.cjs\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core.cjs\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core.cjs\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core.cjs\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core.cjs\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core.cjs\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core.cjs\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core.cjs\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core.cjs\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core.cjs\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core.cjs\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core.cjs\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core.cjs\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core.cjs\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core.cjs\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core.cjs\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core.cjs\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core.cjs\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core.cjs\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core.cjs\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core.cjs\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core.cjs\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core.cjs\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core.cjs\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core.cjs\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core.cjs\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core.cjs\",[[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]}]]],[\"taro-pull-to-refresh-core.cjs\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core.cjs\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core.cjs\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core.cjs\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core.cjs\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core.cjs\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core.cjs\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core.cjs\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core.cjs\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core.cjs\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core.cjs\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core.cjs\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core.cjs\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core.cjs\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core.cjs\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core.cjs\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core.cjs\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar.cjs\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core.cjs\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core.cjs\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core.cjs\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core.cjs\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core.cjs\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core.cjs\",[[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\"]]]]],[\"taro-voip-room-core.cjs\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core.cjs\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2.cjs\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"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],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3.cjs\",[[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],\"getHlsObject\":[64],\"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]}]]]]"), options);
|
|
17
|
+
return index.bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2.cjs\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2.cjs\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2.cjs\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2.cjs\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2.cjs\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"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],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core.cjs\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core.cjs\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core.cjs\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core.cjs\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core.cjs\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core.cjs\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core.cjs\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core.cjs\",[[0,\"taro-block-core\"]]],[\"taro-button-core.cjs\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core.cjs\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core.cjs\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core.cjs\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core.cjs\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core.cjs\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core.cjs\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core.cjs\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core.cjs\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core.cjs\",[[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\"]]]]],[\"taro-custom-wrapper-core.cjs\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core.cjs\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core.cjs\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core.cjs\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core.cjs\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core.cjs\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core.cjs\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core.cjs\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core.cjs\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core.cjs\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core.cjs\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core.cjs\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core.cjs\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core.cjs\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core.cjs\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core.cjs\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core.cjs\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core.cjs\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core.cjs\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core.cjs\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core.cjs\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core.cjs\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core.cjs\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core.cjs\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core.cjs\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core.cjs\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core.cjs\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core.cjs\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core.cjs\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core.cjs\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core.cjs\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core.cjs\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core.cjs\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core.cjs\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core.cjs\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core.cjs\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core.cjs\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core.cjs\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core.cjs\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core.cjs\",[[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]}]]],[\"taro-pull-to-refresh-core.cjs\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core.cjs\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core.cjs\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core.cjs\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core.cjs\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core.cjs\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core.cjs\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core.cjs\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core.cjs\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core.cjs\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core.cjs\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core.cjs\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core.cjs\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core.cjs\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core.cjs\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core.cjs\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core.cjs\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar.cjs\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core.cjs\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core.cjs\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core.cjs\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core.cjs\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"compositionValue\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core.cjs\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core.cjs\",[[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\"]]]]],[\"taro-voip-room-core.cjs\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core.cjs\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2.cjs\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"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],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3.cjs\",[[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],\"getHlsObject\":[64],\"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]}]]]]"), options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2.cjs\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2.cjs\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2.cjs\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2.cjs\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2.cjs\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"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],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core.cjs\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core.cjs\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core.cjs\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core.cjs\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core.cjs\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core.cjs\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core.cjs\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core.cjs\",[[0,\"taro-block-core\"]]],[\"taro-button-core.cjs\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core.cjs\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core.cjs\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core.cjs\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core.cjs\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core.cjs\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core.cjs\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core.cjs\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core.cjs\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core.cjs\",[[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\"]]]]],[\"taro-custom-wrapper-core.cjs\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core.cjs\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core.cjs\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core.cjs\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core.cjs\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core.cjs\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core.cjs\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core.cjs\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core.cjs\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core.cjs\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core.cjs\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core.cjs\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core.cjs\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core.cjs\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core.cjs\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core.cjs\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core.cjs\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core.cjs\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core.cjs\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core.cjs\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core.cjs\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core.cjs\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core.cjs\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core.cjs\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core.cjs\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core.cjs\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core.cjs\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core.cjs\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core.cjs\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core.cjs\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core.cjs\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core.cjs\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core.cjs\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core.cjs\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core.cjs\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core.cjs\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core.cjs\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core.cjs\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core.cjs\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core.cjs\",[[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]}]]],[\"taro-pull-to-refresh-core.cjs\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core.cjs\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core.cjs\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core.cjs\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core.cjs\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core.cjs\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core.cjs\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core.cjs\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core.cjs\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core.cjs\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core.cjs\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core.cjs\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core.cjs\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core.cjs\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core.cjs\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core.cjs\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core.cjs\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar.cjs\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core.cjs\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core.cjs\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core.cjs\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core.cjs\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core.cjs\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core.cjs\",[[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\"]]]]],[\"taro-voip-room-core.cjs\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core.cjs\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2.cjs\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"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],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3.cjs\",[[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],\"getHlsObject\":[64],\"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]}]]]]"), options);
|
|
20
|
+
return index.bootstrapLazy(JSON.parse("[[\"taro-checkbox-core_2.cjs\",[[4,\"taro-checkbox-core\",{\"name\":[1],\"value\":[1032],\"color\":[1],\"id\":[1025],\"checked\":[4],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-checkbox-group-core\",{\"name\":[8]},[[0,\"checkboxchange\",\"function\"]]]]],[\"taro-movable-area-core_2.cjs\",[[0,\"taro-movable-area-core\",{\"scaleArea\":[4,\"scale-area\"]}],[0,\"taro-movable-view-core\",{\"x\":[8],\"y\":[8],\"direction\":[1],\"outOfBounds\":[4,\"out-of-bounds\"],\"inertia\":[4],\"friction\":[2],\"damping\":[2],\"disabled\":[4],\"scale\":[4],\"scaleMin\":[2,\"scale-min\"],\"scaleMax\":[2,\"scale-max\"],\"scaleValue\":[2,\"scale-value\"],\"animation\":[4],\"setParent\":[64],\"endScale\":[64],\"setScale\":[64]}]]],[\"taro-picker-view-column-core_2.cjs\",[[0,\"taro-picker-view-column-core\",{\"col\":[1],\"initialPosition\":[1,\"initial-position\"],\"paddingVertical\":[2,\"padding-vertical\"],\"isInit\":[32]},[[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]],[4,\"taro-picker-view-core\",{\"indicatorStyle\":[1,\"indicator-style\"],\"indicatorClass\":[1,\"indicator-class\"],\"value\":[16],\"maskStyle\":[1,\"mask-style\"],\"maskClass\":[1,\"mask-class\"]},[[0,\"onselect\",\"onSelect\"],[0,\"onselectstart\",\"onSelectStart\"],[0,\"onselectend\",\"onPickerColEnd\"]]]]],[\"taro-radio-core_2.cjs\",[[4,\"taro-radio-core\",{\"name\":[1],\"value\":[1],\"id\":[1025],\"checked\":[1540],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}],[0,\"taro-radio-group-core\",{\"name\":[8]},[[0,\"radiochange\",\"function\"]]]]],[\"taro-swiper-core_2.cjs\",[[4,\"taro-swiper-core\",{\"indicatorDots\":[4,\"indicator-dots\"],\"indicatorColor\":[1,\"indicator-color\"],\"indicatorActiveColor\":[1,\"indicator-active-color\"],\"autoplay\":[4],\"current\":[2],\"currentItemId\":[1,\"current-item-id\"],\"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],\"effectsProps\":[16],\"swiperWrapper\":[32],\"swiper\":[32],\"isWillLoadCalled\":[32],\"observer\":[32]}],[4,\"taro-swiper-item-core\",{\"itemId\":[1,\"item-id\"]}]]],[\"taro-ad-core.cjs\",[[0,\"taro-ad-core\"]]],[\"taro-ad-custom-core.cjs\",[[0,\"taro-ad-custom-core\"]]],[\"taro-animation-video-core.cjs\",[[0,\"taro-animation-video-core\"]]],[\"taro-animation-view-core.cjs\",[[0,\"taro-animation-view-core\"]]],[\"taro-ar-camera-core.cjs\",[[0,\"taro-ar-camera-core\"]]],[\"taro-audio-core.cjs\",[[0,\"taro-audio-core\",{\"src\":[1],\"controls\":[4],\"autoplay\":[4],\"loop\":[4],\"muted\":[4],\"nativeProps\":[16]}]]],[\"taro-aweme-data-core.cjs\",[[0,\"taro-aweme-data-core\"]]],[\"taro-block-core.cjs\",[[0,\"taro-block-core\"]]],[\"taro-button-core.cjs\",[[4,\"taro-button-core\",{\"disabled\":[516],\"hoverClass\":[1,\"hover-class\"],\"type\":[1],\"hoverStartTime\":[2,\"hover-start-time\"],\"hoverStayTime\":[2,\"hover-stay-time\"],\"size\":[1],\"plain\":[4],\"loading\":[4],\"formType\":[513,\"form-type\"],\"hover\":[32],\"touch\":[32]},[[0,\"click\",\"onClick\"],[1,\"touchstart\",\"onTouchStart\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-camera-core.cjs\",[[0,\"taro-camera-core\"]]],[\"taro-canvas-core.cjs\",[[0,\"taro-canvas-core\",{\"canvasId\":[1,\"id\"],\"height\":[1537],\"width\":[1537],\"nativeProps\":[16]}]]],[\"taro-channel-live-core.cjs\",[[0,\"taro-channel-live-core\"]]],[\"taro-channel-video-core.cjs\",[[0,\"taro-channel-video-core\"]]],[\"taro-comment-detail-core.cjs\",[[0,\"taro-comment-detail-core\"]]],[\"taro-comment-list-core.cjs\",[[0,\"taro-comment-list-core\"]]],[\"taro-contact-button-core.cjs\",[[0,\"taro-contact-button-core\"]]],[\"taro-cover-image-core.cjs\",[[0,\"taro-cover-image-core\",{\"src\":[1],\"nativeProps\":[16]}]]],[\"taro-cover-view-core.cjs\",[[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\"]]]]],[\"taro-custom-wrapper-core.cjs\",[[0,\"taro-custom-wrapper-core\"]]],[\"taro-double-tap-gesture-handler-core.cjs\",[[0,\"taro-double-tap-gesture-handler-core\"]]],[\"taro-draggable-sheet-core.cjs\",[[0,\"taro-draggable-sheet-core\"]]],[\"taro-editor-core.cjs\",[[0,\"taro-editor-core\"]]],[\"taro-follow-swan-core.cjs\",[[0,\"taro-follow-swan-core\"]]],[\"taro-force-press-gesture-handler-core.cjs\",[[0,\"taro-force-press-gesture-handler-core\"]]],[\"taro-form-core.cjs\",[[4,\"taro-form-core\",null,[[0,\"tarobuttonsubmit\",\"onButtonSubmit\"],[0,\"tarobuttonreset\",\"onButtonReset\"]]]]],[\"taro-functional-page-navigator-core.cjs\",[[0,\"taro-functional-page-navigator-core\"]]],[\"taro-grid-builder-core.cjs\",[[0,\"taro-grid-builder-core\"]]],[\"taro-grid-view-core.cjs\",[[0,\"taro-grid-view-core\"]]],[\"taro-horizontal-drag-gesture-handler-core.cjs\",[[0,\"taro-horizontal-drag-gesture-handler-core\"]]],[\"taro-icon-core.cjs\",[[0,\"taro-icon-core\",{\"type\":[1],\"size\":[8],\"color\":[1]}]]],[\"taro-image-core.cjs\",[[0,\"taro-image-core\",{\"src\":[1],\"mode\":[1],\"lazyLoad\":[4,\"lazy-load\"],\"nativeProps\":[16],\"aspectFillMode\":[32],\"didLoad\":[32]}]]],[\"taro-inline-payment-panel-core.cjs\",[[0,\"taro-inline-payment-panel-core\"]]],[\"taro-input-core.cjs\",[[0,\"taro-input-core\",{\"value\":[1025],\"type\":[1],\"password\":[4],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"confirmType\":[1,\"confirm-type\"],\"name\":[1],\"readonly\":[4],\"nativeProps\":[16],\"focus\":[64]}]]],[\"taro-keyboard-accessory-core.cjs\",[[0,\"taro-keyboard-accessory-core\"]]],[\"taro-label-core.cjs\",[[4,\"taro-label-core\",{\"for\":[1]}]]],[\"taro-lifestyle-core.cjs\",[[0,\"taro-lifestyle-core\"]]],[\"taro-like-core.cjs\",[[0,\"taro-like-core\"]]],[\"taro-list-builder-core.cjs\",[[0,\"taro-list-builder-core\"]]],[\"taro-list-view-core.cjs\",[[0,\"taro-list-view-core\"]]],[\"taro-live-player-core.cjs\",[[0,\"taro-live-player-core\"]]],[\"taro-live-pusher-core.cjs\",[[0,\"taro-live-pusher-core\"]]],[\"taro-login-core.cjs\",[[0,\"taro-login-core\"]]],[\"taro-long-press-gesture-handler-core.cjs\",[[0,\"taro-long-press-gesture-handler-core\"]]],[\"taro-lottie-core.cjs\",[[0,\"taro-lottie-core\"]]],[\"taro-map-core.cjs\",[[0,\"taro-map-core\",{\"latitude\":[2],\"longitude\":[2],\"scale\":[2],\"minScale\":[2,\"min-scale\"],\"maxScale\":[2,\"max-scale\"],\"markers\":[16],\"polyline\":[16],\"circles\":[16],\"polygons\":[16],\"subkey\":[1],\"layerStyle\":[2,\"layer-style\"],\"rotate\":[2],\"skew\":[2],\"showCompass\":[4,\"show-compass\"],\"showScale\":[4,\"show-scale\"],\"enableOverlooking\":[4,\"enable-overlooking\"],\"enableZoom\":[4,\"enable-zoom\"],\"enableScroll\":[4,\"enable-scroll\"],\"enableRotate\":[4,\"enable-rotate\"],\"enableSatellite\":[4,\"enable-satellite\"],\"enableTraffic\":[4,\"enable-traffic\"],\"enableBuilding\":[4,\"enable-building\"],\"enableAutoMaxOverlooking\":[4,\"enable-auto-max-overlooking\"],\"enable3D\":[4,\"enable-3-d\"],\"width\":[1],\"height\":[1]}]]],[\"taro-match-media-core.cjs\",[[0,\"taro-match-media-core\"]]],[\"taro-native-slot-core.cjs\",[[0,\"taro-native-slot-core\"]]],[\"taro-navigation-bar-core.cjs\",[[0,\"taro-navigation-bar-core\"]]],[\"taro-navigator-core.cjs\",[[0,\"taro-navigator-core\",{\"hoverClass\":[1,\"hover-class\"],\"url\":[1],\"openType\":[1,\"open-type\"],\"isHover\":[4,\"is-hover\"],\"delta\":[2]},[[0,\"click\",\"onClick\"]]]]],[\"taro-nested-scroll-body-core.cjs\",[[0,\"taro-nested-scroll-body-core\"]]],[\"taro-nested-scroll-header-core.cjs\",[[0,\"taro-nested-scroll-header-core\"]]],[\"taro-official-account-core.cjs\",[[0,\"taro-official-account-core\"]]],[\"taro-open-container-core.cjs\",[[0,\"taro-open-container-core\"]]],[\"taro-open-data-core.cjs\",[[0,\"taro-open-data-core\"]]],[\"taro-page-container-core.cjs\",[[0,\"taro-page-container-core\"]]],[\"taro-page-meta-core.cjs\",[[0,\"taro-page-meta-core\"]]],[\"taro-pan-gesture-handler-core.cjs\",[[0,\"taro-pan-gesture-handler-core\"]]],[\"taro-progress-core.cjs\",[[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]}]]],[\"taro-pull-to-refresh-core.cjs\",[[4,\"taro-pull-to-refresh-core\",{\"prefixCls\":[1,\"prefix-cls\"],\"distanceToRefresh\":[2,\"distance-to-refresh\"],\"damping\":[2],\"indicator\":[16],\"currSt\":[32],\"dragOnEdge\":[32]}]]],[\"taro-rich-text-core.cjs\",[[0,\"taro-rich-text-core\",{\"nodes\":[1],\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1]}]]],[\"taro-root-portal-core.cjs\",[[0,\"taro-root-portal-core\"]]],[\"taro-rtc-room-core.cjs\",[[0,\"taro-rtc-room-core\"]]],[\"taro-rtc-room-item-core.cjs\",[[0,\"taro-rtc-room-item-core\"]]],[\"taro-scale-gesture-handler-core.cjs\",[[0,\"taro-scale-gesture-handler-core\"]]],[\"taro-script-core.cjs\",[[0,\"taro-script-core\"]]],[\"taro-scroll-view-core.cjs\",[[4,\"taro-scroll-view-core\",{\"scrollX\":[4,\"scroll-x\"],\"scrollY\":[4,\"scroll-y\"],\"upperThreshold\":[8,\"upper-threshold\"],\"lowerThreshold\":[8,\"lower-threshold\"],\"mpScrollTop\":[520,\"scroll-top\"],\"mpScrollLeft\":[520,\"scroll-left\"],\"mpScrollIntoView\":[513,\"scroll-into-view\"],\"mpScrollIntoViewAlignment\":[1,\"scroll-into-view-alignment\"],\"animated\":[4,\"scroll-with-animation\"],\"enhanced\":[4],\"showScrollbar\":[4,\"show-scrollbar\"],\"mpScrollToMethod\":[64],\"mpScrollIntoViewMethod\":[64]},[[1,\"scroll\",\"handleScroll\"],[1,\"touchmove\",\"handleTouchMove\"]]]]],[\"taro-share-element-core.cjs\",[[0,\"taro-share-element-core\"]]],[\"taro-slider-core.cjs\",[[0,\"taro-slider-core\",{\"min\":[2],\"max\":[2],\"step\":[2],\"disabled\":[4],\"value\":[1538],\"activeColor\":[1,\"active-color\"],\"backgroundColor\":[1,\"background-color\"],\"blockSize\":[2,\"block-size\"],\"blockColor\":[1,\"block-color\"],\"showValue\":[4,\"show-value\"],\"name\":[1],\"totalWidth\":[32],\"touching\":[32],\"ogX\":[32],\"touchId\":[32],\"percent\":[32],\"ogPercent\":[32],\"isWillLoadCalled\":[32]}]]],[\"taro-slot-core.cjs\",[[0,\"taro-slot-core\"]]],[\"taro-snapshot-core.cjs\",[[0,\"taro-snapshot-core\"]]],[\"taro-span-core.cjs\",[[0,\"taro-span-core\"]]],[\"taro-sticky-header-core.cjs\",[[0,\"taro-sticky-header-core\"]]],[\"taro-sticky-section-core.cjs\",[[0,\"taro-sticky-section-core\"]]],[\"taro-switch-core.cjs\",[[0,\"taro-switch-core\",{\"type\":[1],\"checked\":[1028],\"color\":[1],\"name\":[1],\"disabled\":[4],\"nativeProps\":[16],\"isWillLoadCalled\":[32]}]]],[\"taro-tab-item-core.cjs\",[[0,\"taro-tab-item-core\"]]],[\"taro-tabbar.cjs\",[[0,\"taro-tabbar\",{\"conf\":[16],\"list\":[32],\"borderStyle\":[32],\"backgroundColor\":[32],\"color\":[32],\"selectedColor\":[32],\"selectedIndex\":[32],\"status\":[32]}]]],[\"taro-tabs-core.cjs\",[[0,\"taro-tabs-core\"]]],[\"taro-tap-gesture-handler-core.cjs\",[[0,\"taro-tap-gesture-handler-core\"]]],[\"taro-text-core.cjs\",[[4,\"taro-text-core\",{\"selectable\":[1028],\"userSelect\":[1028,\"user-select\"],\"space\":[1025],\"numberOfLines\":[2,\"number-of-lines\"]}]]],[\"taro-textarea-core.cjs\",[[0,\"taro-textarea-core\",{\"value\":[1025],\"placeholder\":[1],\"disabled\":[4],\"maxlength\":[2],\"autoFocus\":[4,\"focus\"],\"autoHeight\":[4,\"auto-height\"],\"name\":[1],\"nativeProps\":[16],\"line\":[32],\"compositionValue\":[32],\"focus\":[64]}]]],[\"taro-vertical-drag-gesture-handler-core.cjs\",[[0,\"taro-vertical-drag-gesture-handler-core\"]]],[\"taro-view-core.cjs\",[[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\"]]]]],[\"taro-voip-room-core.cjs\",[[0,\"taro-voip-room-core\"]]],[\"taro-web-view-core.cjs\",[[0,\"taro-web-view-core\",{\"src\":[1]}]]],[\"taro-picker-core_2.cjs\",[[4,\"taro-picker-core\",{\"mode\":[1],\"disabled\":[4],\"range\":[16],\"rangeKey\":[1,\"range-key\"],\"value\":[1032],\"start\":[1],\"end\":[1],\"fields\":[1],\"name\":[1],\"textProps\":[16],\"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],\"updateDay\":[16],\"startY\":[32],\"preY\":[32],\"hadMove\":[32],\"touchEnd\":[32],\"isMove\":[32],\"handleMoveStart\":[64],\"handleMoving\":[64],\"handleMoveEnd\":[64]},[[1,\"mousedown\",\"onMouseDown\"],[3,\"mousemove\",\"onMouseMove\"],[1,\"mouseup\",\"onMouseMoveEnd\"],[1,\"mouseleave\",\"onMouseMoveEnd\"],[1,\"touchstart\",\"onTouchStart\"],[3,\"touchmove\",\"onTouchMove\"],[1,\"touchend\",\"onTouchEnd\"]]]]],[\"taro-video-control_3.cjs\",[[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],\"getHlsObject\":[64],\"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]}]]]]"), options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -17,15 +17,49 @@ const Textarea = class {
|
|
|
17
17
|
this.onChange = index.createEvent(this, "change", 7);
|
|
18
18
|
this.onLineChange = index.createEvent(this, "linechange", 7);
|
|
19
19
|
this.onKeyDown = index.createEvent(this, "keydown", 7);
|
|
20
|
+
this.isComposing = false;
|
|
21
|
+
this.onInputExecuted = false;
|
|
20
22
|
this.handleInput = (e) => {
|
|
21
23
|
e.stopPropagation();
|
|
22
24
|
this.handleLineChange();
|
|
25
|
+
if (this.onInputExecuted) {
|
|
26
|
+
this.onInputExecuted = false;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
23
29
|
const value = e.target.value || '';
|
|
30
|
+
if (this.isComposing) {
|
|
31
|
+
this.compositionValue = value;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.onInputExecuted = true;
|
|
35
|
+
if (this.compositionValue !== undefined) {
|
|
36
|
+
this.compositionValue = undefined;
|
|
37
|
+
}
|
|
24
38
|
this.value = value;
|
|
25
39
|
this.onInput.emit({
|
|
26
40
|
value,
|
|
27
41
|
cursor: value.length
|
|
28
42
|
});
|
|
43
|
+
this.onInputExecuted = false;
|
|
44
|
+
};
|
|
45
|
+
this.handleComposition = (e) => {
|
|
46
|
+
e.stopPropagation();
|
|
47
|
+
if (!(e.target instanceof HTMLTextAreaElement))
|
|
48
|
+
return;
|
|
49
|
+
if (e.type === 'compositionend') {
|
|
50
|
+
this.isComposing = false;
|
|
51
|
+
const value = e.target.value || '';
|
|
52
|
+
this.compositionValue = undefined;
|
|
53
|
+
this.handleLineChange();
|
|
54
|
+
this.value = value;
|
|
55
|
+
this.onInput.emit({
|
|
56
|
+
value,
|
|
57
|
+
cursor: value.length
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.isComposing = true;
|
|
62
|
+
}
|
|
29
63
|
};
|
|
30
64
|
this.handleFocus = (e) => {
|
|
31
65
|
e.stopPropagation();
|
|
@@ -67,7 +101,11 @@ const Textarea = class {
|
|
|
67
101
|
keyCode === 13 && this.onConfirm.emit({ value });
|
|
68
102
|
};
|
|
69
103
|
this.calculateContentHeight = (ta, scanAmount) => {
|
|
70
|
-
|
|
104
|
+
const origHeight = ta.style.height;
|
|
105
|
+
let height = ta.offsetHeight;
|
|
106
|
+
const scrollHeight = ta.scrollHeight;
|
|
107
|
+
const overflow = ta.style.overflow;
|
|
108
|
+
const originMinHeight = ta.style.minHeight || null;
|
|
71
109
|
/// only bother if the ta is bigger than content
|
|
72
110
|
if (height >= scrollHeight) {
|
|
73
111
|
ta.style.minHeight = 0;
|
|
@@ -100,14 +138,15 @@ const Textarea = class {
|
|
|
100
138
|
}
|
|
101
139
|
};
|
|
102
140
|
this.getNumberOfLines = () => {
|
|
103
|
-
const ta = this.textareaRef
|
|
141
|
+
const ta = this.textareaRef;
|
|
142
|
+
const style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style;
|
|
104
143
|
// This will get the line-height only if it is set in the css,
|
|
105
144
|
// otherwise it's "normal"
|
|
106
|
-
taLineHeight = parseInt(style.lineHeight, 10)
|
|
145
|
+
const taLineHeight = parseInt(style.lineHeight, 10);
|
|
107
146
|
// Get the scroll height of the textarea
|
|
108
|
-
taHeight = this.calculateContentHeight(ta, taLineHeight)
|
|
147
|
+
const taHeight = this.calculateContentHeight(ta, taLineHeight);
|
|
109
148
|
// calculate the number of lines
|
|
110
|
-
numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
149
|
+
const numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
111
150
|
return numberOfLines;
|
|
112
151
|
};
|
|
113
152
|
this.value = '';
|
|
@@ -119,6 +158,7 @@ const Textarea = class {
|
|
|
119
158
|
this.name = undefined;
|
|
120
159
|
this.nativeProps = {};
|
|
121
160
|
this.line = 1;
|
|
161
|
+
this.compositionValue = undefined;
|
|
122
162
|
}
|
|
123
163
|
watchAutoFocus(newValue, oldValue) {
|
|
124
164
|
var _a;
|
|
@@ -128,6 +168,8 @@ const Textarea = class {
|
|
|
128
168
|
}
|
|
129
169
|
watchValue(newValue) {
|
|
130
170
|
// hack: 在事件回调中,props.value 变化不知为何不会触发 Stencil 更新,因此这里手动更新一下
|
|
171
|
+
if (this.isComposing)
|
|
172
|
+
return;
|
|
131
173
|
const value = fixControlledValue(newValue);
|
|
132
174
|
if (this.textareaRef.value !== value) {
|
|
133
175
|
this.textareaRef.value = value;
|
|
@@ -136,8 +178,18 @@ const Textarea = class {
|
|
|
136
178
|
async focus() {
|
|
137
179
|
this.textareaRef.focus();
|
|
138
180
|
}
|
|
181
|
+
componentDidLoad() {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.addEventListener('compositionstart', this.handleComposition);
|
|
184
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionend', this.handleComposition);
|
|
185
|
+
}
|
|
186
|
+
disconnectedCallback() {
|
|
187
|
+
var _a, _b;
|
|
188
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('compositionstart', this.handleComposition);
|
|
189
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('compositionend', this.handleComposition);
|
|
190
|
+
}
|
|
139
191
|
render() {
|
|
140
|
-
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange } = this;
|
|
192
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange, compositionValue } = this;
|
|
141
193
|
const otherProps = {};
|
|
142
194
|
if (autoHeight) {
|
|
143
195
|
otherProps.rows = this.line;
|
|
@@ -148,7 +200,7 @@ const Textarea = class {
|
|
|
148
200
|
if (autoFocus && input)
|
|
149
201
|
input.focus();
|
|
150
202
|
}
|
|
151
|
-
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled,
|
|
203
|
+
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: compositionValue !== undefined ? compositionValue : fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxLength: maxlength, autoFocus: autoFocus, onInput: handleInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange, onKeyDown: this.handleKeyDown }, nativeProps, otherProps)));
|
|
152
204
|
}
|
|
153
205
|
get el() { return index.getElement(this); }
|
|
154
206
|
static get watchers() { return {
|
|
@@ -4,15 +4,49 @@ function fixControlledValue(value) {
|
|
|
4
4
|
}
|
|
5
5
|
export class Textarea {
|
|
6
6
|
constructor() {
|
|
7
|
+
this.isComposing = false;
|
|
8
|
+
this.onInputExecuted = false;
|
|
7
9
|
this.handleInput = (e) => {
|
|
8
10
|
e.stopPropagation();
|
|
9
11
|
this.handleLineChange();
|
|
12
|
+
if (this.onInputExecuted) {
|
|
13
|
+
this.onInputExecuted = false;
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
10
16
|
const value = e.target.value || '';
|
|
17
|
+
if (this.isComposing) {
|
|
18
|
+
this.compositionValue = value;
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
this.onInputExecuted = true;
|
|
22
|
+
if (this.compositionValue !== undefined) {
|
|
23
|
+
this.compositionValue = undefined;
|
|
24
|
+
}
|
|
11
25
|
this.value = value;
|
|
12
26
|
this.onInput.emit({
|
|
13
27
|
value,
|
|
14
28
|
cursor: value.length
|
|
15
29
|
});
|
|
30
|
+
this.onInputExecuted = false;
|
|
31
|
+
};
|
|
32
|
+
this.handleComposition = (e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
if (!(e.target instanceof HTMLTextAreaElement))
|
|
35
|
+
return;
|
|
36
|
+
if (e.type === 'compositionend') {
|
|
37
|
+
this.isComposing = false;
|
|
38
|
+
const value = e.target.value || '';
|
|
39
|
+
this.compositionValue = undefined;
|
|
40
|
+
this.handleLineChange();
|
|
41
|
+
this.value = value;
|
|
42
|
+
this.onInput.emit({
|
|
43
|
+
value,
|
|
44
|
+
cursor: value.length
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.isComposing = true;
|
|
49
|
+
}
|
|
16
50
|
};
|
|
17
51
|
this.handleFocus = (e) => {
|
|
18
52
|
e.stopPropagation();
|
|
@@ -54,7 +88,11 @@ export class Textarea {
|
|
|
54
88
|
keyCode === 13 && this.onConfirm.emit({ value });
|
|
55
89
|
};
|
|
56
90
|
this.calculateContentHeight = (ta, scanAmount) => {
|
|
57
|
-
|
|
91
|
+
const origHeight = ta.style.height;
|
|
92
|
+
let height = ta.offsetHeight;
|
|
93
|
+
const scrollHeight = ta.scrollHeight;
|
|
94
|
+
const overflow = ta.style.overflow;
|
|
95
|
+
const originMinHeight = ta.style.minHeight || null;
|
|
58
96
|
/// only bother if the ta is bigger than content
|
|
59
97
|
if (height >= scrollHeight) {
|
|
60
98
|
ta.style.minHeight = 0;
|
|
@@ -87,14 +125,15 @@ export class Textarea {
|
|
|
87
125
|
}
|
|
88
126
|
};
|
|
89
127
|
this.getNumberOfLines = () => {
|
|
90
|
-
const ta = this.textareaRef
|
|
128
|
+
const ta = this.textareaRef;
|
|
129
|
+
const style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style;
|
|
91
130
|
// This will get the line-height only if it is set in the css,
|
|
92
131
|
// otherwise it's "normal"
|
|
93
|
-
taLineHeight = parseInt(style.lineHeight, 10)
|
|
132
|
+
const taLineHeight = parseInt(style.lineHeight, 10);
|
|
94
133
|
// Get the scroll height of the textarea
|
|
95
|
-
taHeight = this.calculateContentHeight(ta, taLineHeight)
|
|
134
|
+
const taHeight = this.calculateContentHeight(ta, taLineHeight);
|
|
96
135
|
// calculate the number of lines
|
|
97
|
-
numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
136
|
+
const numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
98
137
|
return numberOfLines;
|
|
99
138
|
};
|
|
100
139
|
this.value = '';
|
|
@@ -106,6 +145,7 @@ export class Textarea {
|
|
|
106
145
|
this.name = undefined;
|
|
107
146
|
this.nativeProps = {};
|
|
108
147
|
this.line = 1;
|
|
148
|
+
this.compositionValue = undefined;
|
|
109
149
|
}
|
|
110
150
|
watchAutoFocus(newValue, oldValue) {
|
|
111
151
|
var _a;
|
|
@@ -115,6 +155,8 @@ export class Textarea {
|
|
|
115
155
|
}
|
|
116
156
|
watchValue(newValue) {
|
|
117
157
|
// hack: 在事件回调中,props.value 变化不知为何不会触发 Stencil 更新,因此这里手动更新一下
|
|
158
|
+
if (this.isComposing)
|
|
159
|
+
return;
|
|
118
160
|
const value = fixControlledValue(newValue);
|
|
119
161
|
if (this.textareaRef.value !== value) {
|
|
120
162
|
this.textareaRef.value = value;
|
|
@@ -123,8 +165,18 @@ export class Textarea {
|
|
|
123
165
|
async focus() {
|
|
124
166
|
this.textareaRef.focus();
|
|
125
167
|
}
|
|
168
|
+
componentDidLoad() {
|
|
169
|
+
var _a, _b;
|
|
170
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.addEventListener('compositionstart', this.handleComposition);
|
|
171
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionend', this.handleComposition);
|
|
172
|
+
}
|
|
173
|
+
disconnectedCallback() {
|
|
174
|
+
var _a, _b;
|
|
175
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('compositionstart', this.handleComposition);
|
|
176
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('compositionend', this.handleComposition);
|
|
177
|
+
}
|
|
126
178
|
render() {
|
|
127
|
-
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange } = this;
|
|
179
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange, compositionValue } = this;
|
|
128
180
|
const otherProps = {};
|
|
129
181
|
if (autoHeight) {
|
|
130
182
|
otherProps.rows = this.line;
|
|
@@ -135,7 +187,7 @@ export class Textarea {
|
|
|
135
187
|
if (autoFocus && input)
|
|
136
188
|
input.focus();
|
|
137
189
|
}
|
|
138
|
-
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled,
|
|
190
|
+
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: compositionValue !== undefined ? compositionValue : fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxLength: maxlength, autoFocus: autoFocus, onInput: handleInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange, onKeyDown: this.handleKeyDown }, nativeProps, otherProps)));
|
|
139
191
|
}
|
|
140
192
|
static get is() { return "taro-textarea-core"; }
|
|
141
193
|
static get originalStyleUrls() {
|
|
@@ -294,7 +346,8 @@ export class Textarea {
|
|
|
294
346
|
}
|
|
295
347
|
static get states() {
|
|
296
348
|
return {
|
|
297
|
-
"line": {}
|
|
349
|
+
"line": {},
|
|
350
|
+
"compositionValue": {}
|
|
298
351
|
};
|
|
299
352
|
}
|
|
300
353
|
static get events() {
|
|
@@ -16,15 +16,49 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
16
16
|
this.onChange = createEvent(this, "change", 7);
|
|
17
17
|
this.onLineChange = createEvent(this, "linechange", 7);
|
|
18
18
|
this.onKeyDown = createEvent(this, "keydown", 7);
|
|
19
|
+
this.isComposing = false;
|
|
20
|
+
this.onInputExecuted = false;
|
|
19
21
|
this.handleInput = (e) => {
|
|
20
22
|
e.stopPropagation();
|
|
21
23
|
this.handleLineChange();
|
|
24
|
+
if (this.onInputExecuted) {
|
|
25
|
+
this.onInputExecuted = false;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
22
28
|
const value = e.target.value || '';
|
|
29
|
+
if (this.isComposing) {
|
|
30
|
+
this.compositionValue = value;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.onInputExecuted = true;
|
|
34
|
+
if (this.compositionValue !== undefined) {
|
|
35
|
+
this.compositionValue = undefined;
|
|
36
|
+
}
|
|
23
37
|
this.value = value;
|
|
24
38
|
this.onInput.emit({
|
|
25
39
|
value,
|
|
26
40
|
cursor: value.length
|
|
27
41
|
});
|
|
42
|
+
this.onInputExecuted = false;
|
|
43
|
+
};
|
|
44
|
+
this.handleComposition = (e) => {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
if (!(e.target instanceof HTMLTextAreaElement))
|
|
47
|
+
return;
|
|
48
|
+
if (e.type === 'compositionend') {
|
|
49
|
+
this.isComposing = false;
|
|
50
|
+
const value = e.target.value || '';
|
|
51
|
+
this.compositionValue = undefined;
|
|
52
|
+
this.handleLineChange();
|
|
53
|
+
this.value = value;
|
|
54
|
+
this.onInput.emit({
|
|
55
|
+
value,
|
|
56
|
+
cursor: value.length
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.isComposing = true;
|
|
61
|
+
}
|
|
28
62
|
};
|
|
29
63
|
this.handleFocus = (e) => {
|
|
30
64
|
e.stopPropagation();
|
|
@@ -66,7 +100,11 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
66
100
|
keyCode === 13 && this.onConfirm.emit({ value });
|
|
67
101
|
};
|
|
68
102
|
this.calculateContentHeight = (ta, scanAmount) => {
|
|
69
|
-
|
|
103
|
+
const origHeight = ta.style.height;
|
|
104
|
+
let height = ta.offsetHeight;
|
|
105
|
+
const scrollHeight = ta.scrollHeight;
|
|
106
|
+
const overflow = ta.style.overflow;
|
|
107
|
+
const originMinHeight = ta.style.minHeight || null;
|
|
70
108
|
/// only bother if the ta is bigger than content
|
|
71
109
|
if (height >= scrollHeight) {
|
|
72
110
|
ta.style.minHeight = 0;
|
|
@@ -99,14 +137,15 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
99
137
|
}
|
|
100
138
|
};
|
|
101
139
|
this.getNumberOfLines = () => {
|
|
102
|
-
const ta = this.textareaRef
|
|
140
|
+
const ta = this.textareaRef;
|
|
141
|
+
const style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style;
|
|
103
142
|
// This will get the line-height only if it is set in the css,
|
|
104
143
|
// otherwise it's "normal"
|
|
105
|
-
taLineHeight = parseInt(style.lineHeight, 10)
|
|
144
|
+
const taLineHeight = parseInt(style.lineHeight, 10);
|
|
106
145
|
// Get the scroll height of the textarea
|
|
107
|
-
taHeight = this.calculateContentHeight(ta, taLineHeight)
|
|
146
|
+
const taHeight = this.calculateContentHeight(ta, taLineHeight);
|
|
108
147
|
// calculate the number of lines
|
|
109
|
-
numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
148
|
+
const numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
110
149
|
return numberOfLines;
|
|
111
150
|
};
|
|
112
151
|
this.value = '';
|
|
@@ -118,6 +157,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
118
157
|
this.name = undefined;
|
|
119
158
|
this.nativeProps = {};
|
|
120
159
|
this.line = 1;
|
|
160
|
+
this.compositionValue = undefined;
|
|
121
161
|
}
|
|
122
162
|
watchAutoFocus(newValue, oldValue) {
|
|
123
163
|
var _a;
|
|
@@ -127,6 +167,8 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
127
167
|
}
|
|
128
168
|
watchValue(newValue) {
|
|
129
169
|
// hack: 在事件回调中,props.value 变化不知为何不会触发 Stencil 更新,因此这里手动更新一下
|
|
170
|
+
if (this.isComposing)
|
|
171
|
+
return;
|
|
130
172
|
const value = fixControlledValue(newValue);
|
|
131
173
|
if (this.textareaRef.value !== value) {
|
|
132
174
|
this.textareaRef.value = value;
|
|
@@ -135,8 +177,18 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
135
177
|
async focus() {
|
|
136
178
|
this.textareaRef.focus();
|
|
137
179
|
}
|
|
180
|
+
componentDidLoad() {
|
|
181
|
+
var _a, _b;
|
|
182
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.addEventListener('compositionstart', this.handleComposition);
|
|
183
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionend', this.handleComposition);
|
|
184
|
+
}
|
|
185
|
+
disconnectedCallback() {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('compositionstart', this.handleComposition);
|
|
188
|
+
(_b = this.textareaRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('compositionend', this.handleComposition);
|
|
189
|
+
}
|
|
138
190
|
render() {
|
|
139
|
-
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange } = this;
|
|
191
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange, compositionValue } = this;
|
|
140
192
|
const otherProps = {};
|
|
141
193
|
if (autoHeight) {
|
|
142
194
|
otherProps.rows = this.line;
|
|
@@ -147,7 +199,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
147
199
|
if (autoFocus && input)
|
|
148
200
|
input.focus();
|
|
149
201
|
}
|
|
150
|
-
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled,
|
|
202
|
+
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: compositionValue !== undefined ? compositionValue : fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxLength: maxlength, autoFocus: autoFocus, onInput: handleInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange, onKeyDown: this.handleKeyDown }, nativeProps, otherProps)));
|
|
151
203
|
}
|
|
152
204
|
get el() { return this; }
|
|
153
205
|
static get watchers() { return {
|
|
@@ -165,6 +217,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
165
217
|
"name": [1],
|
|
166
218
|
"nativeProps": [16],
|
|
167
219
|
"line": [32],
|
|
220
|
+
"compositionValue": [32],
|
|
168
221
|
"focus": [64]
|
|
169
222
|
}]);
|
|
170
223
|
function defineCustomElement$1() {
|
package/dist/esm/index.js
CHANGED
|
@@ -83,7 +83,7 @@ export { T as TabItem } from './tab-item-f58dd1b0.js';
|
|
|
83
83
|
export { T as Tabs } from './tabs-da838bbd.js';
|
|
84
84
|
export { T as TapGestureHandler } from './script-11e3884a.js';
|
|
85
85
|
export { T as Text } from './text-a3b91b23.js';
|
|
86
|
-
export { T as Textarea } from './textarea-
|
|
86
|
+
export { T as Textarea } from './textarea-31371acd.js';
|
|
87
87
|
export { V as VerticalDragGestureHandler } from './script-5c55afcb.js';
|
|
88
88
|
export { b as Video, V as VideoControl, a as VideoDanmu } from './video-8a258487.js';
|
|
89
89
|
export { V as View } from './view-965a491b.js';
|