@tarojs/components 3.6.0-canary.2 → 3.6.0-canary.4
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-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-slot-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-slot-core.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-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/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/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/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-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-slot-core.entry.js +5 -0
- package/dist/esm/taro-slot-core.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-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-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-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.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-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/input.js +2 -7
- package/dist/react/component-lib/reactify-wc.js +18 -20
- package/dist/react/components.js +21 -2
- package/dist/react/helper.js +1 -6
- package/dist/react/react-component-lib/createComponent.js +12 -19
- package/dist/react/react-component-lib/createOverlayComponent.js +24 -27
- package/dist/react/react-component-lib/interfaces.js +0 -1
- package/dist/react/react-component-lib/utils/attachProps.js +1 -1
- package/dist/react/react-component-lib/utils/index.js +6 -2
- 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-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-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-d6441fd8.entry.js +2 -0
- package/dist/taro-components/p-d6441fd8.entry.js.map +1 -0
- 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-f00ee372.system.entry.js +2 -0
- package/dist/taro-components/p-f00ee372.system.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/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/tabs/tab-item.d.ts +5 -0
- package/dist/types/components/tabs/tabs.d.ts +5 -0
- package/dist/types/components.d.ts +234 -0
- package/dist/vue2/component-lib/createComponent.js +1 -1
- package/dist/vue2/component-lib/createFormsComponent.js +2 -7
- package/dist/vue2/component-lib/index.js +1 -1
- package/dist/vue2/component-lib/mixins/listeners.js +1 -6
- package/dist/vue2/component-lib/mixins/refs.js +1 -1
- package/dist/vue2/component-lib/picker.js +1 -6
- package/dist/vue2/component-lib/scroll-view.js +1 -6
- package/dist/vue2/components.js +56 -2
- package/dist/vue2/index.js +2 -2
- package/dist/vue2/vue-component-lib/utils.js +2 -6
- package/dist/vue3/component-lib/createComponent.js +1 -1
- package/dist/vue3/component-lib/createFormsComponent.js +3 -7
- package/dist/vue3/components.js +18 -0
- package/dist/vue3/index.js +1 -1
- package/dist/vue3/vue-component-lib/utils.js +3 -7
- package/package.json +10 -5
- package/types/AnimationVideo.d.ts +62 -0
- package/types/AnimationView.d.ts +45 -0
- package/types/ArCamera.d.ts +50 -0
- package/types/AwemeData.d.ts +43 -0
- package/types/CommentDetail.d.ts +72 -0
- package/types/CommentList.d.ts +127 -0
- package/types/ContactButton.d.ts +53 -0
- package/types/FollowSwan.d.ts +28 -0
- package/types/InlinePaymentPanel.d.ts +58 -0
- package/types/Lifestyle.d.ts +26 -0
- package/types/Like.d.ts +107 -0
- package/types/Login.d.ts +45 -0
- package/types/Lottie.d.ts +119 -0
- package/types/Map.d.ts +1 -1
- package/types/NativeSlot.d.ts +32 -0
- package/types/RtcRoom.d.ts +104 -0
- package/types/RtcRoomItem.d.ts +26 -0
- package/types/Slot.d.ts +1 -1
- package/types/TabItem.d.ts +35 -0
- package/types/Tabs.d.ts +58 -0
- package/types/Video.d.ts +1 -3
- 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-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
|
@@ -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 }
|
|
@@ -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 }
|
|
@@ -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 }
|
|
@@ -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 }
|
package/types/Like.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface LikeProps extends StandardProps {
|
|
4
|
+
/** 是否已被点赞
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
isLiked?: boolean
|
|
9
|
+
|
|
10
|
+
/** 按钮模式。icon:表示仅有图标;mixture:表示图标文字结合
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default "icon"
|
|
13
|
+
*/
|
|
14
|
+
mode?: string
|
|
15
|
+
|
|
16
|
+
/** 图标类型。hand:表示手形;heart:表示心形
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default "hand"
|
|
19
|
+
*/
|
|
20
|
+
iconType?: string
|
|
21
|
+
|
|
22
|
+
/** 点赞按钮上的文案。默认为赞,仅在 mode 属性值为'mixture'时有效
|
|
23
|
+
* @supported swan
|
|
24
|
+
* @default "赞"
|
|
25
|
+
*/
|
|
26
|
+
likeText?: string
|
|
27
|
+
|
|
28
|
+
/** 点赞数量
|
|
29
|
+
* @supported swan
|
|
30
|
+
* @default 0
|
|
31
|
+
*/
|
|
32
|
+
likeNum?: number
|
|
33
|
+
|
|
34
|
+
/** 被点赞的对象类型。0:表示对文章内容进行点赞;1:表示对评论内容进行点赞
|
|
35
|
+
* @supported swan
|
|
36
|
+
* @default 0
|
|
37
|
+
*/
|
|
38
|
+
likeType?: number
|
|
39
|
+
|
|
40
|
+
/** 点赞动效形式。0:无动效;1:轻动效;2:强动效
|
|
41
|
+
* @supported swan
|
|
42
|
+
* @default 1
|
|
43
|
+
*/
|
|
44
|
+
animationType?: number
|
|
45
|
+
|
|
46
|
+
/** 点赞后是否弹出 toast 提示
|
|
47
|
+
* @supported swan
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
isShowToast?: boolean
|
|
51
|
+
|
|
52
|
+
/** toast 文案,默认为已点赞、已取消
|
|
53
|
+
* @supported swan
|
|
54
|
+
* @default ['已点赞', '已取消']
|
|
55
|
+
*/
|
|
56
|
+
toastText?: string[]
|
|
57
|
+
|
|
58
|
+
/** 点赞服务需要的必要参数
|
|
59
|
+
* @supported swan
|
|
60
|
+
*/
|
|
61
|
+
likeParam: LikeProps.ILikeParam
|
|
62
|
+
|
|
63
|
+
/** 使用 npm 方式引入点赞组件时,点击按钮时在用户未登录状态下会触发此事件;使用动态库方式引入点赞组件时,点击按钮时在用户未登录状态下不会触发此事件
|
|
64
|
+
* @supported swan
|
|
65
|
+
*/
|
|
66
|
+
onError?: CommonEventFunction
|
|
67
|
+
|
|
68
|
+
/** 点击点赞按钮,在点赞服务成功后将状态返回给使用组件者
|
|
69
|
+
* @supported swan
|
|
70
|
+
*/
|
|
71
|
+
onSuccess?: CommonEventFunction
|
|
72
|
+
|
|
73
|
+
/** 点击点赞按钮,在点赞服务失败后将状态返回给使用组件者
|
|
74
|
+
* @supported swan
|
|
75
|
+
*/
|
|
76
|
+
onFail?: CommonEventFunction
|
|
77
|
+
}
|
|
78
|
+
declare namespace LikeProps {
|
|
79
|
+
interface ILikeParam {
|
|
80
|
+
/** 用户身份唯一标识 */
|
|
81
|
+
openid: string
|
|
82
|
+
|
|
83
|
+
/** 被点赞的文章的 id,与 path 参数一一对应
|
|
84
|
+
* @example "20200101"
|
|
85
|
+
*/
|
|
86
|
+
snid: string
|
|
87
|
+
|
|
88
|
+
/** 被点赞的评论 id */
|
|
89
|
+
spid?: string
|
|
90
|
+
|
|
91
|
+
/** 文章标题 */
|
|
92
|
+
title: string
|
|
93
|
+
|
|
94
|
+
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
95
|
+
* @example "/pages/index/index"
|
|
96
|
+
*/
|
|
97
|
+
path: string
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** 点赞
|
|
102
|
+
* @classification open
|
|
103
|
+
* @supported swan
|
|
104
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/like/
|
|
105
|
+
*/
|
|
106
|
+
declare const Like: ComponentType<LikeProps>
|
|
107
|
+
export { Like, LikeProps }
|
package/types/Login.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface LoginProps extends StandardProps {
|
|
4
|
+
/** 组件中用户授权按钮的类名,可用于自定义样式
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
buttonClass?: string
|
|
8
|
+
|
|
9
|
+
/** 组件中用户授权勾选框选中时的颜色,同 CSS 的 color
|
|
10
|
+
* @supported swan
|
|
11
|
+
* @default "#3388FF"
|
|
12
|
+
*/
|
|
13
|
+
checkedColor?: string
|
|
14
|
+
|
|
15
|
+
/** 主题颜色,设置后将应用于 “用户授权按钮背景色” 和 “用户授权勾选框选中时的颜色”
|
|
16
|
+
* 注:theme-color 的优先级低于 button-class 和 checked-color,且当 button-class 存在时,theme-color 不生效
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default "#3388FF"
|
|
19
|
+
*/
|
|
20
|
+
themeColor?: string
|
|
21
|
+
|
|
22
|
+
/** 用户完成授权后,获取用户手机号:
|
|
23
|
+
* detail.errMsg 值为"getPhoneNumber:ok" 时代表用户信息获取成功;
|
|
24
|
+
* detail.errMsg 值为"getPhoneNumber:fail auth deny"时代表用户信息获取失败。
|
|
25
|
+
* 参考 用户数据的签名验证和加解密 对用户数据进行处理获得用户手机号。
|
|
26
|
+
* 用户手机号信息解密后数据示例:{"mobile":"15000000000"}
|
|
27
|
+
* 1. 非个人开发者可申请;
|
|
28
|
+
* 2. 审核通过后,进入小程序首页,在左侧导航栏单击“设置 -> 开发设置”。下拉页面,在“获取用户手机号权限申请”中单击“申请开通”
|
|
29
|
+
* @supported swan
|
|
30
|
+
*/
|
|
31
|
+
onGetPhoneNumber?: CommonEventFunction
|
|
32
|
+
|
|
33
|
+
/** 组件加载失败回调
|
|
34
|
+
* @supported swan
|
|
35
|
+
*/
|
|
36
|
+
onLoadError?: CommonEventFunction
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** 联合登录 / 手机号授权内嵌组件
|
|
40
|
+
* @classification open
|
|
41
|
+
* @supported swan
|
|
42
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/login/
|
|
43
|
+
*/
|
|
44
|
+
declare const Login: ComponentType<LoginProps>
|
|
45
|
+
export { Login, LoginProps }
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface LottieProps extends StandardProps {
|
|
4
|
+
/** 是否自动播放。
|
|
5
|
+
* @supported alipay
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
autoplay?: boolean
|
|
9
|
+
|
|
10
|
+
/** Lottie 资源地址。包含近端(包内地址)和远端(网络)的 JSON 文件地址。
|
|
11
|
+
* 与 djangoId 二选一。
|
|
12
|
+
* @supported alipay
|
|
13
|
+
*/
|
|
14
|
+
path?: string
|
|
15
|
+
|
|
16
|
+
/** 播放速度。正数为正向播放,负数负向播放。
|
|
17
|
+
* @supported alipay
|
|
18
|
+
* @default 1.0
|
|
19
|
+
*/
|
|
20
|
+
speed?: number
|
|
21
|
+
|
|
22
|
+
/** 循环次数。
|
|
23
|
+
*
|
|
24
|
+
* 如果是负数表示无限次。
|
|
25
|
+
* 如果是 0 表示不循环,播放一次。
|
|
26
|
+
* 如果是 1 表示循环一次,播放两次。
|
|
27
|
+
* @supported alipay
|
|
28
|
+
* @default 0
|
|
29
|
+
*/
|
|
30
|
+
repeatCount?: number
|
|
31
|
+
|
|
32
|
+
/** 是否自动回播。
|
|
33
|
+
* @supported alipay
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
autoReverse?: boolean
|
|
37
|
+
|
|
38
|
+
/** 资源地址。"/" 表明是小程序根目录。
|
|
39
|
+
* @supported alipay
|
|
40
|
+
*/
|
|
41
|
+
assetsPath?: string
|
|
42
|
+
|
|
43
|
+
/** 兜底图或者降级图地址。
|
|
44
|
+
*
|
|
45
|
+
* 1. 支持本地资源,案例:'/image/lottie/lottie2_default.png'。
|
|
46
|
+
* 支持 http 的 cdn 地址、近端地址。
|
|
47
|
+
* 小程序场景不支持 djangoId。
|
|
48
|
+
* @supported alipay
|
|
49
|
+
*/
|
|
50
|
+
placeholder?: string
|
|
51
|
+
|
|
52
|
+
/** Lottie 在线资源。远端的 Zip 文件地址。Lottie 组件会执行 MD5 校验、解压、获取等过程,在过程中显示 placeholder 图片。
|
|
53
|
+
* 与 path 二选一
|
|
54
|
+
* @supported alipay
|
|
55
|
+
*/
|
|
56
|
+
djangoId?: string
|
|
57
|
+
|
|
58
|
+
/** 在线资源的 md5 校验。
|
|
59
|
+
* djangoId=https://b.zip。
|
|
60
|
+
* 可以使用 b.zip 加密 获取 md5 值
|
|
61
|
+
* md5="77c6c86fc89ba94cc0a9271b77ae77d2"
|
|
62
|
+
* @supported alipay
|
|
63
|
+
*/
|
|
64
|
+
md5?: string
|
|
65
|
+
|
|
66
|
+
/** 降级。降级是指如遇低端设备,Lottie 会降级展示为 placeholder。
|
|
67
|
+
* 当 optimize 为 true ,并且传入了 placeholder 时,在低端设备上只会展示 placeholder,不展示 Lottie。
|
|
68
|
+
* 低端设备如下所示:
|
|
69
|
+
*
|
|
70
|
+
* iOS :小于等于 iPhone6P
|
|
71
|
+
* Android:内存容量小于 3G
|
|
72
|
+
* @supported alipay
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
optimize?: boolean
|
|
76
|
+
|
|
77
|
+
/** 当数据下载+视图创建完成时触发。
|
|
78
|
+
* @supported alipay
|
|
79
|
+
*/
|
|
80
|
+
onDataReady?: CommonEventFunction
|
|
81
|
+
|
|
82
|
+
/** 数据加载失败时触发。
|
|
83
|
+
* @supported alipay
|
|
84
|
+
*/
|
|
85
|
+
onDataFailed?: CommonEventFunction
|
|
86
|
+
|
|
87
|
+
/** 动画开始时触发。
|
|
88
|
+
* @supported alipay
|
|
89
|
+
*/
|
|
90
|
+
onAnimationStart?: CommonEventFunction
|
|
91
|
+
|
|
92
|
+
/** 动画结束时触发。
|
|
93
|
+
* @supported alipay
|
|
94
|
+
*/
|
|
95
|
+
onAnimationEnd?: CommonEventFunction
|
|
96
|
+
|
|
97
|
+
/** 动画一次重播结束。
|
|
98
|
+
* @supported alipay
|
|
99
|
+
*/
|
|
100
|
+
onAnimationRepeat?: CommonEventFunction
|
|
101
|
+
|
|
102
|
+
/** 动画取消。业务调用 Cancel 时回调。
|
|
103
|
+
* @supported alipay
|
|
104
|
+
*/
|
|
105
|
+
onAnimationCancel?: CommonEventFunction
|
|
106
|
+
|
|
107
|
+
/** 参数化时,数据准备完成,等待业务传入参数化值。
|
|
108
|
+
* @supported alipay
|
|
109
|
+
*/
|
|
110
|
+
onDataLoadReady?: CommonEventFunction
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Lottie
|
|
114
|
+
* @classification media
|
|
115
|
+
* @supported alipay
|
|
116
|
+
* @see https://opendocs.alipay.com/mini/component/lottie
|
|
117
|
+
*/
|
|
118
|
+
declare const Lottie: ComponentType<LottieProps>
|
|
119
|
+
export { Lottie, LottieProps }
|
package/types/Map.d.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
interface NativeSlotProps {
|
|
4
|
+
/** 指定插入的 slot 位置
|
|
5
|
+
* @default none
|
|
6
|
+
* @supported weapp, swan, alipay, tt, jd, qq
|
|
7
|
+
*/
|
|
8
|
+
name?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** 编译的原生组件支持使用 slot 插槽
|
|
12
|
+
* @supported weapp, swan, alipay, tt, jd, qq
|
|
13
|
+
* @version 3.5.7+
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { NativeSlot, View } from '@tarojs/components'
|
|
17
|
+
*
|
|
18
|
+
* export default function () {
|
|
19
|
+
* render () {
|
|
20
|
+
* return (
|
|
21
|
+
* <View>
|
|
22
|
+
* <NativeSlot />
|
|
23
|
+
* </View>
|
|
24
|
+
* )
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
* @see https://github.com/NervJS/taro/pull/12627
|
|
29
|
+
*/
|
|
30
|
+
declare const NativeSlot: ComponentType<NativeSlotProps>
|
|
31
|
+
|
|
32
|
+
export { NativeSlot, NativeSlotProps }
|