@tarojs/components 3.5.0-canary.0 → 3.5.0-theta.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/README.md +2 -0
- package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
- package/dist/cjs/index-47a1959e.js +34 -0
- package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/taro-ad-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +3 -3
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-input-core.cjs.entry.js +28 -20
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +14 -10
- package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +22 -8
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +9 -17
- package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +23 -17
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +73 -67
- package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-textarea-core.cjs.entry.js +8 -6
- package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
- package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +22 -6
- package/dist/collection/components/ad/ad.js +11 -0
- package/dist/collection/components/{picker-view-column/picker-view-column.js → ad-custom/ad-custom.js} +3 -3
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -23
- package/dist/collection/components/editor/editor.js +11 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
- package/dist/collection/components/image/image.js +2 -2
- package/dist/collection/components/image/style/index.css +8 -5
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/input/input.js +41 -24
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
- package/dist/collection/components/live-player/live-player.js +11 -0
- package/dist/collection/components/live-pusher/live-pusher.js +11 -0
- package/dist/collection/components/map/map.js +11 -0
- package/dist/collection/components/match-media/match-media.js +11 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
- package/dist/collection/components/navigator/navigator.js +3 -3
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/official-account/official-account.js +11 -0
- package/dist/collection/components/page-container/page-container.js +11 -0
- package/dist/collection/components/page-meta/page-meta.js +11 -0
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +225 -0
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.js +14 -4
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/style/index.css +53 -49
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +6 -14
- package/dist/collection/components/share-element/share-element.js +11 -0
- package/dist/collection/components/slot/slot.js +11 -0
- package/dist/collection/components/swiper/swiper.js +20 -14
- package/dist/collection/components/tabbar/style/index.css +10 -7
- package/dist/collection/components/tabbar/tabbar.js +23 -17
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/textarea/textarea.js +6 -4
- package/dist/collection/components/video/style/index.css +88 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video-control.js +9 -9
- package/dist/collection/components/video/video.js +57 -9
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/view/view.js +2 -2
- package/dist/collection/components/voip-room/voip-room.js +11 -0
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +27 -101
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
- package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/taro-ad-core.entry.js +15 -0
- package/dist/esm/taro-ad-custom-core.entry.js +15 -0
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +3 -3
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +2 -2
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +15 -0
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +4 -4
- package/dist/esm/taro-input-core.entry.js +28 -20
- package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +15 -0
- package/dist/esm/taro-live-pusher-core.entry.js +15 -0
- package/dist/esm/taro-map-core.entry.js +15 -0
- package/dist/esm/taro-match-media-core.entry.js +15 -0
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
- package/dist/esm/taro-navigator-core.entry.js +5 -5
- package/dist/esm/taro-official-account-core.entry.js +15 -0
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +15 -0
- package/dist/esm/taro-page-meta-core.entry.js +15 -0
- package/dist/esm/taro-picker-core_2.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +16 -6
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +2 -2
- package/dist/esm/taro-scroll-view-core.entry.js +8 -16
- package/dist/esm/taro-share-element-core.entry.js +15 -0
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +15 -0
- package/dist/esm/taro-swiper-core_2.entry.js +21 -15
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +48 -46
- package/dist/esm/taro-text-core.entry.js +3 -3
- package/dist/esm/taro-textarea-core.entry.js +8 -6
- package/dist/esm/taro-video-control_3.entry.js +27867 -223
- package/dist/esm/taro-view-core.entry.js +5 -5
- package/dist/esm/taro-voip-room-core.entry.js +15 -0
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-1d8e8acd.js +7 -0
- package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
- package/dist/esm-es5/index-cad8203e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-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-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -0
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
- package/dist/esm-es5/taro-icon-core.entry.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-keyboard-accessory-core.entry.js +1 -0
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -0
- package/dist/esm-es5/taro-swiper-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-text-core.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 +365 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/p-019591c8.system.entry.js +1 -0
- package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
- package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
- package/dist/taro-components/p-0996daee.entry.js +1 -0
- package/dist/taro-components/p-0ca42006.entry.js +1 -0
- package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
- package/dist/taro-components/p-0d1e0e91.system.entry.js +1 -0
- package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
- package/dist/taro-components/p-12deba0b.system.entry.js +1 -0
- package/dist/taro-components/p-133e3ac4.entry.js +1 -0
- package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
- package/dist/taro-components/p-16c1e564.entry.js +1 -0
- package/dist/taro-components/p-178a3adf.system.entry.js +1 -0
- package/dist/taro-components/p-1c0ebbd5.entry.js +1 -0
- package/dist/taro-components/p-1e0406ec.system.entry.js +1 -0
- package/dist/taro-components/p-1e516bd0.entry.js +1 -0
- package/dist/taro-components/p-2241b671.system.js +1 -0
- package/dist/taro-components/p-26e9ce75.entry.js +1 -0
- package/dist/taro-components/p-2887213d.system.entry.js +1 -0
- package/dist/taro-components/p-29b7c721.system.entry.js +1 -0
- package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
- package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
- package/dist/taro-components/p-2e8a1479.system.entry.js +1 -0
- package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
- package/dist/taro-components/p-38d7c2e8.system.entry.js +1 -0
- package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-3b801a38.system.entry.js} +1 -1
- package/dist/taro-components/p-3b85bb4b.system.entry.js +1 -0
- package/dist/taro-components/p-3bb72c08.entry.js +1 -0
- package/dist/taro-components/p-3d3cd72f.entry.js +1 -0
- package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
- package/dist/taro-components/p-44a199e4.entry.js +1 -0
- package/dist/taro-components/p-45e6f8be.entry.js +1 -0
- package/dist/taro-components/p-46b7f84e.entry.js +1 -0
- package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
- package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
- package/dist/taro-components/p-53244eac.entry.js +1 -0
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
- package/dist/taro-components/p-5ff0e954.system.entry.js +1 -0
- package/dist/taro-components/p-61f225ef.system.js +7 -0
- package/dist/taro-components/p-62608b28.system.entry.js +1 -0
- package/dist/taro-components/p-62c64770.entry.js +1 -0
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
- package/dist/taro-components/p-671defcd.entry.js +1 -0
- package/dist/taro-components/p-6f2f468b.entry.js +1 -0
- package/dist/taro-components/p-70313eed.entry.js +1 -0
- package/dist/taro-components/p-74013ace.entry.js +1 -0
- package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
- package/dist/taro-components/p-761d1085.entry.js +1 -0
- package/dist/taro-components/p-76724e58.js +7 -0
- package/dist/taro-components/{p-1e4f1702.system.entry.js → p-78676120.system.entry.js} +1 -1
- package/dist/taro-components/p-79b16736.system.entry.js +1 -0
- package/dist/taro-components/p-7b2049b7.entry.js +1 -0
- package/dist/taro-components/p-7dc268ee.entry.js +1 -0
- package/dist/taro-components/p-7f7aa688.entry.js +1 -0
- package/dist/taro-components/p-80abb865.entry.js +1 -0
- package/dist/taro-components/{p-55b0a30b.entry.js → p-81976128.entry.js} +1 -1
- package/dist/taro-components/p-81dc5b7b.entry.js +1 -0
- package/dist/taro-components/p-828efe43.system.entry.js +1 -0
- package/dist/taro-components/p-831ebd02.system.entry.js +1 -0
- package/dist/taro-components/p-832cc63a.entry.js +1 -0
- package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
- package/dist/taro-components/p-841a2031.system.entry.js +365 -0
- package/dist/taro-components/p-86205110.entry.js +1 -0
- package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
- package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
- package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
- package/dist/taro-components/p-8ead6b19.entry.js +1 -0
- package/dist/taro-components/p-8f466248.system.entry.js +1 -0
- package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
- package/dist/taro-components/p-917830b4.system.entry.js +1 -0
- package/dist/taro-components/p-95e51d62.entry.js +1 -0
- package/dist/taro-components/p-9961074d.entry.js +1 -0
- package/dist/taro-components/{p-3643d8f7.system.entry.js → p-9b90554b.system.entry.js} +1 -1
- package/dist/taro-components/p-9ce624a4.system.entry.js +1 -0
- package/dist/taro-components/p-a097985b.entry.js +1 -0
- package/dist/taro-components/p-a36bfe97.system.entry.js +1 -0
- package/dist/taro-components/p-a4721ae0.js +1 -0
- package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
- package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
- package/dist/taro-components/p-a84098b5.system.entry.js +1 -0
- package/dist/taro-components/p-a90bfe9d.system.entry.js +1 -0
- package/dist/taro-components/p-a9ab6434.system.entry.js +1 -0
- package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-ac398961.system.entry.js} +1 -1
- package/dist/taro-components/{p-4dbed323.entry.js → p-ac56ffed.entry.js} +1 -1
- package/dist/taro-components/{p-fc4939c6.system.entry.js → p-baa5019a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fb0959c1.system.entry.js → p-c1458fbe.system.entry.js} +1 -1
- package/dist/taro-components/p-c7dd3c92.entry.js +1 -0
- package/dist/taro-components/p-c9b73495.entry.js +1 -0
- package/dist/taro-components/{p-8f90fca9.system.entry.js → p-ca7ad427.system.entry.js} +1 -1
- package/dist/taro-components/{p-8bc82aaa.entry.js → p-ce0489a6.entry.js} +1 -1
- package/dist/taro-components/{p-9d0ab7c4.entry.js → p-ce46f79d.entry.js} +1 -1
- package/dist/taro-components/p-cfebd931.entry.js +1 -0
- package/dist/taro-components/p-d2b6b891.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
- package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
- package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
- package/dist/taro-components/p-d7e13592.entry.js +365 -0
- package/dist/taro-components/p-de573939.system.entry.js +1 -0
- package/dist/taro-components/p-e01af6c8.entry.js +1 -0
- package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
- package/dist/taro-components/p-ec59899b.system.entry.js +1 -0
- package/dist/taro-components/p-f1da4ed7.system.entry.js +1 -0
- package/dist/taro-components/p-fc226017.entry.js +1 -0
- package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/ad/ad.d.ts +4 -0
- package/dist/types/components/{picker-view-column/picker-view-column.d.ts → ad-custom/ad-custom.d.ts} +1 -1
- package/dist/types/components/editor/editor.d.ts +4 -0
- package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +3 -3
- package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
- package/dist/types/components/live-player/live-player.d.ts +4 -0
- package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
- package/dist/types/components/map/map.d.ts +4 -0
- package/dist/types/components/match-media/match-media.d.ts +4 -0
- package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
- package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
- package/dist/types/components/official-account/official-account.d.ts +4 -0
- package/dist/types/components/page-container/page-container.d.ts +4 -0
- package/dist/types/components/page-meta/page-meta.d.ts +4 -0
- package/dist/types/components/picker-view/picker-view-column.d.ts +18 -0
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/share-element/share-element.d.ts +4 -0
- package/dist/types/components/slot/slot.d.ts +4 -0
- package/dist/types/components/swiper/swiper.d.ts +2 -1
- package/dist/types/components/tabbar/tabbar.d.ts +4 -3
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/components/video/utils.d.ts +6 -0
- package/dist/types/components/video/video-control.d.ts +2 -2
- package/dist/types/components/voip-room/voip-room.d.ts +4 -0
- package/dist/types/components.d.ts +231 -0
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
- package/dist/types/props.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/dist-h5/react/components/index.js +63 -0
- package/dist-h5/react/components/input.js +2 -2
- package/dist-h5/react/index.js +1 -45
- package/dist-h5/react/utils/reactify-wc.js +8 -5
- package/dist-h5/vue/components/index.js +60 -0
- package/dist-h5/vue/components/picker.js +4 -3
- package/dist-h5/vue/components/scroll-view.js +2 -2
- package/dist-h5/vue/createFormsComponent.js +2 -2
- package/dist-h5/vue/index.js +23 -26
- package/dist-h5/vue/mixins/listeners.js +2 -2
- package/dist-h5/vue3/components/icon.js +3 -0
- package/dist-h5/vue3/components/image.js +3 -0
- package/dist-h5/vue3/components/index.js +64 -0
- package/dist-h5/vue3/components/scroll-view.js +3 -0
- package/dist-h5/vue3/components/text.js +3 -0
- package/dist-h5/vue3/createComponent.js +3 -0
- package/dist-h5/vue3/createFormsComponent.js +6 -3
- package/dist-h5/vue3/forwardRef.js +11 -0
- package/dist-h5/vue3/index.js +12 -29
- package/package.json +35 -19
- package/types/Ad.d.ts +34 -22
- package/types/AdCustom.d.ts +50 -0
- package/types/Audio.d.ts +25 -5
- package/types/Block.d.ts +5 -2
- package/types/Button.d.ts +123 -34
- package/types/Camera.d.ts +20 -20
- package/types/Canvas.d.ts +15 -2
- package/types/Checkbox.d.ts +69 -5
- package/types/CheckboxGroup.d.ts +4 -4
- package/types/CoverImage.d.ts +50 -8
- package/types/CoverView.d.ts +51 -8
- package/types/CustomWrapper.d.ts +2 -2
- package/types/Editor.d.ts +63 -6
- package/types/Form.d.ts +38 -7
- package/types/FunctionalPageNavigator.d.ts +4 -4
- package/types/Icon.d.ts +17 -1
- package/types/Image.d.ts +32 -6
- package/types/Input.d.ts +105 -40
- package/types/KeyboardAccessory.d.ts +42 -0
- package/types/Label.d.ts +20 -6
- package/types/LivePlayer.d.ts +25 -19
- package/types/LivePusher.d.ts +21 -15
- package/types/Map.d.ts +87 -33
- package/types/MatchMedia.d.ts +24 -5
- package/types/MovableArea.d.ts +10 -4
- package/types/MovableView.d.ts +34 -20
- package/types/Navigator.d.ts +7 -7
- package/types/OfficialAccount.d.ts +7 -13
- package/types/OpenData.d.ts +17 -11
- package/types/PageContainer.d.ts +121 -0
- package/types/Picker.d.ts +66 -3
- package/types/PickerView.d.ts +66 -2
- package/types/PickerViewColumn.d.ts +5 -3
- package/types/Progress.d.ts +13 -2
- package/types/Radio.d.ts +82 -6
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +39 -2
- package/types/ScrollView.d.ts +94 -12
- package/types/ShareElement.d.ts +232 -0
- package/types/Slider.d.ts +15 -2
- package/types/Slot.d.ts +2 -2
- package/types/Swiper.d.ts +33 -8
- package/types/SwiperItem.d.ts +28 -3
- package/types/Switch.d.ts +22 -4
- package/types/Text.d.ts +38 -1
- package/types/Textarea.d.ts +38 -22
- package/types/Video.d.ts +61 -41
- package/types/View.d.ts +35 -3
- package/types/VoipRoom.d.ts +70 -0
- package/types/WebView.d.ts +13 -7
- package/types/common.d.ts +7 -10
- package/types/index.d.ts +49 -22
- package/types/index.vue3.d.ts +157 -0
- package/types/props.ts +72 -0
- package/virtual-list/memoize.js +1 -0
- package/virtual-list/react/createListComponent.js +5 -3
- package/virtual-list/react/index.js +2 -1
- package/virtual-list/timer.js +1 -1
- package/virtual-list/vue/index.js +1 -1
- package/vue3.d.ts +3 -0
- package/dist/esm-es5/index-3c78bcaf.js +0 -7
- package/dist/taro-components/p-10a6c489.system.entry.js +0 -1
- package/dist/taro-components/p-11932905.entry.js +0 -1
- package/dist/taro-components/p-12638ebc.system.entry.js +0 -1
- package/dist/taro-components/p-12ae0a33.entry.js +0 -1
- package/dist/taro-components/p-13c1404f.system.entry.js +0 -1
- package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
- package/dist/taro-components/p-2438fcd4.system.entry.js +0 -1
- package/dist/taro-components/p-33ee636a.system.js +0 -1
- package/dist/taro-components/p-37cfdd8f.js +0 -7
- package/dist/taro-components/p-3aac5746.system.entry.js +0 -1
- package/dist/taro-components/p-3eebeb1c.system.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-46cf6431.system.entry.js +0 -1
- package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
- package/dist/taro-components/p-554e1039.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-627a5064.system.entry.js +0 -1
- package/dist/taro-components/p-64993f48.entry.js +0 -1
- package/dist/taro-components/p-66237ac0.entry.js +0 -1
- package/dist/taro-components/p-6965567d.entry.js +0 -1
- package/dist/taro-components/p-71de9bd6.entry.js +0 -1
- package/dist/taro-components/p-7a64a3d2.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-94c20f60.system.js +0 -7
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-a1423df9.entry.js +0 -1
- package/dist/taro-components/p-b8e0ad7d.entry.js +0 -1
- package/dist/taro-components/p-b9280444.entry.js +0 -1
- package/dist/taro-components/p-c218c298.entry.js +0 -1
- package/dist/taro-components/p-c362734b.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d567b95e.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-e27798a4.entry.js +0 -1
- package/dist/taro-components/p-f05e1558.js +0 -1
- package/dist/taro-components/p-f98e0224.entry.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
- package/dist-h5/vue/simpleComponents.js +0 -19
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
|
+
const Taro = require('@tarojs/taro');
|
|
7
|
+
const index$1 = require('./index-f9d21cc5.js');
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
|
+
|
|
13
|
+
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
9
14
|
|
|
10
|
-
const Taro = require('@tarojs/taro');
|
|
11
15
|
function setTransform(nodeStyle, value) {
|
|
12
16
|
nodeStyle.transform = value;
|
|
13
17
|
nodeStyle.webkitTransform = value;
|
|
@@ -64,6 +68,11 @@ let PullToRefresh = class {
|
|
|
64
68
|
};
|
|
65
69
|
this.init = () => {
|
|
66
70
|
const ele = this.scrollContainer;
|
|
71
|
+
const child = this.el.querySelector('rmc-pull-to-refresh-content');
|
|
72
|
+
this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
|
|
73
|
+
this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
|
|
74
|
+
this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
|
|
75
|
+
this.el.removeChild = child === null || child === void 0 ? void 0 : child.removeChild.bind(child);
|
|
67
76
|
this._to = {
|
|
68
77
|
touchstart: this.onTouchStart.bind(this, ele),
|
|
69
78
|
touchmove: this.onTouchMove.bind(this, ele),
|
|
@@ -168,7 +177,7 @@ let PullToRefresh = class {
|
|
|
168
177
|
this.setContentStyle(0);
|
|
169
178
|
};
|
|
170
179
|
this.setContentStyle = (ty) => {
|
|
171
|
-
//
|
|
180
|
+
// TODO: Why sometimes do not have `this.contentRef` ?
|
|
172
181
|
if (this.contentRef) {
|
|
173
182
|
// translate3d 不清理 会影响内部元素 定位
|
|
174
183
|
if (ty) {
|
|
@@ -181,7 +190,12 @@ let PullToRefresh = class {
|
|
|
181
190
|
};
|
|
182
191
|
}
|
|
183
192
|
get scrollContainer() {
|
|
184
|
-
return
|
|
193
|
+
return this.el.parentElement ||
|
|
194
|
+
document.querySelector('.taro_page_stationed') ||
|
|
195
|
+
document.querySelector('.taro_page') ||
|
|
196
|
+
document.querySelector('.taro_router') ||
|
|
197
|
+
document.querySelector('.taro-tabbar__panel') ||
|
|
198
|
+
document.body;
|
|
185
199
|
}
|
|
186
200
|
statusChange() {
|
|
187
201
|
if (this.currSt === 'release') {
|
|
@@ -197,7 +211,7 @@ let PullToRefresh = class {
|
|
|
197
211
|
componentDidLoad() {
|
|
198
212
|
this.init();
|
|
199
213
|
this._isMounted = true;
|
|
200
|
-
|
|
214
|
+
Taro__default['default'].eventCenter.on('__taroStartPullDownRefresh', ({ successHandler, errorHandler }) => {
|
|
201
215
|
try {
|
|
202
216
|
this.triggerPullDownRefresh(true);
|
|
203
217
|
successHandler({
|
|
@@ -210,7 +224,7 @@ let PullToRefresh = class {
|
|
|
210
224
|
});
|
|
211
225
|
}
|
|
212
226
|
});
|
|
213
|
-
|
|
227
|
+
Taro__default['default'].eventCenter.on('__taroStopPullDownRefresh', ({ successHandler, errorHandler }) => {
|
|
214
228
|
try {
|
|
215
229
|
this.triggerPullDownRefresh(false);
|
|
216
230
|
successHandler({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
6
|
|
|
7
7
|
let RichText = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.renderNode = (node) => {
|
|
11
11
|
if ('type' in node && node.type === 'text') {
|
|
12
|
-
//
|
|
12
|
+
// nonsupport Html Entries
|
|
13
13
|
const content = (node.text || '').replace(/ /g, '\u00A0');
|
|
14
14
|
return content;
|
|
15
15
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
|
+
const index$2 = require('./index-f9d21cc5.js');
|
|
7
|
+
const index$1 = require('./index-47a1959e.js');
|
|
7
8
|
|
|
8
9
|
const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
|
|
9
10
|
|
|
@@ -29,21 +30,12 @@ function easeOutScroll(from, to, callback) {
|
|
|
29
30
|
}
|
|
30
31
|
step();
|
|
31
32
|
}
|
|
32
|
-
function debounce(fn, delay) {
|
|
33
|
-
let timer;
|
|
34
|
-
return function (...arrs) {
|
|
35
|
-
clearTimeout(timer);
|
|
36
|
-
timer = setTimeout(function () {
|
|
37
|
-
fn(...arrs);
|
|
38
|
-
}, delay);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
33
|
let ScrollView = class {
|
|
42
34
|
constructor(hostRef) {
|
|
43
35
|
index.registerInstance(this, hostRef);
|
|
44
|
-
this.onScroll = index.createEvent(this, "scroll",
|
|
45
|
-
this.onScrollToUpper = index.createEvent(this, "scrolltoupper",
|
|
46
|
-
this.onScrollToLower = index.createEvent(this, "scrolltolower",
|
|
36
|
+
this.onScroll = index.createEvent(this, "scroll", 3);
|
|
37
|
+
this.onScrollToUpper = index.createEvent(this, "scrolltoupper", 3);
|
|
38
|
+
this.onScrollToLower = index.createEvent(this, "scrolltolower", 3);
|
|
47
39
|
this.scrollX = false;
|
|
48
40
|
this.scrollY = false;
|
|
49
41
|
this.upperThreshold = 50;
|
|
@@ -55,7 +47,7 @@ let ScrollView = class {
|
|
|
55
47
|
const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
56
48
|
this._scrollLeft = scrollLeft;
|
|
57
49
|
this._scrollTop = scrollTop;
|
|
58
|
-
this.
|
|
50
|
+
this.upperAndLower();
|
|
59
51
|
this.onScroll.emit({
|
|
60
52
|
scrollLeft,
|
|
61
53
|
scrollTop,
|
|
@@ -63,7 +55,7 @@ let ScrollView = class {
|
|
|
63
55
|
scrollWidth
|
|
64
56
|
});
|
|
65
57
|
};
|
|
66
|
-
this.
|
|
58
|
+
this.upperAndLower = index$1.debounce(() => {
|
|
67
59
|
const { offsetWidth, offsetHeight, scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
68
60
|
const lowerThreshold = Number(this.lowerThreshold);
|
|
69
61
|
const upperThreshold = Number(this.upperThreshold);
|
|
@@ -146,7 +138,7 @@ let ScrollView = class {
|
|
|
146
138
|
}
|
|
147
139
|
render() {
|
|
148
140
|
const { scrollX, scrollY } = this;
|
|
149
|
-
const cls = index$
|
|
141
|
+
const cls = index$2.classnames({
|
|
150
142
|
'taro-scroll-view__scroll-x': scrollX,
|
|
151
143
|
'taro-scroll-view__scroll-y': scrollY
|
|
152
144
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
|
+
|
|
7
|
+
let ShareElement = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
console.error('H5 暂不支持 ShareElement 组件!');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.taro_share_element_core = ShareElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
|
+
|
|
7
|
+
let Slot = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
console.error('H5 暂不支持 Slot 组件!');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.taro_slot_core = Slot;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
6
|
-
const index$
|
|
5
|
+
const index$1 = require('./index-13289aba.js');
|
|
6
|
+
const index$3 = require('./index-f9d21cc5.js');
|
|
7
|
+
const index$2 = require('./index-47a1959e.js');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* SSR Window 3.0.0
|
|
@@ -9935,7 +9936,7 @@ let Swiper = class {
|
|
|
9935
9936
|
});
|
|
9936
9937
|
}
|
|
9937
9938
|
};
|
|
9938
|
-
this.handleSwiperLoop = debounce(() => {
|
|
9939
|
+
this.handleSwiperLoop = index$2.debounce(() => {
|
|
9939
9940
|
if (this.swiper && this.circular) {
|
|
9940
9941
|
// @ts-ignore
|
|
9941
9942
|
this.swiper.loopDestroy();
|
|
@@ -9943,6 +9944,11 @@ let Swiper = class {
|
|
|
9943
9944
|
this.swiper.loopCreate();
|
|
9944
9945
|
}
|
|
9945
9946
|
}, 500);
|
|
9947
|
+
this.handleSwiperSize = index$2.debounce(() => {
|
|
9948
|
+
if (this.swiper && !this.circular) {
|
|
9949
|
+
this.swiper.updateSlides();
|
|
9950
|
+
}
|
|
9951
|
+
}, 50);
|
|
9946
9952
|
}
|
|
9947
9953
|
watchCurrent(newVal) {
|
|
9948
9954
|
if (!this.isWillLoadCalled)
|
|
@@ -10006,6 +10012,8 @@ let Swiper = class {
|
|
|
10006
10012
|
this.el.removeChild = (oldChild) => {
|
|
10007
10013
|
return newVal.removeChild(oldChild);
|
|
10008
10014
|
};
|
|
10015
|
+
this.el.addEventListener('DOMNodeInserted', this.handleSwiperSize);
|
|
10016
|
+
this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSize);
|
|
10009
10017
|
}
|
|
10010
10018
|
watchCircular() {
|
|
10011
10019
|
if (this.swiper) {
|
|
@@ -10039,12 +10047,14 @@ let Swiper = class {
|
|
|
10039
10047
|
}
|
|
10040
10048
|
disconnectedCallback() {
|
|
10041
10049
|
var _a, _b, _c, _d, _e, _f;
|
|
10050
|
+
this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSize);
|
|
10051
|
+
this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSize);
|
|
10042
10052
|
(_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
10043
10053
|
(_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
10044
10054
|
(_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
10045
10055
|
}
|
|
10046
10056
|
handleInit() {
|
|
10047
|
-
const { autoplay, current,
|
|
10057
|
+
const { autoplay, circular, current, displayMultipleItems, duration, interval, vertical } = this;
|
|
10048
10058
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
10049
10059
|
const that = this;
|
|
10050
10060
|
const options = {
|
|
@@ -10062,7 +10072,7 @@ let Swiper = class {
|
|
|
10062
10072
|
},
|
|
10063
10073
|
// slideChange 事件在 swiper.slideTo 改写 current 时不触发,因此用 slideChangeTransitionEnd 事件代替
|
|
10064
10074
|
slideChangeTransitionEnd(_swiper) {
|
|
10065
|
-
if (circular) {
|
|
10075
|
+
if (that.circular) {
|
|
10066
10076
|
if (_swiper.isBeginning || _swiper.isEnd) {
|
|
10067
10077
|
_swiper.slideToLoop(this.realIndex, 0); // 更新下标
|
|
10068
10078
|
return;
|
|
@@ -10082,9 +10092,14 @@ let Swiper = class {
|
|
|
10082
10092
|
observerUpdate(_swiper, e) {
|
|
10083
10093
|
const target = e.target;
|
|
10084
10094
|
const className = target && typeof target.className === 'string' ? target.className : '';
|
|
10085
|
-
if (className.includes('taro_page') && target.style.display
|
|
10095
|
+
if (className.includes('taro_page') && target.style.display !== 'none') {
|
|
10086
10096
|
if (that.autoplay && target.contains(_swiper.$el[0])) {
|
|
10087
|
-
|
|
10097
|
+
if (that.circular) {
|
|
10098
|
+
_swiper.slideToLoop(this.realIndex, 0); // 更新下标
|
|
10099
|
+
}
|
|
10100
|
+
else {
|
|
10101
|
+
_swiper.slideTo(this.realIndex);
|
|
10102
|
+
}
|
|
10088
10103
|
}
|
|
10089
10104
|
}
|
|
10090
10105
|
}
|
|
@@ -10123,7 +10138,7 @@ let Swiper = class {
|
|
|
10123
10138
|
return (index$1.h(index$1.Host, { class: `taro-swiper-${this._id}`, style: hostStyle }, index$1.h("div", { class: 'swiper-container', style: style }, index$1.h("style", { type: 'text/css' }, `
|
|
10124
10139
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${indicatorColor} }
|
|
10125
10140
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${indicatorActiveColor} }
|
|
10126
|
-
`), index$1.h("div", { class: 'swiper-wrapper' }, index$1.h("slot", null)), index$1.h("div", { class: index$
|
|
10141
|
+
`), index$1.h("div", { class: 'swiper-wrapper' }, index$1.h("slot", null)), index$1.h("div", { class: index$3.classnames('swiper-pagination', {
|
|
10127
10142
|
'swiper-pagination-hidden': !indicatorDots,
|
|
10128
10143
|
'swiper-pagination-bullets': indicatorDots
|
|
10129
10144
|
}) }))));
|
|
@@ -10138,15 +10153,6 @@ let Swiper = class {
|
|
|
10138
10153
|
"circular": ["watchCircular"]
|
|
10139
10154
|
}; }
|
|
10140
10155
|
};
|
|
10141
|
-
function debounce(fn, delay) {
|
|
10142
|
-
let timer;
|
|
10143
|
-
return function (...arrs) {
|
|
10144
|
-
clearTimeout(timer);
|
|
10145
|
-
timer = setTimeout(function () {
|
|
10146
|
-
fn(...arrs);
|
|
10147
|
-
}, delay);
|
|
10148
|
-
};
|
|
10149
|
-
}
|
|
10150
10156
|
Swiper.style = indexCss;
|
|
10151
10157
|
|
|
10152
10158
|
let SwiperItem = class {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
6
|
|
|
7
7
|
const indexCss = "taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";
|
|
8
8
|
|
|
@@ -2,8 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index$1 = require('./index-13289aba.js');
|
|
6
|
+
const Taro = require('@tarojs/taro');
|
|
7
|
+
const index = require('./index-f9d21cc5.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
|
+
|
|
13
|
+
const splitUrl = _url => {
|
|
14
|
+
let url = _url || '';
|
|
15
|
+
let pos;
|
|
16
|
+
const res = {
|
|
17
|
+
path: null,
|
|
18
|
+
query: null,
|
|
19
|
+
fragment: null
|
|
20
|
+
};
|
|
21
|
+
pos = url.indexOf('#');
|
|
22
|
+
if (pos > -1) {
|
|
23
|
+
res.fragment = url.substring(pos + 1);
|
|
24
|
+
url = url.substring(0, pos);
|
|
25
|
+
}
|
|
26
|
+
pos = url.indexOf('?');
|
|
27
|
+
if (pos > -1) {
|
|
28
|
+
res.query = url.substring(pos + 1);
|
|
29
|
+
url = url.substring(0, pos);
|
|
30
|
+
}
|
|
31
|
+
res.path = url;
|
|
32
|
+
return res;
|
|
33
|
+
};
|
|
7
34
|
|
|
8
35
|
function isAbsolute(pathname) {
|
|
9
36
|
return pathname.charAt(0) === '/';
|
|
@@ -79,32 +106,6 @@ function resolvePathname(to, from) {
|
|
|
79
106
|
return result;
|
|
80
107
|
}
|
|
81
108
|
|
|
82
|
-
const splitUrl = _url => {
|
|
83
|
-
let url = _url || '';
|
|
84
|
-
let pos;
|
|
85
|
-
const res = {
|
|
86
|
-
path: null,
|
|
87
|
-
query: null,
|
|
88
|
-
fragment: null
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
pos = url.indexOf('#');
|
|
92
|
-
if (pos > -1) {
|
|
93
|
-
res.fragment = url.substring(pos + 1);
|
|
94
|
-
url = url.substring(0, pos);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
pos = url.indexOf('?');
|
|
98
|
-
if (pos > -1) {
|
|
99
|
-
res.query = url.substring(pos + 1);
|
|
100
|
-
url = url.substring(0, pos);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
res.path = url;
|
|
104
|
-
|
|
105
|
-
return res
|
|
106
|
-
};
|
|
107
|
-
|
|
108
109
|
const TabbarItem = ({ index: index$2, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, text, onSelect }) => {
|
|
109
110
|
const className = index.classnames('weui-tabbar__item', {
|
|
110
111
|
'weui-bar__item_on': isSelected
|
|
@@ -130,15 +131,14 @@ const TabbarItem = ({ index: index$2, isSelected = false, textColor, iconPath, b
|
|
|
130
131
|
index$1.h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
|
|
131
132
|
};
|
|
132
133
|
|
|
133
|
-
const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;
|
|
134
|
+
const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
|
|
134
135
|
|
|
135
|
-
// IGNORE: 由于 @tarojs/taro 与 @tarojs/components 中存在循环依赖,暂时使用 commonjs 引用
|
|
136
|
-
const Taro = require('@tarojs/taro');
|
|
137
136
|
// const removeLeadingSlash = str => str.replace(/^\.?\//, '')
|
|
138
137
|
// const removeTrailingSearch = str => str.replace(/\?[\s\S]*$/, '')
|
|
139
|
-
const addLeadingSlash = str => str[0] === '/' ? str : `/${str}`;
|
|
140
|
-
const hasBasename = (path, prefix) => new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
|
|
141
|
-
const stripBasename = (path, prefix) => hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
138
|
+
const addLeadingSlash = (str = '') => str[0] === '/' ? str : `/${str}`;
|
|
139
|
+
const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
|
|
140
|
+
const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
141
|
+
const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;
|
|
142
142
|
const STATUS_SHOW = 0;
|
|
143
143
|
const STATUS_HIDE = 1;
|
|
144
144
|
const STATUS_SLIDEOUT = 2;
|
|
@@ -160,7 +160,7 @@ let Tabbar = class {
|
|
|
160
160
|
const pathB = splitUrl(url).path;
|
|
161
161
|
return pathA === pathB;
|
|
162
162
|
});
|
|
163
|
-
return customRoute.length ? customRoute[0][0] : url;
|
|
163
|
+
return stripSuffix(customRoute.length ? customRoute[0][0] : url, '.html');
|
|
164
164
|
};
|
|
165
165
|
this.getSelectedIndex = (url) => {
|
|
166
166
|
let foundIndex = -1;
|
|
@@ -175,7 +175,7 @@ let Tabbar = class {
|
|
|
175
175
|
};
|
|
176
176
|
this.switchTab = (index) => {
|
|
177
177
|
this.selectedIndex = index;
|
|
178
|
-
|
|
178
|
+
Taro__default['default'].switchTab({
|
|
179
179
|
url: this.list[index].pagePath
|
|
180
180
|
});
|
|
181
181
|
};
|
|
@@ -196,14 +196,12 @@ let Tabbar = class {
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
this.routerChangeHandler = (options) => {
|
|
199
|
-
|
|
199
|
+
var _a;
|
|
200
|
+
const to = (_a = options === null || options === void 0 ? void 0 : options.toLocation) === null || _a === void 0 ? void 0 : _a.path;
|
|
200
201
|
let currentPage;
|
|
201
|
-
if (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
if (toLocation && toLocation.path) {
|
|
205
|
-
const tmpPath = addLeadingSlash(toLocation.path);
|
|
206
|
-
currentPage = stripBasename(tmpPath === '/' ? this.homePage : tmpPath, this.conf.basename || '/');
|
|
202
|
+
if (typeof to === 'string') {
|
|
203
|
+
const routerBasename = this.conf.basename || '/';
|
|
204
|
+
currentPage = stripBasename(addLeadingSlash(to || this.homePage), routerBasename) || '/';
|
|
207
205
|
}
|
|
208
206
|
else {
|
|
209
207
|
currentPage = this.getCurrentUrl();
|
|
@@ -326,8 +324,15 @@ let Tabbar = class {
|
|
|
326
324
|
throw new Error('tabBar 配置错误');
|
|
327
325
|
}
|
|
328
326
|
this.homePage = addLeadingSlash(this.conf.homePage);
|
|
329
|
-
for (
|
|
330
|
-
|
|
327
|
+
for (let key in customRoutes) {
|
|
328
|
+
const path = customRoutes[key];
|
|
329
|
+
key = addLeadingSlash(key);
|
|
330
|
+
if (typeof path === 'string') {
|
|
331
|
+
this.customRoutes.push([key, addLeadingSlash(path)]);
|
|
332
|
+
}
|
|
333
|
+
else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {
|
|
334
|
+
this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]));
|
|
335
|
+
}
|
|
331
336
|
}
|
|
332
337
|
list.forEach(item => {
|
|
333
338
|
if (item.pagePath.indexOf('/') !== 0) {
|
|
@@ -355,31 +360,31 @@ let Tabbar = class {
|
|
|
355
360
|
url = location.pathname;
|
|
356
361
|
}
|
|
357
362
|
const processedUrl = addLeadingSlash(stripBasename(url, routerBasename));
|
|
358
|
-
return processedUrl === '/' ? this.homePage : processedUrl;
|
|
363
|
+
return decodeURI(processedUrl === '/' ? this.homePage : processedUrl);
|
|
359
364
|
}
|
|
360
365
|
bindEvent() {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
366
|
+
Taro__default['default'].eventCenter.on('__taroRouterChange', this.routerChangeHandler);
|
|
367
|
+
Taro__default['default'].eventCenter.on('__taroSwitchTab', this.switchTabHandler);
|
|
368
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarBadge', this.setTabBarBadgeHandler);
|
|
369
|
+
Taro__default['default'].eventCenter.on('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler);
|
|
370
|
+
Taro__default['default'].eventCenter.on('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler);
|
|
371
|
+
Taro__default['default'].eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
372
|
+
Taro__default['default'].eventCenter.on('__taroShowTabBar', this.showTabBarHandler);
|
|
373
|
+
Taro__default['default'].eventCenter.on('__taroHideTabBar', this.hideTabBarHandler);
|
|
374
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
375
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
371
376
|
}
|
|
372
377
|
removeEvent() {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
Taro__default['default'].eventCenter.off('__taroRouterChange', this.routerChangeHandler);
|
|
379
|
+
Taro__default['default'].eventCenter.off('__taroSwitchTab', this.switchTabHandler);
|
|
380
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarBadge', this.setTabBarBadgeHandler);
|
|
381
|
+
Taro__default['default'].eventCenter.off('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler);
|
|
382
|
+
Taro__default['default'].eventCenter.off('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler);
|
|
383
|
+
Taro__default['default'].eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
384
|
+
Taro__default['default'].eventCenter.off('__taroShowTabBar', this.showTabBarHandler);
|
|
385
|
+
Taro__default['default'].eventCenter.off('__taroHideTabBar', this.hideTabBarHandler);
|
|
386
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
387
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
383
388
|
}
|
|
384
389
|
componentDidLoad() {
|
|
385
390
|
this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom';
|
|
@@ -401,7 +406,8 @@ let Tabbar = class {
|
|
|
401
406
|
[hideTabBarClassName]: shouldHideTabBar,
|
|
402
407
|
[hideTabBarWithAnimationClassName]: shouldSlideout
|
|
403
408
|
}) }, index$1.h("div", { class: containerCls, style: {
|
|
404
|
-
backgroundColor: this.backgroundColor || ''
|
|
409
|
+
backgroundColor: this.backgroundColor || '',
|
|
410
|
+
height: 'inherit'
|
|
405
411
|
} }, this.list.map((item, index) => {
|
|
406
412
|
const isSelected = this.selectedIndex === index;
|
|
407
413
|
let textColor;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
|
+
const index$1 = require('./index-f9d21cc5.js');
|
|
7
7
|
|
|
8
|
-
const indexCss = "taro-text-core{display:inline;-
|
|
8
|
+
const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";
|
|
9
9
|
|
|
10
10
|
let Text = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-13289aba.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{
|
|
7
|
+
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";
|
|
8
8
|
|
|
9
9
|
function fixControlledValue(value) {
|
|
10
10
|
return value !== null && value !== void 0 ? value : '';
|
|
@@ -23,7 +23,7 @@ let Textarea = class {
|
|
|
23
23
|
this.autoHeight = false;
|
|
24
24
|
this.nativeProps = {};
|
|
25
25
|
this.line = 1;
|
|
26
|
-
this.
|
|
26
|
+
this.handleInput = (e) => {
|
|
27
27
|
e.stopPropagation();
|
|
28
28
|
this.handleLineChange();
|
|
29
29
|
this.onInput.emit({
|
|
@@ -58,9 +58,10 @@ let Textarea = class {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
this.calculateContentHeight = (ta, scanAmount) => {
|
|
61
|
-
let origHeight = ta.style.height, height = ta.offsetHeight, scrollHeight = ta.scrollHeight, overflow = ta.style.overflow;
|
|
61
|
+
let origHeight = ta.style.height, height = ta.offsetHeight, scrollHeight = ta.scrollHeight, overflow = ta.style.overflow, originMinHeight = ta.style.minHeight || null;
|
|
62
62
|
/// only bother if the ta is bigger than content
|
|
63
63
|
if (height >= scrollHeight) {
|
|
64
|
+
ta.style.minHeight = 0;
|
|
64
65
|
/// check that our browser supports changing dimension
|
|
65
66
|
/// calculations mid-way through a function call...
|
|
66
67
|
ta.style.height = height + scanAmount + 'px';
|
|
@@ -81,6 +82,7 @@ let Textarea = class {
|
|
|
81
82
|
ta.style.height = origHeight;
|
|
82
83
|
/// put the overflow back
|
|
83
84
|
ta.style.overflow = overflow;
|
|
85
|
+
ta.style.minHeight = originMinHeight;
|
|
84
86
|
return height;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
@@ -109,7 +111,7 @@ let Textarea = class {
|
|
|
109
111
|
this.autoFocus && this.textareaRef.focus();
|
|
110
112
|
}
|
|
111
113
|
render() {
|
|
112
|
-
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps,
|
|
114
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange } = this;
|
|
113
115
|
const otherProps = {};
|
|
114
116
|
if (autoHeight) {
|
|
115
117
|
otherProps.rows = this.line;
|
|
@@ -118,7 +120,7 @@ let Textarea = class {
|
|
|
118
120
|
if (input) {
|
|
119
121
|
this.textareaRef = input;
|
|
120
122
|
}
|
|
121
|
-
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput:
|
|
123
|
+
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: handleInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }, nativeProps, otherProps)));
|
|
122
124
|
}
|
|
123
125
|
get el() { return index.getElement(this); }
|
|
124
126
|
};
|