@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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface CommentListProps extends StandardProps {
|
|
4
|
+
/** 评论核心参数
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
commentParam: CommentListProps.ICommentParam
|
|
8
|
+
|
|
9
|
+
/** 底部 toolbar 的相关配置
|
|
10
|
+
* @supported swan
|
|
11
|
+
*/
|
|
12
|
+
toolbarConfig?: CommentListProps.IToolbarConfig
|
|
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 false
|
|
29
|
+
*/
|
|
30
|
+
addComment?: boolean
|
|
31
|
+
|
|
32
|
+
/** 点击单条评论跳转的详情页页面 path ,若没有配置则不会发生跳转;配置的前提是列表与详情均是页面级
|
|
33
|
+
* @supported swan
|
|
34
|
+
*/
|
|
35
|
+
detailPath?: string
|
|
36
|
+
|
|
37
|
+
/** 是否折叠列表,默认全展示
|
|
38
|
+
* @supported swan
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
isFolded?: boolean
|
|
42
|
+
|
|
43
|
+
/** 折叠后列表展示最大条数,默认 3 条,最多 10 条
|
|
44
|
+
* @supported swan
|
|
45
|
+
* @default 3
|
|
46
|
+
*/
|
|
47
|
+
foldNum?: number
|
|
48
|
+
|
|
49
|
+
/** 传入放置评论组件的页面路径,如'/pages/list/index',组件内部会触发跳转逻辑
|
|
50
|
+
* @supported swan
|
|
51
|
+
*/
|
|
52
|
+
viewMorePath?: string
|
|
53
|
+
|
|
54
|
+
/** 『全部 xx 条』的样式,目前只支持开发者自定义字体颜色
|
|
55
|
+
* @supported swan
|
|
56
|
+
*/
|
|
57
|
+
viewMoreStyle?: CommentListProps.IViewMoreStyle
|
|
58
|
+
|
|
59
|
+
/** 绑定点击单条评论的事件,点击单条评论时触发,返回数据为{status, data:{srid}}
|
|
60
|
+
* @supported swan
|
|
61
|
+
*/
|
|
62
|
+
onClickComment?: CommonEventFunction
|
|
63
|
+
|
|
64
|
+
/** 绑定点击更多事件,若除了页面跳转还需要其他操作,可通过该回调执行;若为浮层,也可使用该回调自定义交互逻辑
|
|
65
|
+
* @supported swan
|
|
66
|
+
*/
|
|
67
|
+
onViewMore?: CommonEventFunction
|
|
68
|
+
}
|
|
69
|
+
namespace CommentListProps {
|
|
70
|
+
interface ICommentParam {
|
|
71
|
+
/** 被点赞的文章的 id,与 path 参数一一对应
|
|
72
|
+
* @example "20200101"
|
|
73
|
+
*/
|
|
74
|
+
snid: string
|
|
75
|
+
|
|
76
|
+
/** 文章标题 */
|
|
77
|
+
title: string
|
|
78
|
+
|
|
79
|
+
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
80
|
+
* @example "/pages/index/index"
|
|
81
|
+
*/
|
|
82
|
+
path: string
|
|
83
|
+
/** 数组第一项用于收藏功能的展示图片
|
|
84
|
+
* @default ['https://b.bdstatic.com/miniapp/images/demo-dog.png']
|
|
85
|
+
*/
|
|
86
|
+
images?: string[]
|
|
87
|
+
}
|
|
88
|
+
interface IToolbarConfig {
|
|
89
|
+
/** 输入框提示文字 */
|
|
90
|
+
placeholder?: string
|
|
91
|
+
|
|
92
|
+
/** 显示的互动模块,对应默认值分别是:评论数、点赞、收藏、分享
|
|
93
|
+
* @default ['comment', 'like', 'favor', 'share']
|
|
94
|
+
*/
|
|
95
|
+
moduleList?: string
|
|
96
|
+
|
|
97
|
+
/** 若 moduleList 里配置了 share 模块,该参数为必填 */
|
|
98
|
+
share?: IShare
|
|
99
|
+
}
|
|
100
|
+
interface IShare {
|
|
101
|
+
/** 分享标题 */
|
|
102
|
+
title: string
|
|
103
|
+
|
|
104
|
+
/** 分享内容 */
|
|
105
|
+
content?: string
|
|
106
|
+
|
|
107
|
+
/** 分享图标 */
|
|
108
|
+
imageUrl?: string
|
|
109
|
+
|
|
110
|
+
/** 页面 path ,必须是以 / 开头的完整路径,如果 path 中参数包含中文字符,需对中文字符进行编码 */
|
|
111
|
+
path?: string
|
|
112
|
+
}
|
|
113
|
+
interface IViewMoreStyle {
|
|
114
|
+
/** 『全部 xx 条』的字体颜色,默认为视觉提供色号,开发者可传入自定义色号
|
|
115
|
+
* @default "#3388ff"
|
|
116
|
+
*/
|
|
117
|
+
color?: string
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** 评论列表
|
|
122
|
+
* @classification open
|
|
123
|
+
* @supported swan
|
|
124
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/comment-list/
|
|
125
|
+
*/
|
|
126
|
+
declare const CommentList: ComponentType<CommentListProps>
|
|
127
|
+
export { CommentList, CommentListProps }
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface ContactButtonProps extends StandardProps {
|
|
4
|
+
/** 必填。企业唯一编码,一个企业支付宝账号对应一个编码。
|
|
5
|
+
* @supported alipay
|
|
6
|
+
*/
|
|
7
|
+
tntInstId: string
|
|
8
|
+
|
|
9
|
+
/** 必填。聊天窗编码,每个聊天窗的唯一编码。
|
|
10
|
+
* @supported alipay
|
|
11
|
+
*/
|
|
12
|
+
scene: string
|
|
13
|
+
|
|
14
|
+
/** 选填。咨询按钮大小,正方形设置边长(如25*25 px)。
|
|
15
|
+
* @supported alipay
|
|
16
|
+
* @default 25
|
|
17
|
+
*/
|
|
18
|
+
size?: number | string
|
|
19
|
+
|
|
20
|
+
/** 选填。咨询按钮颜色,默认白底蓝色。
|
|
21
|
+
* @supported alipay
|
|
22
|
+
* @default "#00A3FF"
|
|
23
|
+
*/
|
|
24
|
+
color?: string
|
|
25
|
+
|
|
26
|
+
/** 选填。咨询按钮头像。
|
|
27
|
+
* @supported alipay
|
|
28
|
+
*/
|
|
29
|
+
icon?: string
|
|
30
|
+
|
|
31
|
+
/** 选填。支付宝访客用户ID(2088开头)。
|
|
32
|
+
* 说明: 客服回答问题时,如客户已离开咨询窗口,则通过推送消息到支付宝 card 中提醒客户。
|
|
33
|
+
* @supported alipay
|
|
34
|
+
*/
|
|
35
|
+
alipayCardNo?: string
|
|
36
|
+
|
|
37
|
+
/** 选填。该属性主要用于传递一些扩展信息给组件,以实现一些高级功能。该属性值的生成方式为:encodeURIComponent({"字段名":"字段值"}), 其中,字段名和字段值要根据实际使用的功能进行替换。
|
|
38
|
+
* 目前通过传入扩展信息可支持的 3 个功能:
|
|
39
|
+
* 1.访客名片。需传 cinfo 和 key 两个扩展字段,代码形如在云客服中进入 设置 > 服务窗配置 > 聊天窗 URL。点击操作栏中的 聊天窗 URL ,获取 tntInstId(企业编码)和 scene(聊天窗编码)。encodeURIComponent({"cinfo":"生成的 cinfo","key":"生成的key"}),cinfo 和 key 的值说明 支付宝小程序接入访客名片;
|
|
40
|
+
* 2.聊天窗默认带出用户的小程序订单数据。需传 appId 字段,代码形如encodeURIComponent({"appId":"商户小程序appid"})
|
|
41
|
+
* 3.未读客服消息同步至"我的小程序-我的"。同样需传 appId 字段,代码形如 encodeURIComponent({"appId":"商户小程序appid"})。
|
|
42
|
+
* @supported alipay
|
|
43
|
+
*/
|
|
44
|
+
extInfo?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** 智能客服
|
|
48
|
+
* @classification open
|
|
49
|
+
* @supported alipay
|
|
50
|
+
* @see https://opendocs.alipay.com/mini/component/contact-button
|
|
51
|
+
*/
|
|
52
|
+
declare const ContactButton: ComponentType<ContactButtonProps>
|
|
53
|
+
export { ContactButton, ContactButtonProps }
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface CoverImageProps extends StandardProps {
|
|
|
59
59
|
|
|
60
60
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
|
61
61
|
* @classification viewContainer
|
|
62
|
-
* @supported weapp, swan,
|
|
62
|
+
* @supported weapp, alipay, swan, qq, h5, harmony
|
|
63
63
|
* @example_react
|
|
64
64
|
* ```tsx
|
|
65
65
|
* // js
|
package/types/CoverView.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CommonEventFunction } from './common'
|
|
|
3
3
|
import { ViewProps } from './View'
|
|
4
4
|
interface CoverViewProps extends ViewProps {
|
|
5
5
|
/** 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效
|
|
6
|
-
* @supported weapp, swan, qq
|
|
6
|
+
* @supported weapp, alipay, swan, qq
|
|
7
7
|
*/
|
|
8
8
|
scrollTop?: number
|
|
9
9
|
|
|
@@ -37,15 +37,113 @@ interface CoverViewProps extends ViewProps {
|
|
|
37
37
|
*/
|
|
38
38
|
ariaLabel?: string
|
|
39
39
|
|
|
40
|
-
/**
|
|
40
|
+
/** 允许横向滚动。
|
|
41
41
|
* @supported alipay
|
|
42
|
+
* @default false
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
scrollX?: boolean
|
|
45
|
+
|
|
46
|
+
/** 允许纵向滚动。
|
|
47
|
+
* @supported alipay
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
scrollY?: boolean
|
|
51
|
+
|
|
52
|
+
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件。
|
|
53
|
+
* @supported alipay
|
|
54
|
+
* @default 50
|
|
55
|
+
*/
|
|
56
|
+
upperThreshold?: number
|
|
57
|
+
|
|
58
|
+
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件。
|
|
59
|
+
* @supported alipay
|
|
60
|
+
* @default 50
|
|
61
|
+
*/
|
|
62
|
+
lowerThreshold?: number
|
|
63
|
+
|
|
64
|
+
/** 设置横向滚动条位置。
|
|
65
|
+
* @supported alipay
|
|
66
|
+
*/
|
|
67
|
+
scrollLeft?: number
|
|
68
|
+
|
|
69
|
+
/** 滚动到子元素,值应为某子元素的 id。当滚动到该元素时,元素顶部对齐滚动区域顶部。
|
|
70
|
+
* 说明:scroll-into-view 的优先级高于 scroll-top。
|
|
71
|
+
* @supported alipay
|
|
72
|
+
*/
|
|
73
|
+
scrollIntoView?: string
|
|
74
|
+
|
|
75
|
+
/** 在设置滚动条位置时使用动画过渡。
|
|
76
|
+
* @supported alipay
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
scrollWithAnimation?: boolean
|
|
80
|
+
|
|
81
|
+
/** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
|
|
82
|
+
* @supported alipay
|
|
83
|
+
*/
|
|
84
|
+
scrollAnimationDuration?: number
|
|
85
|
+
|
|
86
|
+
/** 当点击 iOS 顶部状态栏或者双击 Android 标题栏时,滚动条返回顶部,只支持竖向。
|
|
87
|
+
* @supported alipay
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
enableBackToTop?: boolean
|
|
91
|
+
|
|
92
|
+
/** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
|
|
93
|
+
* @supported alipay
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
trapScroll?: boolean
|
|
97
|
+
|
|
98
|
+
/** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
|
|
99
|
+
* @supported alipay
|
|
100
|
+
*/
|
|
101
|
+
disableLowerScroll?: string
|
|
102
|
+
|
|
103
|
+
/** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
|
|
104
|
+
* @supported alipay
|
|
105
|
+
*/
|
|
106
|
+
disableUpperScroll?: string
|
|
107
|
+
|
|
108
|
+
/** 滚动到顶部/左边,会触发 scrolltoupper 事件。
|
|
109
|
+
* @supported alipay
|
|
110
|
+
*/
|
|
111
|
+
onScrollToUpper?: CommonEventFunction
|
|
112
|
+
|
|
113
|
+
/** 滚动到底部/右边,会触发 scrolltolower事件。
|
|
114
|
+
* @supported alipay
|
|
115
|
+
*/
|
|
116
|
+
onScrollToLower?: CommonEventFunction
|
|
117
|
+
|
|
118
|
+
/** 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth}。
|
|
119
|
+
* @supported alipay
|
|
120
|
+
*/
|
|
121
|
+
onScroll?: CommonEventFunction
|
|
122
|
+
|
|
123
|
+
/** 触摸动作开始。
|
|
124
|
+
* @supported alipay
|
|
125
|
+
*/
|
|
126
|
+
onTouchStart?: CommonEventFunction
|
|
127
|
+
|
|
128
|
+
/** 触摸后移动。
|
|
129
|
+
* @supported alipay
|
|
130
|
+
*/
|
|
131
|
+
onTouchMove?: CommonEventFunction
|
|
132
|
+
|
|
133
|
+
/** 触摸动作结束。
|
|
134
|
+
* @supported alipay
|
|
135
|
+
*/
|
|
136
|
+
onTouchEnd?: CommonEventFunction
|
|
137
|
+
|
|
138
|
+
/** 触摸动作被打断,如来电提醒、弹窗。
|
|
139
|
+
* @supported alipay
|
|
140
|
+
*/
|
|
141
|
+
onTouchCancel?: CommonEventFunction
|
|
44
142
|
}
|
|
45
143
|
|
|
46
144
|
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
|
|
47
145
|
* @classification viewContainer
|
|
48
|
-
* @supported weapp, swan,
|
|
146
|
+
* @supported weapp, alipay, swan, qq, h5
|
|
49
147
|
* @example_react
|
|
50
148
|
* ```tsx
|
|
51
149
|
* // js
|
package/types/CustomWrapper.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface CustomWrapperProps extends StandardProps {
|
|
|
6
6
|
|
|
7
7
|
/** custom-wrapper 自定义组件包裹器
|
|
8
8
|
* 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少
|
|
9
|
-
* @
|
|
9
|
+
* @classification viewContainer
|
|
10
|
+
* @supported weapp, swan, alipay, tt, jd, qq, h5
|
|
10
11
|
* @example
|
|
11
12
|
* ```tsx
|
|
12
13
|
* import { Component } from 'react'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface FollowSwanProps extends StandardProps {
|
|
4
|
+
/** 组件大小
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default "default"
|
|
7
|
+
*/
|
|
8
|
+
size?: string
|
|
9
|
+
|
|
10
|
+
/** 组件样式
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default "primary"
|
|
13
|
+
*/
|
|
14
|
+
type?: string
|
|
15
|
+
|
|
16
|
+
/** 关注和取消关注成功的回调,返回关注状态 {isFavor: true|false}
|
|
17
|
+
* @supported swan
|
|
18
|
+
*/
|
|
19
|
+
onFavorStatusChange?: CommonEventFunction
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** 关注小程序
|
|
23
|
+
* @classification open
|
|
24
|
+
* @supported swan
|
|
25
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/follow-swan/
|
|
26
|
+
*/
|
|
27
|
+
declare const FollowSwan: ComponentType<FollowSwanProps>
|
|
28
|
+
export { FollowSwan, FollowSwanProps }
|
package/types/Form.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare namespace FormProps {
|
|
|
66
66
|
*
|
|
67
67
|
* 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
|
|
68
68
|
* @classification forms
|
|
69
|
-
* @supported weapp, h5, rn
|
|
69
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
70
70
|
* @example_react
|
|
71
71
|
* ```tsx
|
|
72
72
|
* class App extends Component {
|
package/types/Icon.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare namespace IconProps {
|
|
|
62
62
|
|
|
63
63
|
/** 图标。组件属性的长度单位默认为 px
|
|
64
64
|
* @classification base
|
|
65
|
-
* @supported weapp,
|
|
65
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
66
66
|
* @example_react
|
|
67
67
|
* ```tsx
|
|
68
68
|
* export default class PageView extends Component {
|
package/types/Image.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare namespace ImageProps {
|
|
|
155
155
|
*
|
|
156
156
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
157
157
|
* @classification media
|
|
158
|
-
* @supported weapp,
|
|
158
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
159
159
|
* @example_react
|
|
160
160
|
* ```tsx
|
|
161
161
|
* export default class PageView extends Component {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface InlinePaymentPanelProps extends StandardProps {
|
|
4
|
+
/** 总金额,金额单位分,tip:仅支持整数型字符串
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
totalAmount?: string
|
|
8
|
+
|
|
9
|
+
/** 百度收银台的财务结算凭证,详见平台术语
|
|
10
|
+
* @supported swan
|
|
11
|
+
*/
|
|
12
|
+
dealId?: string
|
|
13
|
+
|
|
14
|
+
/** 支付能力开通后分配的支付 appKey,详见平台术语
|
|
15
|
+
* @supported swan
|
|
16
|
+
*/
|
|
17
|
+
appKey?: string
|
|
18
|
+
|
|
19
|
+
/** 平台营销信息,此处传当前订单中可使用平台券的 spuid,同时需在 支付能力中搭配使用传入该参数;注:仅与百度合作平台类目券的开发者需要填写该参数
|
|
20
|
+
* @supported swan
|
|
21
|
+
*/
|
|
22
|
+
promotionTag?: string | Array<string>
|
|
23
|
+
|
|
24
|
+
/** 是否设置挽留弹窗
|
|
25
|
+
* @supported swan
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
enablePageBackModal?: boolean
|
|
29
|
+
|
|
30
|
+
/** 自定义样式设置
|
|
31
|
+
* @supported swan
|
|
32
|
+
*/
|
|
33
|
+
customStyle?: string
|
|
34
|
+
|
|
35
|
+
/** 自定义样式档位配置,各档位配置项包括支付渠道/优惠券条高度、渠道图标大小、支付渠道文案字体大小、营销文案字体大小、选择器图标大小
|
|
36
|
+
* @supported swan
|
|
37
|
+
* @default "default"
|
|
38
|
+
*/
|
|
39
|
+
styleType?: 'tiny' | 'small' | 'default' | 'medium' | 'large'
|
|
40
|
+
|
|
41
|
+
/** 获取支付相关信息,具体信息在返回值的 detail 字段中
|
|
42
|
+
* @supported swan
|
|
43
|
+
*/
|
|
44
|
+
onGetPaymentInfo?: CommonEventFunction
|
|
45
|
+
|
|
46
|
+
/** 当发生错误时触发 error 事件,具体信息在返回值的 detail 字段中,例如 {detail: {errMsg: "something is wrong"}}
|
|
47
|
+
* @supported swan
|
|
48
|
+
*/
|
|
49
|
+
onError?: CommonEventFunction
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** 内嵌支付组件
|
|
53
|
+
* @classification open
|
|
54
|
+
* @supported swan
|
|
55
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/inline_payment_panel/
|
|
56
|
+
*/
|
|
57
|
+
declare const InlinePaymentPanel: ComponentType<InlinePaymentPanelProps>
|
|
58
|
+
export { InlinePaymentPanel, InlinePaymentPanelProps }
|
package/types/Input.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
9
9
|
/** input 的类型
|
|
10
10
|
* @default "text"
|
|
11
11
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
12
|
-
* @rn 部分支持
|
|
13
12
|
*/
|
|
14
|
-
type?:
|
|
13
|
+
type?: keyof InputProps.Type
|
|
15
14
|
|
|
16
15
|
/** 是否是密码类型
|
|
16
|
+
* @default false
|
|
17
17
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
18
18
|
*/
|
|
19
19
|
password?: boolean
|
|
@@ -30,7 +30,7 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
30
30
|
|
|
31
31
|
/** 指定 placeholder 的样式类
|
|
32
32
|
* @default "input-placeholder"
|
|
33
|
-
* @supported weapp, alipay, swan, qq, jd
|
|
33
|
+
* @supported weapp, alipay, swan, tt, qq, jd
|
|
34
34
|
*/
|
|
35
35
|
placeholderClass?: string
|
|
36
36
|
|
|
@@ -40,6 +40,7 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
40
40
|
placeholderTextColor?: string
|
|
41
41
|
|
|
42
42
|
/** 是否禁用
|
|
43
|
+
* @default false
|
|
43
44
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
44
45
|
*/
|
|
45
46
|
disabled?: boolean
|
|
@@ -69,15 +70,16 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
69
70
|
*/
|
|
70
71
|
focus?: boolean
|
|
71
72
|
|
|
72
|
-
/**
|
|
73
|
+
/** 设置键盘右下角按钮的文字,仅在type='text'时生效
|
|
74
|
+
* @alipay confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system
|
|
73
75
|
* @default done
|
|
74
76
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
75
77
|
*/
|
|
76
|
-
confirmType?:
|
|
78
|
+
confirmType?: keyof InputProps.ConfirmType
|
|
77
79
|
|
|
78
80
|
/** 点击键盘右下角按钮时是否保持键盘不收起
|
|
79
81
|
* @default false
|
|
80
|
-
* @supported weapp, alipay, swan, qq, jd
|
|
82
|
+
* @supported weapp, alipay, swan, tt, qq, jd
|
|
81
83
|
*/
|
|
82
84
|
confirmHold?: boolean
|
|
83
85
|
|
|
@@ -99,14 +101,14 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
99
101
|
selectionEnd?: number
|
|
100
102
|
|
|
101
103
|
/** 键盘弹起时,是否自动上推页面
|
|
102
|
-
* @default
|
|
104
|
+
* @default true
|
|
103
105
|
* @supported weapp, swan, tt, qq, jd
|
|
104
106
|
*/
|
|
105
107
|
adjustPosition?: boolean
|
|
106
108
|
|
|
107
109
|
/** focus 时,点击页面的时候不收起键盘
|
|
108
110
|
* @default false
|
|
109
|
-
* @supported weapp
|
|
111
|
+
* @supported weapp, tt
|
|
110
112
|
*/
|
|
111
113
|
holdKeyboard?: boolean
|
|
112
114
|
|
|
@@ -161,7 +163,9 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
161
163
|
randomNumber?: boolean
|
|
162
164
|
|
|
163
165
|
/**
|
|
164
|
-
*
|
|
166
|
+
* 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。
|
|
167
|
+
*
|
|
168
|
+
* 建议当 type 值为 text 时不要将 controlled 设置为 true,详见 [Bugs & Tips](https://opendocs.alipay.com/mini/component/input#Bug%20%26%20Tip)
|
|
165
169
|
* @default false
|
|
166
170
|
* @supported alipay
|
|
167
171
|
*/
|
|
@@ -178,9 +182,16 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
178
182
|
name?: string
|
|
179
183
|
|
|
180
184
|
/** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
|
|
185
|
+
* @default false
|
|
186
|
+
* @supported alipay
|
|
187
|
+
*/
|
|
188
|
+
alwaysSystem?: boolean
|
|
189
|
+
|
|
190
|
+
/** 使用原生键盘
|
|
191
|
+
* @default true
|
|
181
192
|
* @supported alipay
|
|
182
193
|
*/
|
|
183
|
-
|
|
194
|
+
enableNative?: boolean
|
|
184
195
|
|
|
185
196
|
/** 无障碍访问,(属性)元素的额外描述
|
|
186
197
|
* @supported qq
|
|
@@ -214,6 +225,72 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
214
225
|
onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
|
|
215
226
|
}
|
|
216
227
|
declare namespace InputProps {
|
|
228
|
+
/** Input 类型 */
|
|
229
|
+
interface Type {
|
|
230
|
+
/** 文本输入键盘
|
|
231
|
+
* @supported weapp, alipay, h5, rn
|
|
232
|
+
*/
|
|
233
|
+
text
|
|
234
|
+
|
|
235
|
+
/** 数字输入键盘
|
|
236
|
+
* @supported weapp, alipay, h5, rn
|
|
237
|
+
*/
|
|
238
|
+
number
|
|
239
|
+
|
|
240
|
+
/** 身份证输入键盘
|
|
241
|
+
*@supported weapp, alipay, rn
|
|
242
|
+
*/
|
|
243
|
+
idcard
|
|
244
|
+
|
|
245
|
+
/** 带小数点的数字键盘
|
|
246
|
+
* @supported weapp, alipay, h5, rn
|
|
247
|
+
*/
|
|
248
|
+
digit
|
|
249
|
+
|
|
250
|
+
/** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
|
|
251
|
+
* @supported weapp, alipay
|
|
252
|
+
*/
|
|
253
|
+
'safe-password'
|
|
254
|
+
|
|
255
|
+
/** 昵称输入键盘
|
|
256
|
+
* @supported weapp, alipay
|
|
257
|
+
*/
|
|
258
|
+
nickname
|
|
259
|
+
|
|
260
|
+
/** 数字输入键盘
|
|
261
|
+
* @supported alipay
|
|
262
|
+
*/
|
|
263
|
+
numberpad
|
|
264
|
+
|
|
265
|
+
/** 带小数点的数字键盘
|
|
266
|
+
* @supported alipay
|
|
267
|
+
*/
|
|
268
|
+
digitpad
|
|
269
|
+
|
|
270
|
+
/** 身份证输入键盘
|
|
271
|
+
* @supported alipay
|
|
272
|
+
*/
|
|
273
|
+
idcardpad
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** Confirm 类型 */
|
|
277
|
+
interface ConfirmType {
|
|
278
|
+
/** 右下角按钮为“发送” */
|
|
279
|
+
send
|
|
280
|
+
|
|
281
|
+
/** 右下角按钮为“搜索” */
|
|
282
|
+
search
|
|
283
|
+
|
|
284
|
+
/** 右下角按钮为“下一个” */
|
|
285
|
+
next
|
|
286
|
+
|
|
287
|
+
/** 右下角按钮为“前往” */
|
|
288
|
+
go
|
|
289
|
+
|
|
290
|
+
/** 右下角按钮为“完成” */
|
|
291
|
+
done
|
|
292
|
+
}
|
|
293
|
+
|
|
217
294
|
/** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
|
|
218
295
|
interface inputEventDetail {
|
|
219
296
|
/** 输入值 */
|
|
@@ -247,7 +324,7 @@ declare namespace InputProps {
|
|
|
247
324
|
|
|
248
325
|
/** 输入框。该组件是原生组件,使用时请注意相关限制
|
|
249
326
|
* @classification forms
|
|
250
|
-
* @supported weapp, h5, rn
|
|
327
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
251
328
|
* @example_react
|
|
252
329
|
* ```tsx
|
|
253
330
|
* class App extends Component {
|
package/types/Label.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface LabelProps extends StandardProps {
|
|
|
9
9
|
*
|
|
10
10
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
11
11
|
* @classification forms
|
|
12
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
12
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
13
13
|
* @example_react
|
|
14
14
|
* ```tsx
|
|
15
15
|
* class App extends Components {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface LifestyleProps extends StandardProps {
|
|
4
|
+
/** 必填,生活号 ID(即生活号 APPID),必须是当前小程序同账号主体且已关联的生活号。
|
|
5
|
+
* @supported alipay
|
|
6
|
+
*/
|
|
7
|
+
publicId?: string
|
|
8
|
+
|
|
9
|
+
/** 文案。支持商家自定义,最多展示一行。
|
|
10
|
+
* @supported alipay
|
|
11
|
+
*/
|
|
12
|
+
memo?: string
|
|
13
|
+
|
|
14
|
+
/** 当用户关注生活号成功后执行。
|
|
15
|
+
* @supported alipay
|
|
16
|
+
*/
|
|
17
|
+
onFollow?: CommonEventFunction
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** 关注生活号
|
|
21
|
+
* @classification open
|
|
22
|
+
* @supported alipay
|
|
23
|
+
* @see https://opendocs.alipay.com/mini/component/lifestyle
|
|
24
|
+
*/
|
|
25
|
+
declare const Lifestyle: ComponentType<LifestyleProps>
|
|
26
|
+
export { Lifestyle, LifestyleProps }
|