@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.
Files changed (257) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/taro-animation-video-core.cjs.entry.js +23 -0
  3. package/dist/cjs/taro-animation-video-core.cjs.entry.js.map +1 -0
  4. package/dist/cjs/taro-animation-view-core.cjs.entry.js +23 -0
  5. package/dist/cjs/taro-animation-view-core.cjs.entry.js.map +1 -0
  6. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +23 -0
  7. package/dist/cjs/taro-ar-camera-core.cjs.entry.js.map +1 -0
  8. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +23 -0
  9. package/dist/cjs/taro-aweme-data-core.cjs.entry.js.map +1 -0
  10. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +23 -0
  11. package/dist/cjs/taro-comment-detail-core.cjs.entry.js.map +1 -0
  12. package/dist/cjs/taro-comment-list-core.cjs.entry.js +23 -0
  13. package/dist/cjs/taro-comment-list-core.cjs.entry.js.map +1 -0
  14. package/dist/cjs/taro-components.cjs.js +1 -1
  15. package/dist/cjs/taro-contact-button-core.cjs.entry.js +23 -0
  16. package/dist/cjs/taro-contact-button-core.cjs.entry.js.map +1 -0
  17. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +23 -0
  18. package/dist/cjs/taro-follow-swan-core.cjs.entry.js.map +1 -0
  19. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +23 -0
  20. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js.map +1 -0
  21. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +23 -0
  22. package/dist/cjs/taro-lifestyle-core.cjs.entry.js.map +1 -0
  23. package/dist/cjs/taro-like-core.cjs.entry.js +23 -0
  24. package/dist/cjs/taro-like-core.cjs.entry.js.map +1 -0
  25. package/dist/cjs/taro-login-core.cjs.entry.js +23 -0
  26. package/dist/cjs/taro-login-core.cjs.entry.js.map +1 -0
  27. package/dist/cjs/taro-lottie-core.cjs.entry.js +23 -0
  28. package/dist/cjs/taro-lottie-core.cjs.entry.js.map +1 -0
  29. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +23 -0
  30. package/dist/cjs/taro-rtc-room-core.cjs.entry.js.map +1 -0
  31. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +23 -0
  32. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js.map +1 -0
  33. package/dist/cjs/taro-tab-item-core.cjs.entry.js +23 -0
  34. package/dist/cjs/taro-tab-item-core.cjs.entry.js.map +1 -0
  35. package/dist/cjs/taro-tabs-core.cjs.entry.js +23 -0
  36. package/dist/cjs/taro-tabs-core.cjs.entry.js.map +1 -0
  37. package/dist/collection/collection-manifest.json +17 -0
  38. package/dist/collection/components/animation-video/animation-video.js +12 -0
  39. package/dist/collection/components/animation-video/animation-video.js.map +1 -0
  40. package/dist/collection/components/animation-view/animation-view.js +12 -0
  41. package/dist/collection/components/animation-view/animation-view.js.map +1 -0
  42. package/dist/collection/components/ar-camera/ar-camera.js +12 -0
  43. package/dist/collection/components/ar-camera/ar-camera.js.map +1 -0
  44. package/dist/collection/components/aweme-data/aweme-data.js +12 -0
  45. package/dist/collection/components/aweme-data/aweme-data.js.map +1 -0
  46. package/dist/collection/components/comment/comment-detail.js +12 -0
  47. package/dist/collection/components/comment/comment-detail.js.map +1 -0
  48. package/dist/collection/components/comment/comment-list.js +12 -0
  49. package/dist/collection/components/comment/comment-list.js.map +1 -0
  50. package/dist/collection/components/contact-button/contact-button.js +12 -0
  51. package/dist/collection/components/contact-button/contact-button.js.map +1 -0
  52. package/dist/collection/components/follow-swan/follow-swan.js +12 -0
  53. package/dist/collection/components/follow-swan/follow-swan.js.map +1 -0
  54. package/dist/collection/components/inline-payment-panel/inline-payment-panel.js +12 -0
  55. package/dist/collection/components/inline-payment-panel/inline-payment-panel.js.map +1 -0
  56. package/dist/collection/components/lifestyle/lifestyle.js +12 -0
  57. package/dist/collection/components/lifestyle/lifestyle.js.map +1 -0
  58. package/dist/collection/components/like/like.js +12 -0
  59. package/dist/collection/components/like/like.js.map +1 -0
  60. package/dist/collection/components/login/login.js +12 -0
  61. package/dist/collection/components/login/login.js.map +1 -0
  62. package/dist/collection/components/lottie/lottie.js +12 -0
  63. package/dist/collection/components/lottie/lottie.js.map +1 -0
  64. package/dist/collection/components/rtc-room/rtc-room-item.js +12 -0
  65. package/dist/collection/components/rtc-room/rtc-room-item.js.map +1 -0
  66. package/dist/collection/components/rtc-room/rtc-room.js +12 -0
  67. package/dist/collection/components/rtc-room/rtc-room.js.map +1 -0
  68. package/dist/collection/components/tabs/tab-item.js +12 -0
  69. package/dist/collection/components/tabs/tab-item.js.map +1 -0
  70. package/dist/collection/components/tabs/tabs.js +12 -0
  71. package/dist/collection/components/tabs/tabs.js.map +1 -0
  72. package/dist/esm/loader.js +1 -1
  73. package/dist/esm/taro-animation-video-core.entry.js +19 -0
  74. package/dist/esm/taro-animation-video-core.entry.js.map +1 -0
  75. package/dist/esm/taro-animation-view-core.entry.js +19 -0
  76. package/dist/esm/taro-animation-view-core.entry.js.map +1 -0
  77. package/dist/esm/taro-ar-camera-core.entry.js +19 -0
  78. package/dist/esm/taro-ar-camera-core.entry.js.map +1 -0
  79. package/dist/esm/taro-aweme-data-core.entry.js +19 -0
  80. package/dist/esm/taro-aweme-data-core.entry.js.map +1 -0
  81. package/dist/esm/taro-comment-detail-core.entry.js +19 -0
  82. package/dist/esm/taro-comment-detail-core.entry.js.map +1 -0
  83. package/dist/esm/taro-comment-list-core.entry.js +19 -0
  84. package/dist/esm/taro-comment-list-core.entry.js.map +1 -0
  85. package/dist/esm/taro-components.js +1 -1
  86. package/dist/esm/taro-contact-button-core.entry.js +19 -0
  87. package/dist/esm/taro-contact-button-core.entry.js.map +1 -0
  88. package/dist/esm/taro-follow-swan-core.entry.js +19 -0
  89. package/dist/esm/taro-follow-swan-core.entry.js.map +1 -0
  90. package/dist/esm/taro-inline-payment-panel-core.entry.js +19 -0
  91. package/dist/esm/taro-inline-payment-panel-core.entry.js.map +1 -0
  92. package/dist/esm/taro-lifestyle-core.entry.js +19 -0
  93. package/dist/esm/taro-lifestyle-core.entry.js.map +1 -0
  94. package/dist/esm/taro-like-core.entry.js +19 -0
  95. package/dist/esm/taro-like-core.entry.js.map +1 -0
  96. package/dist/esm/taro-login-core.entry.js +19 -0
  97. package/dist/esm/taro-login-core.entry.js.map +1 -0
  98. package/dist/esm/taro-lottie-core.entry.js +19 -0
  99. package/dist/esm/taro-lottie-core.entry.js.map +1 -0
  100. package/dist/esm/taro-rtc-room-core.entry.js +19 -0
  101. package/dist/esm/taro-rtc-room-core.entry.js.map +1 -0
  102. package/dist/esm/taro-rtc-room-item-core.entry.js +19 -0
  103. package/dist/esm/taro-rtc-room-item-core.entry.js.map +1 -0
  104. package/dist/esm/taro-tab-item-core.entry.js +19 -0
  105. package/dist/esm/taro-tab-item-core.entry.js.map +1 -0
  106. package/dist/esm/taro-tabs-core.entry.js +19 -0
  107. package/dist/esm/taro-tabs-core.entry.js.map +1 -0
  108. package/dist/esm-es5/loader.js +1 -1
  109. package/dist/esm-es5/loader.js.map +1 -1
  110. package/dist/esm-es5/taro-animation-video-core.entry.js +2 -0
  111. package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -0
  112. package/dist/esm-es5/taro-animation-view-core.entry.js +2 -0
  113. package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -0
  114. package/dist/esm-es5/taro-ar-camera-core.entry.js +2 -0
  115. package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -0
  116. package/dist/esm-es5/taro-aweme-data-core.entry.js +2 -0
  117. package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -0
  118. package/dist/esm-es5/taro-comment-detail-core.entry.js +2 -0
  119. package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -0
  120. package/dist/esm-es5/taro-comment-list-core.entry.js +2 -0
  121. package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -0
  122. package/dist/esm-es5/taro-components.js +1 -1
  123. package/dist/esm-es5/taro-components.js.map +1 -1
  124. package/dist/esm-es5/taro-contact-button-core.entry.js +2 -0
  125. package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -0
  126. package/dist/esm-es5/taro-follow-swan-core.entry.js +2 -0
  127. package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -0
  128. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +2 -0
  129. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -0
  130. package/dist/esm-es5/taro-lifestyle-core.entry.js +2 -0
  131. package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -0
  132. package/dist/esm-es5/taro-like-core.entry.js +2 -0
  133. package/dist/esm-es5/taro-like-core.entry.js.map +1 -0
  134. package/dist/esm-es5/taro-login-core.entry.js +2 -0
  135. package/dist/esm-es5/taro-login-core.entry.js.map +1 -0
  136. package/dist/esm-es5/taro-lottie-core.entry.js +2 -0
  137. package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -0
  138. package/dist/esm-es5/taro-rtc-room-core.entry.js +2 -0
  139. package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -0
  140. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +2 -0
  141. package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -0
  142. package/dist/esm-es5/taro-tab-item-core.entry.js +2 -0
  143. package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -0
  144. package/dist/esm-es5/taro-tabs-core.entry.js +2 -0
  145. package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -0
  146. package/dist/react/components.js +21 -3
  147. package/dist/taro-components/p-0be383a9.system.entry.js +2 -0
  148. package/dist/taro-components/p-0be383a9.system.entry.js.map +1 -0
  149. package/dist/taro-components/p-1a47133c.system.entry.js +2 -0
  150. package/dist/taro-components/p-1a47133c.system.entry.js.map +1 -0
  151. package/dist/taro-components/p-1ad0aa95.system.entry.js +2 -0
  152. package/dist/taro-components/p-1ad0aa95.system.entry.js.map +1 -0
  153. package/dist/taro-components/p-281a2bcf.entry.js +2 -0
  154. package/dist/taro-components/p-281a2bcf.entry.js.map +1 -0
  155. package/dist/taro-components/p-28dade4f.entry.js +2 -0
  156. package/dist/taro-components/p-28dade4f.entry.js.map +1 -0
  157. package/dist/taro-components/p-31e10d77.system.entry.js +2 -0
  158. package/dist/taro-components/p-31e10d77.system.entry.js.map +1 -0
  159. package/dist/taro-components/p-36c64ed0.system.entry.js +2 -0
  160. package/dist/taro-components/p-36c64ed0.system.entry.js.map +1 -0
  161. package/dist/taro-components/p-37d71e63.entry.js +2 -0
  162. package/dist/taro-components/p-37d71e63.entry.js.map +1 -0
  163. package/dist/taro-components/p-386b9de8.entry.js +2 -0
  164. package/dist/taro-components/p-386b9de8.entry.js.map +1 -0
  165. package/dist/taro-components/p-5bd1c1a1.entry.js +2 -0
  166. package/dist/taro-components/p-5bd1c1a1.entry.js.map +1 -0
  167. package/dist/taro-components/p-62d750a7.entry.js +2 -0
  168. package/dist/taro-components/p-62d750a7.entry.js.map +1 -0
  169. package/dist/taro-components/p-632f9a72.system.entry.js +2 -0
  170. package/dist/taro-components/p-632f9a72.system.entry.js.map +1 -0
  171. package/dist/taro-components/p-65971d99.entry.js +2 -0
  172. package/dist/taro-components/p-65971d99.entry.js.map +1 -0
  173. package/dist/taro-components/p-6c622fa2.system.entry.js +2 -0
  174. package/dist/taro-components/p-6c622fa2.system.entry.js.map +1 -0
  175. package/dist/taro-components/p-6cd941bc.entry.js +2 -0
  176. package/dist/taro-components/p-6cd941bc.entry.js.map +1 -0
  177. package/dist/taro-components/p-70defa84.entry.js +2 -0
  178. package/dist/taro-components/p-70defa84.entry.js.map +1 -0
  179. package/dist/taro-components/p-73106bc9.entry.js +2 -0
  180. package/dist/taro-components/p-73106bc9.entry.js.map +1 -0
  181. package/dist/taro-components/p-7afc274a.entry.js +2 -0
  182. package/dist/taro-components/p-7afc274a.entry.js.map +1 -0
  183. package/dist/taro-components/p-7bafbe22.entry.js +2 -0
  184. package/dist/taro-components/p-7bafbe22.entry.js.map +1 -0
  185. package/dist/taro-components/p-7e7a1e62.entry.js +2 -0
  186. package/dist/taro-components/p-7e7a1e62.entry.js.map +1 -0
  187. package/dist/taro-components/p-876edf66.entry.js +2 -0
  188. package/dist/taro-components/p-876edf66.entry.js.map +1 -0
  189. package/dist/taro-components/p-898aba38.system.entry.js +2 -0
  190. package/dist/taro-components/p-898aba38.system.entry.js.map +1 -0
  191. package/dist/taro-components/p-98901e99.system.entry.js +2 -0
  192. package/dist/taro-components/p-98901e99.system.entry.js.map +1 -0
  193. package/dist/taro-components/p-9f780103.system.entry.js +2 -0
  194. package/dist/taro-components/p-9f780103.system.entry.js.map +1 -0
  195. package/dist/taro-components/p-a4961ddd.entry.js +2 -0
  196. package/dist/taro-components/p-a4961ddd.entry.js.map +1 -0
  197. package/dist/taro-components/p-ad25cc91.system.entry.js +2 -0
  198. package/dist/taro-components/p-ad25cc91.system.entry.js.map +1 -0
  199. package/dist/taro-components/p-b4cccb3e.system.entry.js +2 -0
  200. package/dist/taro-components/p-b4cccb3e.system.entry.js.map +1 -0
  201. package/dist/taro-components/p-b6733e23.system.entry.js +2 -0
  202. package/dist/taro-components/p-b6733e23.system.entry.js.map +1 -0
  203. package/dist/taro-components/p-cb17d8bd.system.js +1 -1
  204. package/dist/taro-components/p-cb17d8bd.system.js.map +1 -1
  205. package/dist/taro-components/p-d6441fd8.entry.js +2 -0
  206. package/dist/taro-components/p-d6441fd8.entry.js.map +1 -0
  207. package/dist/taro-components/p-e5607803.system.entry.js +2 -0
  208. package/dist/taro-components/p-e5607803.system.entry.js.map +1 -0
  209. package/dist/taro-components/p-f00ee372.system.entry.js +2 -0
  210. package/dist/taro-components/p-f00ee372.system.entry.js.map +1 -0
  211. package/dist/taro-components/p-f81d14ad.entry.js +2 -0
  212. package/dist/taro-components/p-f81d14ad.entry.js.map +1 -0
  213. package/dist/taro-components/p-fb843ff2.system.entry.js +2 -0
  214. package/dist/taro-components/p-fb843ff2.system.entry.js.map +1 -0
  215. package/dist/taro-components/p-fc0fbcce.system.entry.js +2 -0
  216. package/dist/taro-components/p-fc0fbcce.system.entry.js.map +1 -0
  217. package/dist/taro-components/taro-components.esm.js +1 -1
  218. package/dist/taro-components/taro-components.esm.js.map +1 -1
  219. package/dist/types/components/animation-video/animation-video.d.ts +5 -0
  220. package/dist/types/components/animation-view/animation-view.d.ts +5 -0
  221. package/dist/types/components/ar-camera/ar-camera.d.ts +5 -0
  222. package/dist/types/components/aweme-data/aweme-data.d.ts +5 -0
  223. package/dist/types/components/comment/comment-detail.d.ts +5 -0
  224. package/dist/types/components/comment/comment-list.d.ts +5 -0
  225. package/dist/types/components/contact-button/contact-button.d.ts +5 -0
  226. package/dist/types/components/follow-swan/follow-swan.d.ts +5 -0
  227. package/dist/types/components/inline-payment-panel/inline-payment-panel.d.ts +5 -0
  228. package/dist/types/components/lifestyle/lifestyle.d.ts +5 -0
  229. package/dist/types/components/like/like.d.ts +5 -0
  230. package/dist/types/components/login/login.d.ts +5 -0
  231. package/dist/types/components/lottie/lottie.d.ts +5 -0
  232. package/dist/types/components/rtc-room/rtc-room-item.d.ts +5 -0
  233. package/dist/types/components/rtc-room/rtc-room.d.ts +5 -0
  234. package/dist/types/components/tabs/tab-item.d.ts +5 -0
  235. package/dist/types/components/tabs/tabs.d.ts +5 -0
  236. package/dist/types/components.d.ts +221 -0
  237. package/dist/vue2/components.js +52 -1
  238. package/dist/vue3/components.js +17 -0
  239. package/package.json +8 -3
  240. package/types/AnimationVideo.d.ts +62 -0
  241. package/types/AnimationView.d.ts +45 -0
  242. package/types/ArCamera.d.ts +50 -0
  243. package/types/AwemeData.d.ts +43 -0
  244. package/types/CommentDetail.d.ts +71 -0
  245. package/types/CommentList.d.ts +124 -0
  246. package/types/ContactButton.d.ts +53 -0
  247. package/types/FollowSwan.d.ts +28 -0
  248. package/types/InlinePaymentPanel.d.ts +58 -0
  249. package/types/Lifestyle.d.ts +26 -0
  250. package/types/Like.d.ts +104 -0
  251. package/types/Login.d.ts +45 -0
  252. package/types/Lottie.d.ts +119 -0
  253. package/types/Map.d.ts +1 -1
  254. package/types/RtcRoom.d.ts +104 -0
  255. package/types/RtcRoomItem.d.ts +26 -0
  256. package/types/TabItem.d.ts +35 -0
  257. package/types/Tabs.d.ts +58 -0
