@tarojs/components 3.5.6 → 3.5.7-alpha.1

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 (240) hide show
  1. package/dist/cjs/helper-db78e01a.js +19 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +3 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +3 -1
  5. package/dist/cjs/taro-camera-core.cjs.entry.js +3 -1
  6. package/dist/cjs/taro-components.cjs.js +1 -1
  7. package/dist/cjs/taro-editor-core.cjs.entry.js +3 -1
  8. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +3 -1
  9. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +3 -1
  10. package/dist/cjs/taro-live-player-core.cjs.entry.js +3 -1
  11. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +3 -1
  12. package/dist/cjs/taro-map-core.cjs.entry.js +3 -1
  13. package/dist/cjs/taro-match-media-core.cjs.entry.js +3 -1
  14. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +3 -1
  17. package/dist/cjs/taro-official-account-core.cjs.entry.js +3 -1
  18. package/dist/cjs/taro-open-data-core.cjs.entry.js +3 -1
  19. package/dist/cjs/taro-page-container-core.cjs.entry.js +3 -1
  20. package/dist/cjs/taro-page-meta-core.cjs.entry.js +3 -1
  21. package/dist/cjs/taro-root-portal-core.cjs.entry.js +3 -1
  22. package/dist/cjs/taro-share-element-core.cjs.entry.js +3 -1
  23. package/dist/cjs/taro-slot-core.cjs.entry.js +3 -1
  24. package/dist/cjs/taro-voip-room-core.cjs.entry.js +3 -1
  25. package/dist/collection/components/ad/ad.js +2 -2
  26. package/dist/collection/components/ad-custom/ad-custom.js +2 -2
  27. package/dist/collection/components/camera/camera.js +2 -2
  28. package/dist/collection/components/editor/editor.js +2 -2
  29. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -2
  30. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -2
  31. package/dist/collection/components/live-player/live-player.js +2 -2
  32. package/dist/collection/components/live-pusher/live-pusher.js +2 -2
  33. package/dist/collection/components/map/map.js +2 -2
  34. package/dist/collection/components/match-media/match-media.js +2 -2
  35. package/dist/collection/components/movable-area/area.css +2 -2
  36. package/dist/collection/components/movable-area/movable-view.js +2 -4
  37. package/dist/collection/components/navigation-bar/navigation-bar.js +2 -2
  38. package/dist/collection/components/official-account/official-account.js +2 -2
  39. package/dist/collection/components/open-data/open-data.js +2 -2
  40. package/dist/collection/components/page-container/page-container.js +2 -2
  41. package/dist/collection/components/page-meta/page-meta.js +2 -2
  42. package/dist/collection/components/root-portal/root-portal.js +2 -2
  43. package/dist/collection/components/share-element/share-element.js +2 -2
  44. package/dist/collection/components/slot/slot.js +2 -2
  45. package/dist/collection/components/voip-room/voip-room.js +2 -2
  46. package/dist/collection/utils/helper.js +10 -0
  47. package/dist/collection/utils/index.js +1 -0
  48. package/dist/esm/helper-3d0ecf0f.js +13 -0
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/taro-ad-core.entry.js +3 -1
  51. package/dist/esm/taro-ad-custom-core.entry.js +3 -1
  52. package/dist/esm/taro-camera-core.entry.js +3 -1
  53. package/dist/esm/taro-components.js +1 -1
  54. package/dist/esm/taro-editor-core.entry.js +3 -1
  55. package/dist/esm/taro-functional-page-navigator-core.entry.js +3 -1
  56. package/dist/esm/taro-keyboard-accessory-core.entry.js +3 -1
  57. package/dist/esm/taro-live-player-core.entry.js +3 -1
  58. package/dist/esm/taro-live-pusher-core.entry.js +3 -1
  59. package/dist/esm/taro-map-core.entry.js +3 -1
  60. package/dist/esm/taro-match-media-core.entry.js +3 -1
  61. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  62. package/dist/esm/taro-movable-view-core.entry.js +3 -3
  63. package/dist/esm/taro-navigation-bar-core.entry.js +3 -1
  64. package/dist/esm/taro-official-account-core.entry.js +3 -1
  65. package/dist/esm/taro-open-data-core.entry.js +3 -1
  66. package/dist/esm/taro-page-container-core.entry.js +3 -1
  67. package/dist/esm/taro-page-meta-core.entry.js +3 -1
  68. package/dist/esm/taro-root-portal-core.entry.js +3 -1
  69. package/dist/esm/taro-share-element-core.entry.js +3 -1
  70. package/dist/esm/taro-slot-core.entry.js +3 -1
  71. package/dist/esm/taro-voip-room-core.entry.js +3 -1
  72. package/dist/esm-es5/helper-3d0ecf0f.js +1 -0
  73. package/dist/esm-es5/loader.js +1 -1
  74. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  75. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  76. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  77. package/dist/esm-es5/taro-components.js +1 -1
  78. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  79. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  80. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  81. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  84. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  85. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  87. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  88. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  92. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  93. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  94. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  96. package/dist/taro-components/p-028e2728.entry.js +1 -0
  97. package/dist/taro-components/p-0380841f.system.js +1 -1
  98. package/dist/taro-components/p-06178a0c.entry.js +1 -0
  99. package/dist/taro-components/p-07294134.system.entry.js +1 -0
  100. package/dist/taro-components/p-075458e5.system.entry.js +1 -0
  101. package/dist/taro-components/p-15e45ed6.system.js +1 -0
  102. package/dist/taro-components/p-2ec47545.entry.js +1 -0
  103. package/dist/taro-components/p-3e11c8cc.system.entry.js +1 -0
  104. package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
  105. package/dist/taro-components/p-4cf436f9.entry.js +1 -0
  106. package/dist/taro-components/p-4d826fb7.entry.js +1 -0
  107. package/dist/taro-components/p-55266a1f.entry.js +1 -0
  108. package/dist/taro-components/p-57a2a441.entry.js +1 -0
  109. package/dist/taro-components/p-59d93770.entry.js +1 -0
  110. package/dist/taro-components/p-5a374cb9.entry.js +1 -0
  111. package/dist/taro-components/p-62fc514e.entry.js +1 -0
  112. package/dist/taro-components/p-6800ac6f.entry.js +1 -0
  113. package/dist/taro-components/p-6a96da58.js +1 -0
  114. package/dist/taro-components/p-6aa557f0.entry.js +1 -0
  115. package/dist/taro-components/p-6ad59489.system.entry.js +1 -0
  116. package/dist/taro-components/p-733cc64a.system.entry.js +1 -0
  117. package/dist/taro-components/p-7374537f.entry.js +1 -0
  118. package/dist/taro-components/p-7d329ab0.entry.js +1 -0
  119. package/dist/taro-components/p-7e960ac3.system.entry.js +1 -0
  120. package/dist/taro-components/p-8e2b048e.system.entry.js +1 -0
  121. package/dist/taro-components/p-9234cc1d.entry.js +1 -0
  122. package/dist/taro-components/p-93eed5d7.system.entry.js +1 -0
  123. package/dist/taro-components/p-9e1572c5.system.entry.js +1 -0
  124. package/dist/taro-components/p-afbcd093.entry.js +1 -0
  125. package/dist/taro-components/p-b11aaf69.system.entry.js +1 -0
  126. package/dist/taro-components/p-b1ae9401.entry.js +1 -0
  127. package/dist/taro-components/p-b60820b4.entry.js +1 -0
  128. package/dist/taro-components/p-b7681c76.system.entry.js +1 -0
  129. package/dist/taro-components/p-c5fd5c7f.system.entry.js +1 -0
  130. package/dist/taro-components/p-c92bafb6.system.entry.js +1 -0
  131. package/dist/taro-components/p-c93bb915.system.entry.js +1 -0
  132. package/dist/taro-components/p-cf048af9.entry.js +1 -0
  133. package/dist/taro-components/p-d075934f.system.entry.js +1 -0
  134. package/dist/taro-components/p-d4da725f.system.entry.js +1 -0
  135. package/dist/taro-components/p-d5f3080c.entry.js +1 -0
  136. package/dist/taro-components/p-d6662ab3.system.entry.js +1 -0
  137. package/dist/taro-components/p-f2803c2e.system.entry.js +1 -0
  138. package/dist/taro-components/p-f4ea8a56.system.entry.js +1 -0
  139. package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
  140. package/dist/taro-components/p-f7c80795.system.entry.js +1 -0
  141. package/dist/taro-components/taro-components.esm.js +1 -1
  142. package/dist/types/components/ad/ad.d.ts +2 -1
  143. package/dist/types/components/ad-custom/ad-custom.d.ts +2 -1
  144. package/dist/types/components/camera/camera.d.ts +2 -1
  145. package/dist/types/components/editor/editor.d.ts +2 -1
  146. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +2 -1
  147. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +2 -1
  148. package/dist/types/components/live-player/live-player.d.ts +2 -1
  149. package/dist/types/components/live-pusher/live-pusher.d.ts +2 -1
  150. package/dist/types/components/map/map.d.ts +2 -1
  151. package/dist/types/components/match-media/match-media.d.ts +2 -1
  152. package/dist/types/components/navigation-bar/navigation-bar.d.ts +2 -1
  153. package/dist/types/components/official-account/official-account.d.ts +2 -1
  154. package/dist/types/components/open-data/open-data.d.ts +2 -1
  155. package/dist/types/components/page-container/page-container.d.ts +2 -1
  156. package/dist/types/components/page-meta/page-meta.d.ts +2 -1
  157. package/dist/types/components/root-portal/root-portal.d.ts +2 -1
  158. package/dist/types/components/share-element/share-element.d.ts +2 -1
  159. package/dist/types/components/slot/slot.d.ts +2 -1
  160. package/dist/types/components/voip-room/voip-room.d.ts +2 -1
  161. package/dist/types/utils/helper.d.ts +1 -0
  162. package/dist/types/utils/index.d.ts +1 -0
  163. package/mini/index.js +1 -0
  164. package/package.json +8 -7
  165. package/types/Ad.d.ts +20 -21
  166. package/types/Audio.d.ts +5 -5
  167. package/types/Button.d.ts +67 -71
  168. package/types/Camera.d.ts +39 -8
  169. package/types/Canvas.d.ts +22 -38
  170. package/types/Checkbox.d.ts +7 -7
  171. package/types/CoverImage.d.ts +15 -16
  172. package/types/CoverView.d.ts +5 -6
  173. package/types/Form.d.ts +10 -10
  174. package/types/Image.d.ts +20 -31
  175. package/types/Input.d.ts +23 -24
  176. package/types/LivePlayer.d.ts +31 -25
  177. package/types/LivePusher.d.ts +5 -5
  178. package/types/Map.d.ts +66 -99
  179. package/types/MovableView.d.ts +21 -33
  180. package/types/NavigationBar.d.ts +1 -1
  181. package/types/Navigator.d.ts +10 -10
  182. package/types/OpenData.d.ts +5 -5
  183. package/types/PageContainer.d.ts +7 -10
  184. package/types/PageMeta.d.ts +14 -14
  185. package/types/Picker.d.ts +1 -5
  186. package/types/PickerView.d.ts +11 -23
  187. package/types/Progress.d.ts +5 -5
  188. package/types/RadioGroup.d.ts +5 -5
  189. package/types/RichText.d.ts +17 -17
  190. package/types/ScrollView.d.ts +46 -48
  191. package/types/Slider.d.ts +10 -10
  192. package/types/Swiper.d.ts +20 -29
  193. package/types/Switch.d.ts +5 -6
  194. package/types/Textarea.d.ts +32 -34
  195. package/types/Video.d.ts +119 -123
  196. package/types/View.d.ts +13 -32
  197. package/types/VoipRoom.d.ts +5 -5
  198. package/types/WebView.d.ts +11 -5
  199. package/dist/collection/utils/json-schema-to-types.js +0 -224
  200. package/dist/taro-components/p-0414632d.system.entry.js +0 -1
  201. package/dist/taro-components/p-10e5df98.system.entry.js +0 -1
  202. package/dist/taro-components/p-14058364.system.entry.js +0 -1
  203. package/dist/taro-components/p-1a638246.system.entry.js +0 -1
  204. package/dist/taro-components/p-1e530acd.entry.js +0 -1
  205. package/dist/taro-components/p-22e33350.entry.js +0 -1
  206. package/dist/taro-components/p-24a66088.system.entry.js +0 -1
  207. package/dist/taro-components/p-2fd0250d.system.entry.js +0 -1
  208. package/dist/taro-components/p-3c7cdf6f.entry.js +0 -1
  209. package/dist/taro-components/p-410d449f.entry.js +0 -1
  210. package/dist/taro-components/p-443fb8b0.entry.js +0 -1
  211. package/dist/taro-components/p-44fa48b9.system.entry.js +0 -1
  212. package/dist/taro-components/p-481a8bc1.system.entry.js +0 -1
  213. package/dist/taro-components/p-49b64020.entry.js +0 -1
  214. package/dist/taro-components/p-4e8d4a72.system.entry.js +0 -1
  215. package/dist/taro-components/p-4f0e98c0.system.entry.js +0 -1
  216. package/dist/taro-components/p-4f805045.entry.js +0 -1
  217. package/dist/taro-components/p-5e3bd0db.system.entry.js +0 -1
  218. package/dist/taro-components/p-6da73376.entry.js +0 -1
  219. package/dist/taro-components/p-7325d380.entry.js +0 -1
  220. package/dist/taro-components/p-77ad7941.entry.js +0 -1
  221. package/dist/taro-components/p-7ab91097.entry.js +0 -1
  222. package/dist/taro-components/p-7b96cec3.system.entry.js +0 -1
  223. package/dist/taro-components/p-7e23b551.entry.js +0 -1
  224. package/dist/taro-components/p-7f0a12a9.entry.js +0 -1
  225. package/dist/taro-components/p-840ef0c3.system.entry.js +0 -1
  226. package/dist/taro-components/p-89c876a6.system.entry.js +0 -1
  227. package/dist/taro-components/p-90a6c15a.entry.js +0 -1
  228. package/dist/taro-components/p-95a36917.entry.js +0 -1
  229. package/dist/taro-components/p-9965cf11.system.entry.js +0 -1
  230. package/dist/taro-components/p-9fcb40a3.entry.js +0 -1
  231. package/dist/taro-components/p-a8c9b126.system.entry.js +0 -1
  232. package/dist/taro-components/p-aa5d45de.system.entry.js +0 -1
  233. package/dist/taro-components/p-b3693ca2.system.entry.js +0 -1
  234. package/dist/taro-components/p-b83c3eca.system.entry.js +0 -1
  235. package/dist/taro-components/p-c0c8b2be.entry.js +0 -1
  236. package/dist/taro-components/p-c8da5c10.entry.js +0 -1
  237. package/dist/taro-components/p-d72075ef.system.entry.js +0 -1
  238. package/dist/taro-components/p-db1f2db7.entry.js +0 -1
  239. package/dist/taro-components/p-e3f39099.entry.js +0 -1
  240. package/dist/types/utils/json-schema-to-types.d.ts +0 -25
