@tarojs/components 3.6.0-canary.1 → 3.6.0-canary.11
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 +5 -5
- 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 +23 -5
- 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/components/helper.js +15 -0
- package/dist/components/helper.js.map +1 -0
- package/dist/components/hls.js +27622 -0
- package/dist/components/hls.js.map +1 -0
- package/dist/components/index.d.ts +97 -0
- package/dist/components/index.js +79 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +78 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/index3.js +33 -0
- package/dist/components/index3.js.map +1 -0
- package/dist/components/intersection-observer.js +728 -0
- package/dist/components/intersection-observer.js.map +1 -0
- package/dist/components/picker-group.js +220 -0
- package/dist/components/picker-group.js.map +1 -0
- package/dist/components/taro-ad-core.d.ts +11 -0
- package/dist/components/taro-ad-core.js +35 -0
- package/dist/components/taro-ad-core.js.map +1 -0
- package/dist/components/taro-ad-custom-core.d.ts +11 -0
- package/dist/components/taro-ad-custom-core.js +35 -0
- package/dist/components/taro-ad-custom-core.js.map +1 -0
- package/dist/components/taro-animation-video-core.d.ts +11 -0
- package/dist/components/taro-animation-video-core.js +35 -0
- package/dist/components/taro-animation-video-core.js.map +1 -0
- package/dist/components/taro-animation-view-core.d.ts +11 -0
- package/dist/components/taro-animation-view-core.js +35 -0
- package/dist/components/taro-animation-view-core.js.map +1 -0
- package/dist/components/taro-ar-camera-core.d.ts +11 -0
- package/dist/components/taro-ar-camera-core.js +35 -0
- package/dist/components/taro-ar-camera-core.js.map +1 -0
- package/dist/components/taro-audio-core.d.ts +11 -0
- package/dist/components/taro-audio-core.js +80 -0
- package/dist/components/taro-audio-core.js.map +1 -0
- package/dist/components/taro-aweme-data-core.d.ts +11 -0
- package/dist/components/taro-aweme-data-core.js +35 -0
- package/dist/components/taro-aweme-data-core.js.map +1 -0
- package/dist/components/taro-block-core.d.ts +11 -0
- package/dist/components/taro-block-core.js +31 -0
- package/dist/components/taro-block-core.js.map +1 -0
- package/dist/components/taro-button-core.d.ts +11 -0
- package/dist/components/taro-button-core.js +102 -0
- package/dist/components/taro-button-core.js.map +1 -0
- package/dist/components/taro-camera-core.d.ts +11 -0
- package/dist/components/taro-camera-core.js +35 -0
- package/dist/components/taro-camera-core.js.map +1 -0
- package/dist/components/taro-canvas-core.d.ts +11 -0
- package/dist/components/taro-canvas-core.js +57 -0
- package/dist/components/taro-canvas-core.js.map +1 -0
- package/dist/components/taro-checkbox-core.d.ts +11 -0
- package/dist/components/taro-checkbox-core.js +81 -0
- package/dist/components/taro-checkbox-core.js.map +1 -0
- package/dist/components/taro-checkbox-group-core.d.ts +11 -0
- package/dist/components/taro-checkbox-group-core.js +71 -0
- package/dist/components/taro-checkbox-group-core.js.map +1 -0
- package/dist/components/taro-comment-detail-core.d.ts +11 -0
- package/dist/components/taro-comment-detail-core.js +35 -0
- package/dist/components/taro-comment-detail-core.js.map +1 -0
- package/dist/components/taro-comment-list-core.d.ts +11 -0
- package/dist/components/taro-comment-list-core.js +35 -0
- package/dist/components/taro-comment-list-core.js.map +1 -0
- package/dist/components/taro-contact-button-core.d.ts +11 -0
- package/dist/components/taro-contact-button-core.js +35 -0
- package/dist/components/taro-contact-button-core.js.map +1 -0
- package/dist/components/taro-cover-image-core.d.ts +11 -0
- package/dist/components/taro-cover-image-core.js +52 -0
- package/dist/components/taro-cover-image-core.js.map +1 -0
- package/dist/components/taro-cover-view-core.d.ts +11 -0
- package/dist/components/taro-cover-view-core.js +89 -0
- package/dist/components/taro-cover-view-core.js.map +1 -0
- package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
- package/dist/components/taro-custom-wrapper-core.js +31 -0
- package/dist/components/taro-custom-wrapper-core.js.map +1 -0
- package/dist/components/taro-editor-core.d.ts +11 -0
- package/dist/components/taro-editor-core.js +35 -0
- package/dist/components/taro-editor-core.js.map +1 -0
- package/dist/components/taro-follow-swan-core.d.ts +11 -0
- package/dist/components/taro-follow-swan-core.js +35 -0
- package/dist/components/taro-follow-swan-core.js.map +1 -0
- package/dist/components/taro-form-core.d.ts +11 -0
- package/dist/components/taro-form-core.js +140 -0
- package/dist/components/taro-form-core.js.map +1 -0
- package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
- package/dist/components/taro-functional-page-navigator-core.js +35 -0
- package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
- package/dist/components/taro-icon-core.d.ts +11 -0
- package/dist/components/taro-icon-core.js +48 -0
- package/dist/components/taro-icon-core.js.map +1 -0
- package/dist/components/taro-image-core.d.ts +11 -0
- package/dist/components/taro-image-core.js +81 -0
- package/dist/components/taro-image-core.js.map +1 -0
- package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
- package/dist/components/taro-inline-payment-panel-core.js +35 -0
- package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
- package/dist/components/taro-input-core.d.ts +11 -0
- package/dist/components/taro-input-core.js +246 -0
- package/dist/components/taro-input-core.js.map +1 -0
- package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
- package/dist/components/taro-keyboard-accessory-core.js +35 -0
- package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
- package/dist/components/taro-label-core.d.ts +11 -0
- package/dist/components/taro-label-core.js +34 -0
- package/dist/components/taro-label-core.js.map +1 -0
- package/dist/components/taro-lifestyle-core.d.ts +11 -0
- package/dist/components/taro-lifestyle-core.js +35 -0
- package/dist/components/taro-lifestyle-core.js.map +1 -0
- package/dist/components/taro-like-core.d.ts +11 -0
- package/dist/components/taro-like-core.js +35 -0
- package/dist/components/taro-like-core.js.map +1 -0
- package/dist/components/taro-live-player-core.d.ts +11 -0
- package/dist/components/taro-live-player-core.js +35 -0
- package/dist/components/taro-live-player-core.js.map +1 -0
- package/dist/components/taro-live-pusher-core.d.ts +11 -0
- package/dist/components/taro-live-pusher-core.js +35 -0
- package/dist/components/taro-live-pusher-core.js.map +1 -0
- package/dist/components/taro-login-core.d.ts +11 -0
- package/dist/components/taro-login-core.js +35 -0
- package/dist/components/taro-login-core.js.map +1 -0
- package/dist/components/taro-lottie-core.d.ts +11 -0
- package/dist/components/taro-lottie-core.js +35 -0
- package/dist/components/taro-lottie-core.js.map +1 -0
- package/dist/components/taro-map-core.d.ts +11 -0
- package/dist/components/taro-map-core.js +35 -0
- package/dist/components/taro-map-core.js.map +1 -0
- package/dist/components/taro-match-media-core.d.ts +11 -0
- package/dist/components/taro-match-media-core.js +35 -0
- package/dist/components/taro-match-media-core.js.map +1 -0
- package/dist/components/taro-movable-area-core.d.ts +11 -0
- package/dist/components/taro-movable-area-core.js +175 -0
- package/dist/components/taro-movable-area-core.js.map +1 -0
- package/dist/components/taro-movable-view-core.d.ts +11 -0
- package/dist/components/taro-movable-view-core.js +361 -0
- package/dist/components/taro-movable-view-core.js.map +1 -0
- package/dist/components/taro-native-slot-core.d.ts +11 -0
- package/dist/components/taro-native-slot-core.js +35 -0
- package/dist/components/taro-native-slot-core.js.map +1 -0
- package/dist/components/taro-navigation-bar-core.d.ts +11 -0
- package/dist/components/taro-navigation-bar-core.js +35 -0
- package/dist/components/taro-navigation-bar-core.js.map +1 -0
- package/dist/components/taro-navigator-core.d.ts +11 -0
- package/dist/components/taro-navigator-core.js +96 -0
- package/dist/components/taro-navigator-core.js.map +1 -0
- package/dist/components/taro-official-account-core.d.ts +11 -0
- package/dist/components/taro-official-account-core.js +35 -0
- package/dist/components/taro-official-account-core.js.map +1 -0
- package/dist/components/taro-open-data-core.d.ts +11 -0
- package/dist/components/taro-open-data-core.js +35 -0
- package/dist/components/taro-open-data-core.js.map +1 -0
- package/dist/components/taro-page-container-core.d.ts +11 -0
- package/dist/components/taro-page-container-core.js +35 -0
- package/dist/components/taro-page-container-core.js.map +1 -0
- package/dist/components/taro-page-meta-core.d.ts +11 -0
- package/dist/components/taro-page-meta-core.js +35 -0
- package/dist/components/taro-page-meta-core.js.map +1 -0
- package/dist/components/taro-picker-core.d.ts +11 -0
- package/dist/components/taro-picker-core.js +538 -0
- package/dist/components/taro-picker-core.js.map +1 -0
- package/dist/components/taro-picker-group.d.ts +11 -0
- package/dist/components/taro-picker-group.js +8 -0
- package/dist/components/taro-picker-group.js.map +1 -0
- package/dist/components/taro-picker-view-column-core.d.ts +11 -0
- package/dist/components/taro-picker-view-column-core.js +115 -0
- package/dist/components/taro-picker-view-column-core.js.map +1 -0
- package/dist/components/taro-picker-view-core.d.ts +11 -0
- package/dist/components/taro-picker-view-core.js +114 -0
- package/dist/components/taro-picker-view-core.js.map +1 -0
- package/dist/components/taro-progress-core.d.ts +11 -0
- package/dist/components/taro-progress-core.js +62 -0
- package/dist/components/taro-progress-core.js.map +1 -0
- package/dist/components/taro-pull-to-refresh.d.ts +11 -0
- package/dist/components/taro-pull-to-refresh.js +284 -0
- package/dist/components/taro-pull-to-refresh.js.map +1 -0
- package/dist/components/taro-radio-core.d.ts +11 -0
- package/dist/components/taro-radio-core.js +83 -0
- package/dist/components/taro-radio-core.js.map +1 -0
- package/dist/components/taro-radio-group-core.d.ts +11 -0
- package/dist/components/taro-radio-group-core.js +82 -0
- package/dist/components/taro-radio-group-core.js.map +1 -0
- package/dist/components/taro-rich-text-core.d.ts +11 -0
- package/dist/components/taro-rich-text-core.js +86 -0
- package/dist/components/taro-rich-text-core.js.map +1 -0
- package/dist/components/taro-root-portal-core.d.ts +11 -0
- package/dist/components/taro-root-portal-core.js +35 -0
- package/dist/components/taro-root-portal-core.js.map +1 -0
- package/dist/components/taro-rtc-room-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-core.js +35 -0
- package/dist/components/taro-rtc-room-core.js.map +1 -0
- package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-item-core.js +35 -0
- package/dist/components/taro-rtc-room-item-core.js.map +1 -0
- package/dist/components/taro-scroll-view-core.d.ts +11 -0
- package/dist/components/taro-scroll-view-core.js +184 -0
- package/dist/components/taro-scroll-view-core.js.map +1 -0
- package/dist/components/taro-share-element-core.d.ts +11 -0
- package/dist/components/taro-share-element-core.js +35 -0
- package/dist/components/taro-share-element-core.js.map +1 -0
- package/dist/components/taro-slider-core.d.ts +11 -0
- package/dist/components/taro-slider-core.js +196 -0
- package/dist/components/taro-slider-core.js.map +1 -0
- package/dist/components/taro-slot-core.d.ts +11 -0
- package/dist/components/taro-slot-core.js +35 -0
- package/dist/components/taro-slot-core.js.map +1 -0
- package/dist/components/taro-swiper-core.d.ts +11 -0
- package/dist/components/taro-swiper-core.js +10165 -0
- package/dist/components/taro-swiper-core.js.map +1 -0
- package/dist/components/taro-swiper-item-core.d.ts +11 -0
- package/dist/components/taro-swiper-item-core.js +34 -0
- package/dist/components/taro-swiper-item-core.js.map +1 -0
- package/dist/components/taro-switch-core.d.ts +11 -0
- package/dist/components/taro-switch-core.js +87 -0
- package/dist/components/taro-switch-core.js.map +1 -0
- package/dist/components/taro-tab-item-core.d.ts +11 -0
- package/dist/components/taro-tab-item-core.js +35 -0
- package/dist/components/taro-tab-item-core.js.map +1 -0
- package/dist/components/taro-tabbar.d.ts +11 -0
- package/dist/components/taro-tabbar.js +457 -0
- package/dist/components/taro-tabbar.js.map +1 -0
- package/dist/components/taro-tabs-core.d.ts +11 -0
- package/dist/components/taro-tabs-core.js +35 -0
- package/dist/components/taro-tabs-core.js.map +1 -0
- package/dist/components/taro-text-core.d.ts +11 -0
- package/dist/components/taro-text-core.js +41 -0
- package/dist/components/taro-text-core.js.map +1 -0
- package/dist/components/taro-textarea-core.d.ts +11 -0
- package/dist/components/taro-textarea-core.js +164 -0
- package/dist/components/taro-textarea-core.js.map +1 -0
- package/dist/components/taro-video-control.d.ts +11 -0
- package/dist/components/taro-video-control.js +8 -0
- package/dist/components/taro-video-control.js.map +1 -0
- package/dist/components/taro-video-core.d.ts +11 -0
- package/dist/components/taro-video-core.js +485 -0
- package/dist/components/taro-video-core.js.map +1 -0
- package/dist/components/taro-video-danmu.d.ts +11 -0
- package/dist/components/taro-video-danmu.js +8 -0
- package/dist/components/taro-video-danmu.js.map +1 -0
- package/dist/components/taro-view-core.d.ts +11 -0
- package/dist/components/taro-view-core.js +101 -0
- package/dist/components/taro-view-core.js.map +1 -0
- package/dist/components/taro-voip-room-core.d.ts +11 -0
- package/dist/components/taro-voip-room-core.js +35 -0
- package/dist/components/taro-voip-room-core.js.map +1 -0
- package/dist/components/taro-web-view-core.d.ts +11 -0
- package/dist/components/taro-web-view-core.js +46 -0
- package/dist/components/taro-web-view-core.js.map +1 -0
- package/dist/components/video-control.js +233 -0
- package/dist/components/video-control.js.map +1 -0
- package/dist/components/video-danmu.js +110 -0
- package/dist/components/video-danmu.js.map +1 -0
- 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 +5 -5
- 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/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-a2aab820.entry.js → p-22315b9d.entry.js} +2 -2
- package/dist/taro-components/p-22315b9d.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-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-1cd1c507.system.entry.js → p-c3c37cbb.system.entry.js} +2 -2
- package/dist/taro-components/p-c3c37cbb.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-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/lib/react/components.d.ts +82 -0
- package/lib/react/components.js +85 -0
- package/lib/react/components.js.map +1 -0
- package/lib/react/helper.d.ts +10 -0
- package/lib/react/helper.js +7 -0
- package/lib/react/helper.js.map +1 -0
- package/lib/react/index.d.ts +1 -0
- package/lib/react/index.js +2 -0
- package/lib/react/index.js.map +1 -0
- package/lib/react/interfaces-4f837811.d.ts +30 -0
- package/lib/react/react-component-lib/createComponent.d.ts +10 -0
- package/lib/react/react-component-lib/createComponent.js +70 -0
- package/lib/react/react-component-lib/createComponent.js.map +1 -0
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/lib/react/react-component-lib/index.d.ts +2 -0
- package/lib/react/react-component-lib/index.js +3 -0
- package/lib/react/react-component-lib/index.js.map +1 -0
- package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
- package/lib/react/react-component-lib/utils/attachProps.js +101 -0
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/lib/react/react-component-lib/utils/case.d.ts +3 -0
- package/lib/react/react-component-lib/utils/case.js +9 -0
- package/lib/react/react-component-lib/utils/case.js.map +1 -0
- package/lib/react/react-component-lib/utils/index.d.ts +11 -0
- package/lib/react/react-component-lib/utils/index.js +37 -0
- package/lib/react/react-component-lib/utils/index.js.map +1 -0
- package/lib/vue2/components.d.ts +352 -0
- package/lib/vue2/components.js +620 -0
- package/lib/vue2/components.js.map +1 -0
- package/lib/vue2/index.d.ts +3 -0
- package/lib/vue2/index.js +21 -0
- package/lib/vue2/index.js.map +1 -0
- package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
- package/lib/vue2/vue-component-lib/utils.js +32 -0
- package/lib/vue2/vue-component-lib/utils.js.map +1 -0
- package/lib/vue3/components.d.ts +82 -0
- package/lib/vue3/components.js +386 -0
- package/lib/vue3/components.js.map +1 -0
- package/lib/vue3/index.d.ts +3 -0
- package/lib/vue3/index.js +15 -0
- package/lib/vue3/index.js.map +1 -0
- package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
- package/lib/vue3/vue-component-lib/utils.js +163 -0
- package/lib/vue3/vue-component-lib/utils.js.map +1 -0
- package/package.json +17 -9
- 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/react/component-lib/index.js +0 -64
- package/dist/react/component-lib/input.js +0 -23
- package/dist/react/component-lib/reactify-wc.js +0 -245
- package/dist/react/components.js +0 -65
- package/dist/react/helper.js +0 -13
- package/dist/react/index.js +0 -1
- package/dist/react/react-component-lib/index.js +0 -2
- package/dist/react/react-component-lib/interfaces.js +0 -1
- package/dist/react/react-component-lib/utils/attachProps.js +0 -107
- package/dist/react/react-component-lib/utils/case.js +0 -10
- package/dist/react/react-component-lib/utils/dev.js +0 -12
- 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/dist/vue2/component-lib/components.js +0 -60
- package/dist/vue2/component-lib/createComponent.js +0 -21
- package/dist/vue2/component-lib/createFormsComponent.js +0 -63
- package/dist/vue2/component-lib/icon.js +0 -19
- package/dist/vue2/component-lib/image.js +0 -20
- package/dist/vue2/component-lib/index.js +0 -30
- package/dist/vue2/component-lib/mixins/listeners.js +0 -19
- package/dist/vue2/component-lib/mixins/refs.js +0 -49
- package/dist/vue2/component-lib/picker.js +0 -45
- package/dist/vue2/component-lib/scroll-view.js +0 -37
- package/dist/vue2/component-lib/text.js +0 -20
- package/dist/vue2/components.js +0 -490
- package/dist/vue2/index.js +0 -26
- package/dist/vue2/vue-component-lib/utils.js +0 -45
- package/dist/vue3/component-lib/createComponent.js +0 -23
- package/dist/vue3/component-lib/createFormsComponent.js +0 -52
- package/dist/vue3/component-lib/forwardRef.js +0 -11
- package/dist/vue3/component-lib/icon.js +0 -21
- package/dist/vue3/component-lib/image.js +0 -22
- package/dist/vue3/component-lib/index.js +0 -65
- package/dist/vue3/component-lib/scroll-view.js +0 -28
- package/dist/vue3/component-lib/text.js +0 -22
- package/dist/vue3/components.js +0 -64
- package/dist/vue3/index.js +0 -19
- package/dist/vue3/vue-component-lib/utils.js +0 -201
- 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/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 }
|
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/LivePlayer.d.ts
CHANGED
|
@@ -271,7 +271,7 @@ declare namespace LivePlayerProps {
|
|
|
271
271
|
*
|
|
272
272
|
* 需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
|
273
273
|
* @classification media
|
|
274
|
-
* @supported weapp, tt
|
|
274
|
+
* @supported weapp, swan, tt, qq, jd
|
|
275
275
|
* @example_react
|
|
276
276
|
* ```tsx
|
|
277
277
|
* class App extends Components {
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -365,7 +365,7 @@ declare namespace LivePusherProps {
|
|
|
365
365
|
/** 实时音视频录制。需要用户授权 scope.camera、scope.record
|
|
366
366
|
* 需要先通过类目审核,再在小程序管理后台,「开发」-「接口设置」中自助开通该组件权限。
|
|
367
367
|
* @classification media
|
|
368
|
-
* @supported weapp
|
|
368
|
+
* @supported weapp, qq
|
|
369
369
|
* @example_react
|
|
370
370
|
* ```tsx
|
|
371
371
|
* class App extends Components {
|
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 }
|