@tarojs/components 3.3.8 → 3.3.12
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/loader.cjs.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +3 -2
- package/dist/cjs/taro-canvas-core.cjs.entry.js +4 -3
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +4 -3
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -2
- package/dist/cjs/taro-input-core.cjs.entry.js +4 -3
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +33 -8
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +4 -3
- package/dist/cjs/taro-switch-core.cjs.entry.js +3 -2
- package/dist/cjs/taro-tabbar.cjs.entry.js +2 -4
- package/dist/cjs/taro-textarea-core.cjs.entry.js +4 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +4 -3
- package/dist/collection/components/audio/audio.js +19 -2
- package/dist/collection/components/canvas/canvas.js +20 -3
- package/dist/collection/components/checkbox/checkbox.js +20 -3
- package/dist/collection/components/image/image.js +19 -2
- package/dist/collection/components/input/input.js +20 -3
- package/dist/collection/components/picker/picker-group.js +59 -9
- package/dist/collection/components/radio/radio.js +20 -3
- package/dist/collection/components/switch/switch.js +19 -2
- package/dist/collection/components/tabbar/tabbar.js +2 -4
- package/dist/collection/components/textarea/textarea.js +20 -3
- package/dist/collection/components/video/video.js +20 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +3 -2
- package/dist/esm/taro-canvas-core.entry.js +4 -3
- package/dist/esm/taro-checkbox-core_2.entry.js +4 -3
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-image-core.entry.js +3 -2
- package/dist/esm/taro-input-core.entry.js +4 -3
- package/dist/esm/taro-picker-core_2.entry.js +33 -8
- package/dist/esm/taro-radio-core_2.entry.js +4 -3
- package/dist/esm/taro-switch-core.entry.js +3 -2
- package/dist/esm/taro-tabbar.entry.js +2 -4
- package/dist/esm/taro-textarea-core.entry.js +4 -3
- package/dist/esm/taro-video-control_3.entry.js +4 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/taro-components/p-239bf0ca.system.entry.js +1 -0
- package/dist/taro-components/p-3eb31172.system.entry.js +1 -0
- package/dist/taro-components/p-4afe24d7.entry.js +1 -0
- package/dist/taro-components/p-593ee811.entry.js +1 -0
- package/dist/taro-components/p-6287057a.entry.js +1 -0
- package/dist/taro-components/p-7911ccd6.system.entry.js +1 -0
- package/dist/taro-components/{p-671a39e4.system.entry.js → p-8031d6b5.system.entry.js} +1 -1
- package/dist/taro-components/{p-3bda72b4.entry.js → p-80f50da7.entry.js} +1 -1
- package/dist/taro-components/p-82185d54.system.entry.js +1 -0
- package/dist/taro-components/p-8c43da73.system.entry.js +1 -0
- package/dist/taro-components/p-8f7b75f6.system.entry.js +1 -0
- package/dist/taro-components/p-906c3a0a.entry.js +1 -0
- package/dist/taro-components/p-945fa1a0.entry.js +1 -0
- package/dist/taro-components/p-96f1e9e7.entry.js +1 -0
- package/dist/taro-components/p-970ed6da.system.entry.js +1 -0
- package/dist/taro-components/p-9fe2309f.entry.js +1 -0
- package/dist/taro-components/p-a079321f.system.entry.js +1 -0
- package/dist/taro-components/{p-671dcbc6.system.entry.js → p-a74d5aa5.system.entry.js} +1 -1
- package/dist/taro-components/p-af393b0b.entry.js +1 -0
- package/dist/taro-components/p-b5d2597b.system.js +1 -1
- package/dist/taro-components/p-c2810ece.entry.js +1 -0
- package/dist/taro-components/p-c9380fa6.entry.js +1 -0
- package/dist/taro-components/p-e256974b.system.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/audio/audio.d.ts +1 -0
- package/dist/types/components/canvas/canvas.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/image/image.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/picker/picker-group.d.ts +7 -0
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components.d.ts +18 -0
- package/dist-h5/react/utils/reactify-wc.js +1 -0
- package/package.json +4 -3
- package/types/Camera.d.ts +7 -7
- package/types/LivePusher.d.ts +51 -3
- package/types/Map.d.ts +11 -1
- package/types/PickerView.d.ts +7 -7
- package/types/Swiper.d.ts +2 -0
- package/dist/taro-components/p-1342e810.system.entry.js +0 -1
- package/dist/taro-components/p-153b839d.system.entry.js +0 -1
- package/dist/taro-components/p-1925bbdb.entry.js +0 -1
- package/dist/taro-components/p-1f44e8ef.system.entry.js +0 -1
- package/dist/taro-components/p-2a504632.system.entry.js +0 -1
- package/dist/taro-components/p-40144442.entry.js +0 -1
- package/dist/taro-components/p-45af8e04.entry.js +0 -1
- package/dist/taro-components/p-50e44e3f.system.entry.js +0 -1
- package/dist/taro-components/p-576b86cb.entry.js +0 -1
- package/dist/taro-components/p-68781eab.entry.js +0 -1
- package/dist/taro-components/p-a5df0ffb.system.entry.js +0 -1
- package/dist/taro-components/p-a9608c73.system.entry.js +0 -1
- package/dist/taro-components/p-b9aa76c5.entry.js +0 -1
- package/dist/taro-components/p-d36e9c1c.entry.js +0 -1
- package/dist/taro-components/p-d8e323fe.entry.js +0 -1
- package/dist/taro-components/p-e05be870.entry.js +0 -1
- package/dist/taro-components/p-ee8eec25.system.entry.js +0 -1
- package/dist/taro-components/p-f23386d1.entry.js +0 -1
- package/dist/taro-components/p-fd44be7c.system.entry.js +0 -1
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([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"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],"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"]}]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[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"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core"]]],["taro-cover-view-core.cjs",[[0,"taro-cover-view-core"]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["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"],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[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],"_value":[32]}]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-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-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[0,"taro-picker-view-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.cjs",[[4,"taro-pull-to-refresh",{"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]}]]],["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":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-slider-core.cjs",[[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]}]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"name":[1]}]]],["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-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":[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]},[[1,"touchstart","onTouchStart"],[1,"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"],"_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]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[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"]]]]],["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],"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"]}]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[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"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core"]]],["taro-cover-view-core.cjs",[[0,"taro-cover-view-core"]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["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]}]]],["taro-input-core.cjs",[[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],"_value":[32]}]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-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-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[0,"taro-picker-view-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.cjs",[[4,"taro-pull-to-refresh",{"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]}]]],["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":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-slider-core.cjs",[[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]}]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"name":[1],"nativeProps":[16]}]]],["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-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":[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"]]]]],["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],"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
|
|
|
@@ -18,6 +18,7 @@ const Audio = class {
|
|
|
18
18
|
this.autoplay = false;
|
|
19
19
|
this.loop = false;
|
|
20
20
|
this.muted = false;
|
|
21
|
+
this.nativeProps = {};
|
|
21
22
|
}
|
|
22
23
|
bindevent() {
|
|
23
24
|
this.audio.addEventListener('timeupdate', (e) => {
|
|
@@ -47,8 +48,8 @@ const Audio = class {
|
|
|
47
48
|
this.bindevent();
|
|
48
49
|
}
|
|
49
50
|
render() {
|
|
50
|
-
const { src, controls, autoplay, loop, muted } = this;
|
|
51
|
-
return (index.h("audio", { src: src, controls: controls, autoplay: autoplay, loop: loop, muted: muted, ref: audio => { this.audio = audio; } }));
|
|
51
|
+
const { src, controls, autoplay, loop, muted, nativeProps } = this;
|
|
52
|
+
return (index.h("audio", Object.assign({ src: src, controls: controls, autoplay: autoplay, loop: loop, muted: muted, ref: audio => { this.audio = audio; } }, nativeProps)));
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
Audio.style = indexCss;
|
|
@@ -11,6 +11,7 @@ const Canvas = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.onLongTap = index.createEvent(this, "longtap", 7);
|
|
14
|
+
this.nativeProps = {};
|
|
14
15
|
this.onTouchStart = () => {
|
|
15
16
|
this.timer = setTimeout(() => {
|
|
16
17
|
this.onLongTap.emit();
|
|
@@ -24,11 +25,11 @@ const Canvas = class {
|
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
|
-
const { canvasId } = this;
|
|
28
|
-
return (index.h("canvas", { "canvas-id": canvasId, style: {
|
|
28
|
+
const { canvasId, nativeProps } = this;
|
|
29
|
+
return (index.h("canvas", Object.assign({ "canvas-id": canvasId, style: {
|
|
29
30
|
width: '100%',
|
|
30
31
|
height: '100%'
|
|
31
|
-
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }));
|
|
32
|
+
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
32
33
|
}
|
|
33
34
|
get el() { return index.getElement(this); }
|
|
34
35
|
};
|
|
@@ -12,6 +12,7 @@ const Checkbox = class {
|
|
|
12
12
|
this.onChange = index.createEvent(this, "checkboxchange", 7);
|
|
13
13
|
this.value = '';
|
|
14
14
|
this.checked = false;
|
|
15
|
+
this.nativeProps = {};
|
|
15
16
|
this.isWillLoadCalled = false;
|
|
16
17
|
this.handleChange = e => {
|
|
17
18
|
e.stopPropagation();
|
|
@@ -33,14 +34,14 @@ const Checkbox = class {
|
|
|
33
34
|
this.id && this.el.removeAttribute('id');
|
|
34
35
|
}
|
|
35
36
|
render() {
|
|
36
|
-
const { checked, name, color, value } = this;
|
|
37
|
-
return (index.h(index.Host, { className: 'weui-cells_checkbox' }, index.h("input", { ref: dom => {
|
|
37
|
+
const { checked, name, color, value, nativeProps } = this;
|
|
38
|
+
return (index.h(index.Host, { className: 'weui-cells_checkbox' }, index.h("input", Object.assign({ ref: dom => {
|
|
38
39
|
if (!dom)
|
|
39
40
|
return;
|
|
40
41
|
this.inputEl = dom;
|
|
41
42
|
if (this.id)
|
|
42
43
|
dom.setAttribute('id', this.id);
|
|
43
|
-
}, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, onChange: this.handleChange }), index.h("slot", null)));
|
|
44
|
+
}, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, onChange: this.handleChange }, nativeProps)), index.h("slot", null)));
|
|
44
45
|
}
|
|
45
46
|
get el() { return index.getElement(this); }
|
|
46
47
|
static get watchers() { return {
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"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],"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"]}]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[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"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core"]]],["taro-cover-view-core.cjs",[[0,"taro-cover-view-core"]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["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"],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[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],"_value":[32]}]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-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-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[0,"taro-picker-view-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.cjs",[[4,"taro-pull-to-refresh",{"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]}]]],["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":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-slider-core.cjs",[[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]}]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"name":[1]}]]],["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-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":[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]},[[1,"touchstart","onTouchStart"],[1,"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"],"_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]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[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"]]]]],["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],"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"]}]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[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"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core"]]],["taro-cover-view-core.cjs",[[0,"taro-cover-view-core"]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["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]}]]],["taro-input-core.cjs",[[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],"_value":[32]}]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-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-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[0,"taro-picker-view-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.cjs",[[4,"taro-pull-to-refresh",{"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]}]]],["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":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-slider-core.cjs",[[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]}]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"name":[1],"nativeProps":[16]}]]],["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-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":[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"]]]]],["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],"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);
|
|
19
19
|
});
|
|
@@ -15,6 +15,7 @@ const Image = class {
|
|
|
15
15
|
this.onError = index.createEvent(this, "error", 7);
|
|
16
16
|
this.mode = 'scaleToFill';
|
|
17
17
|
this.lazyLoad = false;
|
|
18
|
+
this.nativeProps = {};
|
|
18
19
|
this.aspectFillMode = 'width';
|
|
19
20
|
}
|
|
20
21
|
componentDidLoad() {
|
|
@@ -43,14 +44,14 @@ const Image = class {
|
|
|
43
44
|
this.onError.emit();
|
|
44
45
|
}
|
|
45
46
|
render() {
|
|
46
|
-
const { src, mode, lazyLoad, aspectFillMode, imageOnLoad, imageOnError } = this;
|
|
47
|
+
const { src, mode, lazyLoad, aspectFillMode, imageOnLoad, imageOnError, nativeProps } = this;
|
|
47
48
|
const cls = index$1.classnames({
|
|
48
49
|
'taro-img__widthfix': mode === 'widthFix'
|
|
49
50
|
});
|
|
50
51
|
const imgCls = index$1.classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
|
|
51
52
|
[`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
|
|
52
53
|
});
|
|
53
|
-
return (index.h(index.Host, { class: cls }, lazyLoad ? (index.h("img", { ref: img => (this.imgRef = img), class: imgCls, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) })) : (index.h("img", { ref: img => (this.imgRef = img), class: imgCls, src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }))));
|
|
54
|
+
return (index.h(index.Host, { class: cls }, lazyLoad ? (index.h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : (index.h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps)))));
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
Image.style = indexCss;
|
|
@@ -40,6 +40,7 @@ const Input = class {
|
|
|
40
40
|
this.maxlength = 140;
|
|
41
41
|
this.autoFocus = false;
|
|
42
42
|
this.confirmType = 'done';
|
|
43
|
+
this.nativeProps = {};
|
|
43
44
|
this.handleInput = (e) => {
|
|
44
45
|
e.stopPropagation();
|
|
45
46
|
const { type, maxlength, confirmType, password } = this;
|
|
@@ -143,11 +144,11 @@ const Input = class {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
render() {
|
|
146
|
-
const { _value, type, password, placeholder, disabled, maxlength, autoFocus, confirmType, name } = this;
|
|
147
|
-
return (index.h("input", { ref: input => {
|
|
147
|
+
const { _value, type, password, placeholder, disabled, maxlength, autoFocus, confirmType, name, nativeProps } = this;
|
|
148
|
+
return (index.h("input", Object.assign({ ref: input => {
|
|
148
149
|
this.inputRef = input;
|
|
149
150
|
autoFocus && (input === null || input === void 0 ? void 0 : input.focus());
|
|
150
|
-
}, class: 'weui-input', value: fixControlledValue(_value), type: getTrueType(type, confirmType, password), placeholder: placeholder, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, name: name, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onKeyDown: this.handleKeyDown }));
|
|
151
|
+
}, class: 'weui-input', value: fixControlledValue(_value), type: getTrueType(type, confirmType, password), placeholder: placeholder, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, name: name, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onKeyDown: this.handleKeyDown }, nativeProps)));
|
|
151
152
|
}
|
|
152
153
|
get el() { return index.getElement(this); }
|
|
153
154
|
static get watchers() { return {
|
|
@@ -531,15 +531,14 @@ const TaroPickerGroup = class {
|
|
|
531
531
|
updateHeight(relativeHeight, columnId, true);
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
|
-
|
|
534
|
+
handleMoveStart(clientY) {
|
|
535
535
|
// 记录第一次的点击位置
|
|
536
|
-
this.startY =
|
|
537
|
-
this.preY =
|
|
536
|
+
this.startY = clientY;
|
|
537
|
+
this.preY = clientY;
|
|
538
538
|
this.hadMove = false;
|
|
539
539
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
const y = e.changedTouches[0].clientY;
|
|
540
|
+
handleMoving(clientY) {
|
|
541
|
+
const y = clientY;
|
|
543
542
|
const deltaY = y - this.preY;
|
|
544
543
|
this.preY = y;
|
|
545
544
|
this.touchEnd = false;
|
|
@@ -568,11 +567,11 @@ const TaroPickerGroup = class {
|
|
|
568
567
|
}
|
|
569
568
|
this.updateHeight(newPos, this.columnId);
|
|
570
569
|
}
|
|
571
|
-
|
|
570
|
+
handleMoveEnd(clientY) {
|
|
572
571
|
const { mode, range, height, updateHeight, onColumnChange, columnId } = this;
|
|
573
572
|
const max = 0;
|
|
574
573
|
const min = -LINE_HEIGHT * (range.length - 1);
|
|
575
|
-
const endY =
|
|
574
|
+
const endY = clientY;
|
|
576
575
|
this.touchEnd = true;
|
|
577
576
|
// touchEnd 时的高度,可能带小数点,需要再处理
|
|
578
577
|
let absoluteHeight;
|
|
@@ -634,6 +633,32 @@ const TaroPickerGroup = class {
|
|
|
634
633
|
updateHeight(relativeHeight, columnId, mode === 'time');
|
|
635
634
|
onColumnChange && onColumnChange(relativeHeight, columnId);
|
|
636
635
|
}
|
|
636
|
+
onMouseDown(e) {
|
|
637
|
+
this.isMove = true;
|
|
638
|
+
this.handleMoveStart(e.clientY);
|
|
639
|
+
}
|
|
640
|
+
onMouseMove(e) {
|
|
641
|
+
e.preventDefault();
|
|
642
|
+
if (!this.isMove)
|
|
643
|
+
return;
|
|
644
|
+
this.handleMoving(e.clientY);
|
|
645
|
+
}
|
|
646
|
+
onMouseMoveEnd(e) {
|
|
647
|
+
if (!this.isMove)
|
|
648
|
+
return;
|
|
649
|
+
this.isMove = false;
|
|
650
|
+
this.handleMoveEnd(e.clientY);
|
|
651
|
+
}
|
|
652
|
+
onTouchStart(e) {
|
|
653
|
+
this.handleMoveStart(e.changedTouches[0].clientY);
|
|
654
|
+
}
|
|
655
|
+
onTouchMove(e) {
|
|
656
|
+
e.preventDefault();
|
|
657
|
+
this.handleMoving(e.changedTouches[0].clientY);
|
|
658
|
+
}
|
|
659
|
+
onTouchEnd(e) {
|
|
660
|
+
this.handleMoveEnd(e.changedTouches[0].clientY);
|
|
661
|
+
}
|
|
637
662
|
render() {
|
|
638
663
|
const { range, rangeKey } = this;
|
|
639
664
|
const pickerItem = range.map(item => {
|
|
@@ -11,6 +11,7 @@ const Radio = class {
|
|
|
11
11
|
this.value = '';
|
|
12
12
|
this.checked = false;
|
|
13
13
|
this.disabled = false;
|
|
14
|
+
this.nativeProps = {};
|
|
14
15
|
this.isWillLoadCalled = false;
|
|
15
16
|
this.handleClick = () => {
|
|
16
17
|
if (this.disabled)
|
|
@@ -37,14 +38,14 @@ const Radio = class {
|
|
|
37
38
|
this.isWillLoadCalled = true;
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
const { checked, name, value, disabled } = this;
|
|
41
|
-
return (index.h(index.Host, { className: 'weui-cells_checkbox', onClick: this.handleClick }, index.h("input", { ref: dom => {
|
|
41
|
+
const { checked, name, value, disabled, nativeProps } = this;
|
|
42
|
+
return (index.h(index.Host, { className: 'weui-cells_checkbox', onClick: this.handleClick }, index.h("input", Object.assign({ ref: dom => {
|
|
42
43
|
if (!dom)
|
|
43
44
|
return;
|
|
44
45
|
this.inputEl = dom;
|
|
45
46
|
if (this.id)
|
|
46
47
|
dom.setAttribute('id', this.id);
|
|
47
|
-
}, type: 'radio', name: name, value: value, class: 'weui-check', checked: checked, disabled: disabled, onChange: e => e.stopPropagation() }), index.h("i", { class: 'weui-icon-checked' }), index.h("slot", null)));
|
|
48
|
+
}, type: 'radio', name: name, value: value, class: 'weui-check', checked: checked, disabled: disabled, onChange: e => e.stopPropagation() }, nativeProps)), index.h("i", { class: 'weui-icon-checked' }), index.h("slot", null)));
|
|
48
49
|
}
|
|
49
50
|
get el() { return index.getElement(this); }
|
|
50
51
|
static get watchers() { return {
|
|
@@ -14,6 +14,7 @@ const Switch = class {
|
|
|
14
14
|
this.checked = false;
|
|
15
15
|
this.color = '#04BE02';
|
|
16
16
|
this.disabled = false;
|
|
17
|
+
this.nativeProps = {};
|
|
17
18
|
this.isWillLoadCalled = false;
|
|
18
19
|
this.switchChange = e => {
|
|
19
20
|
e.stopPropagation();
|
|
@@ -41,14 +42,14 @@ const Switch = class {
|
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
render() {
|
|
44
|
-
const { type, color, isChecked, name, disabled } = this;
|
|
45
|
+
const { type, color, isChecked, name, disabled, nativeProps } = this;
|
|
45
46
|
const style = isChecked
|
|
46
47
|
? {
|
|
47
48
|
borderColor: color || '04BE02',
|
|
48
49
|
backgroundColor: color || '04BE02'
|
|
49
50
|
}
|
|
50
51
|
: {};
|
|
51
|
-
return (index.h("input", { type: 'checkbox', class: `weui-${type}`, style: style, checked: isChecked, name: name, disabled: disabled, onChange: this.switchChange }));
|
|
52
|
+
return (index.h("input", Object.assign({ type: 'checkbox', class: `weui-${type}`, style: style, checked: isChecked, name: name, disabled: disabled, onChange: this.switchChange }, nativeProps)));
|
|
52
53
|
}
|
|
53
54
|
get el() { return index.getElement(this); }
|
|
54
55
|
static get watchers() { return {
|
|
@@ -175,7 +175,7 @@ const Tabbar = class {
|
|
|
175
175
|
};
|
|
176
176
|
this.switchTab = (index) => {
|
|
177
177
|
this.selectedIndex = index;
|
|
178
|
-
Taro.
|
|
178
|
+
Taro.switchTab({
|
|
179
179
|
url: this.list[index].pagePath
|
|
180
180
|
});
|
|
181
181
|
};
|
|
@@ -203,9 +203,7 @@ const Tabbar = class {
|
|
|
203
203
|
}
|
|
204
204
|
if (toLocation && toLocation.path) {
|
|
205
205
|
const tmpPath = addLeadingSlash(toLocation.path);
|
|
206
|
-
currentPage = tmpPath === '/'
|
|
207
|
-
? this.homePage
|
|
208
|
-
: tmpPath;
|
|
206
|
+
currentPage = stripBasename(tmpPath === '/' ? this.homePage : tmpPath, this.conf.basename || '/');
|
|
209
207
|
}
|
|
210
208
|
else {
|
|
211
209
|
currentPage = this.getCurrentUrl();
|
|
@@ -19,6 +19,7 @@ const Textarea = class {
|
|
|
19
19
|
this.disabled = false;
|
|
20
20
|
this.maxlength = 140;
|
|
21
21
|
this.autoFocus = false;
|
|
22
|
+
this.nativeProps = {};
|
|
22
23
|
this.hanldeInput = (e) => {
|
|
23
24
|
e.stopPropagation();
|
|
24
25
|
this.onInput.emit({
|
|
@@ -52,12 +53,12 @@ const Textarea = class {
|
|
|
52
53
|
this.autoFocus && this.textareaRef.focus();
|
|
53
54
|
}
|
|
54
55
|
render() {
|
|
55
|
-
const { value, placeholder, disabled, maxlength, autoFocus, name, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
56
|
-
return (index.h("textarea", { ref: input => {
|
|
56
|
+
const { value, placeholder, disabled, maxlength, autoFocus, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
57
|
+
return (index.h("textarea", Object.assign({ ref: input => {
|
|
57
58
|
if (input) {
|
|
58
59
|
this.textareaRef = input;
|
|
59
60
|
}
|
|
60
|
-
}, class: 'taro-textarea', value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: hanldeInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }));
|
|
61
|
+
}, class: 'taro-textarea', value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: hanldeInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }, nativeProps)));
|
|
61
62
|
}
|
|
62
63
|
get el() { return index.getElement(this); }
|
|
63
64
|
};
|
|
@@ -294,6 +294,7 @@ const Video = class {
|
|
|
294
294
|
* 在全屏模式下,是否开启亮度与音量调节手势
|
|
295
295
|
*/
|
|
296
296
|
this.vslideGestureInFullscreen = true;
|
|
297
|
+
this.nativeProps = {};
|
|
297
298
|
this._enableDanmu = false;
|
|
298
299
|
this.isPlaying = false;
|
|
299
300
|
this.isFirst = true;
|
|
@@ -551,17 +552,17 @@ const Video = class {
|
|
|
551
552
|
this.toggleFullScreen(false);
|
|
552
553
|
}
|
|
553
554
|
render() {
|
|
554
|
-
const { src, controls, autoplay, loop, muted, poster, objectFit, isFirst, isMute, isFullScreen, duration, _duration, showCenterPlayBtn, isPlaying, _enableDanmu, showMuteBtn, danmuBtn, showFullscreenBtn } = this;
|
|
555
|
+
const { src, controls, autoplay, loop, muted, poster, objectFit, isFirst, isMute, isFullScreen, duration, _duration, showCenterPlayBtn, isPlaying, _enableDanmu, showMuteBtn, danmuBtn, showFullscreenBtn, nativeProps } = this;
|
|
555
556
|
const durationTime = formatTime(duration || _duration || null);
|
|
556
557
|
return (index.h(index.Host, { class: index$1.classnames('taro-video-container', {
|
|
557
558
|
'taro-video-type-fullscreen': isFullScreen
|
|
558
|
-
}), onTouchStart: this.onTouchStartContainer, onClick: this.onClickContainer }, index.h("video", { class: 'taro-video-video', style: {
|
|
559
|
+
}), onTouchStart: this.onTouchStartContainer, onClick: this.onClickContainer }, index.h("video", Object.assign({ class: 'taro-video-video', style: {
|
|
559
560
|
'object-fit': objectFit
|
|
560
561
|
}, ref: dom => {
|
|
561
562
|
if (dom) {
|
|
562
563
|
this.videoRef = dom;
|
|
563
564
|
}
|
|
564
|
-
}, src: src, autoplay: autoplay, loop: loop, muted: muted, poster: controls ? poster : undefined, playsinline: true, "webkit-playsinline": true, onPlay: this.handlePlay, onPause: this.handlePause, onEnded: this.handleEnded, onTimeUpdate: this.handleTimeUpdate, onError: this.handleError, onDurationChange: this.handleDurationChange, onProgress: this.handleProgress, onLoadedMetaData: this.handleLoadedMetaData }, "\u6682\u65F6\u4E0D\u652F\u6301\u64AD\u653E\u8BE5\u89C6\u9891"), index.h("taro-video-danmu", { ref: dom => {
|
|
565
|
+
}, src: src, autoplay: autoplay, loop: loop, muted: muted, poster: controls ? poster : undefined, playsinline: true, "webkit-playsinline": true, onPlay: this.handlePlay, onPause: this.handlePause, onEnded: this.handleEnded, onTimeUpdate: this.handleTimeUpdate, onError: this.handleError, onDurationChange: this.handleDurationChange, onProgress: this.handleProgress, onLoadedMetaData: this.handleLoadedMetaData }, nativeProps), "\u6682\u65F6\u4E0D\u652F\u6301\u64AD\u653E\u8BE5\u89C6\u9891"), index.h("taro-video-danmu", { ref: dom => {
|
|
565
566
|
if (dom) {
|
|
566
567
|
this.danmuRef = dom;
|
|
567
568
|
}
|
|
@@ -6,6 +6,7 @@ export class Audio {
|
|
|
6
6
|
this.autoplay = false;
|
|
7
7
|
this.loop = false;
|
|
8
8
|
this.muted = false;
|
|
9
|
+
this.nativeProps = {};
|
|
9
10
|
}
|
|
10
11
|
bindevent() {
|
|
11
12
|
this.audio.addEventListener('timeupdate', (e) => {
|
|
@@ -35,8 +36,8 @@ export class Audio {
|
|
|
35
36
|
this.bindevent();
|
|
36
37
|
}
|
|
37
38
|
render() {
|
|
38
|
-
const { src, controls, autoplay, loop, muted } = this;
|
|
39
|
-
return (h("audio", { src: src, controls: controls, autoplay: autoplay, loop: loop, muted: muted, ref: audio => { this.audio = audio; } }));
|
|
39
|
+
const { src, controls, autoplay, loop, muted, nativeProps } = this;
|
|
40
|
+
return (h("audio", Object.assign({ src: src, controls: controls, autoplay: autoplay, loop: loop, muted: muted, ref: audio => { this.audio = audio; } }, nativeProps)));
|
|
40
41
|
}
|
|
41
42
|
static get is() { return "taro-audio-core"; }
|
|
42
43
|
static get originalStyleUrls() { return {
|
|
@@ -134,6 +135,22 @@ export class Audio {
|
|
|
134
135
|
"attribute": "muted",
|
|
135
136
|
"reflect": false,
|
|
136
137
|
"defaultValue": "false"
|
|
138
|
+
},
|
|
139
|
+
"nativeProps": {
|
|
140
|
+
"type": "unknown",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "{}",
|
|
144
|
+
"resolved": "{}",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"defaultValue": "{}"
|
|
137
154
|
}
|
|
138
155
|
}; }
|
|
139
156
|
static get events() { return [{
|
|
@@ -3,6 +3,7 @@ import { Component, h, Prop, Element, Event } from '@stencil/core';
|
|
|
3
3
|
const LONG_TAP_DELAY = 500;
|
|
4
4
|
export class Canvas {
|
|
5
5
|
constructor() {
|
|
6
|
+
this.nativeProps = {};
|
|
6
7
|
this.onTouchStart = () => {
|
|
7
8
|
this.timer = setTimeout(() => {
|
|
8
9
|
this.onLongTap.emit();
|
|
@@ -16,11 +17,11 @@ export class Canvas {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
render() {
|
|
19
|
-
const { canvasId } = this;
|
|
20
|
-
return (h("canvas", { "canvas-id": canvasId, style: {
|
|
20
|
+
const { canvasId, nativeProps } = this;
|
|
21
|
+
return (h("canvas", Object.assign({ "canvas-id": canvasId, style: {
|
|
21
22
|
width: '100%',
|
|
22
23
|
height: '100%'
|
|
23
|
-
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }));
|
|
24
|
+
}, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, nativeProps)));
|
|
24
25
|
}
|
|
25
26
|
static get is() { return "taro-canvas-core"; }
|
|
26
27
|
static get originalStyleUrls() { return {
|
|
@@ -46,6 +47,22 @@ export class Canvas {
|
|
|
46
47
|
},
|
|
47
48
|
"attribute": "canvas-id",
|
|
48
49
|
"reflect": false
|
|
50
|
+
},
|
|
51
|
+
"nativeProps": {
|
|
52
|
+
"type": "unknown",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "{}",
|
|
56
|
+
"resolved": "{}",
|
|
57
|
+
"references": {}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": false,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"defaultValue": "{}"
|
|
49
66
|
}
|
|
50
67
|
}; }
|
|
51
68
|
static get events() { return [{
|
|
@@ -4,6 +4,7 @@ export class Checkbox {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.value = '';
|
|
6
6
|
this.checked = false;
|
|
7
|
+
this.nativeProps = {};
|
|
7
8
|
this.isWillLoadCalled = false;
|
|
8
9
|
this.handleChange = e => {
|
|
9
10
|
e.stopPropagation();
|
|
@@ -25,15 +26,15 @@ export class Checkbox {
|
|
|
25
26
|
this.id && this.el.removeAttribute('id');
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
28
|
-
const { checked, name, color, value } = this;
|
|
29
|
+
const { checked, name, color, value, nativeProps } = this;
|
|
29
30
|
return (h(Host, { className: 'weui-cells_checkbox' },
|
|
30
|
-
h("input", { ref: dom => {
|
|
31
|
+
h("input", Object.assign({ ref: dom => {
|
|
31
32
|
if (!dom)
|
|
32
33
|
return;
|
|
33
34
|
this.inputEl = dom;
|
|
34
35
|
if (this.id)
|
|
35
36
|
dom.setAttribute('id', this.id);
|
|
36
|
-
}, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, onChange: this.handleChange }),
|
|
37
|
+
}, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, onChange: this.handleChange }, nativeProps)),
|
|
37
38
|
h("slot", null)));
|
|
38
39
|
}
|
|
39
40
|
static get is() { return "taro-checkbox-core"; }
|
|
@@ -130,6 +131,22 @@ export class Checkbox {
|
|
|
130
131
|
"attribute": "checked",
|
|
131
132
|
"reflect": false,
|
|
132
133
|
"defaultValue": "false"
|
|
134
|
+
},
|
|
135
|
+
"nativeProps": {
|
|
136
|
+
"type": "unknown",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "{}",
|
|
140
|
+
"resolved": "{}",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": ""
|
|
148
|
+
},
|
|
149
|
+
"defaultValue": "{}"
|
|
133
150
|
}
|
|
134
151
|
}; }
|
|
135
152
|
static get states() { return {
|
|
@@ -5,6 +5,7 @@ export class Image {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.mode = 'scaleToFill';
|
|
7
7
|
this.lazyLoad = false;
|
|
8
|
+
this.nativeProps = {};
|
|
8
9
|
this.aspectFillMode = 'width';
|
|
9
10
|
}
|
|
10
11
|
componentDidLoad() {
|
|
@@ -33,14 +34,14 @@ export class Image {
|
|
|
33
34
|
this.onError.emit();
|
|
34
35
|
}
|
|
35
36
|
render() {
|
|
36
|
-
const { src, mode, lazyLoad, aspectFillMode, imageOnLoad, imageOnError } = this;
|
|
37
|
+
const { src, mode, lazyLoad, aspectFillMode, imageOnLoad, imageOnError, nativeProps } = this;
|
|
37
38
|
const cls = classNames({
|
|
38
39
|
'taro-img__widthfix': mode === 'widthFix'
|
|
39
40
|
});
|
|
40
41
|
const imgCls = classNames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
|
|
41
42
|
[`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
|
|
42
43
|
});
|
|
43
|
-
return (h(Host, { class: cls }, lazyLoad ? (h("img", { ref: img => (this.imgRef = img), class: imgCls, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) })) : (h("img", { ref: img => (this.imgRef = img), class: imgCls, src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }))));
|
|
44
|
+
return (h(Host, { class: cls }, lazyLoad ? (h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : (h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps)))));
|
|
44
45
|
}
|
|
45
46
|
static get is() { return "taro-image-core"; }
|
|
46
47
|
static get originalStyleUrls() { return {
|
|
@@ -106,6 +107,22 @@ export class Image {
|
|
|
106
107
|
"attribute": "lazy-load",
|
|
107
108
|
"reflect": false,
|
|
108
109
|
"defaultValue": "false"
|
|
110
|
+
},
|
|
111
|
+
"nativeProps": {
|
|
112
|
+
"type": "unknown",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "{}",
|
|
116
|
+
"resolved": "{}",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": ""
|
|
124
|
+
},
|
|
125
|
+
"defaultValue": "{}"
|
|
109
126
|
}
|
|
110
127
|
}; }
|
|
111
128
|
static get states() { return {
|