@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
package/dist/vue3/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import * as components from './components';
|
|
3
3
|
export function initVue3Components(app) {
|
|
4
4
|
app.config.isCustomElement = function (tag) {
|
|
5
5
|
return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
|
|
6
6
|
};
|
|
7
|
-
|
|
8
7
|
Object.entries(components).forEach(function (_ref) {
|
|
9
8
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
name = _ref2[0],
|
|
10
|
+
component = _ref2[1];
|
|
13
11
|
if (component) {
|
|
14
12
|
var tagName = 'taro' + name.replace(new RegExp('([A-Z])', 'g'), '-$1').toLowerCase();
|
|
15
13
|
app.component(tagName, component);
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
-
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
8
4
|
import { defineComponent, getCurrentInstance, h, inject, ref } from 'vue';
|
|
9
5
|
var UPDATE_VALUE_EVENT = 'update:modelValue';
|
|
10
6
|
var MODEL_VALUE = 'modelValue';
|
|
11
7
|
var ROUTER_LINK_VALUE = 'routerLink';
|
|
12
8
|
var NAV_MANAGER = 'navManager';
|
|
13
9
|
var ROUTER_PROP_PREFIX = 'router';
|
|
10
|
+
|
|
14
11
|
/**
|
|
15
12
|
* Starting in Vue 3.1.0, all properties are
|
|
16
13
|
* added as keys to the props object, even if
|
|
@@ -20,24 +17,21 @@ var ROUTER_PROP_PREFIX = 'router';
|
|
|
20
17
|
* and then check if it is not undefined for Vue >= 3.1.0.
|
|
21
18
|
* See https://github.com/vuejs/vue-next/issues/3889
|
|
22
19
|
*/
|
|
23
|
-
|
|
24
20
|
var EMPTY_PROP = Symbol();
|
|
25
21
|
var DEFAULT_EMPTY_PROP = {
|
|
26
22
|
default: EMPTY_PROP
|
|
27
23
|
};
|
|
28
|
-
|
|
29
24
|
var getComponentClasses = function getComponentClasses(classes) {
|
|
30
25
|
return (classes === null || classes === void 0 ? void 0 : classes.split(' ')) || [];
|
|
31
26
|
};
|
|
32
|
-
|
|
33
27
|
var getElementClasses = function getElementClasses(ref, componentClasses) {
|
|
34
28
|
var _ref$value;
|
|
35
|
-
|
|
36
29
|
var defaultClasses = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
37
30
|
return [].concat(_toConsumableArray(Array.from(((_ref$value = ref.value) === null || _ref$value === void 0 ? void 0 : _ref$value.classList) || [])), _toConsumableArray(defaultClasses)).filter(function (c, i, self) {
|
|
38
31
|
return !componentClasses.has(c) && self.indexOf(c) === i;
|
|
39
32
|
});
|
|
40
33
|
};
|
|
34
|
+
|
|
41
35
|
/**
|
|
42
36
|
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
43
37
|
*
|
|
@@ -52,33 +46,28 @@ var getElementClasses = function getElementClasses(ref, componentClasses) {
|
|
|
52
46
|
* @prop externalModelUpdateEvent - The external event to fire from your Vue component when modelUpdateEvent fires. This is used for ensuring that v-model references have been
|
|
53
47
|
* correctly updated when a user's event callback fires.
|
|
54
48
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
49
|
export var defineContainer = function defineContainer(name, defineCustomElement) {
|
|
58
50
|
var componentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
59
51
|
var modelProp = arguments.length > 3 ? arguments[3] : undefined;
|
|
60
52
|
var modelUpdateEvent = arguments.length > 4 ? arguments[4] : undefined;
|
|
61
53
|
var externalModelUpdateEvent = arguments.length > 5 ? arguments[5] : undefined;
|
|
62
|
-
|
|
63
54
|
/**
|
|
64
55
|
* Create a Vue component wrapper around a Web Component.
|
|
65
56
|
* Note: The `props` here are not all properties on a component.
|
|
66
57
|
* They refer to whatever properties are set on an instance of a component.
|
|
67
58
|
*/
|
|
59
|
+
|
|
68
60
|
if (defineCustomElement !== undefined) {
|
|
69
61
|
defineCustomElement();
|
|
70
62
|
}
|
|
71
|
-
|
|
72
63
|
var Container = defineComponent(function (props, _ref) {
|
|
73
64
|
var _currentInstance$appC;
|
|
74
|
-
|
|
75
65
|
var attrs = _ref.attrs,
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
slots = _ref.slots,
|
|
67
|
+
emit = _ref.emit;
|
|
78
68
|
var modelPropValue = props[modelProp];
|
|
79
69
|
var containerRef = ref();
|
|
80
70
|
var classes = new Set(getComponentClasses(attrs.class));
|
|
81
|
-
|
|
82
71
|
var onVnodeBeforeMount = function onVnodeBeforeMount(vnode) {
|
|
83
72
|
// Add a listener to tell Vue to update the v-model
|
|
84
73
|
if (vnode.el) {
|
|
@@ -87,6 +76,7 @@ export var defineContainer = function defineContainer(name, defineCustomElement)
|
|
|
87
76
|
vnode.el.addEventListener(eventName.toLowerCase(), function (e) {
|
|
88
77
|
modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
|
|
89
78
|
emit(UPDATE_VALUE_EVENT, modelPropValue);
|
|
79
|
+
|
|
90
80
|
/**
|
|
91
81
|
* We need to emit the change event here
|
|
92
82
|
* rather than on the web component to ensure
|
|
@@ -95,7 +85,6 @@ export var defineContainer = function defineContainer(name, defineCustomElement)
|
|
|
95
85
|
* native web component, but the v-model will
|
|
96
86
|
* not have been updated yet.
|
|
97
87
|
*/
|
|
98
|
-
|
|
99
88
|
if (externalModelUpdateEvent) {
|
|
100
89
|
emit(externalModelUpdateEvent, e);
|
|
101
90
|
}
|
|
@@ -103,72 +92,60 @@ export var defineContainer = function defineContainer(name, defineCustomElement)
|
|
|
103
92
|
});
|
|
104
93
|
}
|
|
105
94
|
};
|
|
106
|
-
|
|
107
95
|
var currentInstance = getCurrentInstance();
|
|
108
96
|
var hasRouter = currentInstance === null || currentInstance === void 0 ? void 0 : (_currentInstance$appC = currentInstance.appContext) === null || _currentInstance$appC === void 0 ? void 0 : _currentInstance$appC.provides[NAV_MANAGER];
|
|
109
97
|
var navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
|
|
110
|
-
|
|
111
98
|
var handleRouterLink = function handleRouterLink(ev) {
|
|
112
99
|
var routerLink = props.routerLink;
|
|
113
100
|
if (routerLink === EMPTY_PROP) return;
|
|
114
|
-
|
|
115
101
|
if (navManager !== undefined) {
|
|
116
102
|
var navigationPayload = {
|
|
117
103
|
event: ev
|
|
118
104
|
};
|
|
119
|
-
|
|
120
105
|
for (var key in props) {
|
|
121
106
|
var value = props[key];
|
|
122
|
-
|
|
123
107
|
if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
|
|
124
108
|
navigationPayload[key] = value;
|
|
125
109
|
}
|
|
126
110
|
}
|
|
127
|
-
|
|
128
111
|
navManager.navigate(navigationPayload);
|
|
129
112
|
} else {
|
|
130
113
|
console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
|
|
131
114
|
}
|
|
132
115
|
};
|
|
133
|
-
|
|
134
116
|
return function () {
|
|
135
117
|
modelPropValue = props[modelProp];
|
|
136
118
|
getComponentClasses(attrs.class).forEach(function (value) {
|
|
137
119
|
classes.add(value);
|
|
138
120
|
});
|
|
139
121
|
var oldClick = props.onClick;
|
|
140
|
-
|
|
141
122
|
var handleClick = function handleClick(ev) {
|
|
142
123
|
if (oldClick !== undefined) {
|
|
143
124
|
oldClick(ev);
|
|
144
125
|
}
|
|
145
|
-
|
|
146
126
|
if (!ev.defaultPrevented) {
|
|
147
127
|
handleRouterLink(ev);
|
|
148
128
|
}
|
|
149
129
|
};
|
|
150
|
-
|
|
151
130
|
var propsToAdd = {
|
|
152
131
|
ref: containerRef,
|
|
153
132
|
class: getElementClasses(containerRef, classes),
|
|
154
133
|
onClick: handleClick,
|
|
155
134
|
onVnodeBeforeMount: modelUpdateEvent ? onVnodeBeforeMount : undefined
|
|
156
135
|
};
|
|
136
|
+
|
|
157
137
|
/**
|
|
158
138
|
* We can use Object.entries here
|
|
159
139
|
* to avoid the hasOwnProperty check,
|
|
160
140
|
* but that would require 2 iterations
|
|
161
141
|
* where as this only requires 1.
|
|
162
142
|
*/
|
|
163
|
-
|
|
164
143
|
for (var key in props) {
|
|
165
144
|
var value = props[key];
|
|
166
|
-
|
|
167
145
|
if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
|
|
168
146
|
propsToAdd[key] = value;
|
|
169
147
|
}
|
|
170
148
|
}
|
|
171
|
-
|
|
172
149
|
if (modelProp) {
|
|
173
150
|
/**
|
|
174
151
|
* If form value property was set using v-model
|
|
@@ -182,7 +159,6 @@ export var defineContainer = function defineContainer(name, defineCustomElement)
|
|
|
182
159
|
propsToAdd = _objectSpread(_objectSpread({}, propsToAdd), {}, _defineProperty({}, modelProp, modelPropValue));
|
|
183
160
|
}
|
|
184
161
|
}
|
|
185
|
-
|
|
186
162
|
return h(name, propsToAdd, slots.default && slots.default());
|
|
187
163
|
};
|
|
188
164
|
});
|
|
@@ -191,11 +167,9 @@ export var defineContainer = function defineContainer(name, defineCustomElement)
|
|
|
191
167
|
componentProps.forEach(function (componentProp) {
|
|
192
168
|
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
193
169
|
});
|
|
194
|
-
|
|
195
170
|
if (modelProp) {
|
|
196
171
|
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
|
|
197
172
|
Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent];
|
|
198
173
|
}
|
|
199
|
-
|
|
200
174
|
return Container;
|
|
201
175
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.6.0-canary.
|
|
3
|
+
"version": "3.6.0-canary.10",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -29,26 +29,32 @@
|
|
|
29
29
|
"author": "",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tarojs/router": "3.6.0-canary.1",
|
|
33
|
-
"@tarojs/taro": "3.6.0-canary.1",
|
|
34
32
|
"classnames": "^2.2.5",
|
|
35
33
|
"hls.js": "^1.1.5",
|
|
36
34
|
"intersection-observer": "^0.7.0",
|
|
37
35
|
"resolve-pathname": "^3.0.0",
|
|
38
36
|
"swiper": "6.8.0",
|
|
39
|
-
"weui": "^1.1.2"
|
|
37
|
+
"weui": "^1.1.2",
|
|
38
|
+
"@tarojs/components-advanced": "3.6.0-canary.10",
|
|
39
|
+
"@tarojs/router": "3.6.0-canary.10",
|
|
40
|
+
"@tarojs/taro": "3.6.0-canary.10"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
43
|
+
"@babel/generator": "^7.14.5",
|
|
44
|
+
"@babel/parser": "^7.14.5",
|
|
45
|
+
"@babel/traverse": "^7.14.5",
|
|
46
|
+
"@babel/types": "^7.14.5",
|
|
42
47
|
"@stencil/core": "^2.18.1",
|
|
43
48
|
"@stencil/react-output-target": "0.3.1",
|
|
44
49
|
"@stencil/sass": "^2.0.0",
|
|
45
50
|
"@stencil/vue-output-target": "0.6.2",
|
|
46
51
|
"@types/jest": "^27.4.1",
|
|
47
52
|
"@types/node": "^14.14.31",
|
|
48
|
-
"
|
|
53
|
+
"change-case": "^4.1.2",
|
|
54
|
+
"csstype": "^3.1.1",
|
|
49
55
|
"jquery": "^3.4.1",
|
|
50
56
|
"lodash": "^4.17.21",
|
|
51
|
-
"miniapp-types": "
|
|
57
|
+
"miniapp-types": "1.1.21",
|
|
52
58
|
"puppeteer": "^19.2.0",
|
|
53
59
|
"stencil-vue2-output-target": "0.0.4",
|
|
54
60
|
"ts-node": "^10.9.1",
|
package/types/Ad.d.ts
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AnimationVideoProps extends StandardProps {
|
|
4
|
+
/** 组件使用的 video 视频资源的宽度(单位:px)
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default 800
|
|
7
|
+
*/
|
|
8
|
+
resourceWidth?: number
|
|
9
|
+
|
|
10
|
+
/** 组件使用的 video 视频资源的高度(单位:px)
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default 400
|
|
13
|
+
*/
|
|
14
|
+
resourceHeight?: number
|
|
15
|
+
|
|
16
|
+
/** 用于设置动画画布的 CSS 样式
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default "width: 400px;height: 400px"
|
|
19
|
+
*/
|
|
20
|
+
canvasStyle?: string
|
|
21
|
+
|
|
22
|
+
/** 动画资源地址,支持相对路径以及远程地址。如果是远程路径,注意 response header 里需要设置 Access-Control-Allow-Origin 来防止跨域问题
|
|
23
|
+
* @supported swan
|
|
24
|
+
*/
|
|
25
|
+
path?: string
|
|
26
|
+
|
|
27
|
+
/** 动画是否循环播放
|
|
28
|
+
* @supported swan
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
loop?: boolean
|
|
32
|
+
|
|
33
|
+
/** 动画是否自动播放
|
|
34
|
+
* @supported swan
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
autoplay?: boolean
|
|
38
|
+
|
|
39
|
+
/** 视频资源中 alpha 通道的方向,left 表示 alpha 通道在资源的左边,right 表示 alpha 通道在资源的右边。详情请参考透明视频设计资源示例
|
|
40
|
+
* @supported swan
|
|
41
|
+
* @default "left"
|
|
42
|
+
*/
|
|
43
|
+
alphaDirection?: string
|
|
44
|
+
|
|
45
|
+
/** 动画开始播放的回调
|
|
46
|
+
* @supported swan
|
|
47
|
+
*/
|
|
48
|
+
onStarted?: CommonEventFunction
|
|
49
|
+
|
|
50
|
+
/** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及暂停动画不会触发)
|
|
51
|
+
* @supported swan
|
|
52
|
+
*/
|
|
53
|
+
onEnded?: CommonEventFunction
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** 透明视频动画
|
|
57
|
+
* @classification media
|
|
58
|
+
* @supported swan
|
|
59
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/animation-video/
|
|
60
|
+
*/
|
|
61
|
+
declare const AnimationVideo: ComponentType<AnimationVideoProps>
|
|
62
|
+
export { AnimationVideo, AnimationVideoProps }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AnimationViewProps extends StandardProps {
|
|
4
|
+
/** 动画资源地址,目前只支持绝对路径
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
path?: string
|
|
8
|
+
|
|
9
|
+
/** 动画是否循环播放
|
|
10
|
+
* @supported swan
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
loop?: boolean
|
|
14
|
+
|
|
15
|
+
/** 动画是否自动播放
|
|
16
|
+
* @supported swan
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
autoplay?: boolean
|
|
20
|
+
|
|
21
|
+
/** 动画操作,可取值 play、pause、stop
|
|
22
|
+
* @supported swan
|
|
23
|
+
* @default "play"
|
|
24
|
+
*/
|
|
25
|
+
action?: 'play' | 'pause' | 'stop'
|
|
26
|
+
|
|
27
|
+
/** 是否隐藏动画
|
|
28
|
+
* @supported swan
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
hidden?: boolean
|
|
32
|
+
|
|
33
|
+
/** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发)
|
|
34
|
+
* @supported swan
|
|
35
|
+
*/
|
|
36
|
+
onEnded?: CommonEventFunction
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Lottie 动画
|
|
40
|
+
* @classification media
|
|
41
|
+
* @supported swan
|
|
42
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/animation-view-Lottie/
|
|
43
|
+
*/
|
|
44
|
+
declare const AnimationView: ComponentType<AnimationViewProps>
|
|
45
|
+
export { AnimationView, AnimationViewProps }
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface ArCameraProps extends StandardProps {
|
|
4
|
+
/** AR 项目唯一标识,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Key
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
key?: string
|
|
8
|
+
|
|
9
|
+
/** AR 相机类型,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Type:
|
|
10
|
+
* 2D 跟踪类型:0
|
|
11
|
+
* SLAM 类型:5
|
|
12
|
+
* IMU 类型:8
|
|
13
|
+
* @supported swan
|
|
14
|
+
*/
|
|
15
|
+
type?: '0' | '5' | '8'
|
|
16
|
+
|
|
17
|
+
/** 闪光灯,值为 auto、on、off
|
|
18
|
+
* @supported swan
|
|
19
|
+
* @default "off"
|
|
20
|
+
*/
|
|
21
|
+
flash?: 'auto' | 'on' | 'off'
|
|
22
|
+
|
|
23
|
+
/** 用户不允许使用摄像头或扫码失败时触发
|
|
24
|
+
* @supported swan
|
|
25
|
+
*/
|
|
26
|
+
onError?: CommonEventFunction
|
|
27
|
+
|
|
28
|
+
/** AR 加载成功时触发
|
|
29
|
+
* @supported swan
|
|
30
|
+
*/
|
|
31
|
+
onLoad?: CommonEventFunction
|
|
32
|
+
|
|
33
|
+
/** 开发者制作 AR 项目时可自定义按键,用户点击时会收到事件和数据,用户自定义事件格式参见代码示例 2:用户自定义事件
|
|
34
|
+
* @supported swan
|
|
35
|
+
*/
|
|
36
|
+
onMessage?: CommonEventFunction
|
|
37
|
+
|
|
38
|
+
/** 扫描识图结束后触发
|
|
39
|
+
* @supported swan
|
|
40
|
+
*/
|
|
41
|
+
onScanCode?: CommonEventFunction
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** AR 相机
|
|
45
|
+
* @classification media
|
|
46
|
+
* @supported swan
|
|
47
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/media_ar-camera/
|
|
48
|
+
*/
|
|
49
|
+
declare const ArCamera: ComponentType<ArCameraProps>
|
|
50
|
+
export { ArCamera, ArCameraProps }
|
package/types/Audio.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ declare namespace AudioProps {
|
|
|
107
107
|
/** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
|
|
108
108
|
* @classification media
|
|
109
109
|
* @deprecated
|
|
110
|
-
* @supported weapp,
|
|
110
|
+
* @supported weapp, swan, qq, h5
|
|
111
111
|
* @example_react
|
|
112
112
|
* ```tsx
|
|
113
113
|
* export default class PageView extends Component {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AwemeDataProps extends StandardProps {
|
|
4
|
+
/** 用户的抖音号,可以进入抖音 App 用户个人主页查看
|
|
5
|
+
* @supported tt
|
|
6
|
+
*/
|
|
7
|
+
awemeId?: string
|
|
8
|
+
|
|
9
|
+
/** 类型,可以选择头像或昵称
|
|
10
|
+
* @supported tt
|
|
11
|
+
* @default "avatar"
|
|
12
|
+
*/
|
|
13
|
+
type?: string
|
|
14
|
+
|
|
15
|
+
/** 禁用默认行为。点击头像时,如果用户处于直播状态下默认会跳转到直播间,非直播状态下跳转到个人主页。如果为 true,点击头像时不会有默认行为。
|
|
16
|
+
* @supported tt
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disableDefault?: boolean
|
|
20
|
+
|
|
21
|
+
/** 获取信息失败时显示的默认头像 url
|
|
22
|
+
* @supported tt
|
|
23
|
+
*/
|
|
24
|
+
defaultAvatar?: string
|
|
25
|
+
|
|
26
|
+
/** 获取信息失败时显示的默认昵称文本
|
|
27
|
+
* @supported tt
|
|
28
|
+
*/
|
|
29
|
+
defaultText?: string
|
|
30
|
+
|
|
31
|
+
/** 当错误发生时触发
|
|
32
|
+
* @supported tt
|
|
33
|
+
*/
|
|
34
|
+
onError?: CommonEventFunction
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 直播间状态组件
|
|
38
|
+
* @classification open
|
|
39
|
+
* @supported tt
|
|
40
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/aweme-data/
|
|
41
|
+
*/
|
|
42
|
+
declare const AwemeData: ComponentType<AwemeDataProps>
|
|
43
|
+
export { AwemeData, AwemeDataProps }
|
package/types/Button.d.ts
CHANGED
|
@@ -526,7 +526,7 @@ declare namespace ButtonProps {
|
|
|
526
526
|
|
|
527
527
|
/** 按钮
|
|
528
528
|
* @classification forms
|
|
529
|
-
* @supported weapp, h5, rn,
|
|
529
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
530
530
|
* @example_react
|
|
531
531
|
* ```tsx
|
|
532
532
|
* export default class PageButton extends Component {
|
package/types/Camera.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare namespace CameraProps {
|
|
|
149
149
|
|
|
150
150
|
/** 系统相机
|
|
151
151
|
* @classification media
|
|
152
|
-
* @supported weapp, rn,
|
|
152
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
|
153
153
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
154
154
|
*/
|
|
155
155
|
declare const Camera: ComponentType<CameraProps>
|
package/types/Canvas.d.ts
CHANGED
package/types/Checkbox.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
43
43
|
|
|
44
44
|
/** 多选项目
|
|
45
45
|
* @classification forms
|
|
46
|
-
* @supported weapp, h5, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
47
47
|
* @example_react
|
|
48
48
|
* ```tsx
|
|
49
49
|
* export default class PageCheckbox extends Component {
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
16
16
|
|
|
17
17
|
/** 多项选择器,内部由多个checkbox组成
|
|
18
18
|
* @classification forms
|
|
19
|
-
* @supported weapp, h5, rn,
|
|
19
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
20
20
|
* @example
|
|
21
21
|
* ```tsx
|
|
22
22
|
* export default class PageCheckbox extends Component {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface CommentDetailProps extends StandardProps {
|
|
4
|
+
/** 评论核心参数
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
commentParam: CommentDetailProps.ICommentParam
|
|
8
|
+
|
|
9
|
+
/** 评论 ID
|
|
10
|
+
* @supported swan
|
|
11
|
+
*/
|
|
12
|
+
srid: string
|
|
13
|
+
|
|
14
|
+
/** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
|
|
15
|
+
* @supported swan
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
isPageScroll?: boolean
|
|
19
|
+
|
|
20
|
+
/** 是否需要底部 toolbar,若使用开发者自定义的底部 toolbar,该参数需设为 false
|
|
21
|
+
* @supported swan
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
needToolbar?: boolean
|
|
25
|
+
|
|
26
|
+
/** 是否需要详情顶部父级评论的点赞按钮,默认显示
|
|
27
|
+
* @supported swan
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
needLikeBtn?: boolean
|
|
31
|
+
|
|
32
|
+
/** 删除详情后是否返回列表项,默认一站式逻辑。若使用浮层,请设置改属性为 false
|
|
33
|
+
* @supported swan
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
backListAfterDelete?: boolean
|
|
37
|
+
|
|
38
|
+
/** 用于调起评论发布器发布评论
|
|
39
|
+
* @supported swan
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
addComment?: boolean
|
|
43
|
+
|
|
44
|
+
/** 删除整体详情内容时触发,返回数据为{status, data:{srid}}
|
|
45
|
+
* @supported swan
|
|
46
|
+
*/
|
|
47
|
+
onDelete?: CommonEventFunction
|
|
48
|
+
}
|
|
49
|
+
namespace CommentDetailProps {
|
|
50
|
+
interface ICommentParam {
|
|
51
|
+
/** 被点赞的文章的 id,与 path 参数一一对应
|
|
52
|
+
* @example "20200101"
|
|
53
|
+
*/
|
|
54
|
+
snid: string
|
|
55
|
+
|
|
56
|
+
/** 文章标题 */
|
|
57
|
+
title: string
|
|
58
|
+
|
|
59
|
+
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
60
|
+
* @example "/pages/index/index"
|
|
61
|
+
*/
|
|
62
|
+
path: string
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** 评论详情
|
|
67
|
+
* @classification open
|
|
68
|
+
* @supported swan
|
|
69
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/comment-detail/
|
|
70
|
+
*/
|
|
71
|
+
declare const CommentDetail: ComponentType<CommentDetailProps>
|
|
72
|
+
export { CommentDetail, CommentDetailProps }
|