@tarojs/components 4.0.0-beta.1 → 4.0.0-beta.3
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/LICENSE +14 -0
- package/dist/cjs/{index-5a8221ec.js → index-dbbe9dde.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-aweme-data-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-channel-live-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-image-core.cjs.entry.js +7 -6
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +4 -4
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -3
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +4 -4
- package/dist/cjs/taro-progress-core.cjs.entry.js +4 -1
- package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +3 -3
- 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-root-portal-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +4 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +19 -9863
- package/dist/cjs/taro-switch-core.cjs.entry.js +13 -12
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +14 -86
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-textarea-core.cjs.entry.js +12 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +25 -5
- package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
- package/dist/collection/components/audio/style/index.css +1 -4
- package/dist/collection/components/button/style/index.css +1 -160
- package/dist/collection/components/canvas/style/index.css +1 -6
- package/dist/collection/components/checkbox/style/index.css +1 -39
- package/dist/collection/components/cover-image/style/index.css +1 -5
- package/dist/collection/components/cover-view/style/cover-view.css +1 -3
- package/dist/collection/components/icon/icon.js +10 -0
- package/dist/collection/components/icon/style/index.css +1 -0
- package/dist/collection/components/image/image.js +4 -3
- package/dist/collection/components/image/style/index.css +1 -73
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/input/style/index.css +1 -0
- package/dist/collection/components/movable-area/area.css +1 -6
- package/dist/collection/components/movable-area/view.css +1 -8
- package/dist/collection/components/navigator/style/index.css +1 -3
- package/dist/collection/components/picker/style/index.css +1 -4
- package/dist/collection/components/picker-view/style/column.css +1 -12
- package/dist/collection/components/picker-view/style/index.css +1 -28
- package/dist/collection/components/progress/progress.js +10 -0
- package/dist/collection/components/progress/style/index.css +1 -0
- package/dist/collection/components/pull-to-refresh/style/index.css +1 -52
- package/dist/collection/components/rich-text/style/index.css +1 -16
- package/dist/collection/components/scroll-view/style/index.css +1 -17
- package/dist/collection/components/slider/slider.js +10 -0
- package/dist/collection/components/slider/style/index.css +1 -0
- package/dist/collection/components/swiper/style/index.css +2 -19
- package/dist/collection/components/switch/style/index.css +1 -10
- package/dist/collection/components/switch/switch.js +12 -12
- package/dist/collection/components/tabbar/style/index.css +1 -53
- package/dist/collection/components/tabbar/tabbar.js +1 -1
- package/dist/collection/components/text/style/index.css +1 -26
- package/dist/collection/components/textarea/style/index.css +1 -22
- package/dist/collection/components/textarea/textarea.js +11 -0
- package/dist/collection/components/video/style/index.css +1 -327
- package/dist/collection/components/view/style/index.css +1 -9
- package/dist/collection/components/web-view/style/index.css +1 -12
- package/dist/components/taro-audio-core.js +1 -1
- package/dist/components/taro-button-core.js +1 -1
- package/dist/components/taro-canvas-core.js +1 -1
- package/dist/components/taro-checkbox-core.js +1 -1
- package/dist/components/taro-cover-image-core.js +1 -1
- package/dist/components/taro-icon-core.js +3 -0
- package/dist/components/taro-image-core.js +5 -4
- package/dist/components/taro-input-core.js +1 -1
- package/dist/components/taro-movable-area-core.js +1 -1
- package/dist/components/taro-movable-view-core.js +1 -1
- package/dist/components/taro-picker-core.js +1 -1
- package/dist/components/taro-picker-view-column-core.js +1 -1
- package/dist/components/taro-picker-view-core.js +1 -1
- package/dist/components/taro-progress-core.js +3 -0
- package/dist/components/taro-pull-to-refresh-core.js +1 -1
- package/dist/components/taro-rich-text-core.js +1 -1
- package/dist/components/taro-scroll-view-core.js +1 -1
- package/dist/components/taro-slider-core.js +3 -0
- package/dist/components/taro-swiper-core.js +5 -9853
- package/dist/components/taro-switch-core.js +13 -13
- package/dist/components/taro-tabbar.js +3 -76
- package/dist/components/taro-text-core.js +1 -1
- package/dist/components/taro-textarea-core.js +11 -2
- package/dist/components/taro-video-core.js +2 -2
- package/dist/components/taro-view-core.js +1 -1
- package/dist/components/taro-web-view-core.js +1 -1
- package/dist/esm/{index-6bb77c5f.js → index-486e187e.js} +3 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +1 -1
- package/dist/esm/taro-animation-view-core.entry.js +1 -1
- package/dist/esm/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +2 -2
- package/dist/esm/taro-aweme-data-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-channel-live-core.entry.js +1 -1
- package/dist/esm/taro-channel-video-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
- package/dist/esm/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +3 -3
- package/dist/esm/taro-contact-button-core.entry.js +1 -1
- package/dist/esm/taro-cover-image-core.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +5 -2
- package/dist/esm/taro-image-core.entry.js +7 -6
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +2 -2
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm/taro-like-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-login-core.entry.js +1 -1
- package/dist/esm/taro-lottie-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core_2.entry.js +4 -4
- package/dist/esm/taro-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +3 -3
- package/dist/esm/taro-picker-view-column-core_2.entry.js +4 -4
- package/dist/esm/taro-progress-core.entry.js +4 -1
- package/dist/esm/taro-pull-to-refresh-core.entry.js +3 -3
- 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-root-portal-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +3 -3
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +4 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-snapshot-core.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +5 -9853
- package/dist/esm/taro-switch-core.entry.js +13 -12
- package/dist/esm/taro-tab-item-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +5 -78
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +2 -2
- package/dist/esm/taro-textarea-core.entry.js +12 -3
- package/dist/esm/taro-video-control_3.entry.js +4 -4
- package/dist/esm/taro-view-core.entry.js +3 -3
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +2 -2
- package/dist/esm-es5/index-486e187e.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-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-channel-live-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.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 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
- 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-inline-payment-panel-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 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh-core.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-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-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 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
- 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-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.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 +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/{p-23f15c7b.entry.js → p-00d05751.entry.js} +1 -1
- package/dist/taro-components/{p-635fe530.system.entry.js → p-014534ca.system.entry.js} +1 -1
- package/dist/taro-components/{p-03538d40.system.entry.js → p-015b3025.system.entry.js} +1 -1
- package/dist/taro-components/{p-c3c69a95.system.entry.js → p-02dd30fa.system.entry.js} +1 -1
- package/dist/taro-components/{p-8d797863.system.entry.js → p-040f15f2.system.entry.js} +1 -1
- package/dist/taro-components/p-06cf6b18.system.entry.js +1 -0
- package/dist/taro-components/{p-dea67974.system.entry.js → p-07e94301.system.entry.js} +1 -1
- package/dist/taro-components/{p-680ba5a1.system.entry.js → p-0cf04b3d.system.entry.js} +1 -1
- package/dist/taro-components/p-0e3d8ada.entry.js +1 -0
- package/dist/taro-components/p-101f49dd.entry.js +1 -0
- package/dist/taro-components/{p-3aaf0fb7.system.entry.js → p-10d3c795.system.entry.js} +1 -1
- package/dist/taro-components/{p-4ff6ad99.system.entry.js → p-114f89d6.system.entry.js} +1 -1
- package/dist/taro-components/p-1182efdd.system.entry.js +1 -0
- package/dist/taro-components/{p-2713fc1a.entry.js → p-128f9eb0.entry.js} +1 -1
- package/dist/taro-components/p-16954dd6.entry.js +1 -0
- package/dist/taro-components/p-170ce205.system.entry.js +1 -0
- package/dist/taro-components/{p-aa1ea71b.system.entry.js → p-1b42ba7e.system.entry.js} +1 -1
- package/dist/taro-components/p-1ced140d.entry.js +1 -0
- package/dist/taro-components/p-1d25f4e3.entry.js +1 -0
- package/dist/taro-components/{p-b4e3f72e.system.entry.js → p-1e3d7899.system.entry.js} +1 -1
- package/dist/taro-components/{p-25fffbbe.system.entry.js → p-1ee83d63.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d7626a9.system.entry.js → p-2059cbc0.system.entry.js} +1 -1
- package/dist/taro-components/{p-32b41faa.system.entry.js → p-205a0692.system.entry.js} +1 -1
- package/dist/taro-components/{p-d86ce035.system.entry.js → p-25bbf4aa.system.entry.js} +1 -1
- package/dist/taro-components/{p-c968ea43.system.entry.js → p-26545e4e.system.entry.js} +1 -1
- package/dist/taro-components/{p-d8f78d99.system.entry.js → p-28bf8423.system.entry.js} +1 -1
- package/dist/taro-components/{p-72d7fae0.system.entry.js → p-290fd78b.system.entry.js} +1 -1
- package/dist/taro-components/p-2bbdbe9c.system.entry.js +1 -0
- package/dist/taro-components/{p-1c1d9be8.entry.js → p-2d6d4850.entry.js} +1 -1
- package/dist/taro-components/{p-0780df27.entry.js → p-2dea35fd.entry.js} +1 -1
- package/dist/taro-components/p-2f403f7f.entry.js +1 -0
- package/dist/taro-components/p-2f683899.entry.js +1 -0
- package/dist/taro-components/{p-139d64f1.entry.js → p-30623371.entry.js} +1 -1
- package/dist/taro-components/{p-fdccd9b3.system.entry.js → p-34933f34.system.entry.js} +1 -1
- package/dist/taro-components/{p-346162b4.system.entry.js → p-352b6b6b.system.entry.js} +1 -1
- package/dist/taro-components/{p-e7232d54.system.entry.js → p-35e96af8.system.entry.js} +1 -1
- package/dist/taro-components/{p-7de7d96c.entry.js → p-37593ce7.entry.js} +1 -1
- package/dist/taro-components/{p-175edd50.entry.js → p-387f300a.entry.js} +1 -1
- package/dist/taro-components/p-3afbae36.entry.js +1 -0
- package/dist/taro-components/p-3bd04d38.entry.js +1 -0
- package/dist/taro-components/{p-6e1f0e6d.system.entry.js → p-3ca9aa19.system.entry.js} +1 -1
- package/dist/taro-components/{p-810b9a86.system.entry.js → p-3d76b46e.system.entry.js} +1 -1
- package/dist/taro-components/p-3dadbe4c.system.entry.js +1 -0
- package/dist/taro-components/{p-1ac9622e.entry.js → p-3e9bf572.entry.js} +1 -1
- package/dist/taro-components/p-4408d796.entry.js +1 -0
- package/dist/taro-components/{p-222573ad.entry.js → p-445810cb.entry.js} +1 -1
- package/dist/taro-components/p-449f60fa.entry.js +1 -0
- package/dist/taro-components/p-46661961.entry.js +1 -0
- package/dist/taro-components/{p-c7679d57.entry.js → p-48e5ddaa.entry.js} +1 -1
- package/dist/taro-components/{p-20e38f24.entry.js → p-4928ee37.entry.js} +1 -1
- package/dist/taro-components/p-4cbd26dd.entry.js +1 -0
- package/dist/taro-components/p-4e4ac1fe.system.entry.js +1 -0
- package/dist/taro-components/{p-8c93f3e0.entry.js → p-4e4cc6ab.entry.js} +1 -1
- package/dist/taro-components/{p-6d1e33e1.system.entry.js → p-50e1ba06.system.entry.js} +1 -1
- package/dist/taro-components/{p-a7ecb97a.entry.js → p-510a69b3.entry.js} +1 -1
- package/dist/taro-components/p-5307637c.system.entry.js +1 -0
- package/dist/taro-components/{p-1d3ed211.system.entry.js → p-54941baf.system.entry.js} +1 -1
- package/dist/taro-components/{p-fbc2b53e.entry.js → p-55be4215.entry.js} +1 -1
- package/dist/taro-components/{p-3708575b.system.entry.js → p-578f19ea.system.entry.js} +1 -1
- package/dist/taro-components/{p-abd51173.system.entry.js → p-581e844d.system.entry.js} +1 -1
- package/dist/taro-components/{p-7ad33036.system.entry.js → p-5a1bb2d3.system.entry.js} +1 -1
- package/dist/taro-components/p-5bb60b5e.entry.js +1 -0
- package/dist/taro-components/p-600d9210.entry.js +1 -0
- package/dist/taro-components/p-6066e633.entry.js +1 -0
- package/dist/taro-components/p-61cb688a.entry.js +1 -0
- package/dist/taro-components/{p-747bdbaa.system.entry.js → p-6229bb7d.system.entry.js} +1 -1
- package/dist/taro-components/p-64f5abce.entry.js +1 -0
- package/dist/taro-components/p-67ff5a50.system.entry.js +1 -0
- package/dist/taro-components/{p-b2ad9709.entry.js → p-69e747dc.entry.js} +1 -1
- package/dist/taro-components/{p-cdd48677.system.js → p-6bbb639a.system.js} +2 -2
- package/dist/taro-components/{p-e769cea4.system.entry.js → p-6cf765b7.system.entry.js} +1 -1
- package/dist/taro-components/{p-eab8a6b0.entry.js → p-6e9d509a.entry.js} +1 -1
- package/dist/taro-components/p-6f027b85.entry.js +1 -0
- package/dist/taro-components/{p-d81577b8.system.entry.js → p-72b954ce.system.entry.js} +1 -1
- package/dist/taro-components/p-74129eac.entry.js +1 -0
- package/dist/taro-components/{p-c2259653.system.entry.js → p-74b1be20.system.entry.js} +1 -1
- package/dist/taro-components/{p-46a9adcf.system.entry.js → p-758e3319.system.entry.js} +1 -1
- package/dist/taro-components/{p-9c566d7d.system.entry.js → p-75b927b4.system.entry.js} +1 -1
- package/dist/taro-components/{p-79b675c8.entry.js → p-764cd497.entry.js} +1 -1
- package/dist/taro-components/{p-028ad016.system.entry.js → p-7b6f6526.system.entry.js} +1 -1
- package/dist/taro-components/p-7bd1345f.entry.js +1 -0
- package/dist/taro-components/{p-1411cd2e.system.entry.js → p-7cecf08e.system.entry.js} +1 -1
- package/dist/taro-components/{p-58d410c6.system.entry.js → p-7f084a29.system.entry.js} +1 -1
- package/dist/taro-components/{p-1eb875d0.system.entry.js → p-80106cc2.system.entry.js} +1 -1
- package/dist/taro-components/p-80278124.entry.js +1 -0
- package/dist/taro-components/p-83699a53.entry.js +1 -0
- package/dist/taro-components/{p-b94dcfbe.entry.js → p-846aa5ec.entry.js} +1 -1
- package/dist/taro-components/p-861834ce.entry.js +1 -0
- package/dist/taro-components/{p-f232cf02.entry.js → p-870e0d9d.entry.js} +1 -1
- package/dist/taro-components/{p-70c81b7e.entry.js → p-87422c88.entry.js} +1 -1
- package/dist/taro-components/{p-bbbe728b.system.entry.js → p-88c5f0eb.system.entry.js} +1 -1
- package/dist/taro-components/{p-f43ba9ed.entry.js → p-8b70fd1d.entry.js} +1 -1
- package/dist/taro-components/p-8d437a7f.entry.js +1 -0
- package/dist/taro-components/{p-475f9ed3.system.entry.js → p-8df92f90.system.entry.js} +1 -1
- package/dist/taro-components/p-8e45a207.system.entry.js +1 -0
- package/dist/taro-components/p-92daad3f.system.entry.js +1 -0
- package/dist/taro-components/{p-443fe754.system.entry.js → p-940d41e9.system.entry.js} +1 -1
- package/dist/taro-components/p-95058ee1.entry.js +1 -0
- package/dist/taro-components/p-95e88e0f.entry.js +1 -0
- package/dist/taro-components/{p-9f5ebe09.system.entry.js → p-9623f19c.system.entry.js} +1 -1
- package/dist/taro-components/{p-6f45f110.entry.js → p-970623a1.entry.js} +1 -1
- package/dist/taro-components/p-9890bb7b.entry.js +1 -0
- package/dist/taro-components/{p-7e90dfef.js → p-98b1fc13.js} +2 -2
- package/dist/taro-components/{p-67dcb636.system.entry.js → p-9937cf08.system.entry.js} +1 -1
- package/dist/taro-components/{p-3967311b.system.entry.js → p-9a5bfa2a.system.entry.js} +1 -1
- package/dist/taro-components/{p-fff30a48.entry.js → p-9b4e5578.entry.js} +1 -1
- package/dist/taro-components/p-9e138188.entry.js +1 -0
- package/dist/taro-components/p-a17b1a7e.entry.js +1 -0
- package/dist/taro-components/p-a197cbae.system.entry.js +1 -0
- package/dist/taro-components/p-a2a70581.system.entry.js +1 -0
- package/dist/taro-components/{p-35160fd2.entry.js → p-a61e195b.entry.js} +1 -1
- package/dist/taro-components/p-a972aa1d.system.js +1 -0
- package/dist/taro-components/{p-deff0bb8.entry.js → p-ae128150.entry.js} +1 -1
- package/dist/taro-components/{p-039e15a4.system.entry.js → p-b04cdd9a.system.entry.js} +1 -1
- package/dist/taro-components/p-b317674b.entry.js +1 -0
- package/dist/taro-components/p-b6694eb3.system.entry.js +1 -0
- package/dist/taro-components/{p-edb9e04e.system.entry.js → p-b8858af9.system.entry.js} +1 -1
- package/dist/taro-components/p-b8e2465a.entry.js +1 -0
- package/dist/taro-components/{p-2339a4d3.entry.js → p-b9f19e77.entry.js} +1 -1
- package/dist/taro-components/{p-4cc2e06e.entry.js → p-ba195b39.entry.js} +1 -1
- package/dist/taro-components/{p-0b6e9013.system.entry.js → p-ba50342b.system.entry.js} +1 -1
- package/dist/taro-components/{p-f8970571.entry.js → p-bb712e32.entry.js} +1 -1
- package/dist/taro-components/p-bb87373d.entry.js +1 -0
- package/dist/taro-components/{p-8b604d50.entry.js → p-bba220a9.entry.js} +1 -1
- package/dist/taro-components/{p-6d7165eb.system.entry.js → p-bcf5d78a.system.entry.js} +1 -1
- package/dist/taro-components/p-bdd7b5a9.entry.js +1 -0
- package/dist/taro-components/p-bdee068b.system.entry.js +1 -0
- package/dist/taro-components/p-bf0d2c21.system.entry.js +1 -0
- package/dist/taro-components/{p-6c48d884.entry.js → p-c0f710ae.entry.js} +1 -1
- package/dist/taro-components/p-c11fcb25.system.entry.js +1 -0
- package/dist/taro-components/p-caba17c6.system.entry.js +1 -0
- package/dist/taro-components/{p-1f88349b.entry.js → p-cbc19d63.entry.js} +1 -1
- package/dist/taro-components/{p-7dee8f07.system.entry.js → p-d03136d7.system.entry.js} +1 -1
- package/dist/taro-components/p-d36f8c4f.entry.js +1 -0
- package/dist/taro-components/p-d60b66c2.entry.js +1 -0
- package/dist/taro-components/{p-178cb282.system.entry.js → p-d78ab2de.system.entry.js} +1 -1
- package/dist/taro-components/{p-cd34c92e.system.entry.js → p-dbb47d14.system.entry.js} +1 -1
- package/dist/taro-components/p-dc6db06e.system.entry.js +1 -0
- package/dist/taro-components/p-dc98486d.entry.js +1 -0
- package/dist/taro-components/p-dca5e9ee.entry.js +1 -0
- package/dist/taro-components/{p-e487b8b4.system.entry.js → p-de3e1cee.system.entry.js} +1 -1
- package/dist/taro-components/p-e09e8b51.system.entry.js +1 -0
- package/dist/taro-components/{p-1c95795d.entry.js → p-e1c2e636.entry.js} +1 -1
- package/dist/taro-components/{p-48c52124.entry.js → p-e25c2a22.entry.js} +1 -1
- package/dist/taro-components/{p-345cb56f.entry.js → p-e26c787b.entry.js} +1 -1
- package/dist/taro-components/p-e457a83a.system.entry.js +1 -0
- package/dist/taro-components/{p-aae38fe8.entry.js → p-e7d82e00.entry.js} +1 -1
- package/dist/taro-components/{p-f094089c.system.entry.js → p-ebf38559.system.entry.js} +1 -1
- package/dist/taro-components/p-eeb6aeb5.system.entry.js +1 -0
- package/dist/taro-components/p-ef0aff29.entry.js +1 -0
- package/dist/taro-components/{p-feddde29.system.entry.js → p-f554428f.system.entry.js} +1 -1
- package/dist/taro-components/p-fd1d75db.entry.js +1 -0
- package/dist/taro-components/{p-18ea7e10.system.entry.js → p-ff7dfc5c.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.css +1 -5
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/switch/switch.d.ts +3 -3
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/lib/react/react-component-lib/createComponent.js +3 -2
- package/lib/react/react-component-lib/createComponent.js.map +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
- package/lib/react/react-component-lib/utils/attachProps.d.ts +16 -7
- package/lib/react/react-component-lib/utils/attachProps.js +85 -9
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/react/react-component-lib/utils/index.js +1 -1
- package/lib/vue2/components-loader.js +1 -1
- package/package.json +12 -10
- package/types/Audio.d.ts +11 -11
- package/types/Button.d.ts +9 -9
- package/types/Canvas.d.ts +11 -11
- package/types/Checkbox.d.ts +8 -8
- package/types/CheckboxGroup.d.ts +3 -3
- package/types/CoverImage.d.ts +4 -4
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Form.d.ts +4 -4
- package/types/Icon.d.ts +4 -4
- package/types/Image.d.ts +8 -8
- package/types/Input.d.ts +21 -17
- package/types/Label.d.ts +2 -2
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +18 -18
- package/types/NativeSlot.d.ts +1 -1
- package/types/Navigator.d.ts +8 -8
- package/types/Picker.d.ts +44 -28
- package/types/PickerView.d.ts +5 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +13 -13
- package/types/Radio.d.ts +7 -7
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +5 -5
- package/types/ScrollView.d.ts +13 -13
- package/types/Slider.d.ts +18 -14
- package/types/Slot.d.ts +1 -1
- package/types/Swiper.d.ts +17 -17
- package/types/SwiperItem.d.ts +2 -2
- package/types/Switch.d.ts +11 -7
- package/types/Text.d.ts +4 -4
- package/types/Textarea.d.ts +17 -13
- package/types/Video.d.ts +30 -30
- package/types/View.d.ts +4 -4
- package/types/WebView.d.ts +4 -4
- package/types/common.d.ts +6 -1
- package/dist/cjs/hls-dfcad743.js +0 -25797
- package/dist/cjs/intersection-observer-dc4cfcef.js +0 -728
- package/dist/collection/components/input/index.css +0 -12
- package/dist/components/hls.js +0 -25795
- package/dist/components/intersection-observer.js +0 -726
- package/dist/esm/hls-268fc25b.js +0 -25795
- package/dist/esm/intersection-observer-8e4c7135.js +0 -726
- package/dist/esm-es5/hls-268fc25b.js +0 -1
- package/dist/esm-es5/index-6bb77c5f.js +0 -2
- package/dist/esm-es5/intersection-observer-8e4c7135.js +0 -1
- package/dist/taro-components/p-00113225.system.entry.js +0 -1
- package/dist/taro-components/p-0030841b.system.js +0 -1
- package/dist/taro-components/p-0910d414.entry.js +0 -1
- package/dist/taro-components/p-0e37fb54.entry.js +0 -1
- package/dist/taro-components/p-11c962b9.entry.js +0 -1
- package/dist/taro-components/p-1f36cd5f.entry.js +0 -1
- package/dist/taro-components/p-2145dccb.entry.js +0 -1
- package/dist/taro-components/p-215881b4.entry.js +0 -1
- package/dist/taro-components/p-277892fe.system.entry.js +0 -1
- package/dist/taro-components/p-27c756c5.system.entry.js +0 -1
- package/dist/taro-components/p-2aff4cdb.entry.js +0 -1
- package/dist/taro-components/p-2e2487bf.system.entry.js +0 -1
- package/dist/taro-components/p-332dc867.entry.js +0 -1
- package/dist/taro-components/p-333305e3.entry.js +0 -1
- package/dist/taro-components/p-37edf3f6.entry.js +0 -1
- package/dist/taro-components/p-3ad92100.system.entry.js +0 -1
- package/dist/taro-components/p-3b1d2d37.system.js +0 -1
- package/dist/taro-components/p-3cd71da3.system.entry.js +0 -1
- package/dist/taro-components/p-401743f9.system.entry.js +0 -1
- package/dist/taro-components/p-4aeb3859.system.entry.js +0 -1
- package/dist/taro-components/p-4d609ebb.system.entry.js +0 -1
- package/dist/taro-components/p-4d89b685.entry.js +0 -1
- package/dist/taro-components/p-527c55ca.entry.js +0 -1
- package/dist/taro-components/p-550c350a.entry.js +0 -1
- package/dist/taro-components/p-5b028f1b.js +0 -1
- package/dist/taro-components/p-619b9fe5.system.entry.js +0 -1
- package/dist/taro-components/p-6df6fd58.entry.js +0 -1
- package/dist/taro-components/p-6f5e162d.entry.js +0 -1
- package/dist/taro-components/p-70bd0541.entry.js +0 -1
- package/dist/taro-components/p-728b6f8f.system.entry.js +0 -1
- package/dist/taro-components/p-72f327e1.js +0 -1
- package/dist/taro-components/p-7b39971e.system.entry.js +0 -1
- package/dist/taro-components/p-7ba17143.entry.js +0 -1
- package/dist/taro-components/p-7be1f603.entry.js +0 -1
- package/dist/taro-components/p-817b319c.system.entry.js +0 -1
- package/dist/taro-components/p-907d2fe0.entry.js +0 -1
- package/dist/taro-components/p-93a3d6ee.entry.js +0 -1
- package/dist/taro-components/p-9c91aee3.system.entry.js +0 -1
- package/dist/taro-components/p-9e788d33.entry.js +0 -1
- package/dist/taro-components/p-9feeee0f.system.entry.js +0 -1
- package/dist/taro-components/p-a3dad439.entry.js +0 -1
- package/dist/taro-components/p-a4ea7a51.system.entry.js +0 -1
- package/dist/taro-components/p-a54735cb.entry.js +0 -1
- package/dist/taro-components/p-a5adbf15.system.entry.js +0 -1
- package/dist/taro-components/p-a744e7aa.entry.js +0 -1
- package/dist/taro-components/p-b1977132.entry.js +0 -1
- package/dist/taro-components/p-b3780eab.system.entry.js +0 -1
- package/dist/taro-components/p-b69bcd43.entry.js +0 -1
- package/dist/taro-components/p-b9c2a210.system.entry.js +0 -1
- package/dist/taro-components/p-bb454378.entry.js +0 -1
- package/dist/taro-components/p-bd6574cf.entry.js +0 -1
- package/dist/taro-components/p-bfea77f9.entry.js +0 -1
- package/dist/taro-components/p-c0a59843.entry.js +0 -1
- package/dist/taro-components/p-cb21f4f1.entry.js +0 -1
- package/dist/taro-components/p-cd0f3444.entry.js +0 -1
- package/dist/taro-components/p-d42968e9.system.entry.js +0 -1
- package/dist/taro-components/p-d55f870d.entry.js +0 -1
- package/dist/taro-components/p-daabfc6e.entry.js +0 -1
- package/dist/taro-components/p-dda03c84.entry.js +0 -1
- package/dist/taro-components/p-e6e3c1d7.entry.js +0 -1
- package/dist/taro-components/p-e82e16a1.entry.js +0 -1
- package/dist/taro-components/p-ee4da4db.system.js +0 -1
- package/dist/taro-components/p-f003caad.entry.js +0 -1
- package/dist/taro-components/p-f111303f.entry.js +0 -1
- package/dist/taro-components/p-f75d094e.system.entry.js +0 -1
- package/dist/taro-components/p-fbec1f96.entry.js +0 -1
- package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -373
- package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/cjs/{index-b8c435ee.js → index-f6805218.js} +0 -0
- /package/dist/esm/{index-a74b6944.js → index-c3e4004b.js} +0 -0
- /package/dist/esm-es5/{index-a74b6944.js → index-c3e4004b.js} +0 -0
- /package/dist/taro-components/{p-34de4101.system.js → p-2ec68968.system.js} +0 -0
- /package/dist/taro-components/{p-19f218e6.js → p-de951a46.js} +0 -0
- /package/lib/vue2/node_modules/.pnpm/{vue-fragment@1.6.0_vue@2.7.15 → registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14}/node_modules/vue-fragment/dist/vue-fragment.esm.js +0 -0
- /package/lib/vue2/node_modules/.pnpm/{vue-fragment@1.6.0_vue@2.7.15 → registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14}/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +0 -0
package/types/ScrollView.d.ts
CHANGED
|
@@ -3,40 +3,40 @@ import { BaseEventOrigFunction, CommonEventFunction, StandardProps } from './com
|
|
|
3
3
|
interface ScrollViewProps extends StandardProps {
|
|
4
4
|
/** 允许横向滚动
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
7
7
|
* @rn 二选一
|
|
8
8
|
*/
|
|
9
9
|
scrollX?: boolean
|
|
10
10
|
/** 允许纵向滚动
|
|
11
11
|
* @default false
|
|
12
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
12
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
13
13
|
* @rn 二选一
|
|
14
14
|
*/
|
|
15
15
|
scrollY?: boolean
|
|
16
16
|
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
|
|
17
17
|
* @default 50
|
|
18
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
18
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
19
19
|
*/
|
|
20
20
|
upperThreshold?: number
|
|
21
21
|
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件
|
|
22
22
|
* @default 50
|
|
23
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
23
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
24
24
|
*/
|
|
25
25
|
lowerThreshold?: number
|
|
26
26
|
/** 设置竖向滚动条位置
|
|
27
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
27
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
28
28
|
*/
|
|
29
29
|
scrollTop?: number
|
|
30
30
|
/** 设置横向滚动条位置
|
|
31
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
31
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
32
32
|
*/
|
|
33
33
|
scrollLeft?: number
|
|
34
34
|
/** 值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
35
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
36
36
|
*/
|
|
37
37
|
scrollIntoView?: string
|
|
38
38
|
/** 在设置滚动条位置时使用动画过渡
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
42
|
scrollWithAnimation?: boolean
|
|
@@ -172,7 +172,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
172
172
|
* center - 目标节点显示在视口中间
|
|
173
173
|
* end - 目标节点显示在视口结束处
|
|
174
174
|
* nearest - 目标节点在就近的视口边缘显示,若节点已在视口内则不触发滚动
|
|
175
|
-
* @supported weapp, h5
|
|
175
|
+
* @supported weapp, h5, harmony_hybrid
|
|
176
176
|
* @default 'start'
|
|
177
177
|
*/
|
|
178
178
|
scrollIntoViewAlignment?: 'start' | 'center' | 'end' | 'nearest'
|
|
@@ -212,15 +212,15 @@ interface ScrollViewProps extends StandardProps {
|
|
|
212
212
|
*/
|
|
213
213
|
refresherTwoLevelPinned?: boolean
|
|
214
214
|
/** 滚动到顶部/左边,会触发 scrolltoupper 事件
|
|
215
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
215
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
216
216
|
*/
|
|
217
217
|
onScrollToUpper?: CommonEventFunction
|
|
218
218
|
/** 滚动到底部/右边,会触发 scrolltolower 事件
|
|
219
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
219
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
220
220
|
*/
|
|
221
221
|
onScrollToLower?: CommonEventFunction
|
|
222
222
|
/** 滚动时触发
|
|
223
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
223
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
224
224
|
*/
|
|
225
225
|
onScroll?: BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
226
226
|
/** 滚动开始事件
|
|
@@ -337,7 +337,7 @@ declare namespace ScrollViewProps {
|
|
|
337
337
|
* H5 中 ScrollView 组件是通过一个高度(或宽度)固定的容器内部滚动来实现的,因此务必正确的设置容器的高度。例如: 如果 ScrollView 的高度将 body 撑开,就会同时存在两个滚动条(body 下的滚动条,以及 ScrollView 的滚动条)。
|
|
338
338
|
* 微信小程序 中 ScrollView 组件如果设置 scrollX 横向滚动时,并且子元素为多个时(单个子元素时设置固定宽度则可以正常横向滚动),需要通过 WXSS 设置 `white-space: nowrap` 来保证元素不换行,并对 ScrollView 内部元素设置 `display: inline-block` 来使其能够横向滚动。
|
|
339
339
|
* @classification viewContainer
|
|
340
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
340
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
341
341
|
* @example_react
|
|
342
342
|
* ```tsx
|
|
343
343
|
* export default class PageView extends Component {
|
package/types/Slider.d.ts
CHANGED
|
@@ -3,29 +3,33 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
interface SliderProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 最小值
|
|
5
5
|
* @default 0
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
min?: number
|
|
9
9
|
/** 最大值
|
|
10
10
|
* @default 100
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
12
12
|
*/
|
|
13
13
|
max?: number
|
|
14
14
|
/** 步长,取值必须大于 0,并且可被(max - min)整除
|
|
15
15
|
* @default 1
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
17
17
|
*/
|
|
18
18
|
step?: number
|
|
19
19
|
/** 是否禁用
|
|
20
20
|
* @default false
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean
|
|
24
24
|
/** 当前取值
|
|
25
25
|
* @default 0
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
27
27
|
*/
|
|
28
28
|
value?: number
|
|
29
|
+
/** 设置 React 非受控状态下的初始取值
|
|
30
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
31
|
+
*/
|
|
32
|
+
defaultValue?: string
|
|
29
33
|
/** 背景条的颜色(请使用 backgroundColor)
|
|
30
34
|
* @default "#e9e9e9"
|
|
31
35
|
* @supported weapp, tt, qq, jd, harmony
|
|
@@ -38,27 +42,27 @@ interface SliderProps extends StandardProps, FormItemProps {
|
|
|
38
42
|
selectedColor?: string
|
|
39
43
|
/** 已选择的颜色
|
|
40
44
|
* @default "#1aad19"
|
|
41
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
42
|
-
*/
|
|
45
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
46
|
+
, harmony_hybrid */
|
|
43
47
|
activeColor?: string
|
|
44
48
|
/** 背景条的颜色
|
|
45
49
|
* @default "#e9e9e9"
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
50
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
47
51
|
*/
|
|
48
52
|
backgroundColor?: string
|
|
49
53
|
/** 滑块的大小,取值范围为 12 - 28
|
|
50
54
|
* @default 28
|
|
51
|
-
* @supported weapp, swan, tt, qq, jd, h5, harmony
|
|
55
|
+
* @supported weapp, swan, tt, qq, jd, h5, harmony, harmony_hybrid
|
|
52
56
|
*/
|
|
53
57
|
blockSize?: number
|
|
54
58
|
/** 滑块的颜色
|
|
55
59
|
* @default "#ffffff"
|
|
56
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony
|
|
60
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
57
61
|
*/
|
|
58
62
|
blockColor?: string
|
|
59
63
|
/** 是否显示当前 value
|
|
60
64
|
* @default false
|
|
61
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
65
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
62
66
|
*/
|
|
63
67
|
showValue?: boolean
|
|
64
68
|
/** 组件名字,用于表单提交获取数据。
|
|
@@ -84,11 +88,11 @@ interface SliderProps extends StandardProps, FormItemProps {
|
|
|
84
88
|
*/
|
|
85
89
|
ariaLabel?: string
|
|
86
90
|
/** 完成一次拖动后触发的事件
|
|
87
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
91
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
88
92
|
*/
|
|
89
93
|
onChange?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
90
94
|
/** 拖动过程中触发的事件
|
|
91
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
95
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
92
96
|
*/
|
|
93
97
|
onChanging?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
94
98
|
}
|
|
@@ -99,7 +103,7 @@ declare namespace SliderProps {
|
|
|
99
103
|
}
|
|
100
104
|
/** 滑动选择器
|
|
101
105
|
* @classification forms
|
|
102
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
106
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
103
107
|
* @example_react
|
|
104
108
|
* ```tsx
|
|
105
109
|
* export default class PageView extends Component {
|
package/types/Slot.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface SlotProps extends StandardProps {
|
|
|
17
17
|
|
|
18
18
|
/** slot 插槽
|
|
19
19
|
* @classification viewContainer
|
|
20
|
-
* @supported weapp, swan, alipay, tt, jd, qq, h5
|
|
20
|
+
* @supported weapp, swan, alipay, tt, jd, qq, h5, harmony_hybrid
|
|
21
21
|
* @example
|
|
22
22
|
* ```tsx
|
|
23
23
|
* import { Slot, View, Text } from '@tarojs/components'
|
package/types/Swiper.d.ts
CHANGED
|
@@ -3,27 +3,27 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
interface SwiperProps extends StandardProps {
|
|
4
4
|
/** 是否显示面板指示点
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
indicatorDots?: boolean
|
|
9
9
|
/** 指示点颜色
|
|
10
10
|
* @default "rgba(0, 0, 0, .3)"
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
12
12
|
*/
|
|
13
13
|
indicatorColor?: string
|
|
14
14
|
/** 当前选中的指示点颜色
|
|
15
15
|
* @default "#000000"
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
17
17
|
*/
|
|
18
18
|
indicatorActiveColor?: string
|
|
19
19
|
/** 是否自动切换
|
|
20
20
|
* @default false
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
22
22
|
*/
|
|
23
23
|
autoplay?: boolean
|
|
24
24
|
/** 当前所在滑块的 index
|
|
25
25
|
* @default 0
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
27
27
|
*/
|
|
28
28
|
current?: number
|
|
29
29
|
/** 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
@@ -36,32 +36,32 @@ interface SwiperProps extends StandardProps {
|
|
|
36
36
|
currentItemId?: string
|
|
37
37
|
/** 自动切换时间间隔
|
|
38
38
|
* @default 5000
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
40
40
|
*/
|
|
41
41
|
interval?: number
|
|
42
42
|
/** 滑动动画时长
|
|
43
43
|
* @default 500
|
|
44
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
|
|
44
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
|
|
45
45
|
*/
|
|
46
46
|
duration?: number
|
|
47
47
|
/** 是否采用衔接滑动
|
|
48
48
|
* @default false
|
|
49
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
49
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
50
50
|
*/
|
|
51
51
|
circular?: boolean
|
|
52
52
|
/** 滑动方向是否为纵向
|
|
53
53
|
* @default false
|
|
54
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
54
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
55
55
|
*/
|
|
56
56
|
vertical?: boolean
|
|
57
57
|
/** 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值
|
|
58
58
|
* @default "0px"
|
|
59
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
59
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
60
60
|
*/
|
|
61
61
|
previousMargin?: string
|
|
62
62
|
/** 后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值
|
|
63
63
|
* @default "0px"
|
|
64
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
64
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
65
65
|
*/
|
|
66
66
|
nextMargin?: string
|
|
67
67
|
/**
|
|
@@ -72,7 +72,7 @@ interface SwiperProps extends StandardProps {
|
|
|
72
72
|
snapToEdge?: boolean
|
|
73
73
|
/** 同时显示的滑块数量
|
|
74
74
|
* @default 1
|
|
75
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
75
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
76
76
|
*/
|
|
77
77
|
displayMultipleItems?: number
|
|
78
78
|
/** 是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息
|
|
@@ -92,12 +92,12 @@ interface SwiperProps extends StandardProps {
|
|
|
92
92
|
disableTouch?: boolean
|
|
93
93
|
/** 是否启用缩放
|
|
94
94
|
* @default false
|
|
95
|
-
* @supported h5
|
|
95
|
+
* @supported h5, harmony_hybrid
|
|
96
96
|
*/
|
|
97
97
|
zoom?: boolean
|
|
98
98
|
/** 是否开启全屏
|
|
99
99
|
* @default false
|
|
100
|
-
* @supported h5
|
|
100
|
+
* @supported h5, harmony_hybrid
|
|
101
101
|
*/
|
|
102
102
|
full?: boolean
|
|
103
103
|
/** swiper-item 可见时的 class。
|
|
@@ -154,7 +154,7 @@ interface SwiperProps extends StandardProps {
|
|
|
154
154
|
*/
|
|
155
155
|
cacheExtent?: number
|
|
156
156
|
/** current 改变时会触发 change 事件
|
|
157
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
157
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
158
158
|
*/
|
|
159
159
|
onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
|
|
160
160
|
/** swiper-item 的位置发生改变时会触发 transition 事件
|
|
@@ -162,7 +162,7 @@ interface SwiperProps extends StandardProps {
|
|
|
162
162
|
*/
|
|
163
163
|
onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
|
|
164
164
|
/** 动画结束时会触发 animationfinish 事件
|
|
165
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
165
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
166
166
|
*/
|
|
167
167
|
onAnimationFinish?: SwiperProps['onChange']
|
|
168
168
|
/** 动画结束时会触发 animationEnd 事件
|
|
@@ -217,7 +217,7 @@ declare namespace SwiperProps {
|
|
|
217
217
|
/** 滑块视图容器。其中只可放置 swiper-item 组件,否则会导致未定义的行为。
|
|
218
218
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
219
219
|
* @classification viewContainer
|
|
220
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
220
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
221
221
|
* @example_react
|
|
222
222
|
* ```tsx
|
|
223
223
|
* class App extends Component {
|
package/types/SwiperItem.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
interface SwiperItemProps extends StandardProps {
|
|
4
4
|
/** 该 swiper-item 的标识符
|
|
5
|
-
* @supported weapp, swan, tt, jd, h5, rn, harmony
|
|
5
|
+
* @supported weapp, swan, tt, jd, h5, rn, harmony, harmony_hybrid
|
|
6
6
|
*/
|
|
7
7
|
itemId?: string
|
|
8
8
|
/** 是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息
|
|
@@ -19,7 +19,7 @@ interface SwiperItemProps extends StandardProps {
|
|
|
19
19
|
/** 仅可放置在 swiper 组件中,宽高自动设置为100%
|
|
20
20
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
21
21
|
* @classification viewContainer
|
|
22
|
-
* @supported weapp, alipay, swan, tt, jd, h5, rn, harmony
|
|
22
|
+
* @supported weapp, alipay, swan, tt, jd, h5, rn, harmony, harmony_hybrid
|
|
23
23
|
* @example_react
|
|
24
24
|
* ```tsx
|
|
25
25
|
* class App extends Component {
|
package/types/Switch.d.ts
CHANGED
|
@@ -3,26 +3,30 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
interface SwitchProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 是否选中
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
checked?: boolean
|
|
9
|
+
/** 设置在 React 非受控状态下,当前是否选中
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
|
+
*/
|
|
12
|
+
defaultChecked?: boolean
|
|
9
13
|
/** 是否禁用
|
|
10
14
|
* @default false
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
15
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid
|
|
12
16
|
*/
|
|
13
17
|
disabled?: boolean
|
|
14
18
|
/** 样式,有效值:switch, checkbox
|
|
15
19
|
* @default "switch"
|
|
16
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony
|
|
20
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
17
21
|
*/
|
|
18
22
|
type?: 'switch' | 'checkbox'
|
|
19
23
|
/** switch 的颜色,同 css 的 color
|
|
20
24
|
* @default "#04BE02"
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
25
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
22
26
|
*/
|
|
23
27
|
color?: string
|
|
24
28
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
25
|
-
* @supported h5
|
|
29
|
+
* @supported h5, harmony_hybrid
|
|
26
30
|
*/
|
|
27
31
|
nativeProps?: Record<string, unknown>
|
|
28
32
|
/** 组件名字,用于表单提交获取数据。
|
|
@@ -39,7 +43,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
39
43
|
*/
|
|
40
44
|
ariaLabel?: string
|
|
41
45
|
/** checked 改变时触发 change 事件
|
|
42
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
43
47
|
*/
|
|
44
48
|
onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
|
|
45
49
|
}
|
|
@@ -84,7 +88,7 @@ declare namespace SwitchProps {
|
|
|
84
88
|
* </view>
|
|
85
89
|
* </template>
|
|
86
90
|
* ```
|
|
87
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
91
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
88
92
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
89
93
|
*/
|
|
90
94
|
declare const Switch: ComponentType<SwitchProps>
|
package/types/Text.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ import { StandardProps } from './common'
|
|
|
3
3
|
interface TextProps extends StandardProps {
|
|
4
4
|
/** 文本是否可选
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
selectable?: boolean
|
|
9
9
|
/** 文本是否可选,该属性会使文本节点显示为 inline-block
|
|
10
10
|
* @default false
|
|
11
|
-
* @supported weapp, h5
|
|
11
|
+
* @supported weapp, h5, harmony_hybrid
|
|
12
12
|
*/
|
|
13
13
|
userSelect?: boolean
|
|
14
14
|
/** 显示连续空格
|
|
15
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
15
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
16
16
|
*/
|
|
17
17
|
space?: keyof TextProps.TSpace
|
|
18
18
|
/** 是否解码
|
|
@@ -43,7 +43,7 @@ declare namespace TextProps {
|
|
|
43
43
|
}
|
|
44
44
|
/** 文本
|
|
45
45
|
* @classification base
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
47
47
|
* @example_react
|
|
48
48
|
* ```tsx
|
|
49
49
|
* export default class PageView extends Component {
|
package/types/Textarea.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface TextareaProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 输入框的内容
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
6
6
|
*/
|
|
7
7
|
value?: string
|
|
8
|
+
/** 设置 React 非受控输入框的初始内容
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
10
|
+
*/
|
|
11
|
+
defaultValue?: string
|
|
8
12
|
/** 输入框为空时占位符
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
13
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
10
14
|
*/
|
|
11
15
|
placeholder?: string
|
|
12
16
|
/** 指定 placeholder 的样式
|
|
@@ -20,27 +24,27 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
20
24
|
placeholderClass?: string
|
|
21
25
|
/** 是否禁用
|
|
22
26
|
* @default false
|
|
23
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
27
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
24
28
|
*/
|
|
25
29
|
disabled?: boolean
|
|
26
30
|
/** 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
27
31
|
* @default 140
|
|
28
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
32
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
29
33
|
*/
|
|
30
34
|
maxlength?: number
|
|
31
35
|
/** 自动聚焦,拉起键盘
|
|
32
36
|
* @default false
|
|
33
|
-
* @supported weapp, swan, qq, jd, h5
|
|
37
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
34
38
|
*/
|
|
35
39
|
autoFocus?: boolean
|
|
36
40
|
/** 获取焦点
|
|
37
41
|
* @default false
|
|
38
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
42
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
39
43
|
*/
|
|
40
44
|
focus?: boolean
|
|
41
45
|
/** 是否自动增高,设置 autoHeight 时,style.height不生效
|
|
42
46
|
* @default false
|
|
43
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
44
48
|
*/
|
|
45
49
|
autoHeight?: boolean
|
|
46
50
|
/** 如果 Textarea 是在一个 `position:fixed` 的区域,需要显示指定属性 fixed 为 true
|
|
@@ -89,7 +93,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
89
93
|
*/
|
|
90
94
|
disableDefaultPadding?: boolean
|
|
91
95
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
92
|
-
* @supported h5
|
|
96
|
+
* @supported h5, harmony_hybrid
|
|
93
97
|
*/
|
|
94
98
|
nativeProps?: Record<string, unknown>
|
|
95
99
|
/** 设置键盘右下角按钮的文字
|
|
@@ -124,11 +128,11 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
124
128
|
*/
|
|
125
129
|
adjustKeyboardTo?: boolean
|
|
126
130
|
/** 输入框聚焦时触发
|
|
127
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
131
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
128
132
|
*/
|
|
129
133
|
onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
|
|
130
134
|
/** 输入框失去焦点时触发
|
|
131
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
135
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
132
136
|
*/
|
|
133
137
|
onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
|
|
134
138
|
/** 输入框行数变化时调用
|
|
@@ -138,11 +142,11 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
138
142
|
/** 当键盘输入时,触发 input 事件
|
|
139
143
|
*
|
|
140
144
|
* **onInput 处理函数的返回值并不会反映到 textarea 上**
|
|
141
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
145
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
142
146
|
*/
|
|
143
147
|
onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
|
|
144
148
|
/** 点击完成时, 触发 confirm 事件
|
|
145
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
149
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
146
150
|
*/
|
|
147
151
|
onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
|
|
148
152
|
/** 键盘高度发生变化的时候触发此事件
|
|
@@ -189,7 +193,7 @@ declare namespace TextareaProps {
|
|
|
189
193
|
}
|
|
190
194
|
/** 多行输入框。该组件是原生组件,使用时请注意相关限制
|
|
191
195
|
* @classification forms
|
|
192
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
196
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
193
197
|
* @example_react
|
|
194
198
|
* ```tsx
|
|
195
199
|
* export default class PageView extends Component {
|