@tarojs/components 3.6.0-canary.1 → 3.6.0-canary.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-animation-video-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-animation-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-button-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-button-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-comment-list-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-contact-button-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-like-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-like-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-login-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-login-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-lottie-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-lottie-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-native-slot-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-slot-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-tab-item-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-tabs-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-tabs-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-view-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-view-core.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/animation-video/animation-video.js +12 -0
- package/dist/collection/components/animation-video/animation-video.js.map +1 -0
- package/dist/collection/components/animation-view/animation-view.js +12 -0
- package/dist/collection/components/animation-view/animation-view.js.map +1 -0
- package/dist/collection/components/ar-camera/ar-camera.js +12 -0
- package/dist/collection/components/ar-camera/ar-camera.js.map +1 -0
- package/dist/collection/components/aweme-data/aweme-data.js +12 -0
- package/dist/collection/components/aweme-data/aweme-data.js.map +1 -0
- package/dist/collection/components/button/button.js +11 -0
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/comment/comment-detail.js +12 -0
- package/dist/collection/components/comment/comment-detail.js.map +1 -0
- package/dist/collection/components/comment/comment-list.js +12 -0
- package/dist/collection/components/comment/comment-list.js.map +1 -0
- package/dist/collection/components/contact-button/contact-button.js +12 -0
- package/dist/collection/components/contact-button/contact-button.js.map +1 -0
- package/dist/collection/components/follow-swan/follow-swan.js +12 -0
- package/dist/collection/components/follow-swan/follow-swan.js.map +1 -0
- package/dist/collection/components/inline-payment-panel/inline-payment-panel.js +12 -0
- package/dist/collection/components/inline-payment-panel/inline-payment-panel.js.map +1 -0
- package/dist/collection/components/lifestyle/lifestyle.js +12 -0
- package/dist/collection/components/lifestyle/lifestyle.js.map +1 -0
- package/dist/collection/components/like/like.js +12 -0
- package/dist/collection/components/like/like.js.map +1 -0
- package/dist/collection/components/login/login.js +12 -0
- package/dist/collection/components/login/login.js.map +1 -0
- package/dist/collection/components/lottie/lottie.js +12 -0
- package/dist/collection/components/lottie/lottie.js.map +1 -0
- package/dist/collection/components/rtc-room/rtc-room-item.js +12 -0
- package/dist/collection/components/rtc-room/rtc-room-item.js.map +1 -0
- package/dist/collection/components/rtc-room/rtc-room.js +12 -0
- package/dist/collection/components/rtc-room/rtc-room.js.map +1 -0
- package/dist/collection/components/scroll-view/scroll-view.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js.map +1 -1
- package/dist/collection/components/slot/native-slot.js +12 -0
- package/dist/collection/components/slot/native-slot.js.map +1 -0
- package/dist/collection/components/slot/slot.js +4 -0
- package/dist/collection/components/slot/slot.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +20 -0
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/collection/components/tabs/tab-item.js +12 -0
- package/dist/collection/components/tabs/tab-item.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +12 -0
- package/dist/collection/components/tabs/tabs.js.map +1 -0
- package/dist/collection/components/view/view.js +6 -2
- package/dist/collection/components/view/view.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +19 -0
- package/dist/esm/taro-animation-video-core.entry.js.map +1 -0
- package/dist/esm/taro-animation-view-core.entry.js +19 -0
- package/dist/esm/taro-animation-view-core.entry.js.map +1 -0
- package/dist/esm/taro-ar-camera-core.entry.js +19 -0
- package/dist/esm/taro-ar-camera-core.entry.js.map +1 -0
- package/dist/esm/taro-aweme-data-core.entry.js +19 -0
- package/dist/esm/taro-aweme-data-core.entry.js.map +1 -0
- package/dist/esm/taro-button-core.entry.js +5 -0
- package/dist/esm/taro-button-core.entry.js.map +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +19 -0
- package/dist/esm/taro-comment-detail-core.entry.js.map +1 -0
- package/dist/esm/taro-comment-list-core.entry.js +19 -0
- package/dist/esm/taro-comment-list-core.entry.js.map +1 -0
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-contact-button-core.entry.js +19 -0
- package/dist/esm/taro-contact-button-core.entry.js.map +1 -0
- package/dist/esm/taro-follow-swan-core.entry.js +19 -0
- package/dist/esm/taro-follow-swan-core.entry.js.map +1 -0
- package/dist/esm/taro-inline-payment-panel-core.entry.js +19 -0
- package/dist/esm/taro-inline-payment-panel-core.entry.js.map +1 -0
- package/dist/esm/taro-lifestyle-core.entry.js +19 -0
- package/dist/esm/taro-lifestyle-core.entry.js.map +1 -0
- package/dist/esm/taro-like-core.entry.js +19 -0
- package/dist/esm/taro-like-core.entry.js.map +1 -0
- package/dist/esm/taro-login-core.entry.js +19 -0
- package/dist/esm/taro-login-core.entry.js.map +1 -0
- package/dist/esm/taro-lottie-core.entry.js +19 -0
- package/dist/esm/taro-lottie-core.entry.js.map +1 -0
- package/dist/esm/taro-native-slot-core.entry.js +19 -0
- package/dist/esm/taro-native-slot-core.entry.js.map +1 -0
- package/dist/esm/taro-rtc-room-core.entry.js +19 -0
- package/dist/esm/taro-rtc-room-core.entry.js.map +1 -0
- package/dist/esm/taro-rtc-room-item-core.entry.js +19 -0
- package/dist/esm/taro-rtc-room-item-core.entry.js.map +1 -0
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js.map +1 -1
- package/dist/esm/taro-slot-core.entry.js +5 -0
- package/dist/esm/taro-slot-core.entry.js.map +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +2 -0
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +19 -0
- package/dist/esm/taro-tab-item-core.entry.js.map +1 -0
- package/dist/esm/taro-tabbar.entry.js.map +1 -1
- package/dist/esm/taro-tabs-core.entry.js +19 -0
- package/dist/esm/taro-tabs-core.entry.js.map +1 -0
- package/dist/esm/taro-view-core.entry.js +6 -2
- package/dist/esm/taro-view-core.entry.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +2 -0
- package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-animation-view-core.entry.js +2 -0
- package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-ar-camera-core.entry.js +2 -0
- package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-aweme-data-core.entry.js +2 -0
- package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +2 -0
- package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-comment-list-core.entry.js +2 -0
- package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-components.js.map +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +2 -0
- package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-follow-swan-core.entry.js +2 -0
- package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +2 -0
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-lifestyle-core.entry.js +2 -0
- package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-like-core.entry.js +2 -0
- package/dist/esm-es5/taro-like-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-login-core.entry.js +2 -0
- package/dist/esm-es5/taro-login-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-lottie-core.entry.js +2 -0
- package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-native-slot-core.entry.js +2 -0
- package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-rtc-room-core.entry.js +2 -0
- package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +2 -0
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +2 -0
- package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +2 -0
- package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
- package/dist/react/component-lib/index.js +20 -10
- package/dist/react/component-lib/input.js +4 -10
- package/dist/react/component-lib/reactify-wc.js +21 -60
- package/dist/react/components.js +21 -4
- package/dist/react/helper.js +1 -6
- package/dist/react/react-component-lib/createComponent.js +99 -0
- package/dist/react/react-component-lib/createOverlayComponent.js +178 -0
- package/dist/react/react-component-lib/interfaces.js +0 -1
- package/dist/react/react-component-lib/utils/attachProps.js +10 -19
- package/dist/react/react-component-lib/utils/index.js +37 -0
- package/dist/taro-components/p-0be383a9.system.entry.js +2 -0
- package/dist/taro-components/p-0be383a9.system.entry.js.map +1 -0
- package/dist/taro-components/p-186ad7ff.entry.js +2 -0
- package/dist/taro-components/p-186ad7ff.entry.js.map +1 -0
- package/dist/taro-components/{p-e9abe3e2.entry.js → p-19afe402.entry.js} +2 -2
- package/dist/taro-components/p-19afe402.entry.js.map +1 -0
- package/dist/taro-components/p-1a47133c.system.entry.js +2 -0
- package/dist/taro-components/p-1a47133c.system.entry.js.map +1 -0
- package/dist/taro-components/p-1ad0aa95.system.entry.js +2 -0
- package/dist/taro-components/p-1ad0aa95.system.entry.js.map +1 -0
- package/dist/taro-components/p-1b1420c9.system.entry.js +2 -0
- package/dist/taro-components/p-1b1420c9.system.entry.js.map +1 -0
- package/dist/taro-components/p-281a2bcf.entry.js +2 -0
- package/dist/taro-components/p-281a2bcf.entry.js.map +1 -0
- package/dist/taro-components/p-28dade4f.entry.js +2 -0
- package/dist/taro-components/p-28dade4f.entry.js.map +1 -0
- package/dist/taro-components/p-31e10d77.system.entry.js +2 -0
- package/dist/taro-components/p-31e10d77.system.entry.js.map +1 -0
- package/dist/taro-components/p-36c64ed0.system.entry.js +2 -0
- package/dist/taro-components/p-36c64ed0.system.entry.js.map +1 -0
- package/dist/taro-components/p-37d71e63.entry.js +2 -0
- package/dist/taro-components/p-37d71e63.entry.js.map +1 -0
- package/dist/taro-components/p-386b9de8.entry.js +2 -0
- package/dist/taro-components/p-386b9de8.entry.js.map +1 -0
- package/dist/taro-components/{p-22f9f9fa.entry.js → p-427a2872.entry.js} +2 -2
- package/dist/taro-components/p-427a2872.entry.js.map +1 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js.map +1 -1
- package/dist/taro-components/p-51040638.entry.js +2 -0
- package/dist/taro-components/p-51040638.entry.js.map +1 -0
- package/dist/taro-components/p-5bd1c1a1.entry.js +2 -0
- package/dist/taro-components/p-5bd1c1a1.entry.js.map +1 -0
- package/dist/taro-components/p-62d750a7.entry.js +2 -0
- package/dist/taro-components/p-62d750a7.entry.js.map +1 -0
- package/dist/taro-components/p-632f9a72.system.entry.js +2 -0
- package/dist/taro-components/p-632f9a72.system.entry.js.map +1 -0
- package/dist/taro-components/p-65971d99.entry.js +2 -0
- package/dist/taro-components/p-65971d99.entry.js.map +1 -0
- package/dist/taro-components/{p-1cd1c507.system.entry.js → p-6831f7b1.system.entry.js} +2 -2
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +1 -0
- package/dist/taro-components/p-6c622fa2.system.entry.js +2 -0
- package/dist/taro-components/p-6c622fa2.system.entry.js.map +1 -0
- package/dist/taro-components/p-6cd941bc.entry.js +2 -0
- package/dist/taro-components/p-6cd941bc.entry.js.map +1 -0
- package/dist/taro-components/p-70defa84.entry.js +2 -0
- package/dist/taro-components/p-70defa84.entry.js.map +1 -0
- package/dist/taro-components/p-73106bc9.entry.js +2 -0
- package/dist/taro-components/p-73106bc9.entry.js.map +1 -0
- package/dist/taro-components/p-7afc274a.entry.js +2 -0
- package/dist/taro-components/p-7afc274a.entry.js.map +1 -0
- package/dist/taro-components/p-7bafbe22.entry.js +2 -0
- package/dist/taro-components/p-7bafbe22.entry.js.map +1 -0
- package/dist/taro-components/p-7e7a1e62.entry.js +2 -0
- package/dist/taro-components/p-7e7a1e62.entry.js.map +1 -0
- package/dist/taro-components/p-876edf66.entry.js +2 -0
- package/dist/taro-components/p-876edf66.entry.js.map +1 -0
- package/dist/taro-components/p-898aba38.system.entry.js +2 -0
- package/dist/taro-components/p-898aba38.system.entry.js.map +1 -0
- package/dist/taro-components/p-98901e99.system.entry.js +2 -0
- package/dist/taro-components/p-98901e99.system.entry.js.map +1 -0
- package/dist/taro-components/p-9f780103.system.entry.js +2 -0
- package/dist/taro-components/p-9f780103.system.entry.js.map +1 -0
- package/dist/taro-components/p-a4961ddd.entry.js +2 -0
- package/dist/taro-components/p-a4961ddd.entry.js.map +1 -0
- package/dist/taro-components/p-ad25cc91.system.entry.js +2 -0
- package/dist/taro-components/p-ad25cc91.system.entry.js.map +1 -0
- package/dist/taro-components/p-b4cccb3e.system.entry.js +2 -0
- package/dist/taro-components/p-b4cccb3e.system.entry.js.map +1 -0
- package/dist/taro-components/p-b6733e23.system.entry.js +2 -0
- package/dist/taro-components/p-b6733e23.system.entry.js.map +1 -0
- package/dist/taro-components/{p-c3acf0ea.system.entry.js → p-c43fe342.system.entry.js} +2 -2
- package/dist/taro-components/p-c43fe342.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +1 -1
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -1
- package/dist/taro-components/{p-a2aab820.entry.js → p-d388c097.entry.js} +2 -2
- package/dist/taro-components/p-d388c097.entry.js.map +1 -0
- package/dist/taro-components/p-d6441fd8.entry.js +2 -0
- package/dist/taro-components/p-d6441fd8.entry.js.map +1 -0
- package/dist/taro-components/{p-057159bc.system.entry.js → p-dcfb7d97.system.entry.js} +2 -2
- package/dist/taro-components/p-dcfb7d97.system.entry.js.map +1 -0
- package/dist/taro-components/p-e0d6b00b.entry.js.map +1 -1
- package/dist/taro-components/p-e5607803.system.entry.js +2 -0
- package/dist/taro-components/p-e5607803.system.entry.js.map +1 -0
- package/dist/taro-components/p-e7965c55.system.entry.js +2 -0
- package/dist/taro-components/p-e7965c55.system.entry.js.map +1 -0
- package/dist/taro-components/p-f00ee372.system.entry.js +2 -0
- package/dist/taro-components/p-f00ee372.system.entry.js.map +1 -0
- package/dist/taro-components/{p-7baff0b4.entry.js → p-f120c272.entry.js} +2 -2
- package/dist/taro-components/p-f120c272.entry.js.map +1 -0
- package/dist/taro-components/p-f81d14ad.entry.js +2 -0
- package/dist/taro-components/p-f81d14ad.entry.js.map +1 -0
- package/dist/taro-components/p-fae28cc1.system.entry.js +2 -0
- package/dist/taro-components/p-fae28cc1.system.entry.js.map +1 -0
- package/dist/taro-components/p-fb843ff2.system.entry.js +2 -0
- package/dist/taro-components/p-fb843ff2.system.entry.js.map +1 -0
- package/dist/taro-components/p-fc0fbcce.system.entry.js +2 -0
- package/dist/taro-components/p-fc0fbcce.system.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -1
- package/dist/types/components/animation-video/animation-video.d.ts +5 -0
- package/dist/types/components/animation-view/animation-view.d.ts +5 -0
- package/dist/types/components/ar-camera/ar-camera.d.ts +5 -0
- package/dist/types/components/aweme-data/aweme-data.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/comment/comment-detail.d.ts +5 -0
- package/dist/types/components/comment/comment-list.d.ts +5 -0
- package/dist/types/components/contact-button/contact-button.d.ts +5 -0
- package/dist/types/components/follow-swan/follow-swan.d.ts +5 -0
- package/dist/types/components/inline-payment-panel/inline-payment-panel.d.ts +5 -0
- package/dist/types/components/lifestyle/lifestyle.d.ts +5 -0
- package/dist/types/components/like/like.d.ts +5 -0
- package/dist/types/components/login/login.d.ts +5 -0
- package/dist/types/components/lottie/lottie.d.ts +5 -0
- package/dist/types/components/rtc-room/rtc-room-item.d.ts +5 -0
- package/dist/types/components/rtc-room/rtc-room.d.ts +5 -0
- package/dist/types/components/slot/native-slot.d.ts +5 -0
- package/dist/types/components/slot/slot.d.ts +1 -0
- package/dist/types/components/swiper/swiper.d.ts +4 -0
- package/dist/types/components/tabs/tab-item.d.ts +5 -0
- package/dist/types/components/tabs/tabs.d.ts +5 -0
- package/dist/types/components.d.ts +242 -0
- package/dist/vue2/component-lib/components.js +22 -11
- package/dist/vue2/component-lib/createComponent.js +1 -1
- package/dist/vue2/component-lib/createFormsComponent.js +2 -12
- package/dist/vue2/component-lib/index.js +7 -9
- package/dist/vue2/component-lib/mixins/listeners.js +1 -6
- package/dist/vue2/component-lib/mixins/refs.js +1 -6
- package/dist/vue2/component-lib/picker.js +1 -6
- package/dist/vue2/component-lib/scroll-view.js +1 -6
- package/dist/vue2/components.js +58 -6
- package/dist/vue2/index.js +5 -9
- package/dist/vue2/vue-component-lib/utils.js +2 -7
- package/dist/vue3/component-lib/createComponent.js +2 -2
- package/dist/vue3/component-lib/createFormsComponent.js +6 -15
- package/dist/vue3/component-lib/forwardRef.js +0 -2
- package/dist/vue3/component-lib/icon.js +2 -2
- package/dist/vue3/component-lib/image.js +2 -2
- package/dist/vue3/component-lib/index.js +22 -11
- package/dist/vue3/component-lib/scroll-view.js +2 -2
- package/dist/vue3/component-lib/text.js +2 -2
- package/dist/vue3/components.js +19 -3
- package/dist/vue3/index.js +3 -5
- package/dist/vue3/vue-component-lib/utils.js +10 -36
- package/package.json +12 -6
- package/types/Ad.d.ts +1 -1
- package/types/AnimationVideo.d.ts +62 -0
- package/types/AnimationView.d.ts +45 -0
- package/types/ArCamera.d.ts +50 -0
- package/types/Audio.d.ts +1 -1
- package/types/AwemeData.d.ts +43 -0
- package/types/Button.d.ts +1 -1
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CommentDetail.d.ts +72 -0
- package/types/CommentList.d.ts +127 -0
- package/types/ContactButton.d.ts +53 -0
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +102 -4
- package/types/CustomWrapper.d.ts +2 -1
- package/types/FollowSwan.d.ts +28 -0
- package/types/Form.d.ts +1 -1
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +1 -1
- package/types/InlinePaymentPanel.d.ts +58 -0
- package/types/Input.d.ts +88 -11
- package/types/Label.d.ts +1 -1
- package/types/Lifestyle.d.ts +26 -0
- package/types/Like.d.ts +107 -0
- package/types/LivePlayer.d.ts +1 -1
- package/types/LivePusher.d.ts +1 -1
- package/types/Login.d.ts +45 -0
- package/types/Lottie.d.ts +113 -0
- package/types/Map.d.ts +2 -2
- package/types/MatchMedia.d.ts +1 -1
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +17 -17
- package/types/NativeSlot.d.ts +33 -0
- package/types/NavigationBar.d.ts +2 -1
- package/types/Navigator.d.ts +1 -1
- package/types/OpenData.d.ts +1 -1
- package/types/PageContainer.d.ts +28 -18
- package/types/PageMeta.d.ts +1 -1
- package/types/Picker.d.ts +1 -1
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +1 -1
- package/types/RichText.d.ts +1 -1
- package/types/RootPortal.d.ts +11 -2
- package/types/RtcRoom.d.ts +104 -0
- package/types/RtcRoomItem.d.ts +26 -0
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +20 -10
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +3 -2
- package/types/Swiper.d.ts +13 -1
- package/types/SwiperItem.d.ts +3 -2
- package/types/Switch.d.ts +1 -1
- package/types/TabItem.d.ts +35 -0
- package/types/Tabs.d.ts +58 -0
- package/types/Text.d.ts +1 -1
- package/types/Textarea.d.ts +7 -1
- package/types/Video.d.ts +7 -3
- package/types/View.d.ts +8 -7
- package/types/VoipRoom.d.ts +1 -1
- package/types/WebView.d.ts +1 -1
- package/types/index.vue3.d.ts +268 -259
- package/virtual-list/index.d.ts +3 -120
- package/virtual-list/index.js +4 -7
- package/dist/taro-components/p-057159bc.system.entry.js.map +0 -1
- package/dist/taro-components/p-1cd1c507.system.entry.js.map +0 -1
- package/dist/taro-components/p-1e436d5b.entry.js +0 -2
- package/dist/taro-components/p-1e436d5b.entry.js.map +0 -1
- package/dist/taro-components/p-22f9f9fa.entry.js.map +0 -1
- package/dist/taro-components/p-7baff0b4.entry.js.map +0 -1
- package/dist/taro-components/p-946c0799.system.entry.js +0 -2
- package/dist/taro-components/p-946c0799.system.entry.js.map +0 -1
- package/dist/taro-components/p-a2aab820.entry.js.map +0 -1
- package/dist/taro-components/p-c3acf0ea.system.entry.js.map +0 -1
- package/dist/taro-components/p-d5579efa.system.entry.js +0 -2
- package/dist/taro-components/p-d5579efa.system.entry.js.map +0 -1
- package/dist/taro-components/p-e9abe3e2.entry.js.map +0 -1
- package/virtual-list/domHelpers.js +0 -40
- package/virtual-list/memoize.js +0 -38
- package/virtual-list/react/FixedSizeList.js +0 -193
- package/virtual-list/react/createListComponent.js +0 -654
- package/virtual-list/react/index.d.ts +0 -123
- package/virtual-list/react/index.js +0 -67
- package/virtual-list/timer.js +0 -24
- package/virtual-list/vue/index.js +0 -589
|
@@ -5,7 +5,7 @@ type PickerViewColumnProps = StandardProps
|
|
|
5
5
|
/** 滚动选择器子项
|
|
6
6
|
* 仅可放置于 `<PickerView />` 中,其孩子节点的高度会自动设置成与 picker-view 的选中框的高度一致
|
|
7
7
|
* @classification forms
|
|
8
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
8
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
9
9
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
|
|
10
10
|
*/
|
|
11
11
|
declare const PickerViewColumn: ComponentType<StandardProps>
|
package/types/Progress.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ interface ProgressProps extends StandardProps {
|
|
|
81
81
|
|
|
82
82
|
/** 进度条。组件属性的长度单位默认为 px
|
|
83
83
|
* @classification base
|
|
84
|
-
* @supported weapp,
|
|
84
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
85
85
|
* @example_react
|
|
86
86
|
* ```tsx
|
|
87
87
|
* export default class PageView extends Component {
|
package/types/Radio.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface RadioProps extends StandardProps {
|
|
|
44
44
|
|
|
45
45
|
/** 单选项目
|
|
46
46
|
* @classification forms
|
|
47
|
-
* @supported weapp, h5, rn,
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
48
48
|
* @example_react
|
|
49
49
|
* ```tsx
|
|
50
50
|
* export default class PageRadio extends Component {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare namespace RadioGroupProps {
|
|
|
19
19
|
|
|
20
20
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
21
21
|
* @classification forms
|
|
22
|
-
* @supported weapp, h5, rn,
|
|
22
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
23
23
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
24
24
|
*/
|
|
25
25
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare namespace RichTextProps {
|
|
|
118
118
|
|
|
119
119
|
/** 富文本
|
|
120
120
|
* @classification base
|
|
121
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
121
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
122
122
|
* @example_react
|
|
123
123
|
* ```tsx
|
|
124
124
|
* class App extends Components {
|
package/types/RootPortal.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface RootPortalProps extends StandardProps {
|
|
4
|
+
/**
|
|
5
|
+
* 是否从页面中脱离出来
|
|
6
|
+
* @supported weapp
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
enable?: boolean
|
|
10
|
+
}
|
|
2
11
|
|
|
3
12
|
/** root-portal
|
|
4
13
|
* 使整个子树从页面中脱离出来,类似于在 CSS 中使用 fixed position 的效果。主要用于制作弹窗、弹出层等。
|
|
@@ -28,6 +37,6 @@ import { ComponentType } from 'react'
|
|
|
28
37
|
* }
|
|
29
38
|
* ```
|
|
30
39
|
*/
|
|
31
|
-
declare const RootPortal: ComponentType
|
|
40
|
+
declare const RootPortal: ComponentType<RootPortalProps>
|
|
32
41
|
|
|
33
|
-
export { RootPortal }
|
|
42
|
+
export { RootPortal, RootPortalProps }
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface RtcRoomProps extends StandardProps {
|
|
4
|
+
/** rtc-room 组件的唯一标识符
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
id?: string
|
|
8
|
+
|
|
9
|
+
/** 是否开启摄像头
|
|
10
|
+
* @supported swan
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
enableCamera?: boolean
|
|
14
|
+
|
|
15
|
+
/** 是否开启摄像头自动对焦
|
|
16
|
+
* @supported swan
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
enableAutoFocus?: boolean
|
|
20
|
+
|
|
21
|
+
/** 是否支持双手滑动调整摄像头聚焦
|
|
22
|
+
* @supported swan
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
enableZoom?: boolean
|
|
26
|
+
|
|
27
|
+
/** 设置前置还是后置摄像头,有效值:front、back
|
|
28
|
+
* @supported swan
|
|
29
|
+
* @default "front"
|
|
30
|
+
*/
|
|
31
|
+
devicePosition?: 'front' | 'back'
|
|
32
|
+
|
|
33
|
+
/** 是否开启麦克风
|
|
34
|
+
* @supported swan
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
enableMic?: boolean
|
|
38
|
+
|
|
39
|
+
/** 是否开启音频自动增益
|
|
40
|
+
* @supported swan
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
enableAgc?: boolean
|
|
44
|
+
|
|
45
|
+
/** 是否开启音频噪声抑制
|
|
46
|
+
* @supported swan
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
enableAns?: boolean
|
|
50
|
+
|
|
51
|
+
/** 最大码率
|
|
52
|
+
* @supported swan
|
|
53
|
+
* @default 900
|
|
54
|
+
*/
|
|
55
|
+
bitrate?: number
|
|
56
|
+
|
|
57
|
+
/** 视频分辨率宽
|
|
58
|
+
* @supported swan
|
|
59
|
+
* @default 360
|
|
60
|
+
*/
|
|
61
|
+
videoWidth?: number
|
|
62
|
+
|
|
63
|
+
/** 视频分辨率高
|
|
64
|
+
* @supported swan
|
|
65
|
+
* @default 640
|
|
66
|
+
*/
|
|
67
|
+
videoHeight?: number
|
|
68
|
+
|
|
69
|
+
/** 设置远端看到的画面的镜像效果,该属性的变化不会影响到本地画面,仅影响远端看到的画面效果
|
|
70
|
+
* @supported swan
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
enableRemoteMirror?: boolean
|
|
74
|
+
|
|
75
|
+
/** 设置本地摄像头预览画面的镜像效果,有效值:auto、enable、disable
|
|
76
|
+
* @supported swan
|
|
77
|
+
* @default "auto"
|
|
78
|
+
*/
|
|
79
|
+
localMirror?: 'auto' | 'enable' | 'disable'
|
|
80
|
+
|
|
81
|
+
/** 设置声音输出方式,有效值:speaker、ear
|
|
82
|
+
* @supported swan
|
|
83
|
+
* @default "speaker"
|
|
84
|
+
*/
|
|
85
|
+
soundMode?: 'speaker' | 'ear'
|
|
86
|
+
|
|
87
|
+
/** 房间状态变化事件,参考下方状态码,detail = { code, msg, userInfo }
|
|
88
|
+
* @supported swan
|
|
89
|
+
*/
|
|
90
|
+
onStateChange?: CommonEventFunction
|
|
91
|
+
|
|
92
|
+
/** 错误事件。参考下方错误码,detail = { errMsg, errCode }
|
|
93
|
+
* @supported swan
|
|
94
|
+
*/
|
|
95
|
+
onError?: CommonEventFunction
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** 实时音视频通话房间
|
|
99
|
+
* @classification media
|
|
100
|
+
* @supported swan
|
|
101
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/media_rtc-room/
|
|
102
|
+
*/
|
|
103
|
+
declare const RtcRoom: ComponentType<RtcRoomProps>
|
|
104
|
+
export { RtcRoom, RtcRoomProps }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface RtcRoomItemProps extends StandardProps {
|
|
4
|
+
/** rtc-room-item 组件的唯一标识符
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
id?: string
|
|
8
|
+
|
|
9
|
+
/** 指定 item 展示本地 / 远端画面,有效值:local、remote ,不可动态变更
|
|
10
|
+
* @supported swan
|
|
11
|
+
*/
|
|
12
|
+
type?: string
|
|
13
|
+
|
|
14
|
+
/** item 展示画面的用户 id
|
|
15
|
+
* @supported swan
|
|
16
|
+
*/
|
|
17
|
+
userId?: number
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** 实时音视频通话画面
|
|
21
|
+
* @classification media
|
|
22
|
+
* @supported swan
|
|
23
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/media_rtc-room-item/
|
|
24
|
+
*/
|
|
25
|
+
declare const RtcRoomItem: ComponentType<RtcRoomItemProps>
|
|
26
|
+
export { RtcRoomItem, RtcRoomItemProps }
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ declare namespace ScrollViewProps {
|
|
|
262
262
|
* H5 中 ScrollView 组件是通过一个高度(或宽度)固定的容器内部滚动来实现的,因此务必正确的设置容器的高度。例如: 如果 ScrollView 的高度将 body 撑开,就会同时存在两个滚动条(body 下的滚动条,以及 ScrollView 的滚动条)。
|
|
263
263
|
* 微信小程序 中 ScrollView 组件如果设置 scrollX 横向滚动时,并且子元素为多个时(单个子元素时设置固定宽度则可以正常横向滚动),需要通过 WXSS 设置 `white-space: nowrap` 来保证元素不换行,并对 ScrollView 内部元素设置 `display: inline-block` 来使其能够横向滚动。
|
|
264
264
|
* @classification viewContainer
|
|
265
|
-
* @supported weapp,
|
|
265
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
266
266
|
* @example_react
|
|
267
267
|
* ```tsx
|
|
268
268
|
* export default class PageView extends Component {
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface ShareElementProps extends StandardProps {
|
|
4
|
+
/** 映射标记
|
|
5
|
+
* @supported weapp
|
|
6
|
+
*/
|
|
7
|
+
key?: string
|
|
8
|
+
|
|
9
|
+
/** 映射标记
|
|
10
|
+
* @supported weapp
|
|
11
|
+
*/
|
|
12
|
+
mapkey?: string
|
|
13
|
+
|
|
14
|
+
/** 映射标记
|
|
15
|
+
* @supported alipay
|
|
16
|
+
*/
|
|
17
|
+
name?: string
|
|
18
|
+
|
|
4
19
|
/** 是否进行动画
|
|
5
20
|
* @default false
|
|
6
|
-
* @supported weapp
|
|
21
|
+
* @supported weapp, alipay
|
|
7
22
|
*/
|
|
8
23
|
transform?: boolean
|
|
9
24
|
|
|
10
25
|
/** 动画时长,单位毫秒
|
|
11
26
|
* @default 300
|
|
12
|
-
* @supported weapp
|
|
27
|
+
* @supported weapp, alipay
|
|
13
28
|
*/
|
|
14
29
|
duration?: number
|
|
15
30
|
|
|
16
31
|
/** css缓动函数
|
|
17
32
|
* @default ease-out
|
|
18
|
-
* @supported weapp
|
|
33
|
+
* @supported weapp, alipay
|
|
19
34
|
*/
|
|
20
|
-
easingFunction?:
|
|
21
|
-
|
|
22
|
-
/** 映射标记
|
|
23
|
-
* @supported weapp
|
|
24
|
-
*/
|
|
25
|
-
key?: string
|
|
35
|
+
easingFunction?: string
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
/** 共享元素
|
|
@@ -30,7 +40,7 @@ interface ShareElementProps extends StandardProps {
|
|
|
30
40
|
* 共享元素是一种动画形式,类似于 [`flutter Hero`](https://flutterchina.club/animations/hero-animations/) 动画,表现为元素像是在页面间穿越一样。该组件需与 [`PageContainer`](/docs/components/viewContainer/page-container) 组件结合使用。
|
|
31
41
|
* 使用时需在当前页放置 `ShareElement` 组件,同时在 `PageContainer` 容器中放置对应的 `ShareElement` 组件,对应关系通过属性值 key 映射。当设置 `PageContainer` `显示时,transform` 属性为 `true` 的共享元素会产生动画。当前页面容器退出时,会产生返回动画。
|
|
32
42
|
* @classification viewContainer
|
|
33
|
-
* @supported weapp
|
|
43
|
+
* @supported weapp, alipay
|
|
34
44
|
* @example_react
|
|
35
45
|
* ```tsx
|
|
36
46
|
* // index.js
|
package/types/Slider.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare namespace SliderProps {
|
|
|
118
118
|
|
|
119
119
|
/** 滑动选择器
|
|
120
120
|
* @classification forms
|
|
121
|
-
* @supported weapp,
|
|
121
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
122
122
|
* @example_react
|
|
123
123
|
* ```tsx
|
|
124
124
|
* export default class PageView extends Component {
|
package/types/Slot.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface SlotProps {
|
|
|
5
5
|
* @default none
|
|
6
6
|
* @supported weapp, swan, alipay, tt, jd, qq
|
|
7
7
|
*/
|
|
8
|
-
name?: string
|
|
8
|
+
name?: string
|
|
9
9
|
/** scoped slot 传入数据源
|
|
10
10
|
* @default none
|
|
11
11
|
* @supported swan
|
|
@@ -14,7 +14,8 @@ interface SlotProps {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/** slot 插槽
|
|
17
|
-
* @
|
|
17
|
+
* @classification viewContainer
|
|
18
|
+
* @supported weapp, swan, alipay, tt, jd, qq, harmony
|
|
18
19
|
* @example
|
|
19
20
|
* ```tsx
|
|
20
21
|
* import { Slot, View, Text } from '@tarojs/components'
|
package/types/Swiper.d.ts
CHANGED
|
@@ -103,6 +103,18 @@ interface SwiperProps extends StandardProps {
|
|
|
103
103
|
*/
|
|
104
104
|
disableTouch?: boolean
|
|
105
105
|
|
|
106
|
+
/** 是否启用缩放
|
|
107
|
+
* @default false
|
|
108
|
+
* @supported h5
|
|
109
|
+
*/
|
|
110
|
+
zoom?: boolean
|
|
111
|
+
|
|
112
|
+
/** 是否开启全屏
|
|
113
|
+
* @default false
|
|
114
|
+
* @supported h5
|
|
115
|
+
*/
|
|
116
|
+
full?: boolean
|
|
117
|
+
|
|
106
118
|
/** swiper-item 可见时的 class。
|
|
107
119
|
* @supported alipay
|
|
108
120
|
*/
|
|
@@ -235,7 +247,7 @@ declare namespace SwiperProps {
|
|
|
235
247
|
/** 滑块视图容器。其中只可放置 swiper-item 组件,否则会导致未定义的行为。
|
|
236
248
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
237
249
|
* @classification viewContainer
|
|
238
|
-
* @supported weapp,
|
|
250
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
239
251
|
* @example_react
|
|
240
252
|
* ```tsx
|
|
241
253
|
* class App extends Component {
|
package/types/SwiperItem.d.ts
CHANGED
|
@@ -7,15 +7,16 @@ interface SwiperItemProps extends StandardProps {
|
|
|
7
7
|
itemId?: string
|
|
8
8
|
|
|
9
9
|
/** 是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息
|
|
10
|
+
* @default false
|
|
10
11
|
* @supported weapp
|
|
11
12
|
*/
|
|
12
|
-
skipHiddenItemLayout?:
|
|
13
|
+
skipHiddenItemLayout?: boolean
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
/** 仅可放置在 swiper 组件中,宽高自动设置为100%
|
|
16
17
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
17
18
|
* @classification viewContainer
|
|
18
|
-
* @supported weapp,
|
|
19
|
+
* @supported weapp, alipay, swan, tt, jd, h5, rn, harmony
|
|
19
20
|
* @example_react
|
|
20
21
|
* ```tsx
|
|
21
22
|
* class App extends Component {
|
package/types/Switch.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare namespace SwitchProps {
|
|
|
93
93
|
* </view>
|
|
94
94
|
* </template>
|
|
95
95
|
* ```
|
|
96
|
-
* @supported weapp,
|
|
96
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
97
97
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
98
98
|
*/
|
|
99
99
|
declare const Switch: ComponentType<SwitchProps>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface TabItemProps extends StandardProps {
|
|
4
|
+
/** tab-item 内显示的文字
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default 无
|
|
7
|
+
*/
|
|
8
|
+
label?: string
|
|
9
|
+
|
|
10
|
+
/** tab-item 对应的 name 值
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default 无
|
|
13
|
+
*/
|
|
14
|
+
name?: string
|
|
15
|
+
|
|
16
|
+
/** 徽标类型 badge-type 分为圆点“dot”和文本“text”,不设置 badge-type 则不显示徽标
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default 无
|
|
19
|
+
*/
|
|
20
|
+
badgeType?: string
|
|
21
|
+
|
|
22
|
+
/** badge-type 为 text 的时候,徽标内的数字,为空时badge-type="text"不生效
|
|
23
|
+
* @supported swan
|
|
24
|
+
* @default 无
|
|
25
|
+
*/
|
|
26
|
+
badgeText?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 标签栏子项
|
|
30
|
+
* @classification navig
|
|
31
|
+
* @supported swan
|
|
32
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/tab-item/
|
|
33
|
+
*/
|
|
34
|
+
declare const TabItem: ComponentType<TabItemProps>
|
|
35
|
+
export { TabItem, TabItemProps }
|
package/types/Tabs.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface TabsProps extends StandardProps {
|
|
4
|
+
/** tabs 背景色,必须填写十六进制颜色
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default "#fff"
|
|
7
|
+
*/
|
|
8
|
+
tabsBackgroundColor?: string
|
|
9
|
+
|
|
10
|
+
/** tabs 激活 tab-item 文字颜色
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default "#000"
|
|
13
|
+
*/
|
|
14
|
+
tabsActiveTextColor?: string
|
|
15
|
+
|
|
16
|
+
/** tabs 非激活 tab-item 文字颜色
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default "#666"
|
|
19
|
+
*/
|
|
20
|
+
tabsInactiveTextColor?: string
|
|
21
|
+
|
|
22
|
+
/** tabs 激活 tab-item 下划线颜色
|
|
23
|
+
* @supported swan
|
|
24
|
+
* @default "#333"
|
|
25
|
+
*/
|
|
26
|
+
tabsUnderlineColor?: string
|
|
27
|
+
|
|
28
|
+
/** 仅用于普通标签栏组件,当前激活 tab-item 的对应的 name 值,须搭配 bindtabchange 一起使用。
|
|
29
|
+
* @supported swan
|
|
30
|
+
* @default 无
|
|
31
|
+
*/
|
|
32
|
+
activeName?: string
|
|
33
|
+
|
|
34
|
+
/** 仅用于可寻址标签栏组件,当前 tab 所改变的 url query 中参数 key,需要通过 tabs 修改页面 url 的时候设置。
|
|
35
|
+
* @supported swan
|
|
36
|
+
* @default 无
|
|
37
|
+
*/
|
|
38
|
+
urlQueryName?: string
|
|
39
|
+
|
|
40
|
+
/** 当前 tabs 视图中最多容纳的 tab-item 数量,低于此数量均分排列,超出此数量划屏。默认五个,开发者可根据业务需求调整
|
|
41
|
+
* @supported swan
|
|
42
|
+
* @default 5
|
|
43
|
+
*/
|
|
44
|
+
maxTabItemAmount?: number
|
|
45
|
+
|
|
46
|
+
/** tab 被点击的回调,可以在 e.detail.name 中取到当前点击的 tab-item 对应的 name 值
|
|
47
|
+
* @supported swan
|
|
48
|
+
*/
|
|
49
|
+
onTabChange?: CommonEventFunction
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** 标签栏
|
|
53
|
+
* @classification navig
|
|
54
|
+
* @supported swan
|
|
55
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/tabs/
|
|
56
|
+
*/
|
|
57
|
+
declare const Tabs: ComponentType<TabsProps>
|
|
58
|
+
export { Tabs, TabsProps }
|
package/types/Text.d.ts
CHANGED
package/types/Textarea.d.ts
CHANGED
|
@@ -136,6 +136,12 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
136
136
|
*/
|
|
137
137
|
controlled?: string
|
|
138
138
|
|
|
139
|
+
/** 使用原生键盘
|
|
140
|
+
* @default false
|
|
141
|
+
* @supported alipay
|
|
142
|
+
*/
|
|
143
|
+
enableNative?: boolean
|
|
144
|
+
|
|
139
145
|
/** 无障碍访问,(属性)元素的额外描述
|
|
140
146
|
* @supported qq
|
|
141
147
|
*/
|
|
@@ -218,7 +224,7 @@ declare namespace TextareaProps {
|
|
|
218
224
|
|
|
219
225
|
/** 多行输入框。该组件是原生组件,使用时请注意相关限制
|
|
220
226
|
* @classification forms
|
|
221
|
-
* @supported weapp, h5, rn
|
|
227
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
222
228
|
* @example_react
|
|
223
229
|
* ```tsx
|
|
224
230
|
* export default class PageView extends Component {
|
package/types/Video.d.ts
CHANGED
|
@@ -282,6 +282,12 @@ interface VideoProps extends StandardProps {
|
|
|
282
282
|
*/
|
|
283
283
|
mobilenetHintType?: string
|
|
284
284
|
|
|
285
|
+
/** 使用原生
|
|
286
|
+
* @default true
|
|
287
|
+
* @supported alipay
|
|
288
|
+
*/
|
|
289
|
+
enableNative?: boolean
|
|
290
|
+
|
|
285
291
|
/** 浮窗设置。暂时不支持全局浮窗。
|
|
286
292
|
* 可选值:
|
|
287
293
|
*
|
|
@@ -636,10 +642,8 @@ declare namespace VideoProps {
|
|
|
636
642
|
}
|
|
637
643
|
|
|
638
644
|
/** 视频。相关api:Taro.createVideoContext
|
|
639
|
-
*
|
|
640
|
-
* 备注:h5上因为没有测试,所以暂时写了“待定”,需要`Video`来确认。
|
|
641
645
|
* @classification media
|
|
642
|
-
* @supported weapp,
|
|
646
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
643
647
|
* @example_react
|
|
644
648
|
* ```tsx
|
|
645
649
|
* export default class PageView extends Component {
|
package/types/View.d.ts
CHANGED
|
@@ -67,12 +67,6 @@ interface ViewProps extends StandardProps {
|
|
|
67
67
|
*/
|
|
68
68
|
ariaLabel?: string
|
|
69
69
|
|
|
70
|
-
/** 是否以 catch 的形式绑定 touchmove 事件
|
|
71
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
72
|
-
* @version 3.1.0+
|
|
73
|
-
*/
|
|
74
|
-
catchMove?: boolean
|
|
75
|
-
|
|
76
70
|
/** 点击。
|
|
77
71
|
* @supported alipay
|
|
78
72
|
*/
|
|
@@ -137,11 +131,18 @@ interface ViewProps extends StandardProps {
|
|
|
137
131
|
* @supported alipay
|
|
138
132
|
*/
|
|
139
133
|
onFirstAppear?: CommonEventFunction
|
|
134
|
+
|
|
135
|
+
/** 是否以 catch 的形式绑定 touchmove 事件
|
|
136
|
+
* @supported weapp, alipay, swan, tt, qq, jd
|
|
137
|
+
* @version 3.1.0+
|
|
138
|
+
* @unique
|
|
139
|
+
*/
|
|
140
|
+
catchMove?: boolean
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
/** 视图容器
|
|
143
144
|
* @classification viewContainer
|
|
144
|
-
* @supported weapp,
|
|
145
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
145
146
|
* @example_react
|
|
146
147
|
* ```tsx
|
|
147
148
|
* export default class PageView extends Component {
|
package/types/VoipRoom.d.ts
CHANGED
package/types/WebView.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare namespace WebViewProps {
|
|
|
49
49
|
|
|
50
50
|
/** web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。
|
|
51
51
|
* @classification open
|
|
52
|
-
* @supported weapp, h5, rn,
|
|
52
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
53
53
|
* @example_react
|
|
54
54
|
* ```tsx
|
|
55
55
|
* class App extends Component {
|