@@ -72,6 +72,37 @@ interface LivePlayerProps extends StandardProps {
72
72
  */
73
73
  pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
74
74
 
75
+ /** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
76
+ * @supported weapp, qq
77
+ */
78
+ autoPauseIfOpenNative?: string
79
+
80
+ /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
81
+ * @supported weapp
82
+ */
83
+ referrerPolicy?: 'origin' | 'no-referrer'
84
+
85
+ /** 设置署名水印
86
+ * @supported tt
87
+ */
88
+ signature?: string
89
+
90
+ /** 是否回调metadata
91
+ * @supported qq
92
+ */
93
+ enableMetadata?: string
94
+
95
+ /** live-player 属性的唯一标志符
96
+ * @supported swan
97
+ */
98
+ id?: string
99
+
100
+ /** 是否开启手机横屏时自动全屏,当系统设置开启自动旋转时生效
101
+ * @supported weapp
102
+ * @default false
103
+ */
104
+ enableAutoRotation?: string
105
+
75
106
  /** 播放状态变化事件,detail = {code}
76
107
  * @supported weapp, swan, tt, qq, jd
77
108
  */
@@ -102,40 +133,15 @@ interface LivePlayerProps extends StandardProps {
102
133
  */
103
134
  onLeavePictureInPicture?: CommonEventFunction
104
135
 
105
- /** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
106
- * @supported weapp, qq
107
- */
108
- autoPauseIfOpenNative?: string
109
-
110
- /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
111
- * @supported weapp
112
- */
113
- referrerPolicy?: 'origin' | 'no-referrer'
114
-
115
- /** 设置署名水印
116
- * @supported tt
117
- */
118
- signature?: string
119
-
120
136
  /** 播放错误事件
121
137
  * @supported tt
122
138
  */
123
139
  onError?: CommonEventFunction
124
140
 
125
- /** 是否回调metadata
126
- * @supported qq
127
- */
128
- enableMetadata?: string
129
-
130
141
  /** metadata通知,detail = {info}
131
142
  * @supported qq
132
143
  */
133
144
  onMetaDataChange?: CommonEventFunction
134
-
135
- /** live-player 属性的唯一标志符
136
- * @supported swan
137
- */
138
- id?: string
139
145
  }
140
146
  declare namespace LivePlayerProps {
141
147
  /** mode 的合法值 */
@@ -186,6 +186,11 @@ interface LivePusherProps extends StandardProps {
186
186
  */
187
187
  filter?: keyof LivePusherProps.FilterType
188
188
 
189
+ /** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
190
+ * @supported weapp
191
+ */
192
+ pictureInPictureMode?: string | any[]
193
+
189
194
  /** 状态变化事件,detail = {code}
190
195
  * @supported weapp, qq
191
196
  */
@@ -211,11 +216,6 @@ interface LivePusherProps extends StandardProps {
211
216
  */
212
217
  onAudioVolumeNotify?: CommonEventFunction
213
218
 
214
- /** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
215
- * @supported weapp
216
- */
217
- pictureInPictureMode?: string | any[]
218
-
219
219
  /** 网络状态通知,detail = {info}
220
220
  * @supported weapp, qq
221
221
  */
package/types/Map.d.ts CHANGED
@@ -155,54 +155,10 @@ interface MapProps extends StandardProps {
155
155
  [key: string]: number | string | any
156
156
  }
157
157
 
158
- /** 点击地图时触发
159
- * @supported weapp, alipay, swan, tt, qq, jd
160
- */
161
- onTap?: CommonEventFunction
162
-
163
- /** 点击标记点时触发,e.detail = {markerId}
164
- * @supported weapp, alipay, swan, tt, qq, jd
165
- */
166
- onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
167
-
168
- /** 点击label时触发,e.detail = {markerId}
169
- * @supported weapp, tt
170
- */
171
- onLabelTap?: CommonEventFunction<MapProps.onLabelTapEventDetail>
172
-
173
- /** 点击控件时触发,e.detail = {controlId}
174
- * @supported weapp, alipay, swan, jd
175
- */
176
- onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
177
-
178
- /** 点击标记点对应的气泡时触发,e.detail = {markerId}
179
- * @supported alipay
180
- */
181
- onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
182
-
183
- /** 在地图渲染更新完成时触发
184
- * @supported weapp, swan, tt, qq
185
- */
186
- onUpdated?: CommonEventFunction
187
-
188
- /** 视野发生变化时触发
189
- * @supported weapp, alipay, swan, tt, qq, jd
190
- */
191
- onRegionChange?: CommonEventFunction<
192
- MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>
193
- >
194
-
195
- /** 点击地图poi点时触发,e.detail = {name, longitude, latitude}
196
- * @supported weapp, swan, qq
197
- */
198
- onPoiTap?: CommonEventFunction<MapProps.onPoiTapEventDetail>
199
-
200
158
  /** 视野在地图 padding 范围内展示
201
159
  * @supported alipay
202
160
  */
203
- includePadding?: {
204
- [key in 'left' | 'right' | 'top' | 'bottom']: number | string
205
- }
161
+ includePadding?: { [key in 'left' | 'right' | 'top' | 'bottom']: number | string }
206
162
 
207
163
  /** 覆盖物,自定义贴图
208
164
  * @supported alipay
@@ -224,29 +180,7 @@ interface MapProps extends StandardProps {
224
180
  */
225
181
  enableBuilding?: string
226
182
 
227
- /** 点击标记点对应的气泡时触发e.detail = {markerId}
228
- * @supported weapp, swan, tt, jd
229
- */
230
- onCallOutTap?: CommonEventFunction
231
-
232
- /** 点击定位标时触发,e.detail = {longitude, latitude}
233
- * @supported weapp, tt
234
- */
235
- onAnchorPointTap?: CommonEventFunction
236
-
237
- /** 内联样式。
238
- * @supported alipay
239
- */
240
- style?: string
241
-
242
- /** 样式名。
243
- * @supported alipay
244
- */
245
- class?: string
246
-
247
183
  /** 覆盖物,多边形。
248
- *
249
- * 版本要求:基础库 1.10.0 及以上
250
184
  * @supported alipay
251
185
  */
252
186
  polygon?: string
@@ -255,41 +189,15 @@ interface MapProps extends StandardProps {
255
189
  *
256
190
  * default:默认样式
257
191
  * light:精简样式
258
- *
259
- * 版本要求:基础库 1.20.0 及以上
260
192
  * @supported alipay
261
193
  */
262
194
  customMapStyle?: string
263
195
 
264
196
  /** 基于 map 高级定制渲染,设置覆盖在地图上的 view。
265
- *
266
- * 版本要求:基础库 1.23.0 及以上
267
197
  * @supported alipay
268
198
  */
269
199
  panels?: string
270
200
 
271
- /** 点击 panel 时触发。
272
- *
273
- * {
274
- *
275
- *    panelId,
276
- *
277
- *    layoutId,
278
- *
279
- * }
280
- *
281
- * 版本要求:基础库 1.23.0 及以上
282
- * @supported alipay
283
- */
284
- onPanelTap?: CommonEventFunction
285
-
286
- /** 地图初始化完成即将开始渲染第一帧时触发。
287
- *
288
- * 版本要求:基础库 2.7.2 及以上
289
- * @supported alipay
290
- */
291
- onInitComplete?: CommonEventFunction
292
-
293
201
  /** 否
294
202
  * @supported jd
295
203
  */
@@ -305,6 +213,69 @@ interface MapProps extends StandardProps {
305
213
  * @default false
306
214
  */
307
215
  enable3D?: string
216
+
217
+ /** 点击地图时触发
218
+ * @supported weapp, alipay, swan, tt, qq, jd
219
+ */
220
+ onTap?: CommonEventFunction
221
+
222
+ /** 点击标记点时触发,e.detail = {markerId}
223
+ * @supported weapp, alipay, swan, tt, qq, jd
224
+ */
225
+ onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
226
+
227
+ /** 点击label时触发,e.detail = {markerId}
228
+ * @supported weapp, tt
229
+ */
230
+ onLabelTap?: CommonEventFunction<MapProps.onLabelTapEventDetail>
231
+
232
+ /** 点击控件时触发,e.detail = {controlId}
233
+ * @supported weapp, alipay, swan, jd
234
+ */
235
+ onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
236
+
237
+ /** 点击标记点对应的气泡时触发,e.detail = {markerId}
238
+ * @supported alipay
239
+ */
240
+ onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
241
+
242
+ /** 在地图渲染更新完成时触发
243
+ * @supported weapp, swan, tt, qq
244
+ */
245
+ onUpdated?: CommonEventFunction
246
+
247
+ /** 视野发生变化时触发
248
+ * @supported weapp, alipay, swan, tt, qq, jd
249
+ */
250
+ onRegionChange?: CommonEventFunction<MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>>
251
+
252
+ /** 点击地图poi点时触发,e.detail = {name, longitude, latitude}
253
+ * @supported weapp, swan, qq
254
+ */
255
+ onPoiTap?: CommonEventFunction<MapProps.onPoiTapEventDetail>
256
+
257
+ /** 点击标记点对应的气泡时触发e.detail = {markerId}
258
+ * @supported weapp, swan, tt, jd
259
+ */
260
+ onCallOutTap?: CommonEventFunction
261
+
262
+ /** 点击定位标时触发,e.detail = {longitude, latitude}
263
+ * @supported weapp, tt
264
+ */
265
+ onAnchorPointTap?: CommonEventFunction
266
+
267
+ /** 点击 panel 时触发。
268
+ * @supported alipay
269
+ */
270
+ onPanelTap?: CommonEventFunction<{
271
+ panelId
272
+ layoutId
273
+ }>
274
+
275
+ /** 地图初始化完成即将开始渲染第一帧时触发。
276
+ * @supported alipay
277
+ */
278
+ onInitComplete?: CommonEventFunction
308
279
  }
309
280
  declare namespace MapProps {
310
281
  /** 标记点用于在地图上显示标记的位置 */
@@ -661,9 +632,7 @@ declare namespace MapProps {
661
632
  /** 导致视野变化的原因
662
633
  * @remarks 有效值为 gesture(手势触发)、update(接口触发或调用更新接口导致)、drag(拖动导致)、scale(缩放导致)
663
634
  */
664
- causedBy: keyof (T extends 'begin'
665
- ? RegionChangeDetail.CausedByBegin
666
- : RegionChangeDetail.CausedByEnd)
635
+ causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
667
636
 
668
637
  /** 视野改变详情 */
669
638
  detail: regionChangeDetail<RegionChangeDetail.type>
@@ -674,9 +643,7 @@ declare namespace MapProps {
674
643
 
675
644
  /** 倾斜角度 */
676
645
  skew: number
677
- causedBy: keyof (T extends 'begin'
678
- ? RegionChangeDetail.CausedByBegin
679
- : RegionChangeDetail.CausedByEnd)
646
+ causedBy: keyof (T extends 'begin' ? RegionChangeDetail.CausedByBegin : RegionChangeDetail.CausedByEnd)
680
647
  type: T | string
681
648
  scale: number
682
649
  centerLocation: point
@@ -1,9 +1,5 @@
1
1
  import { ComponentType } from 'react'
2
- import {
3
- StandardProps,
4
- CommonEventFunction,
5
- TouchEventFunction,
6
- } from './common'
2
+ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common'
7
3
  interface MovableViewProps extends Omit<StandardProps, 'animation'> {
8
4
  /** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
9
5
  * @default none
@@ -86,10 +82,10 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
86
82
  */
87
83
  onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
88
84
 
89
- /** 缩放过程中触发的事件
90
- * @supported weapp, alipay, swan, tt, qq
85
+ /** 拖动结束触发的事件
86
+ * @supported alipay
91
87
  */
92
- onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
88
+ onChangeEnd?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
93
89
 
94
90
  /** 开始拖动时触发
95
91
  * @supported rn
@@ -101,64 +97,56 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
101
97
  */
102
98
  onDragEnd?: CommonEventFunction
103
99
 
104
- /** 初次手指触摸后移动为横向的移动时触发,如果 catch 此事件,则意味着 touchmove 事件也被catch
105
- * @supported weapp, tt
100
+ /** 缩放过程中触发的事件
101
+ * @supported weapp, alipay, swan, tt, qq
106
102
  */
107
- catchTouchmove?: CommonEventFunction
103
+ onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
108
104
 
109
105
  /** 触摸动作开始,事件会向父节点传递。
110
- * 版本要求: 基础库 1.11.5 及以上
111
106
  * @supported alipay
112
107
  */
113
108
  onTouchStart?: CommonEventFunction
114
109
 
115
110
  /** 触摸动作开始,事件仅作用于组件,不向父节点传递。
116
- * 版本要求: 基础库 1.11.5 及以上
117
111
  * @supported alipay
118
112
  */
119
- catchTouchStart?: CommonEventFunction
113
+ onTouchMove?: CommonEventFunction
120
114
 
121
- /** 触摸移动事件,事件会向父节点传递。
122
- * 版本要求: 基础库 1.11.5 及以上
115
+ /** 手指触摸动作结束
116
+ * @supported alipay, h5
117
+ * @h5 此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理
118
+ */
119
+ onTouchEnd?: TouchEventFunction
120
+
121
+ /** 触摸动作被打断,如来电提醒、弹窗。
123
122
  * @supported alipay
124
123
  */
125
- onTouchMove?: CommonEventFunction
124
+ onTouchCancel?: CommonEventFunction
126
125
 
127
126
  /** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
128
- * @supported swan
127
+ * @supported weapp, swan, tt
129
128
  */
130
129
  onHTouchMove?: TouchEventFunction
131
130
 
132
131
  /** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
133
- * @supported swan
132
+ * @supported weapp, swan, tt
134
133
  */
135
134
  onVTouchMove?: TouchEventFunction
136
135
 
137
136
  /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
138
- * 版本要求: 基础库 1.11.5 及以上
139
137
  * @supported alipay
140
138
  */
141
- catchTouchMove?: CommonEventFunction
139
+ catchTouchStart?: CommonEventFunction
142
140
 
143
- /** 触摸动作结束,事件会向父节点传递。
141
+ /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
144
142
  * @supported alipay
145
143
  */
146
- onTouchEnd?: CommonEventFunction
144
+ catchTouchMove?: CommonEventFunction
147
145
 
148
146
  /** 触摸动作结束,事件仅作用于组件,不向父节点传递。
149
147
  * @supported alipay
150
148
  */
151
149
  catchTouchEnd?: CommonEventFunction
152
-
153
- /** 触摸动作被打断,如来电提醒、弹窗。
154
- * @supported alipay
155
- */
156
- onTouchCancel?: CommonEventFunction
157
-
158
- /** 拖动结束触发的事件
159
- * @supported alipay
160
- */
161
- onChangeEnd?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
162
150
  }
163
151
  declare namespace MovableViewProps {
164
152
  /** 拖动过程中触发的事件 */
@@ -37,7 +37,7 @@ interface NavigationBarProps extends StandardProps {
37
37
  /** 页面导航条配置节点,用于指定导航栏的一些属性。只能是 PageMeta 组件内的第一个节点,需要配合它一同使用。
38
38
  * 通过这个节点可以获得类似于调用 Taro.setNavigationBarTitle Taro.setNavigationBarColor 等接口调用的效果。
39
39
  * @supported weapp
40
- * @see https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html
40
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
41
41
  */
42
42
  declare const NavigationBar: ComponentType<NavigationBarProps>
43
43
  export { NavigationBar, NavigationBarProps }
@@ -67,6 +67,16 @@ interface NavigatorProps extends StandardProps {
67
67
  */
68
68
  hoverStayTime?: number
69
69
 
70
+ /** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
71
+ * @supported weapp
72
+ */
73
+ shortLink?: string
74
+
75
+ /** 无障碍访问,(属性)元素的额外描述
76
+ * @supported qq
77
+ */
78
+ ariaLabel?: string
79
+
70
80
  /** 当 `target="miniProgram"` 时有效,跳转小程序成功
71
81
  * @supported weapp, swan, qq
72
82
  */
@@ -81,16 +91,6 @@ interface NavigatorProps extends StandardProps {
81
91
  * @supported weapp, swan, qq
82
92
  */
83
93
  onComplete?: CommonEventFunction
84
-
85
- /** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
86
- * @supported weapp
87
- */
88
- shortLink?: string
89
-
90
- /** 无障碍访问,(属性)元素的额外描述
91
- * @supported qq
92
- */
93
- ariaLabel?: string
94
94
  }
95
95
  declare namespace NavigatorProps {
96
96
  /** target 的合法值 */
@@ -27,11 +27,6 @@ interface OpenDataProps extends StandardProps {
27
27
  */
28
28
  defaultAvatar?: string
29
29
 
30
- /** 群名称或用户信息为空时触发
31
- * @supported weapp, tt, qq
32
- */
33
- onError?: CommonEventFunction
34
-
35
30
  /** 当数据为空且未设置默认值时,是否显示官方默认值
36
31
  * @supported tt
37
32
  */
@@ -51,6 +46,11 @@ interface OpenDataProps extends StandardProps {
51
46
  * @supported qq
52
47
  */
53
48
  componentData?: string
49
+
50
+ /** 群名称或用户信息为空时触发
51
+ * @supported weapp, tt, qq
52
+ */
53
+ onError?: CommonEventFunction
54
54
  }
55
55
  declare namespace OpenDataProps {
56
56
  /** type 的合法值 */
@@ -1,8 +1,5 @@
1
1
  import { ComponentType } from 'react'
2
- import {
3
- StandardProps,
4
- CommonEventFunction,
5
- } from './common'
2
+ import { StandardProps, CommonEventFunction } from './common'
6
3
  interface PageContainerProps extends StandardProps {
7
4
  /** 是否显示容器组件
8
5
  * @default false
@@ -50,6 +47,12 @@ interface PageContainerProps extends StandardProps {
50
47
  */
51
48
  customStyle?: string
52
49
 
50
+ /** 是否在下滑一段距离后关闭
51
+ * @supported weapp
52
+ * @default false
53
+ */
54
+ closeOnSlideDown?: string
55
+
53
56
  /** 进入前触发
54
57
  * @supported weapp, rn
55
58
  */
@@ -84,12 +87,6 @@ interface PageContainerProps extends StandardProps {
84
87
  * @supported weapp
85
88
  */
86
89
  onClickOverlay?: CommonEventFunction
87
-
88
- /** 是否在下滑一段距离后关闭
89
- * @supported weapp
90
- * @default false
91
- */
92
- closeOnSlideDown?: string
93
90
  }
94
91
  declare namespace PageContainerProps {
95
92
  /** 弹出位置 */
@@ -45,35 +45,35 @@ interface PageMetaProps extends StandardProps {
45
45
  */
46
46
  rootFontSize?: string
47
47
 
48
- /** 页面尺寸变化时会触发 resize 事件
49
- * @supported weapp
48
+ /** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
49
+ * @supported weapp, alipay
50
50
  */
51
- onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
51
+ rootBackgroundColor?: string
52
52
 
53
- /** 页面滚动时会触发 scroll 事件
53
+ /** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
54
54
  * @supported weapp, alipay
55
55
  */
56
- onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
56
+ pageFontSize?: string
57
57
 
58
- /** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
58
+ /** 页面的方向,可为 auto portrait landscape
59
59
  * @supported weapp
60
60
  */
61
- onScrollDone?: CommonEventFunction
61
+ pageOrientation?: string
62
62
 
63
- /** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
64
- * @supported weapp, alipay
63
+ /** 页面尺寸变化时会触发 resize 事件
64
+ * @supported weapp
65
65
  */
66
- rootBackgroundColor?: string
66
+ onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
67
67
 
68
- /** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
68
+ /** 页面滚动时会触发 scroll 事件
69
69
  * @supported weapp, alipay
70
70
  */
71
- pageFontSize?: string
71
+ onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
72
72
 
73
- /** 页面的方向,可为 auto portrait landscape
73
+ /** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
74
74
  * @supported weapp
75
75
  */
76
- pageOrientation?: string
76
+ onScrollDone?: CommonEventFunction
77
77
  }
78
78
  declare namespace PageMetaProps {
79
79
  interface onResizeEventDetail {
package/types/Picker.d.ts CHANGED
@@ -436,11 +436,7 @@ declare namespace PickerRegionProps {
436
436
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/picker.html
437
437
  */
438
438
  declare const Picker: ComponentType<
439
- | PickerMultiSelectorProps
440
- | PickerTimeProps
441
- | PickerDateProps
442
- | PickerRegionProps
443
- | PickerSelectorProps
439
+ PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps
444
440
  >
445
441
  export {
446
442
  Picker,
@@ -32,21 +32,6 @@ interface PickerViewProps extends StandardProps {
32
32
  */
33
33
  immediateChange?: boolean
34
34
 
35
- /** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
36
- * @supported weapp, alipay, swan, tt, qq, jd, rn
37
- */
38
- onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
39
-
40
- /** 当滚动选择开始时候触发事件
41
- * @supported weapp, tt, qq
42
- */
43
- onPickStart?: CommonEventFunction
44
-
45
- /** 当滚动选择结束时候触发事件
46
- * @supported weapp, tt, qq
47
- */
48
- onPickEnd?: CommonEventFunction
49
-
50
35
  /** 选择器标题,建议标题控制在 12 个中文汉字长度内,避免出现截断现象, 截断部分将以 ... 形式展示
51
36
  * @supported swan
52
37
  */
@@ -57,17 +42,20 @@ interface PickerViewProps extends StandardProps {
57
42
  */
58
43
  ariaLabel?: string
59
44
 
60
- /** 当滚动选择开始时候触发事件。
61
- * 版本要求: 基础库 2.7.23 及以上
62
- * @supported alipay
45
+ /** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
46
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
63
47
  */
64
- onPickerStart?: CommonEventFunction
48
+ onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
65
49
 
66
- /** 当滚动选择结束时候触发事件。
67
- * 版本要求: 基础库 2.7.23 及以上
68
- * @supported alipay
50
+ /** 当滚动选择开始时候触发事件
51
+ * @supported weapp, alipay, tt, qq
69
52
  */
70
- onPickerEnd?: CommonEventFunction
53
+ onPickStart?: CommonEventFunction
54
+
55
+ /** 当滚动选择结束时候触发事件
56
+ * @supported weapp, alipay, tt, qq
57
+ */
58
+ onPickEnd?: CommonEventFunction
71
59
  }
72
60
  declare namespace PickerViewProps {
73
61
  interface onChangeEventDetail {
@@ -68,15 +68,15 @@ interface ProgressProps extends StandardProps {
68
68
  */
69
69
  duration?: number
70
70
 
71
- /** 动画完成事件
72
- * @supported weapp, qq, jd, h5
73
- */
74
- onActiveEnd?: CommonEventFunction
75
-
76
71
  /** 无障碍访问,(属性)元素的额外描述
77
72
  * @supported qq
78
73
  */
79
74
  ariaLabel?: string
75
+
76
+ /** 动画完成事件
77
+ * @supported weapp, qq, jd, h5
78
+ */
79
+ onActiveEnd?: CommonEventFunction
80
80
  }
81
81
 
82
82
  /** 进度条。组件属性的长度单位默认为 px