@tarojs/components 3.6.2-canary.0 → 3.6.2-canary.2
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/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +28 -18
- package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -2
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/swiper/swiper-item.js +16 -9
- package/dist/collection/components/swiper/swiper.js +12 -9
- package/dist/collection/components/textarea/textarea.js +7 -3
- package/dist/components/taro-input-core.js +1 -1
- package/dist/components/taro-picker-core.js +1 -1
- package/dist/components/taro-swiper-core.js +12 -9
- package/dist/components/taro-swiper-item-core.js +16 -9
- package/dist/components/taro-textarea-core.js +2 -2
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +28 -18
- package/dist/esm/taro-textarea-core.entry.js +2 -2
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/taro-components/{p-4d390d17.entry.js → p-0b8b3af5.entry.js} +1 -1
- package/dist/taro-components/p-1c446c65.system.js +1 -1
- package/dist/taro-components/p-1eac7c75.system.entry.js +1 -0
- package/dist/taro-components/{p-3e23fa46.system.entry.js → p-39685396.system.entry.js} +1 -1
- package/dist/taro-components/{p-e53feb03.system.entry.js → p-58f9a827.system.entry.js} +1 -1
- package/dist/taro-components/{p-ab84c88e.entry.js → p-7704e165.entry.js} +1 -1
- package/dist/taro-components/{p-10046f1a.system.entry.js → p-a5afdc47.system.entry.js} +1 -1
- package/dist/taro-components/p-affb28de.entry.js +1 -0
- package/dist/taro-components/{p-7db63e92.entry.js → p-c30d1b2d.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/lib/react/components.js +81 -160
- package/lib/react/components.js.map +1 -1
- package/lib/vue2/components.d.ts +361 -589
- package/lib/vue2/components.js +249 -328
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue3/components.js +81 -160
- package/lib/vue3/components.js.map +1 -1
- package/package.json +5 -5
- package/types/Ad.d.ts +2 -31
- package/types/AdCustom.d.ts +0 -4
- package/types/AnimationVideo.d.ts +0 -9
- package/types/AnimationView.d.ts +0 -6
- package/types/ArCamera.d.ts +0 -7
- package/types/Audio.d.ts +0 -18
- package/types/AwemeData.d.ts +0 -6
- package/types/Button.d.ts +3 -106
- package/types/Camera.d.ts +0 -28
- package/types/Canvas.d.ts +2 -17
- package/types/ChannelLive.d.ts +0 -2
- package/types/ChannelVideo.d.ts +0 -6
- package/types/Checkbox.d.ts +1 -8
- package/types/CheckboxGroup.d.ts +0 -2
- package/types/CommentDetail.d.ts +4 -10
- package/types/CommentList.d.ts +4 -20
- package/types/ContactButton.d.ts +0 -7
- package/types/CoverImage.d.ts +0 -11
- package/types/CoverView.d.ts +0 -26
- package/types/Editor.d.ts +0 -10
- package/types/FollowSwan.d.ts +0 -3
- package/types/Form.d.ts +1 -9
- package/types/FunctionalPageNavigator.d.ts +0 -11
- package/types/GridView.d.ts +5 -10
- package/types/Icon.d.ts +0 -14
- package/types/Image.d.ts +0 -31
- package/types/InlinePaymentPanel.d.ts +0 -9
- package/types/Input.d.ts +0 -62
- package/types/Label.d.ts +3 -2
- package/types/Lifestyle.d.ts +0 -3
- package/types/Like.d.ts +0 -17
- package/types/LivePlayer.d.ts +1 -58
- package/types/LivePusher.d.ts +0 -77
- package/types/Login.d.ts +0 -5
- package/types/Lottie.d.ts +0 -16
- package/types/Map.d.ts +19 -136
- package/types/MatchMedia.d.ts +0 -7
- package/types/MovableArea.d.ts +0 -1
- package/types/MovableView.d.ts +0 -35
- package/types/NavigationBar.d.ts +0 -6
- package/types/Navigator.d.ts +0 -27
- package/types/OfficialAccount.d.ts +0 -12
- package/types/OpenData.d.ts +0 -20
- package/types/PageContainer.d.ts +0 -21
- package/types/PageMeta.d.ts +0 -16
- package/types/Picker.d.ts +17 -45
- package/types/PickerView.d.ts +1 -12
- package/types/Progress.d.ts +0 -13
- package/types/Radio.d.ts +1 -8
- package/types/RadioGroup.d.ts +0 -2
- package/types/RichText.d.ts +1 -22
- package/types/RootPortal.d.ts +1 -2
- package/types/RtcRoom.d.ts +0 -16
- package/types/RtcRoomItem.d.ts +0 -3
- package/types/ScrollView.d.ts +2 -57
- package/types/ShareElement.d.ts +2 -7
- package/types/Slider.d.ts +0 -19
- package/types/Swiper.d.ts +0 -44
- package/types/SwiperItem.d.ts +0 -2
- package/types/Switch.d.ts +2 -11
- package/types/TabItem.d.ts +0 -4
- package/types/Tabs.d.ts +0 -8
- package/types/Text.d.ts +0 -7
- package/types/Textarea.d.ts +0 -36
- package/types/Video.d.ts +1 -112
- package/types/View.d.ts +0 -25
- package/types/VoipRoom.d.ts +0 -6
- package/types/WebView.d.ts +0 -6
- package/dist/taro-components/p-0aaf66d2.entry.js +0 -1
- package/dist/taro-components/p-da1f3d54.system.entry.js +0 -1
package/types/LivePusher.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
|
-
|
|
4
3
|
/** 实时音视频录制。
|
|
5
4
|
* 需要用户授权 scope.camera、scope.record
|
|
6
5
|
* 暂只针对国内主体如下类目的小程序开放,需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
|
@@ -10,120 +9,100 @@ interface LivePusherProps extends StandardProps {
|
|
|
10
9
|
* @supported weapp, qq
|
|
11
10
|
*/
|
|
12
11
|
url?: string
|
|
13
|
-
|
|
14
12
|
/** SD(标清), HD(高清), FHD(超清), RTC(实时通话)
|
|
15
13
|
* @default "RTC"
|
|
16
14
|
* @supported weapp, qq
|
|
17
15
|
*/
|
|
18
16
|
mode?: 'SD' | 'HD' | 'FHD' | 'RTC'
|
|
19
|
-
|
|
20
17
|
/** 自动推流
|
|
21
18
|
* @default false
|
|
22
19
|
* @supported weapp, qq
|
|
23
20
|
*/
|
|
24
21
|
autopush?: boolean
|
|
25
|
-
|
|
26
22
|
/** 自定义渲染,允许开发者自行处理所采集的视频帧
|
|
27
23
|
* @default false
|
|
28
24
|
* @supported weapp
|
|
29
25
|
*/
|
|
30
26
|
enableVideoCustomRender?: boolean
|
|
31
|
-
|
|
32
27
|
/** 是否静音。即将废弃,可用 enable-mic 替代
|
|
33
28
|
* @default false
|
|
34
29
|
* @deprecated
|
|
35
30
|
* @supported weapp, qq
|
|
36
31
|
*/
|
|
37
32
|
muted?: boolean
|
|
38
|
-
|
|
39
33
|
/** 开启摄像头
|
|
40
34
|
* @default true
|
|
41
35
|
* @supported weapp, qq
|
|
42
36
|
*/
|
|
43
37
|
enableCamera?: boolean
|
|
44
|
-
|
|
45
38
|
/** 自动聚集
|
|
46
39
|
* @default true
|
|
47
40
|
* @supported weapp, qq
|
|
48
41
|
*/
|
|
49
42
|
autoFocus?: boolean
|
|
50
|
-
|
|
51
43
|
/** 画面方向
|
|
52
44
|
* @default "vertical"
|
|
53
45
|
* @supported weapp, qq
|
|
54
46
|
*/
|
|
55
47
|
orientation?: keyof LivePusherProps.Orientation
|
|
56
|
-
|
|
57
48
|
/** 美颜,取值范围 0-9 ,0 表示关闭
|
|
58
49
|
* @default 0
|
|
59
50
|
* @supported weapp, qq
|
|
60
51
|
*/
|
|
61
52
|
beauty?: number
|
|
62
|
-
|
|
63
53
|
/** 美白,取值范围 0-9 ,0 表示关闭
|
|
64
54
|
* @default 0
|
|
65
55
|
* @supported weapp, qq
|
|
66
56
|
*/
|
|
67
57
|
whiteness?: number
|
|
68
|
-
|
|
69
58
|
/** 宽高比,可选值有 3:4, 9:16
|
|
70
59
|
* @default "9:16"
|
|
71
60
|
* @supported weapp, qq
|
|
72
61
|
*/
|
|
73
62
|
aspect?: '9:16' | '3:4'
|
|
74
|
-
|
|
75
63
|
/** 最小码率
|
|
76
64
|
* @default 200
|
|
77
65
|
* @supported weapp, qq
|
|
78
66
|
*/
|
|
79
67
|
minBitrate?: number
|
|
80
|
-
|
|
81
68
|
/** 最大码率
|
|
82
69
|
* @default 1000
|
|
83
70
|
* @supported weapp, qq
|
|
84
71
|
*/
|
|
85
72
|
maxBitrate?: number
|
|
86
|
-
|
|
87
73
|
/** 高音质(48KHz)或低音质(16KHz),值为high, low
|
|
88
74
|
* @default "high"
|
|
89
75
|
* @supported weapp, qq
|
|
90
76
|
*/
|
|
91
77
|
audioQuality?: string
|
|
92
|
-
|
|
93
78
|
/** 进入后台时推流的等待画面
|
|
94
79
|
* @supported weapp, qq
|
|
95
80
|
*/
|
|
96
81
|
waitingImage?: string
|
|
97
|
-
|
|
98
82
|
/** 等待画面资源的MD5值
|
|
99
83
|
* @supported weapp, qq
|
|
100
84
|
*/
|
|
101
85
|
waitingImageHash?: string
|
|
102
|
-
|
|
103
86
|
/** 调整焦距
|
|
104
87
|
* @default false
|
|
105
88
|
* @supported weapp, qq
|
|
106
89
|
*/
|
|
107
90
|
zoom?: boolean
|
|
108
|
-
|
|
109
91
|
/** 前置或后置,值为front, back
|
|
110
92
|
* @default "front"
|
|
111
93
|
* @supported weapp, qq
|
|
112
94
|
*/
|
|
113
95
|
devicePosition?: string
|
|
114
|
-
|
|
115
96
|
/** 进入后台时是否静音
|
|
116
97
|
* @default false
|
|
117
98
|
* @supported weapp, qq
|
|
118
99
|
*/
|
|
119
100
|
backgroundMute?: boolean
|
|
120
|
-
|
|
121
101
|
/** 设置推流画面是否镜像,产生的效果在 LivePlayer 反应到
|
|
122
102
|
* @default false
|
|
123
103
|
* @supported weapp, qq
|
|
124
104
|
*/
|
|
125
105
|
mirror?: boolean
|
|
126
|
-
|
|
127
106
|
/** 设置推流画面是否镜像,产生的效果在 LivePlayer 反应到
|
|
128
107
|
*
|
|
129
108
|
* **Note:** 同 mirror 属性,后续 mirror 将废弃
|
|
@@ -131,142 +110,117 @@ interface LivePusherProps extends StandardProps {
|
|
|
131
110
|
* @supported weapp
|
|
132
111
|
*/
|
|
133
112
|
remoteMirror?: boolean
|
|
134
|
-
|
|
135
113
|
/** 控制本地预览画面是否镜像
|
|
136
114
|
* @default "auto"
|
|
137
115
|
* @supported weapp
|
|
138
116
|
*/
|
|
139
117
|
localMirror?: keyof LivePusherProps.LocalMirror
|
|
140
|
-
|
|
141
118
|
/** 音频混响类型
|
|
142
119
|
* @default 0
|
|
143
120
|
* @supported weapp, qq
|
|
144
121
|
*/
|
|
145
122
|
audioReverbType?: keyof LivePusherProps.AudioReverbType
|
|
146
|
-
|
|
147
123
|
/** 开启或关闭麦克风
|
|
148
124
|
* @default true
|
|
149
125
|
* @supported weapp
|
|
150
126
|
*/
|
|
151
127
|
enableMic?: boolean
|
|
152
|
-
|
|
153
128
|
/** 是否开启音频自动增益
|
|
154
129
|
* @default false
|
|
155
130
|
* @supported weapp
|
|
156
131
|
*/
|
|
157
132
|
enableAgc?: boolean
|
|
158
|
-
|
|
159
133
|
/** 是否开启音频噪声抑制
|
|
160
134
|
* @default false
|
|
161
135
|
* @supported weapp
|
|
162
136
|
*/
|
|
163
137
|
enableAns?: boolean
|
|
164
|
-
|
|
165
138
|
/** 音量类型
|
|
166
139
|
* @default "voicecall"
|
|
167
140
|
* @supported weapp
|
|
168
141
|
*/
|
|
169
142
|
audioVolumeType?: keyof LivePusherProps.AudioVolumeType
|
|
170
|
-
|
|
171
143
|
/** 上推的视频流的分辨率宽度
|
|
172
144
|
* @default 360
|
|
173
145
|
* @supported weapp
|
|
174
146
|
*/
|
|
175
147
|
videoWidth?: number
|
|
176
|
-
|
|
177
148
|
/** 上推的视频流的分辨率高度
|
|
178
149
|
* @default 640
|
|
179
150
|
* @supported weapp
|
|
180
151
|
*/
|
|
181
152
|
videoHeight?: number
|
|
182
|
-
|
|
183
153
|
/** 设置美颜类型
|
|
184
154
|
* @default smooth
|
|
185
155
|
* @supported weapp
|
|
186
156
|
*/
|
|
187
157
|
beautyStyle?: keyof LivePusherProps.BeautyStyleType
|
|
188
|
-
|
|
189
158
|
/** 设置色彩滤镜
|
|
190
159
|
* @default standard
|
|
191
160
|
* @supported weapp
|
|
192
161
|
*/
|
|
193
162
|
filter?: keyof LivePusherProps.FilterType
|
|
194
|
-
|
|
195
163
|
/** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
|
|
196
164
|
* @supported weapp
|
|
197
165
|
*/
|
|
198
166
|
pictureInPictureMode?: string | any[]
|
|
199
|
-
|
|
200
167
|
/** 是否启动自定义特效,设定后不能更改
|
|
201
168
|
* @supported weapp
|
|
202
169
|
* @default false
|
|
203
170
|
*/
|
|
204
171
|
customEffect?: boolean
|
|
205
|
-
|
|
206
172
|
/** 自定义特效美白效果,取值 0~1。需要开启 custom-effect
|
|
207
173
|
* @supported weapp
|
|
208
174
|
* @default 0
|
|
209
175
|
*/
|
|
210
176
|
skinWhiteness?: number
|
|
211
|
-
|
|
212
177
|
/** 自定义特效磨皮效果,取值 0~1。需要开启 custom-effect
|
|
213
178
|
* @supported weapp
|
|
214
179
|
* @default 0
|
|
215
180
|
*/
|
|
216
181
|
skinSmoothness?: number
|
|
217
|
-
|
|
218
182
|
/** 自定义特效瘦脸效果,取值 0~1。需要开启 custom-effect
|
|
219
183
|
* @supported weapp
|
|
220
184
|
* @default 0
|
|
221
185
|
*/
|
|
222
186
|
faceThinness?: number
|
|
223
|
-
|
|
224
187
|
/** 自定义特效大眼效果,取值 0~1。需要开启 custom-effect
|
|
225
188
|
* @supported weapp
|
|
226
189
|
* @default 0
|
|
227
190
|
*/
|
|
228
191
|
eyeBigness?: number
|
|
229
|
-
|
|
230
192
|
/** 状态变化事件,detail = {code}
|
|
231
193
|
* @supported weapp, qq
|
|
232
194
|
*/
|
|
233
195
|
onStateChange?: CommonEventFunction<LivePusherProps.onStateChangeEventDetail>
|
|
234
|
-
|
|
235
196
|
/** 渲染错误事件,detail = {errMsg, errCode}
|
|
236
197
|
* @supported weapp, qq
|
|
237
198
|
*/
|
|
238
199
|
onError?: CommonEventFunction<LivePusherProps.onErrorEventDetail>
|
|
239
|
-
|
|
240
200
|
/** 背景音进度变化时触发,detail = {progress, duration}
|
|
241
201
|
* @supported weapp, qq
|
|
242
202
|
*/
|
|
243
203
|
onBgmProgress?: CommonEventFunction<LivePusherProps.onBgmProgressEventDetail>
|
|
244
|
-
|
|
245
204
|
/** 背景音播放完成时触发
|
|
246
205
|
* @supported weapp, qq
|
|
247
206
|
*/
|
|
248
207
|
onBgmComplete?: CommonEventFunction
|
|
249
|
-
|
|
250
208
|
/** 返回麦克风采集的音量大小
|
|
251
209
|
* @supported weapp
|
|
252
210
|
*/
|
|
253
211
|
onAudioVolumeNotify?: CommonEventFunction
|
|
254
|
-
|
|
255
212
|
/** 网络状态通知,detail = {info}
|
|
256
213
|
* @supported weapp, qq
|
|
257
214
|
*/
|
|
258
215
|
onNetStatus?: CommonEventFunction
|
|
259
|
-
|
|
260
216
|
/** 进入小窗
|
|
261
217
|
* @supported weapp
|
|
262
218
|
*/
|
|
263
219
|
onEnterPictureInPicture?: string
|
|
264
|
-
|
|
265
220
|
/** 退出小窗
|
|
266
221
|
* @supported weapp
|
|
267
222
|
*/
|
|
268
223
|
onLeavePictureInPicture?: string
|
|
269
|
-
|
|
270
224
|
/** 背景音开始播放时触发
|
|
271
225
|
* @supported weapp, qq
|
|
272
226
|
*/
|
|
@@ -277,103 +231,75 @@ declare namespace LivePusherProps {
|
|
|
277
231
|
interface Orientation {
|
|
278
232
|
/** 竖直 */
|
|
279
233
|
vertical
|
|
280
|
-
|
|
281
234
|
/** 水平 */
|
|
282
235
|
horizontal
|
|
283
236
|
}
|
|
284
|
-
|
|
285
237
|
/** localMirror 的合法值 */
|
|
286
238
|
interface LocalMirror {
|
|
287
239
|
/** 前置摄像头镜像,后置摄像头不镜像 */
|
|
288
240
|
auto
|
|
289
|
-
|
|
290
241
|
/** 前后置摄像头均镜像 */
|
|
291
242
|
enable
|
|
292
|
-
|
|
293
243
|
/** 前后置摄像头均不镜像 */
|
|
294
244
|
disable
|
|
295
245
|
}
|
|
296
|
-
|
|
297
246
|
/** audioReverbType 的合法值 */
|
|
298
247
|
interface AudioReverbType {
|
|
299
248
|
/** 关闭 */
|
|
300
249
|
0
|
|
301
|
-
|
|
302
250
|
/** KTV */
|
|
303
251
|
1
|
|
304
|
-
|
|
305
252
|
/** 小房间 */
|
|
306
253
|
2
|
|
307
|
-
|
|
308
254
|
/** 大会堂 */
|
|
309
255
|
3
|
|
310
|
-
|
|
311
256
|
/** 低沉 */
|
|
312
257
|
4
|
|
313
|
-
|
|
314
258
|
/** 洪亮 */
|
|
315
259
|
5
|
|
316
|
-
|
|
317
260
|
/** 金属声 */
|
|
318
261
|
6
|
|
319
|
-
|
|
320
262
|
/** 磁性 */
|
|
321
263
|
7
|
|
322
264
|
}
|
|
323
|
-
|
|
324
265
|
/** audioVolumeType 的合法值 */
|
|
325
266
|
interface AudioVolumeType {
|
|
326
267
|
/** 自动 */
|
|
327
268
|
auto
|
|
328
|
-
|
|
329
269
|
/** 媒体音量 */
|
|
330
270
|
media
|
|
331
|
-
|
|
332
271
|
/** 通话音量 */
|
|
333
272
|
voicecall
|
|
334
273
|
}
|
|
335
|
-
|
|
336
274
|
/** beautyStyleType 的合法值 */
|
|
337
275
|
interface BeautyStyleType {
|
|
338
276
|
/** 光滑美颜 */
|
|
339
277
|
smooth
|
|
340
|
-
|
|
341
278
|
/** 自然美颜 */
|
|
342
279
|
nature
|
|
343
280
|
}
|
|
344
|
-
|
|
345
281
|
/** filterType 的合法值 */
|
|
346
282
|
interface FilterType {
|
|
347
283
|
/** 标准 */
|
|
348
284
|
standard
|
|
349
|
-
|
|
350
285
|
/** 粉嫩 */
|
|
351
286
|
pink
|
|
352
|
-
|
|
353
287
|
/** 怀旧 */
|
|
354
288
|
nostalgia
|
|
355
|
-
|
|
356
289
|
/** 蓝调 */
|
|
357
290
|
blues
|
|
358
|
-
|
|
359
291
|
/** 浪漫 */
|
|
360
292
|
romantic
|
|
361
|
-
|
|
362
293
|
/** 清凉 */
|
|
363
294
|
cool
|
|
364
|
-
|
|
365
295
|
/** 清新 */
|
|
366
296
|
fresher
|
|
367
|
-
|
|
368
297
|
/** 日系 */
|
|
369
298
|
solor
|
|
370
|
-
|
|
371
299
|
/** 唯美 */
|
|
372
300
|
aestheticism
|
|
373
|
-
|
|
374
301
|
/** 美白 */
|
|
375
302
|
whitening
|
|
376
|
-
|
|
377
303
|
/** 樱红 */
|
|
378
304
|
cerisered
|
|
379
305
|
}
|
|
@@ -388,19 +314,16 @@ declare namespace LivePusherProps {
|
|
|
388
314
|
interface onErrorEventDetail {
|
|
389
315
|
/** 错误信息 */
|
|
390
316
|
errMsg: string
|
|
391
|
-
|
|
392
317
|
/** 错误码 */
|
|
393
318
|
errCode: string | number
|
|
394
319
|
}
|
|
395
320
|
interface onBgmProgressEventDetail {
|
|
396
321
|
/** 进展 */
|
|
397
322
|
progress
|
|
398
|
-
|
|
399
323
|
/** 持续时间 */
|
|
400
324
|
duration: number
|
|
401
325
|
}
|
|
402
326
|
}
|
|
403
|
-
|
|
404
327
|
/** 实时音视频录制。需要用户授权 scope.camera、scope.record
|
|
405
328
|
* 需要先通过类目审核,再在小程序管理后台,「开发」-「接口设置」中自助开通该组件权限。
|
|
406
329
|
* @classification media
|
package/types/Login.d.ts
CHANGED
|
@@ -5,20 +5,17 @@ interface LoginProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
buttonClass?: string
|
|
8
|
-
|
|
9
8
|
/** 组件中用户授权勾选框选中时的颜色,同 CSS 的 color
|
|
10
9
|
* @supported swan
|
|
11
10
|
* @default "#3388FF"
|
|
12
11
|
*/
|
|
13
12
|
checkedColor?: string
|
|
14
|
-
|
|
15
13
|
/** 主题颜色,设置后将应用于 “用户授权按钮背景色” 和 “用户授权勾选框选中时的颜色”
|
|
16
14
|
* 注:theme-color 的优先级低于 button-class 和 checked-color,且当 button-class 存在时,theme-color 不生效
|
|
17
15
|
* @supported swan
|
|
18
16
|
* @default "#3388FF"
|
|
19
17
|
*/
|
|
20
18
|
themeColor?: string
|
|
21
|
-
|
|
22
19
|
/** 用户完成授权后,获取用户手机号:
|
|
23
20
|
* detail.errMsg 值为"getPhoneNumber:ok" 时代表用户信息获取成功;
|
|
24
21
|
* detail.errMsg 值为"getPhoneNumber:fail auth deny"时代表用户信息获取失败。
|
|
@@ -29,13 +26,11 @@ interface LoginProps extends StandardProps {
|
|
|
29
26
|
* @supported swan
|
|
30
27
|
*/
|
|
31
28
|
onGetPhoneNumber?: CommonEventFunction
|
|
32
|
-
|
|
33
29
|
/** 组件加载失败回调
|
|
34
30
|
* @supported swan
|
|
35
31
|
*/
|
|
36
32
|
onLoadError?: CommonEventFunction
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
/** 联合登录 / 手机号授权内嵌组件
|
|
40
35
|
* @classification open
|
|
41
36
|
* @supported swan
|
package/types/Lottie.d.ts
CHANGED
|
@@ -6,19 +6,16 @@ interface LottieProps extends StandardProps {
|
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
autoplay?: boolean
|
|
9
|
-
|
|
10
9
|
/** Lottie 资源地址。包含近端(包内地址)和远端(网络)的 JSON 文件地址。
|
|
11
10
|
* 与 djangoId 二选一。
|
|
12
11
|
* @supported alipay
|
|
13
12
|
*/
|
|
14
13
|
path?: string
|
|
15
|
-
|
|
16
14
|
/** 播放速度。正数为正向播放,负数负向播放。
|
|
17
15
|
* @supported alipay
|
|
18
16
|
* @default 1.0
|
|
19
17
|
*/
|
|
20
18
|
speed?: number
|
|
21
|
-
|
|
22
19
|
/** 循环次数。
|
|
23
20
|
*
|
|
24
21
|
* 如果是负数表示无限次。
|
|
@@ -28,18 +25,15 @@ interface LottieProps extends StandardProps {
|
|
|
28
25
|
* @default 0
|
|
29
26
|
*/
|
|
30
27
|
repeatCount?: number
|
|
31
|
-
|
|
32
28
|
/** 是否自动回播。
|
|
33
29
|
* @supported alipay
|
|
34
30
|
* @default false
|
|
35
31
|
*/
|
|
36
32
|
autoReverse?: boolean
|
|
37
|
-
|
|
38
33
|
/** 资源地址。"/" 表明是小程序根目录。
|
|
39
34
|
* @supported alipay
|
|
40
35
|
*/
|
|
41
36
|
assetsPath?: string
|
|
42
|
-
|
|
43
37
|
/** 兜底图或者降级图地址。
|
|
44
38
|
*
|
|
45
39
|
* 1. 支持本地资源,案例:'/image/lottie/lottie2_default.png'。
|
|
@@ -48,7 +42,6 @@ interface LottieProps extends StandardProps {
|
|
|
48
42
|
* @supported alipay
|
|
49
43
|
*/
|
|
50
44
|
placeholder?: string
|
|
51
|
-
|
|
52
45
|
/** 在线资源的 md5 校验。
|
|
53
46
|
* djangoId=https://b.zip。
|
|
54
47
|
* 可以使用 b.zip 加密 获取 md5 值
|
|
@@ -56,7 +49,6 @@ interface LottieProps extends StandardProps {
|
|
|
56
49
|
* @supported alipay
|
|
57
50
|
*/
|
|
58
51
|
md5?: string
|
|
59
|
-
|
|
60
52
|
/** 降级。降级是指如遇低端设备,Lottie 会降级展示为 placeholder。
|
|
61
53
|
* 当 optimize 为 true ,并且传入了 placeholder 时,在低端设备上只会展示 placeholder,不展示 Lottie。
|
|
62
54
|
* 低端设备如下所示:
|
|
@@ -67,43 +59,35 @@ interface LottieProps extends StandardProps {
|
|
|
67
59
|
* @default false
|
|
68
60
|
*/
|
|
69
61
|
optimize?: boolean
|
|
70
|
-
|
|
71
62
|
/** 当数据下载+视图创建完成时触发。
|
|
72
63
|
* @supported alipay
|
|
73
64
|
*/
|
|
74
65
|
onDataReady?: CommonEventFunction
|
|
75
|
-
|
|
76
66
|
/** 数据加载失败时触发。
|
|
77
67
|
* @supported alipay
|
|
78
68
|
*/
|
|
79
69
|
onDataFailed?: CommonEventFunction
|
|
80
|
-
|
|
81
70
|
/** 动画开始时触发。
|
|
82
71
|
* @supported alipay
|
|
83
72
|
*/
|
|
84
73
|
onAnimationStart?: CommonEventFunction
|
|
85
|
-
|
|
86
74
|
/** 动画结束时触发。
|
|
87
75
|
* @supported alipay
|
|
88
76
|
*/
|
|
89
77
|
onAnimationEnd?: CommonEventFunction
|
|
90
|
-
|
|
91
78
|
/** 动画一次重播结束。
|
|
92
79
|
* @supported alipay
|
|
93
80
|
*/
|
|
94
81
|
onAnimationRepeat?: CommonEventFunction
|
|
95
|
-
|
|
96
82
|
/** 动画取消。业务调用 Cancel 时回调。
|
|
97
83
|
* @supported alipay
|
|
98
84
|
*/
|
|
99
85
|
onAnimationCancel?: CommonEventFunction
|
|
100
|
-
|
|
101
86
|
/** 参数化时,数据准备完成,等待业务传入参数化值。
|
|
102
87
|
* @supported alipay
|
|
103
88
|
*/
|
|
104
89
|
onDataLoadReady?: CommonEventFunction
|
|
105
90
|
}
|
|
106
|
-
|
|
107
91
|
/** Lottie
|
|
108
92
|
* @classification media
|
|
109
93
|
* @supported alipay
|