@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -33,13 +33,11 @@
|
|
|
33
33
|
"@stencil/core": "^2.22.2",
|
|
34
34
|
"classnames": "^2.2.5",
|
|
35
35
|
"hls.js": "^1.1.5",
|
|
36
|
-
"intersection-observer": "^0.7.0",
|
|
37
36
|
"resolve-pathname": "^3.0.0",
|
|
37
|
+
"tslib": "^2.6.2",
|
|
38
38
|
"swiper": "6.8.0",
|
|
39
|
-
"
|
|
40
|
-
"@tarojs/
|
|
41
|
-
"@tarojs/router": "4.0.0-beta.1",
|
|
42
|
-
"@tarojs/taro": "4.0.0-beta.1"
|
|
39
|
+
"@tarojs/components-advanced": "4.0.0-beta.3",
|
|
40
|
+
"@tarojs/taro": "4.0.0-beta.3"
|
|
43
41
|
},
|
|
44
42
|
"devDependencies": {
|
|
45
43
|
"@babel/generator": "^7.20.0",
|
|
@@ -47,7 +45,6 @@
|
|
|
47
45
|
"@babel/traverse": "^7.20.0",
|
|
48
46
|
"@babel/types": "^7.20.0",
|
|
49
47
|
"@stencil/react-output-target": "0.4.0",
|
|
50
|
-
"@stencil/sass": "^2.0.0",
|
|
51
48
|
"@stencil/vue-output-target": "0.7.0",
|
|
52
49
|
"@types/jest": "^27.4.1",
|
|
53
50
|
"@types/node": "^14.14.31",
|
|
@@ -55,13 +52,18 @@
|
|
|
55
52
|
"csstype": "^3.1.1",
|
|
56
53
|
"esbuild": "~0.19.5",
|
|
57
54
|
"jquery": "^3.4.1",
|
|
55
|
+
"lightningcss": "^1.22.1",
|
|
58
56
|
"lodash": "^4.17.21",
|
|
59
57
|
"miniapp-types": "1.6.0",
|
|
60
58
|
"puppeteer": "^19.2.0",
|
|
59
|
+
"rollup": "^3.8.1",
|
|
60
|
+
"rollup-plugin-node-externals": "^5.0.0",
|
|
61
|
+
"sass": "^1.58.3",
|
|
61
62
|
"stencil-vue2-output-target": "0.0.4",
|
|
62
63
|
"ts-node": "^10.9.1",
|
|
63
64
|
"tsconfig-paths": "^3.14.1",
|
|
64
|
-
"typescript": "^4.7.4"
|
|
65
|
+
"typescript": "^4.7.4",
|
|
66
|
+
"mkdirp": "^1.0.4"
|
|
65
67
|
},
|
|
66
68
|
"peerDependenciesMeta": {
|
|
67
69
|
"@types/react": {
|
|
@@ -81,10 +83,10 @@
|
|
|
81
83
|
"dev:library-vue2": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue2 run dev",
|
|
82
84
|
"dev:library-vue3": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue3 run dev",
|
|
83
85
|
"generate:lib": "mkdirp lib",
|
|
84
|
-
"generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --bundle --platform=node --outfile=stencil.config.js",
|
|
86
|
+
"generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --external:lightningcss --bundle --platform=node --outfile=stencil.config.js",
|
|
85
87
|
"sync:types": "pnpm run tsx --files scripts/json-schema-to-types.ts",
|
|
86
88
|
"test": "cross-env NODE_ENV=test stencil test --spec --e2e",
|
|
87
|
-
"test:ci": "pnpm test -- --ci --no-build",
|
|
89
|
+
"test:ci": "pnpm test -- --ci -i --coverage --silent --no-build",
|
|
88
90
|
"test:coverage": "pnpm test -- --ci --screenshot --coverage",
|
|
89
91
|
"test:watch": "pnpm test -- --screenshot --watch",
|
|
90
92
|
"tsx": "ts-node --skipIgnore"
|
package/types/Audio.d.ts
CHANGED
|
@@ -6,22 +6,22 @@ interface AudioProps extends StandardProps {
|
|
|
6
6
|
*/
|
|
7
7
|
id?: string
|
|
8
8
|
/** 要播放音频的资源地址
|
|
9
|
-
* @supported weapp, swan, qq, h5
|
|
9
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
10
10
|
*/
|
|
11
11
|
src?: string
|
|
12
12
|
/** 是否循环播放
|
|
13
13
|
* @default false
|
|
14
|
-
* @supported weapp, swan, qq, h5
|
|
14
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
15
15
|
*/
|
|
16
16
|
loop?: boolean
|
|
17
17
|
/** 是否静音播放
|
|
18
18
|
* @default false
|
|
19
|
-
* @supported h5
|
|
19
|
+
* @supported h5, harmony_hybrid
|
|
20
20
|
*/
|
|
21
21
|
muted?: boolean
|
|
22
22
|
/** 是否显示默认控件
|
|
23
23
|
* @default false
|
|
24
|
-
* @supported weapp, swan, qq, h5
|
|
24
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
25
25
|
*/
|
|
26
26
|
controls?: boolean
|
|
27
27
|
/** 默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效
|
|
@@ -39,27 +39,27 @@ interface AudioProps extends StandardProps {
|
|
|
39
39
|
*/
|
|
40
40
|
author?: string
|
|
41
41
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
42
|
-
* @supported h5
|
|
42
|
+
* @supported h5, harmony_hybrid
|
|
43
43
|
*/
|
|
44
44
|
nativeProps?: Record<string, unknown>
|
|
45
45
|
/** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
|
|
46
|
-
* @supported weapp, swan, qq, h5
|
|
46
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
47
47
|
*/
|
|
48
48
|
onError?: CommonEventFunction<AudioProps.onErrorEventDetail>
|
|
49
49
|
/** 当开始/继续播放时触发play事件
|
|
50
|
-
* @supported weapp, swan, qq, h5
|
|
50
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
51
51
|
*/
|
|
52
52
|
onPlay?: CommonEventFunction
|
|
53
53
|
/** 当暂停播放时触发 pause 事件
|
|
54
|
-
* @supported weapp, swan, qq, h5
|
|
54
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
55
55
|
*/
|
|
56
56
|
onPause?: CommonEventFunction
|
|
57
57
|
/** 当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}
|
|
58
|
-
* @supported weapp, swan, qq, h5
|
|
58
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
59
59
|
*/
|
|
60
60
|
onTimeUpdate?: CommonEventFunction<AudioProps.onTimeUpdateEventDetail>
|
|
61
61
|
/** 当播放到末尾时触发 ended 事件
|
|
62
|
-
* @supported weapp, swan, qq, h5
|
|
62
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
63
63
|
*/
|
|
64
64
|
onEnded?: CommonEventFunction
|
|
65
65
|
}
|
|
@@ -89,7 +89,7 @@ declare namespace AudioProps {
|
|
|
89
89
|
/** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
|
|
90
90
|
* @classification media
|
|
91
91
|
* @deprecated
|
|
92
|
-
* @supported weapp, swan, qq, h5
|
|
92
|
+
* @supported weapp, swan, qq, h5, harmony_hybrid
|
|
93
93
|
* @example_react
|
|
94
94
|
* ```tsx
|
|
95
95
|
* export default class PageView extends Component {
|
package/types/Button.d.ts
CHANGED
|
@@ -3,27 +3,27 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native'
|
|
4
4
|
interface ButtonProps extends StandardProps {
|
|
5
5
|
/** 按钮的大小
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
7
7
|
* @default default
|
|
8
8
|
*/
|
|
9
9
|
size?: keyof ButtonProps.Size
|
|
10
10
|
/** 按钮的样式类型
|
|
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
|
* @default default
|
|
13
13
|
*/
|
|
14
14
|
type?: keyof ButtonProps.Type
|
|
15
15
|
/** 按钮是否镂空,背景色透明
|
|
16
|
-
* @supported weapp, alipay, swan, qq, jd, h5, rn, harmony
|
|
16
|
+
* @supported weapp, alipay, swan, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
19
|
plain?: boolean
|
|
20
20
|
/** 是否禁用
|
|
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
|
* @default false
|
|
23
23
|
*/
|
|
24
24
|
disabled?: boolean
|
|
25
25
|
/** 名称前是否带 loading 图标
|
|
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
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
loading?: boolean
|
|
@@ -37,7 +37,7 @@ interface ButtonProps extends StandardProps {
|
|
|
37
37
|
openType?: ButtonProps.OpenType
|
|
38
38
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
39
39
|
* @default button-hover
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
41
41
|
* @rn 支持 hoverStyle 属性,但框架未支持 hoverClass
|
|
42
42
|
*/
|
|
43
43
|
hoverClass?: string
|
|
@@ -53,12 +53,12 @@ interface ButtonProps extends StandardProps {
|
|
|
53
53
|
hoverStopPropagation?: boolean
|
|
54
54
|
/** 按住后多久出现点击态,单位毫秒
|
|
55
55
|
* @default 20
|
|
56
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
56
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
57
57
|
*/
|
|
58
58
|
hoverStartTime?: number
|
|
59
59
|
/** 手指松开后点击态保留时间,单位毫秒
|
|
60
60
|
* @default 70
|
|
61
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
61
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
62
62
|
*/
|
|
63
63
|
hoverStayTime?: number
|
|
64
64
|
/** 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。
|
|
@@ -527,7 +527,7 @@ declare namespace ButtonProps {
|
|
|
527
527
|
}
|
|
528
528
|
/** 按钮
|
|
529
529
|
* @classification forms
|
|
530
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
530
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
531
531
|
* @example_react
|
|
532
532
|
* ```tsx
|
|
533
533
|
* export default class PageButton extends Component {
|
package/types/Canvas.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
|
|
|
6
6
|
*/
|
|
7
7
|
type?: string
|
|
8
8
|
/** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性
|
|
9
|
-
* @supported weapp, swan, tt, qq, jd, h5
|
|
9
|
+
* @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
|
|
10
10
|
*/
|
|
11
11
|
canvasId?: string
|
|
12
12
|
/** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
|
|
@@ -16,39 +16,39 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
|
|
|
16
16
|
disableScroll?: boolean
|
|
17
17
|
/** 组件唯一标识符。
|
|
18
18
|
* 注意:同一页面中的 id 不可重复。
|
|
19
|
-
* @supported alipay, h5
|
|
19
|
+
* @supported alipay, h5, harmony_hybrid
|
|
20
20
|
*/
|
|
21
21
|
id?: string
|
|
22
22
|
/**
|
|
23
|
-
* @supported alipay, h5
|
|
23
|
+
* @supported alipay, h5, harmony_hybrid
|
|
24
24
|
*/
|
|
25
25
|
width?: string
|
|
26
26
|
/**
|
|
27
|
-
* @supported alipay, h5
|
|
27
|
+
* @supported alipay, h5, harmony_hybrid
|
|
28
28
|
*/
|
|
29
29
|
height?: string
|
|
30
30
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
31
|
-
* @supported h5
|
|
31
|
+
* @supported h5, harmony_hybrid
|
|
32
32
|
*/
|
|
33
33
|
nativeProps?: Record<string, unknown>
|
|
34
34
|
/** 手指触摸动作开始
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
35
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
36
36
|
*/
|
|
37
37
|
onTouchStart?: CanvasTouchEventFunction
|
|
38
38
|
/** 手指触摸后移动
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
40
40
|
*/
|
|
41
41
|
onTouchMove?: CanvasTouchEventFunction
|
|
42
42
|
/** 手指触摸动作结束
|
|
43
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
43
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
44
44
|
*/
|
|
45
45
|
onTouchEnd?: CanvasTouchEventFunction
|
|
46
46
|
/** 手指触摸动作被打断,如来电提醒,弹窗
|
|
47
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
48
48
|
*/
|
|
49
49
|
onTouchCancel?: CanvasTouchEventFunction
|
|
50
50
|
/** 手指长按 500ms 之后触发,触发了长按事件后进行移动不会触发屏幕的滚动
|
|
51
|
-
* @supported weapp, alipay, swan, qq, jd, h5
|
|
51
|
+
* @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
|
|
52
52
|
*/
|
|
53
53
|
onLongTap?: CommonEventFunction
|
|
54
54
|
/** 当发生错误时触发 error 事件,detail = {errMsg: 'something wrong'}
|
|
@@ -73,7 +73,7 @@ declare namespace CanvasProps {
|
|
|
73
73
|
*
|
|
74
74
|
* `<Canvas />` 组件的 RN 版本尚未实现。
|
|
75
75
|
* @classification canvas
|
|
76
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
|
|
76
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
|
|
77
77
|
* @example_react
|
|
78
78
|
* ```tsx
|
|
79
79
|
* class App extends Components {
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -2,30 +2,30 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface CheckboxProps extends StandardProps {
|
|
4
4
|
/** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
|
|
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
8
|
/** 是否禁用
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
disabled?: boolean
|
|
13
13
|
/** 当前是否选中,可用来设置默认选中
|
|
14
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
14
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
checked?: boolean
|
|
18
18
|
/** checkbox的颜色,同 css 的 color
|
|
19
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
19
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
20
20
|
*/
|
|
21
21
|
color?: string
|
|
22
22
|
/**
|
|
23
23
|
* Checkbox 的名字
|
|
24
|
-
* @supported h5, harmony
|
|
24
|
+
* @supported h5, harmony, harmony_hybrid
|
|
25
25
|
*/
|
|
26
26
|
name?: string
|
|
27
27
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
28
|
-
* @supported h5
|
|
28
|
+
* @supported h5, harmony_hybrid
|
|
29
29
|
*/
|
|
30
30
|
nativeProps?: Record<string, unknown>
|
|
31
31
|
/** 无障碍访问,(属性)元素的额外描述
|
|
@@ -33,7 +33,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
33
33
|
*/
|
|
34
34
|
ariaLabel?: string
|
|
35
35
|
/** 选中项发生变化时触发 change 事件,小程序无此 API
|
|
36
|
-
* @supported alipay, h5, rn, harmony
|
|
36
|
+
* @supported alipay, h5, rn, harmony, harmony_hybrid
|
|
37
37
|
*/
|
|
38
38
|
onChange?: CommonEventFunction<{
|
|
39
39
|
value: string[]
|
|
@@ -41,7 +41,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
41
41
|
}
|
|
42
42
|
/** 多选项目
|
|
43
43
|
* @classification forms
|
|
44
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
44
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
45
45
|
* @example_react
|
|
46
46
|
* ```tsx
|
|
47
47
|
* export default class PageCheckbox extends Component {
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 表单组件中加上 name 来作为 key
|
|
5
|
-
* @supported alipay, tt, h5
|
|
5
|
+
* @supported alipay, tt, h5, harmony_hybrid
|
|
6
6
|
*/
|
|
7
7
|
name?: string
|
|
8
8
|
/** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
10
10
|
*/
|
|
11
11
|
onChange?: CommonEventFunction<{
|
|
12
12
|
value: string[]
|
|
@@ -14,7 +14,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
14
14
|
}
|
|
15
15
|
/** 多项选择器,内部由多个checkbox组成
|
|
16
16
|
* @classification forms
|
|
17
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
17
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
18
18
|
* @example
|
|
19
19
|
* ```tsx
|
|
20
20
|
* export default class PageCheckbox extends Component {
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface CoverImageProps extends StandardProps {
|
|
4
4
|
/** 图标路径,支持临时路径、网络地址、云文件ID。暂不支持base64格式。
|
|
5
|
-
* @supported weapp, alipay, swan, qq, jd, h5
|
|
5
|
+
* @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
|
|
6
6
|
*/
|
|
7
7
|
src: string
|
|
8
8
|
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
@@ -34,11 +34,11 @@ interface CoverImageProps extends StandardProps {
|
|
|
34
34
|
*/
|
|
35
35
|
ariaLabel?: string
|
|
36
36
|
/** 图片加载成功时触发
|
|
37
|
-
* @supported weapp, swan, qq, jd, h5
|
|
37
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
38
38
|
*/
|
|
39
39
|
onLoad?: CommonEventFunction
|
|
40
40
|
/** 图片加载失败时触发
|
|
41
|
-
* @supported weapp, swan, qq, jd, h5
|
|
41
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
42
42
|
*/
|
|
43
43
|
onError?: CommonEventFunction
|
|
44
44
|
/** 点击事件回调。
|
|
@@ -48,7 +48,7 @@ interface CoverImageProps extends StandardProps {
|
|
|
48
48
|
}
|
|
49
49
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
|
50
50
|
* @classification viewContainer
|
|
51
|
-
* @supported weapp, alipay, swan, qq, jd, h5
|
|
51
|
+
* @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
|
|
52
52
|
* @example_react
|
|
53
53
|
* ```tsx
|
|
54
54
|
* // js
|
package/types/CoverView.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ interface CoverViewProps extends ViewProps {
|
|
|
117
117
|
}
|
|
118
118
|
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
|
|
119
119
|
* @classification viewContainer
|
|
120
|
-
* @supported weapp, alipay, swan, qq, jd, h5
|
|
120
|
+
* @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
|
|
121
121
|
* @example_react
|
|
122
122
|
* ```tsx
|
|
123
123
|
* // js
|
package/types/CustomWrapper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface CustomWrapperProps extends StandardProps {
|
|
|
7
7
|
/** custom-wrapper 自定义组件包裹器
|
|
8
8
|
* 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少
|
|
9
9
|
* @classification viewContainer
|
|
10
|
-
* @supported weapp, swan, alipay, tt, jd, qq, h5
|
|
10
|
+
* @supported weapp, swan, alipay, tt, jd, qq, h5, harmony_hybrid
|
|
11
11
|
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* import { Component } from 'react'
|
package/types/Form.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
interface FormProps extends StandardProps {
|
|
4
4
|
/** 是否返回 `formId` 用于发送模板消息。
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, qq, jd, h5
|
|
6
|
+
* @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
reportSubmit?: boolean
|
|
9
9
|
/** 等待一段时间(毫秒数)以确认 `formId` 是否生效。
|
|
@@ -43,11 +43,11 @@ interface FormProps extends StandardProps {
|
|
|
43
43
|
*/
|
|
44
44
|
clueComponentId?: string
|
|
45
45
|
/** 携带 form 中的数据触发 submit 事件
|
|
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
|
*/
|
|
48
48
|
onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
|
|
49
49
|
/** 表单重置时会触发 reset 事件
|
|
50
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
50
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
51
51
|
*/
|
|
52
52
|
onReset?: CommonEventFunction
|
|
53
53
|
}
|
|
@@ -69,7 +69,7 @@ declare namespace FormProps {
|
|
|
69
69
|
*
|
|
70
70
|
* 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
|
|
71
71
|
* @classification forms
|
|
72
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
72
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
73
73
|
* @example_react
|
|
74
74
|
* ```tsx
|
|
75
75
|
* class App extends Component {
|
package/types/Icon.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
interface IconProps extends StandardProps {
|
|
4
4
|
/** icon 的类型
|
|
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
|
type: keyof IconProps.TIconType
|
|
8
8
|
/** icon 的大小,单位px
|
|
9
9
|
* @default 23
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
11
11
|
*/
|
|
12
12
|
size?: number
|
|
13
13
|
/** icon 的颜色,同 css 的 color
|
|
14
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
14
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
15
15
|
*/
|
|
16
16
|
color?: string
|
|
17
17
|
/** 无障碍访问,(属性)元素的额外描述
|
|
@@ -48,7 +48,7 @@ declare namespace IconProps {
|
|
|
48
48
|
}
|
|
49
49
|
/** 图标。组件属性的长度单位默认为 px
|
|
50
50
|
* @classification base
|
|
51
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
51
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
52
52
|
* @example_react
|
|
53
53
|
* ```tsx
|
|
54
54
|
* export default class PageView extends Component {
|
package/types/Image.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { ComponentType, ImgHTMLAttributes } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface ImageProps extends StandardProps {
|
|
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
|
src: string
|
|
8
8
|
/** 图片裁剪、缩放的模式
|
|
9
9
|
* @default "scaleToFill"
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
11
11
|
* @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
|
|
12
12
|
* @harmony 部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix
|
|
13
13
|
*/
|
|
@@ -24,7 +24,7 @@ interface ImageProps extends StandardProps {
|
|
|
24
24
|
svg?: boolean
|
|
25
25
|
/** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
|
|
26
26
|
* @default false
|
|
27
|
-
* @supported weapp, alipay, swan, tt, qq, h5
|
|
27
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
28
28
|
*/
|
|
29
29
|
lazyLoad?: boolean
|
|
30
30
|
/** 开启长按图片显示识别小程序码菜单
|
|
@@ -34,11 +34,11 @@ interface ImageProps extends StandardProps {
|
|
|
34
34
|
showMenuByLongpress?: boolean
|
|
35
35
|
/**
|
|
36
36
|
* 为 img 标签额外增加的属性
|
|
37
|
-
* @supported h5
|
|
37
|
+
* @supported h5, harmony_hybrid
|
|
38
38
|
*/
|
|
39
39
|
imgProps?: ImgHTMLAttributes<HTMLImageElement>
|
|
40
40
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
41
|
-
* @supported h5
|
|
41
|
+
* @supported h5, harmony_hybrid
|
|
42
42
|
*/
|
|
43
43
|
nativeProps?: Record<string, unknown>
|
|
44
44
|
/** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
|
|
@@ -67,11 +67,11 @@ interface ImageProps extends StandardProps {
|
|
|
67
67
|
*/
|
|
68
68
|
fadeIn?: boolean
|
|
69
69
|
/** 当错误发生时,发布到 AppService 的事件名,事件对象
|
|
70
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
70
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
71
71
|
*/
|
|
72
72
|
onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
|
|
73
73
|
/** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
|
|
74
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
74
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
75
75
|
*/
|
|
76
76
|
onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
|
|
77
77
|
/** 点击图片时触发。
|
|
@@ -130,7 +130,7 @@ declare namespace ImageProps {
|
|
|
130
130
|
*
|
|
131
131
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
132
132
|
* @classification media
|
|
133
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
133
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
134
134
|
* @example_react
|
|
135
135
|
* ```tsx
|
|
136
136
|
* export default class PageView extends Component {
|
package/types/Input.d.ts
CHANGED
|
@@ -2,21 +2,25 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface InputProps 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
|
/** input 的类型
|
|
9
13
|
* @default "text"
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
14
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
11
15
|
*/
|
|
12
16
|
type?: keyof InputProps.Type
|
|
13
17
|
/** 是否是密码类型
|
|
14
18
|
* @default false
|
|
15
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
19
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
16
20
|
*/
|
|
17
21
|
password?: boolean
|
|
18
22
|
/** 输入框为空时占位符
|
|
19
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
23
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
20
24
|
*/
|
|
21
25
|
placeholder?: string
|
|
22
26
|
/** 指定 placeholder 的样式
|
|
@@ -34,12 +38,12 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
34
38
|
placeholderTextColor?: string
|
|
35
39
|
/** 是否禁用
|
|
36
40
|
* @default false
|
|
37
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
41
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
38
42
|
*/
|
|
39
43
|
disabled?: boolean
|
|
40
44
|
/** 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
41
45
|
* @default 140
|
|
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
|
maxlength?: number
|
|
45
49
|
/** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
|
|
@@ -50,12 +54,12 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
50
54
|
/** (即将废弃,请直接使用 focus )自动聚焦,拉起键盘
|
|
51
55
|
* @default false
|
|
52
56
|
* @deprecated
|
|
53
|
-
* @supported weapp, qq, jd, h5
|
|
57
|
+
* @supported weapp, qq, jd, h5, harmony_hybrid
|
|
54
58
|
*/
|
|
55
59
|
autoFocus?: boolean
|
|
56
60
|
/** 获取焦点
|
|
57
61
|
* @default false
|
|
58
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
62
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
59
63
|
*/
|
|
60
64
|
focus?: boolean
|
|
61
65
|
/** 设置键盘右下角按钮的文字,仅在type='text'时生效
|
|
@@ -144,7 +148,7 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
144
148
|
*/
|
|
145
149
|
controlled?: boolean
|
|
146
150
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
147
|
-
* @supported h5
|
|
151
|
+
* @supported h5, harmony_hybrid
|
|
148
152
|
*/
|
|
149
153
|
nativeProps?: Record<string, unknown>
|
|
150
154
|
/** 组件名字,用于表单提交获取数据。
|
|
@@ -166,19 +170,19 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
166
170
|
*/
|
|
167
171
|
clueType?: number
|
|
168
172
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
169
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
173
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
170
174
|
*/
|
|
171
175
|
onInput?: CommonEventFunction<InputProps.inputEventDetail>
|
|
172
176
|
/** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
|
|
173
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
177
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
174
178
|
*/
|
|
175
179
|
onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
|
|
176
180
|
/** 输入框失去焦点时触发
|
|
177
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
181
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
178
182
|
*/
|
|
179
183
|
onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
180
184
|
/** 点击完成按钮时触发
|
|
181
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
185
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
182
186
|
*/
|
|
183
187
|
onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
184
188
|
/** 键盘高度发生变化的时候触发此事件
|
|
@@ -194,11 +198,11 @@ declare namespace InputProps {
|
|
|
194
198
|
/** Input 类型 */
|
|
195
199
|
interface Type {
|
|
196
200
|
/** 文本输入键盘
|
|
197
|
-
* @supported weapp, alipay, h5, rn
|
|
201
|
+
* @supported weapp, alipay, h5, rn, harmony_hybrid
|
|
198
202
|
*/
|
|
199
203
|
text
|
|
200
204
|
/** 数字输入键盘
|
|
201
|
-
* @supported weapp, alipay, h5, rn
|
|
205
|
+
* @supported weapp, alipay, h5, rn, harmony_hybrid
|
|
202
206
|
*/
|
|
203
207
|
number
|
|
204
208
|
/** 身份证输入键盘
|
|
@@ -206,7 +210,7 @@ declare namespace InputProps {
|
|
|
206
210
|
*/
|
|
207
211
|
idcard
|
|
208
212
|
/** 带小数点的数字键盘
|
|
209
|
-
* @supported weapp, alipay, h5, rn
|
|
213
|
+
* @supported weapp, alipay, h5, rn, harmony_hybrid
|
|
210
214
|
*/
|
|
211
215
|
digit
|
|
212
216
|
/** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
|
|
@@ -271,7 +275,7 @@ declare namespace InputProps {
|
|
|
271
275
|
}
|
|
272
276
|
/** 输入框。该组件是原生组件,使用时请注意相关限制
|
|
273
277
|
* @classification forms
|
|
274
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
278
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
275
279
|
* @example_react
|
|
276
280
|
* ```tsx
|
|
277
281
|
* class App extends Component {
|
package/types/Label.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
interface LabelProps extends StandardProps {
|
|
4
4
|
/** 绑定控件的 id
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
|
|
6
6
|
*/
|
|
7
7
|
for?: string
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@ interface LabelProps extends StandardProps {
|
|
|
10
10
|
*
|
|
11
11
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
12
12
|
* @classification forms
|
|
13
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
13
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
14
14
|
* @example_react
|
|
15
15
|
* ```tsx
|
|
16
16
|
* class App extends Components {
|