@tarojs/components 3.6.0-canary.2 → 3.6.0-canary.3
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-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-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/collection/collection-manifest.json +17 -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/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/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-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-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-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-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-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/react/components.js +21 -3
- 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-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-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-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-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-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/tabs/tab-item.d.ts +5 -0
- package/dist/types/components/tabs/tabs.d.ts +5 -0
- package/dist/types/components.d.ts +221 -0
- package/dist/vue2/components.js +52 -1
- package/dist/vue3/components.js +17 -0
- package/package.json +8 -3
- 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 +71 -0
- package/types/CommentList.d.ts +124 -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 +104 -0
- package/types/Login.d.ts +45 -0
- package/types/Lottie.d.ts +119 -0
- package/types/Map.d.ts +1 -1
- package/types/RtcRoom.d.ts +104 -0
- package/types/RtcRoomItem.d.ts +26 -0
- package/types/TabItem.d.ts +35 -0
- package/types/Tabs.d.ts +58 -0
package/dist/vue3/components.js
CHANGED
|
@@ -6,26 +6,39 @@
|
|
|
6
6
|
import { defineContainer } from './vue-component-lib/utils';
|
|
7
7
|
export var Ad = /*@__PURE__*/defineContainer('taro-ad-core', undefined);
|
|
8
8
|
export var AdCustom = /*@__PURE__*/defineContainer('taro-ad-custom-core', undefined);
|
|
9
|
+
export var AnimationVideo = /*@__PURE__*/defineContainer('taro-animation-video-core', undefined);
|
|
10
|
+
export var AnimationView = /*@__PURE__*/defineContainer('taro-animation-view-core', undefined);
|
|
11
|
+
export var ArCamera = /*@__PURE__*/defineContainer('taro-ar-camera-core', undefined);
|
|
9
12
|
export var Audio = /*@__PURE__*/defineContainer('taro-audio-core', undefined, ['src', 'controls', 'autoplay', 'loop', 'muted', 'nativeProps', 'error', 'play', 'pause', 'timeupdate', 'ended']);
|
|
13
|
+
export var AwemeData = /*@__PURE__*/defineContainer('taro-aweme-data-core', undefined);
|
|
10
14
|
export var Block = /*@__PURE__*/defineContainer('taro-block-core', undefined);
|
|
11
15
|
export var Button = /*@__PURE__*/defineContainer('taro-button-core', undefined, ['disabled', 'hoverClass', 'type', 'hoverStartTime', 'hoverStayTime', 'size', 'plain', 'loading', 'formType', 'tarobuttonsubmit', 'tarobuttonreset']);
|
|
12
16
|
export var Camera = /*@__PURE__*/defineContainer('taro-camera-core', undefined);
|
|
13
17
|
export var Canvas = /*@__PURE__*/defineContainer('taro-canvas-core', undefined, ['canvasId', 'nativeProps', 'longtap']);
|
|
14
18
|
export var Checkbox = /*@__PURE__*/defineContainer('taro-checkbox-core', undefined, ['name', 'value', 'color', 'id', 'checked', 'disabled', 'nativeProps', 'checkboxchange']);
|
|
15
19
|
export var CheckboxGroup = /*@__PURE__*/defineContainer('taro-checkbox-group-core', undefined, ['name', 'change']);
|
|
20
|
+
export var CommentDetail = /*@__PURE__*/defineContainer('taro-comment-detail-core', undefined);
|
|
21
|
+
export var CommentList = /*@__PURE__*/defineContainer('taro-comment-list-core', undefined);
|
|
22
|
+
export var ContactButton = /*@__PURE__*/defineContainer('taro-contact-button-core', undefined);
|
|
16
23
|
export var CoverImage = /*@__PURE__*/defineContainer('taro-cover-image-core', undefined, ['src', 'nativeProps', 'load', 'error']);
|
|
17
24
|
export var CoverView = /*@__PURE__*/defineContainer('taro-cover-view-core', undefined, ['animation', 'hoverClass', 'hoverStartTime', 'hoverStayTime', 'longpress']);
|
|
18
25
|
export var CustomWrapper = /*@__PURE__*/defineContainer('taro-custom-wrapper-core', undefined);
|
|
19
26
|
export var Editor = /*@__PURE__*/defineContainer('taro-editor-core', undefined);
|
|
27
|
+
export var FollowSwan = /*@__PURE__*/defineContainer('taro-follow-swan-core', undefined);
|
|
20
28
|
export var Form = /*@__PURE__*/defineContainer('taro-form-core', undefined, ['submit']);
|
|
21
29
|
export var FunctionalPageNavigator = /*@__PURE__*/defineContainer('taro-functional-page-navigator-core', undefined);
|
|
22
30
|
export var Icon = /*@__PURE__*/defineContainer('taro-icon-core', undefined, ['type', 'size', 'color']);
|
|
23
31
|
export var Image = /*@__PURE__*/defineContainer('taro-image-core', undefined, ['src', 'mode', 'lazyLoad', 'nativeProps', 'load', 'error']);
|
|
32
|
+
export var InlinePaymentPanel = /*@__PURE__*/defineContainer('taro-inline-payment-panel-core', undefined);
|
|
24
33
|
export var Input = /*@__PURE__*/defineContainer('taro-input-core', undefined, ['value', 'type', 'password', 'placeholder', 'disabled', 'maxlength', 'autoFocus', 'confirmType', 'name', 'nativeProps', 'input', 'paste', 'focus', 'blur', 'confirm', 'change', 'keydown']);
|
|
25
34
|
export var KeyboardAccessory = /*@__PURE__*/defineContainer('taro-keyboard-accessory-core', undefined);
|
|
26
35
|
export var Label = /*@__PURE__*/defineContainer('taro-label-core', undefined, ['for']);
|
|
36
|
+
export var Lifestyle = /*@__PURE__*/defineContainer('taro-lifestyle-core', undefined);
|
|
37
|
+
export var Like = /*@__PURE__*/defineContainer('taro-like-core', undefined);
|
|
27
38
|
export var LivePlayer = /*@__PURE__*/defineContainer('taro-live-player-core', undefined);
|
|
28
39
|
export var LivePusher = /*@__PURE__*/defineContainer('taro-live-pusher-core', undefined);
|
|
40
|
+
export var Login = /*@__PURE__*/defineContainer('taro-login-core', undefined);
|
|
41
|
+
export var Lottie = /*@__PURE__*/defineContainer('taro-lottie-core', undefined);
|
|
29
42
|
export var Map = /*@__PURE__*/defineContainer('taro-map-core', undefined);
|
|
30
43
|
export var MatchMedia = /*@__PURE__*/defineContainer('taro-match-media-core', undefined);
|
|
31
44
|
export var MovableArea = /*@__PURE__*/defineContainer('taro-movable-area-core', undefined, ['scaleArea']);
|
|
@@ -46,6 +59,8 @@ export var Radio = /*@__PURE__*/defineContainer('taro-radio-core', undefined, ['
|
|
|
46
59
|
export var RadioGroup = /*@__PURE__*/defineContainer('taro-radio-group-core', undefined, ['name', 'change']);
|
|
47
60
|
export var RichText = /*@__PURE__*/defineContainer('taro-rich-text-core', undefined, ['nodes']);
|
|
48
61
|
export var RootPortal = /*@__PURE__*/defineContainer('taro-root-portal-core', undefined);
|
|
62
|
+
export var RtcRoom = /*@__PURE__*/defineContainer('taro-rtc-room-core', undefined);
|
|
63
|
+
export var RtcRoomItem = /*@__PURE__*/defineContainer('taro-rtc-room-item-core', undefined);
|
|
49
64
|
export var ScrollView = /*@__PURE__*/defineContainer('taro-scroll-view-core', undefined, ['scrollX', 'scrollY', 'upperThreshold', 'lowerThreshold', 'mpScrollTop', 'mpScrollLeft', 'mpScrollIntoView', 'scrollWithAnimation', 'scroll', 'scrolltoupper', 'scrolltolower']);
|
|
50
65
|
export var ShareElement = /*@__PURE__*/defineContainer('taro-share-element-core', undefined);
|
|
51
66
|
export var Slider = /*@__PURE__*/defineContainer('taro-slider-core', undefined, ['min', 'max', 'step', 'disabled', 'value', 'activeColor', 'backgroundColor', 'blockSize', 'blockColor', 'showValue', 'name', 'change', 'changing']);
|
|
@@ -53,7 +68,9 @@ export var Slot = /*@__PURE__*/defineContainer('taro-slot-core', undefined);
|
|
|
53
68
|
export var Swiper = /*@__PURE__*/defineContainer('taro-swiper-core', undefined, ['indicatorDots', 'indicatorColor', 'indicatorActiveColor', 'autoplay', 'current', 'interval', 'duration', 'circular', 'vertical', 'previousMargin', 'nextMargin', 'displayMultipleItems', 'full', 'change', 'animationfinish']);
|
|
54
69
|
export var SwiperItem = /*@__PURE__*/defineContainer('taro-swiper-item-core', undefined, ['itemId']);
|
|
55
70
|
export var Switch = /*@__PURE__*/defineContainer('taro-switch-core', undefined, ['type', 'checked', 'color', 'name', 'disabled', 'nativeProps', 'change']);
|
|
71
|
+
export var TabItem = /*@__PURE__*/defineContainer('taro-tab-item-core', undefined);
|
|
56
72
|
export var Tabbar = /*@__PURE__*/defineContainer('taro-tabbar', undefined, ['conf', 'longpress']);
|
|
73
|
+
export var Tabs = /*@__PURE__*/defineContainer('taro-tabs-core', undefined);
|
|
57
74
|
export var Text = /*@__PURE__*/defineContainer('taro-text-core', undefined, ['selectable']);
|
|
58
75
|
export var Textarea = /*@__PURE__*/defineContainer('taro-textarea-core', undefined, ['value', 'placeholder', 'disabled', 'maxlength', 'autoFocus', 'autoHeight', 'name', 'nativeProps', 'input', 'focus', 'blur', 'change', 'linechange']);
|
|
59
76
|
export var VideoControl = /*@__PURE__*/defineContainer('taro-video-control', undefined, ['controls', 'currentTime', 'duration', 'isPlaying', 'pauseFunc', 'playFunc', 'seekFunc', 'showPlayBtn', 'showProgress']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.6.0-canary.
|
|
3
|
+
"version": "3.6.0-canary.3",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"author": "",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tarojs/router": "3.6.0-canary.
|
|
33
|
-
"@tarojs/taro": "3.6.0-canary.
|
|
32
|
+
"@tarojs/router": "3.6.0-canary.3",
|
|
33
|
+
"@tarojs/taro": "3.6.0-canary.3",
|
|
34
34
|
"classnames": "^2.2.5",
|
|
35
35
|
"hls.js": "^1.1.5",
|
|
36
36
|
"intersection-observer": "^0.7.0",
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
"weui": "^1.1.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@babel/generator": "^7.14.5",
|
|
43
|
+
"@babel/parser": "^7.14.5",
|
|
44
|
+
"@babel/traverse": "^7.14.5",
|
|
45
|
+
"@babel/types": "^7.14.5",
|
|
42
46
|
"@stencil/core": "^2.18.1",
|
|
43
47
|
"@stencil/react-output-target": "0.3.1",
|
|
44
48
|
"@stencil/sass": "^2.0.0",
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
"@types/jest": "^27.4.1",
|
|
47
51
|
"@types/node": "^14.14.31",
|
|
48
52
|
"change-case": "^4.1.2",
|
|
53
|
+
"csstype": "^3.1.1",
|
|
49
54
|
"jquery": "^3.4.1",
|
|
50
55
|
"lodash": "^4.17.21",
|
|
51
56
|
"miniapp-types": "1.1.14",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AnimationVideoProps extends StandardProps {
|
|
4
|
+
/** 组件使用的 video 视频资源的宽度(单位:px)
|
|
5
|
+
* @supported swan
|
|
6
|
+
* @default 800
|
|
7
|
+
*/
|
|
8
|
+
resourceWidth?: number
|
|
9
|
+
|
|
10
|
+
/** 组件使用的 video 视频资源的高度(单位:px)
|
|
11
|
+
* @supported swan
|
|
12
|
+
* @default 400
|
|
13
|
+
*/
|
|
14
|
+
resourceHeight?: number
|
|
15
|
+
|
|
16
|
+
/** 用于设置动画画布的 CSS 样式
|
|
17
|
+
* @supported swan
|
|
18
|
+
* @default "width: 400px;height: 400px"
|
|
19
|
+
*/
|
|
20
|
+
canvasStyle?: string
|
|
21
|
+
|
|
22
|
+
/** 动画资源地址,支持相对路径以及远程地址。如果是远程路径,注意 response header 里需要设置 Access-Control-Allow-Origin 来防止跨域问题
|
|
23
|
+
* @supported swan
|
|
24
|
+
*/
|
|
25
|
+
path?: string
|
|
26
|
+
|
|
27
|
+
/** 动画是否循环播放
|
|
28
|
+
* @supported swan
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
loop?: boolean
|
|
32
|
+
|
|
33
|
+
/** 动画是否自动播放
|
|
34
|
+
* @supported swan
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
autoplay?: boolean
|
|
38
|
+
|
|
39
|
+
/** 视频资源中 alpha 通道的方向,left 表示 alpha 通道在资源的左边,right 表示 alpha 通道在资源的右边。详情请参考透明视频设计资源示例
|
|
40
|
+
* @supported swan
|
|
41
|
+
* @default "left"
|
|
42
|
+
*/
|
|
43
|
+
alphaDirection?: string
|
|
44
|
+
|
|
45
|
+
/** 动画开始播放的回调
|
|
46
|
+
* @supported swan
|
|
47
|
+
*/
|
|
48
|
+
onStarted?: CommonEventFunction
|
|
49
|
+
|
|
50
|
+
/** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及暂停动画不会触发)
|
|
51
|
+
* @supported swan
|
|
52
|
+
*/
|
|
53
|
+
onEnded?: CommonEventFunction
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** 透明视频动画
|
|
57
|
+
* @classification media
|
|
58
|
+
* @supported swan
|
|
59
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/animation-video/
|
|
60
|
+
*/
|
|
61
|
+
declare const AnimationVideo: ComponentType<AnimationVideoProps>
|
|
62
|
+
export { AnimationVideo, AnimationVideoProps }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AnimationViewProps extends StandardProps {
|
|
4
|
+
/** 动画资源地址,目前只支持绝对路径
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
path?: string
|
|
8
|
+
|
|
9
|
+
/** 动画是否循环播放
|
|
10
|
+
* @supported swan
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
loop?: boolean
|
|
14
|
+
|
|
15
|
+
/** 动画是否自动播放
|
|
16
|
+
* @supported swan
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
autoplay?: boolean
|
|
20
|
+
|
|
21
|
+
/** 动画操作,可取值 play、pause、stop
|
|
22
|
+
* @supported swan
|
|
23
|
+
* @default "play"
|
|
24
|
+
*/
|
|
25
|
+
action?: 'play' | 'pause' | 'stop'
|
|
26
|
+
|
|
27
|
+
/** 是否隐藏动画
|
|
28
|
+
* @supported swan
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
hidden?: boolean
|
|
32
|
+
|
|
33
|
+
/** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发)
|
|
34
|
+
* @supported swan
|
|
35
|
+
*/
|
|
36
|
+
onEnded?: CommonEventFunction
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Lottie 动画
|
|
40
|
+
* @classification media
|
|
41
|
+
* @supported swan
|
|
42
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/animation-view-Lottie/
|
|
43
|
+
*/
|
|
44
|
+
declare const AnimationView: ComponentType<AnimationViewProps>
|
|
45
|
+
export { AnimationView, AnimationViewProps }
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface ArCameraProps extends StandardProps {
|
|
4
|
+
/** AR 项目唯一标识,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Key
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
key?: string
|
|
8
|
+
|
|
9
|
+
/** AR 相机类型,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Type:
|
|
10
|
+
* 2D 跟踪类型:0
|
|
11
|
+
* SLAM 类型:5
|
|
12
|
+
* IMU 类型:8
|
|
13
|
+
* @supported swan
|
|
14
|
+
*/
|
|
15
|
+
type?: '0' | '5' | '8'
|
|
16
|
+
|
|
17
|
+
/** 闪光灯,值为 auto、on、off
|
|
18
|
+
* @supported swan
|
|
19
|
+
* @default "off"
|
|
20
|
+
*/
|
|
21
|
+
flash?: 'auto' | 'on' | 'off'
|
|
22
|
+
|
|
23
|
+
/** 用户不允许使用摄像头或扫码失败时触发
|
|
24
|
+
* @supported swan
|
|
25
|
+
*/
|
|
26
|
+
onError?: CommonEventFunction
|
|
27
|
+
|
|
28
|
+
/** AR 加载成功时触发
|
|
29
|
+
* @supported swan
|
|
30
|
+
*/
|
|
31
|
+
onLoad?: CommonEventFunction
|
|
32
|
+
|
|
33
|
+
/** 开发者制作 AR 项目时可自定义按键,用户点击时会收到事件和数据,用户自定义事件格式参见代码示例 2:用户自定义事件
|
|
34
|
+
* @supported swan
|
|
35
|
+
*/
|
|
36
|
+
onMessage?: CommonEventFunction
|
|
37
|
+
|
|
38
|
+
/** 扫描识图结束后触发
|
|
39
|
+
* @supported swan
|
|
40
|
+
*/
|
|
41
|
+
onScanCode?: CommonEventFunction
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** AR 相机
|
|
45
|
+
* @classification media
|
|
46
|
+
* @supported swan
|
|
47
|
+
* @see https://smartprogram.baidu.com/docs/develop/component/media_ar-camera/
|
|
48
|
+
*/
|
|
49
|
+
declare const ArCamera: ComponentType<ArCameraProps>
|
|
50
|
+
export { ArCamera, ArCameraProps }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface AwemeDataProps extends StandardProps {
|
|
4
|
+
/** 用户的抖音号,可以进入抖音 App 用户个人主页查看
|
|
5
|
+
* @supported tt
|
|
6
|
+
*/
|
|
7
|
+
awemeId?: string
|
|
8
|
+
|
|
9
|
+
/** 类型,可以选择头像或昵称
|
|
10
|
+
* @supported tt
|
|
11
|
+
* @default "avatar"
|
|
12
|
+
*/
|
|
13
|
+
type?: string
|
|
14
|
+
|
|
15
|
+
/** 禁用默认行为。点击头像时,如果用户处于直播状态下默认会跳转到直播间,非直播状态下跳转到个人主页。如果为 true,点击头像时不会有默认行为。
|
|
16
|
+
* @supported tt
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disableDefault?: boolean
|
|
20
|
+
|
|
21
|
+
/** 获取信息失败时显示的默认头像 url
|
|
22
|
+
* @supported tt
|
|
23
|
+
*/
|
|
24
|
+
defaultAvatar?: string
|
|
25
|
+
|
|
26
|
+
/** 获取信息失败时显示的默认昵称文本
|
|
27
|
+
* @supported tt
|
|
28
|
+
*/
|
|
29
|
+
defaultText?: string
|
|
30
|
+
|
|
31
|
+
/** 当错误发生时触发
|
|
32
|
+
* @supported tt
|
|
33
|
+
*/
|
|
34
|
+
onError?: CommonEventFunction
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 直播间状态组件
|
|
38
|
+
* @classification open
|
|
39
|
+
* @supported tt
|
|
40
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/aweme-data/
|
|
41
|
+
*/
|
|
42
|
+
declare const AwemeData: ComponentType<AwemeDataProps>
|
|
43
|
+
export { AwemeData, AwemeDataProps }
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface CommentDetailProps extends StandardProps {
|
|
4
|
+
/** 评论核心参数
|
|
5
|
+
* @supported swan
|
|
6
|
+
*/
|
|
7
|
+
commentParam: CommentDetailProps.ICommentParam
|
|
8
|
+
|
|
9
|
+
/** 评论 ID
|
|
10
|
+
* @supported swan
|
|
11
|
+
*/
|
|
12
|
+
srid: string
|
|
13
|
+
|
|
14
|
+
/** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
|
|
15
|
+
* @supported swan
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
isPageScroll?: boolean
|
|
19
|
+
|
|
20
|
+
/** 是否需要底部 toolbar,若使用开发者自定义的底部 toolbar,该参数需设为 false
|
|
21
|
+
* @supported swan
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
needToolbar?: boolean
|
|
25
|
+
|
|
26
|
+
/** 是否需要详情顶部父级评论的点赞按钮,默认显示
|
|
27
|
+
* @supported swan
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
needLikeBtn?: boolean
|
|
31
|
+
|
|
32
|
+
/** 删除详情后是否返回列表项,默认一站式逻辑。若使用浮层,请设置改属性为 false
|
|
33
|
+
* @supported swan
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
backListAfterDelete?: boolean
|
|
37
|
+
|
|
38
|
+
/** 用于调起评论发布器发布评论
|
|
39
|
+
* @supported swan
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
addComment?: boolean
|
|
43
|
+
|
|
44
|
+
/** 删除整体详情内容时触发,返回数据为{status, data:{srid}}
|
|
45
|
+
* @supported swan
|
|
46
|
+
*/
|
|
47
|
+
onDelete?: CommonEventFunction
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
namespace CommentDetailProps {
|
|
51
|
+
interface ICommentParam {
|
|
52
|
+
/** 被点赞的文章的 id,与 path 参数一一对应
|
|
53
|
+
* @example "20200101"
|
|
54
|
+
*/
|
|
55
|
+
snid: string
|
|
56
|
+
/** 文章标题 */
|
|
57
|
+
title: string
|
|
58
|
+
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
59
|
+
* @example "/pages/index/index"
|
|
60
|
+
*/
|
|
61
|
+
path: string
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** 评论详情
|
|
66
|
+
* @classification open
|
|
67
|
+
* @supported swan
|
|
68
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/comment-detail/
|
|
69
|
+
*/
|
|
70
|
+
declare const CommentDetail: ComponentType<CommentDetailProps>
|
|
71
|
+
export { CommentDetail, CommentDetailProps }
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
|
|
70
|
+
namespace CommentListProps {
|
|
71
|
+
interface ICommentParam {
|
|
72
|
+
/** 被点赞的文章的 id,与 path 参数一一对应
|
|
73
|
+
* @example "20200101"
|
|
74
|
+
*/
|
|
75
|
+
snid: string
|
|
76
|
+
/** 文章标题 */
|
|
77
|
+
title: string
|
|
78
|
+
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
79
|
+
* @example "/pages/index/index"
|
|
80
|
+
*/
|
|
81
|
+
path: string
|
|
82
|
+
/** 数组第一项用于收藏功能的展示图片
|
|
83
|
+
* @default ['https://b.bdstatic.com/miniapp/images/demo-dog.png']
|
|
84
|
+
*/
|
|
85
|
+
images?: string[]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface IToolbarConfig {
|
|
89
|
+
/** 输入框提示文字 */
|
|
90
|
+
placeholder?: string
|
|
91
|
+
/** 显示的互动模块,对应默认值分别是:评论数、点赞、收藏、分享
|
|
92
|
+
* @default ['comment', 'like', 'favor', 'share']
|
|
93
|
+
*/
|
|
94
|
+
moduleList?: string
|
|
95
|
+
/** 若 moduleList 里配置了 share 模块,该参数为必填 */
|
|
96
|
+
share?: IShare
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface IShare {
|
|
100
|
+
/** 分享标题 */
|
|
101
|
+
title: string
|
|
102
|
+
/** 分享内容 */
|
|
103
|
+
content?: string
|
|
104
|
+
/** 分享图标 */
|
|
105
|
+
imageUrl?: string
|
|
106
|
+
/** 页面 path ,必须是以 / 开头的完整路径,如果 path 中参数包含中文字符,需对中文字符进行编码 */
|
|
107
|
+
path?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface IViewMoreStyle {
|
|
111
|
+
/** 『全部 xx 条』的字体颜色,默认为视觉提供色号,开发者可传入自定义色号
|
|
112
|
+
* @default "#3388ff"
|
|
113
|
+
*/
|
|
114
|
+
color?: string
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** 评论列表
|
|
119
|
+
* @classification open
|
|
120
|
+
* @supported swan
|
|
121
|
+
* @see https://smartprogram.baidu.com/docs/develop/extended/component-content/comment-list/
|
|
122
|
+
*/
|
|
123
|
+
declare const CommentList: ComponentType<CommentListProps>
|
|
124
|
+
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 }
|