@@ -0,0 +1,104 @@
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
+
79
+ declare namespace LikeProps {
80
+ interface ILikeParam {
81
+ /** 用户身份唯一标识 */
82
+ openid: string
83
+ /** 被点赞的文章的 id,与 path 参数一一对应
84
+ * @example "20200101"
85
+ */
86
+ snid: string
87
+ /** 被点赞的评论 id */
88
+ spid?: string
89
+ /** 文章标题 */
90
+ title: string
91
+ /** 智能小程序内页链接,最长不能超过 194 字符
92
+ * @example "/pages/index/index"
93
+ */
94
+ path: string
95
+ }
96
+ }
97
+
98
+ /** 点赞
99
+ * @classification open
100
+ * @supported swan
101
+ * @see https://smartprogram.baidu.com/docs/develop/extended/component-content/like/
102
+ */
103
+ declare const Like: ComponentType<LikeProps>
104
+ export { Like, LikeProps }
@@ -0,0 +1,45 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface LoginProps extends StandardProps {
4
+ /** 组件中用户授权按钮的类名,可用于自定义样式
5
+ * @supported swan
6
+ */
7
+ buttonClass?: string
8
+
9
+ /** 组件中用户授权勾选框选中时的颜色,同 CSS 的 color
10
+ * @supported swan
11
+ * @default "#3388FF"
12
+ */
13
+ checkedColor?: string
14
+
15
+ /** 主题颜色,设置后将应用于 “用户授权按钮背景色” 和 “用户授权勾选框选中时的颜色”
16
+ * 注:theme-color 的优先级低于 button-class 和 checked-color,且当 button-class 存在时,theme-color 不生效
17
+ * @supported swan
18
+ * @default "#3388FF"
19
+ */
20
+ themeColor?: string
21
+
22
+ /** 用户完成授权后,获取用户手机号:
23
+ * detail.errMsg 值为"getPhoneNumber:ok" 时代表用户信息获取成功;
24
+ * detail.errMsg 值为"getPhoneNumber:fail auth deny"时代表用户信息获取失败。
25
+ * 参考 用户数据的签名验证和加解密 对用户数据进行处理获得用户手机号。
26
+ * 用户手机号信息解密后数据示例:{"mobile":"15000000000"}
27
+ * 1. 非个人开发者可申请;
28
+ * 2. 审核通过后,进入小程序首页,在左侧导航栏单击“设置 -> 开发设置”。下拉页面,在“获取用户手机号权限申请”中单击“申请开通”
29
+ * @supported swan
30
+ */
31
+ onGetPhoneNumber?: CommonEventFunction
32
+
33
+ /** 组件加载失败回调
34
+ * @supported swan
35
+ */
36
+ onLoadError?: CommonEventFunction
37
+ }
38
+
39
+ /** 联合登录 / 手机号授权内嵌组件
40
+ * @classification open
41
+ * @supported swan
42
+ * @see https://smartprogram.baidu.com/docs/develop/component/login/
43
+ */
44
+ declare const Login: ComponentType<LoginProps>
45
+ export { Login, LoginProps }
@@ -0,0 +1,119 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface LottieProps extends StandardProps {
4
+ /** 是否自动播放。
5
+ * @supported alipay
6
+ * @default false
7
+ */
8
+ autoplay?: boolean
9
+
10
+ /** Lottie 资源地址。包含近端(包内地址)和远端(网络)的 JSON 文件地址。
11
+ * 与 djangoId 二选一。
12
+ * @supported alipay
13
+ */
14
+ path?: string
15
+
16
+ /** 播放速度。正数为正向播放,负数负向播放。
17
+ * @supported alipay
18
+ * @default 1.0
19
+ */
20
+ speed?: number
21
+
22
+ /** 循环次数。
23
+ *
24
+ * 如果是负数表示无限次。
25
+ * 如果是 0 表示不循环,播放一次。
26
+ * 如果是 1 表示循环一次,播放两次。
27
+ * @supported alipay
28
+ * @default 0
29
+ */
30
+ repeatCount?: number
31
+
32
+ /** 是否自动回播。
33
+ * @supported alipay
34
+ * @default false
35
+ */
36
+ autoReverse?: boolean
37
+
38
+ /** 资源地址。"/" 表明是小程序根目录。
39
+ * @supported alipay
40
+ */
41
+ assetsPath?: string
42
+
43
+ /** 兜底图或者降级图地址。
44
+ *
45
+ * 1. 支持本地资源,案例:'/image/lottie/lottie2_default.png'。
46
+ * 支持 http 的 cdn 地址、近端地址。
47
+ * 小程序场景不支持 djangoId。
48
+ * @supported alipay
49
+ */
50
+ placeholder?: string
51
+
52
+ /** Lottie 在线资源。远端的 Zip 文件地址。Lottie 组件会执行 MD5 校验、解压、获取等过程,在过程中显示 placeholder 图片。
53
+ * 与 path 二选一
54
+ * @supported alipay
55
+ */
56
+ djangoId?: string
57
+
58
+ /** 在线资源的 md5 校验。
59
+ * djangoId=https://b.zip。
60
+ * 可以使用 b.zip 加密 获取 md5 值
61
+ * md5="77c6c86fc89ba94cc0a9271b77ae77d2"
62
+ * @supported alipay
63
+ */
64
+ md5?: string
65
+
66
+ /** 降级。降级是指如遇低端设备,Lottie 会降级展示为 placeholder。
67
+ * 当 optimize 为 true ,并且传入了 placeholder 时,在低端设备上只会展示 placeholder,不展示 Lottie。
68
+ * 低端设备如下所示:
69
+ *
70
+ * iOS :小于等于 iPhone6P
71
+ * Android:内存容量小于 3G
72
+ * @supported alipay
73
+ * @default false
74
+ */
75
+ optimize?: boolean
76
+
77
+ /** 当数据下载+视图创建完成时触发。
78
+ * @supported alipay
79
+ */
80
+ onDataReady?: CommonEventFunction
81
+
82
+ /** 数据加载失败时触发。
83
+ * @supported alipay
84
+ */
85
+ onDataFailed?: CommonEventFunction
86
+
87
+ /** 动画开始时触发。
88
+ * @supported alipay
89
+ */
90
+ onAnimationStart?: CommonEventFunction
91
+
92
+ /** 动画结束时触发。
93
+ * @supported alipay
94
+ */
95
+ onAnimationEnd?: CommonEventFunction
96
+
97
+ /** 动画一次重播结束。
98
+ * @supported alipay
99
+ */
100
+ onAnimationRepeat?: CommonEventFunction
101
+
102
+ /** 动画取消。业务调用 Cancel 时回调。
103
+ * @supported alipay
104
+ */
105
+ onAnimationCancel?: CommonEventFunction
106
+
107
+ /** 参数化时,数据准备完成,等待业务传入参数化值。
108
+ * @supported alipay
109
+ */
110
+ onDataLoadReady?: CommonEventFunction
111
+ }
112
+
113
+ /** Lottie
114
+ * @classification media
115
+ * @supported alipay
116
+ * @see https://opendocs.alipay.com/mini/component/lottie
117
+ */
118
+ declare const Lottie: ComponentType<LottieProps>
119
+ export { Lottie, LottieProps }
package/types/Map.d.ts CHANGED
@@ -212,7 +212,7 @@ interface MapProps extends StandardProps {
212
212
  * @supported weapp, swan, tt, qq
213
213
  * @default false
214
214
  */
215
- enable3D?: string
215
+ enable3D?: boolean
216
216
 
217
217
  /** 点击地图时触发
218
218
  * @supported weapp, alipay, swan, tt, qq, jd
@@ -0,0 +1,104 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface RtcRoomProps extends StandardProps {
4
+ /** rtc-room 组件的唯一标识符
5
+ * @supported swan
6
+ */
7
+ id?: string
8
+
9
+ /** 是否开启摄像头
10
+ * @supported swan
11
+ * @default true
12
+ */
13
+ enableCamera?: boolean
14
+
15
+ /** 是否开启摄像头自动对焦
16
+ * @supported swan
17
+ * @default true
18
+ */
19
+ enableAutoFocus?: boolean
20
+
21
+ /** 是否支持双手滑动调整摄像头聚焦
22
+ * @supported swan
23
+ * @default false
24
+ */
25
+ enableZoom?: boolean
26
+
27
+ /** 设置前置还是后置摄像头,有效值:front、back
28
+ * @supported swan
29
+ * @default "front"
30
+ */
31
+ devicePosition?: 'front' | 'back'
32
+
33
+ /** 是否开启麦克风
34
+ * @supported swan
35
+ * @default true
36
+ */
37
+ enableMic?: boolean
38
+
39
+ /** 是否开启音频自动增益
40
+ * @supported swan
41
+ * @default false
42
+ */
43
+ enableAgc?: boolean
44
+
45
+ /** 是否开启音频噪声抑制
46
+ * @supported swan
47
+ * @default false
48
+ */
49
+ enableAns?: boolean
50
+
51
+ /** 最大码率
52
+ * @supported swan
53
+ * @default 900
54
+ */
55
+ bitrate?: number
56
+
57
+ /** 视频分辨率宽
58
+ * @supported swan
59
+ * @default 360
60
+ */
61
+ videoWidth?: number
62
+
63
+ /** 视频分辨率高
64
+ * @supported swan
65
+ * @default 640
66
+ */
67
+ videoHeight?: number
68
+
69
+ /** 设置远端看到的画面的镜像效果,该属性的变化不会影响到本地画面,仅影响远端看到的画面效果
70
+ * @supported swan
71
+ * @default false
72
+ */
73
+ enableRemoteMirror?: boolean
74
+
75
+ /** 设置本地摄像头预览画面的镜像效果,有效值:auto、enable、disable
76
+ * @supported swan
77
+ * @default "auto"
78
+ */
79
+ localMirror?: 'auto' | 'enable' | 'disable'
80
+
81
+ /** 设置声音输出方式,有效值:speaker、ear
82
+ * @supported swan
83
+ * @default "speaker"
84
+ */
85
+ soundMode?: 'speaker' | 'ear'
86
+
87
+ /** 房间状态变化事件,参考下方状态码,detail = { code, msg, userInfo }
88
+ * @supported swan
89
+ */
90
+ onStateChange?: CommonEventFunction
91
+
92
+ /** 错误事件。参考下方错误码,detail = { errMsg, errCode }
93
+ * @supported swan
94
+ */
95
+ onError?: CommonEventFunction
96
+ }
97
+
98
+ /** 实时音视频通话房间
99
+ * @classification media
100
+ * @supported swan
101
+ * @see https://smartprogram.baidu.com/docs/develop/component/media_rtc-room/
102
+ */
103
+ declare const RtcRoom: ComponentType<RtcRoomProps>
104
+ export { RtcRoom, RtcRoomProps }
@@ -0,0 +1,26 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface RtcRoomItemProps extends StandardProps {
4
+ /** rtc-room-item 组件的唯一标识符
5
+ * @supported swan
6
+ */
7
+ id?: string
8
+
9
+ /** 指定 item 展示本地 / 远端画面,有效值:local、remote ,不可动态变更
10
+ * @supported swan
11
+ */
12
+ type?: string
13
+
14
+ /** item 展示画面的用户 id
15
+ * @supported swan
16
+ */
17
+ userId?: number
18
+ }
19
+
20
+ /** 实时音视频通话画面
21
+ * @classification media
22
+ * @supported swan
23
+ * @see https://smartprogram.baidu.com/docs/develop/component/media_rtc-room-item/
24
+ */
25
+ declare const RtcRoomItem: ComponentType<RtcRoomItemProps>
26
+ export { RtcRoomItem, RtcRoomItemProps }
@@ -0,0 +1,35 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface TabItemProps extends StandardProps {
4
+ /** tab-item 内显示的文字
5
+ * @supported swan
6
+ * @default 无
7
+ */
8
+ label?: string
9
+
10
+ /** tab-item 对应的 name 值
11
+ * @supported swan
12
+ * @default 无
13
+ */
14
+ name?: string
15
+
16
+ /** 徽标类型 badge-type 分为圆点“dot”和文本“text”,不设置 badge-type 则不显示徽标
17
+ * @supported swan
18
+ * @default 无
19
+ */
20
+ badgeType?: string
21
+
22
+ /** badge-type 为 text 的时候,徽标内的数字,为空时badge-type="text"不生效
23
+ * @supported swan
24
+ * @default 无
25
+ */
26
+ badgeText?: string
27
+ }
28
+
29
+ /** 标签栏子项
30
+ * @classification navig
31
+ * @supported swan
32
+ * @see https://smartprogram.baidu.com/docs/develop/component/tab-item/
33
+ */
34
+ declare const TabItem: ComponentType<TabItemProps>
35
+ export { TabItem, TabItemProps }
@@ -0,0 +1,58 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface TabsProps extends StandardProps {
4
+ /** tabs 背景色,必须填写十六进制颜色
5
+ * @supported swan
6
+ * @default "#fff"
7
+ */
8
+ tabsBackgroundColor?: string
9
+
10
+ /** tabs 激活 tab-item 文字颜色
11
+ * @supported swan
12
+ * @default "#000"
13
+ */
14
+ tabsActiveTextColor?: string
15
+
16
+ /** tabs 非激活 tab-item 文字颜色
17
+ * @supported swan
18
+ * @default "#666"
19
+ */
20
+ tabsInactiveTextColor?: string
21
+
22
+ /** tabs 激活 tab-item 下划线颜色
23
+ * @supported swan
24
+ * @default "#333"
25
+ */
26
+ tabsUnderlineColor?: string
27
+
28
+ /** 仅用于普通标签栏组件,当前激活 tab-item 的对应的 name 值,须搭配 bindtabchange 一起使用。
29
+ * @supported swan
30
+ * @default 无
31
+ */
32
+ activeName?: string
33
+
34
+ /** 仅用于可寻址标签栏组件,当前 tab 所改变的 url query 中参数 key,需要通过 tabs 修改页面 url 的时候设置。
35
+ * @supported swan
36
+ * @default 无
37
+ */
38
+ urlQueryName?: string
39
+
40
+ /** 当前 tabs 视图中最多容纳的 tab-item 数量,低于此数量均分排列,超出此数量划屏。默认五个,开发者可根据业务需求调整
41
+ * @supported swan
42
+ * @default 5
43
+ */
44
+ maxTabItemAmount?: number
45
+
46
+ /** tab 被点击的回调,可以在 e.detail.name 中取到当前点击的 tab-item 对应的 name 值
47
+ * @supported swan
48
+ */
49
+ onTabChange?: CommonEventFunction
50
+ }
51
+
52
+ /** 标签栏
53
+ * @classification navig
54
+ * @supported swan
55
+ * @see https://smartprogram.baidu.com/docs/develop/component/tabs/
56
+ */
57
+ declare const Tabs: ComponentType<TabsProps>
58
+ export { Tabs, TabsProps }