@tarojs/components 3.6.2-canary.1 → 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/vue2/components.d.ts +361 -589
- package/lib/vue2/components.js +248 -246
- package/lib/vue2/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/AnimationView.d.ts
CHANGED
|
@@ -5,37 +5,31 @@ interface AnimationViewProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
path?: string
|
|
8
|
-
|
|
9
8
|
/** 动画是否循环播放
|
|
10
9
|
* @supported swan
|
|
11
10
|
* @default false
|
|
12
11
|
*/
|
|
13
12
|
loop?: boolean
|
|
14
|
-
|
|
15
13
|
/** 动画是否自动播放
|
|
16
14
|
* @supported swan
|
|
17
15
|
* @default true
|
|
18
16
|
*/
|
|
19
17
|
autoplay?: boolean
|
|
20
|
-
|
|
21
18
|
/** 动画操作,可取值 play、pause、stop
|
|
22
19
|
* @supported swan
|
|
23
20
|
* @default "play"
|
|
24
21
|
*/
|
|
25
22
|
action?: 'play' | 'pause' | 'stop'
|
|
26
|
-
|
|
27
23
|
/** 是否隐藏动画
|
|
28
24
|
* @supported swan
|
|
29
25
|
* @default true
|
|
30
26
|
*/
|
|
31
27
|
hidden?: boolean
|
|
32
|
-
|
|
33
28
|
/** 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发)
|
|
34
29
|
* @supported swan
|
|
35
30
|
*/
|
|
36
31
|
onEnded?: CommonEventFunction
|
|
37
32
|
}
|
|
38
|
-
|
|
39
33
|
/** Lottie 动画
|
|
40
34
|
* @classification media
|
|
41
35
|
* @supported swan
|
package/types/ArCamera.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ interface ArCameraProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
key?: string
|
|
8
|
-
|
|
9
8
|
/** AR 相机类型,在 DuMixAR 内容开放平台上传生成 AR 项目后获取 AR Type:
|
|
10
9
|
* 2D 跟踪类型:0
|
|
11
10
|
* SLAM 类型:5
|
|
@@ -13,34 +12,28 @@ interface ArCameraProps extends StandardProps {
|
|
|
13
12
|
* @supported swan
|
|
14
13
|
*/
|
|
15
14
|
type?: '0' | '5' | '8'
|
|
16
|
-
|
|
17
15
|
/** 闪光灯,值为 auto、on、off
|
|
18
16
|
* @supported swan
|
|
19
17
|
* @default "off"
|
|
20
18
|
*/
|
|
21
19
|
flash?: 'auto' | 'on' | 'off'
|
|
22
|
-
|
|
23
20
|
/** 用户不允许使用摄像头或扫码失败时触发
|
|
24
21
|
* @supported swan
|
|
25
22
|
*/
|
|
26
23
|
onError?: CommonEventFunction
|
|
27
|
-
|
|
28
24
|
/** AR 加载成功时触发
|
|
29
25
|
* @supported swan
|
|
30
26
|
*/
|
|
31
27
|
onLoad?: CommonEventFunction
|
|
32
|
-
|
|
33
28
|
/** 开发者制作 AR 项目时可自定义按键,用户点击时会收到事件和数据,用户自定义事件格式参见代码示例 2:用户自定义事件
|
|
34
29
|
* @supported swan
|
|
35
30
|
*/
|
|
36
31
|
onMessage?: CommonEventFunction
|
|
37
|
-
|
|
38
32
|
/** 扫描识图结束后触发
|
|
39
33
|
* @supported swan
|
|
40
34
|
*/
|
|
41
35
|
onScanCode?: CommonEventFunction
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
/** AR 相机
|
|
45
38
|
* @classification media
|
|
46
39
|
* @supported swan
|
package/types/Audio.d.ts
CHANGED
|
@@ -5,72 +5,59 @@ interface AudioProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp, swan, qq
|
|
6
6
|
*/
|
|
7
7
|
id?: string
|
|
8
|
-
|
|
9
8
|
/** 要播放音频的资源地址
|
|
10
9
|
* @supported weapp, swan, qq, h5
|
|
11
10
|
*/
|
|
12
11
|
src?: string
|
|
13
|
-
|
|
14
12
|
/** 是否循环播放
|
|
15
13
|
* @default false
|
|
16
14
|
* @supported weapp, swan, qq, h5
|
|
17
15
|
*/
|
|
18
16
|
loop?: boolean
|
|
19
|
-
|
|
20
17
|
/** 是否静音播放
|
|
21
18
|
* @default false
|
|
22
19
|
* @supported h5
|
|
23
20
|
*/
|
|
24
21
|
muted?: boolean
|
|
25
|
-
|
|
26
22
|
/** 是否显示默认控件
|
|
27
23
|
* @default false
|
|
28
24
|
* @supported weapp, swan, qq, h5
|
|
29
25
|
*/
|
|
30
26
|
controls?: boolean
|
|
31
|
-
|
|
32
27
|
/** 默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效
|
|
33
28
|
* @supported weapp, swan, qq
|
|
34
29
|
*/
|
|
35
30
|
poster?: string
|
|
36
|
-
|
|
37
31
|
/** 默认控件上的音频名字,如果 controls 属性值为 false 则设置 name 无效
|
|
38
32
|
* @default "未知音频"
|
|
39
33
|
* @supported weapp, swan, qq
|
|
40
34
|
*/
|
|
41
35
|
name?: string
|
|
42
|
-
|
|
43
36
|
/** 默认控件上的作者名字,如果 controls 属性值为 false 则设置 author 无效
|
|
44
37
|
* @default "未知作者"
|
|
45
38
|
* @supported weapp, swan, qq
|
|
46
39
|
*/
|
|
47
40
|
author?: string
|
|
48
|
-
|
|
49
41
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
50
42
|
* @supported h5
|
|
51
43
|
*/
|
|
52
44
|
nativeProps?: Record<string, unknown>
|
|
53
|
-
|
|
54
45
|
/** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
|
|
55
46
|
* @supported weapp, swan, qq, h5
|
|
56
47
|
*/
|
|
57
48
|
onError?: CommonEventFunction<AudioProps.onErrorEventDetail>
|
|
58
|
-
|
|
59
49
|
/** 当开始/继续播放时触发play事件
|
|
60
50
|
* @supported weapp, swan, qq, h5
|
|
61
51
|
*/
|
|
62
52
|
onPlay?: CommonEventFunction
|
|
63
|
-
|
|
64
53
|
/** 当暂停播放时触发 pause 事件
|
|
65
54
|
* @supported weapp, swan, qq, h5
|
|
66
55
|
*/
|
|
67
56
|
onPause?: CommonEventFunction
|
|
68
|
-
|
|
69
57
|
/** 当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}
|
|
70
58
|
* @supported weapp, swan, qq, h5
|
|
71
59
|
*/
|
|
72
60
|
onTimeUpdate?: CommonEventFunction<AudioProps.onTimeUpdateEventDetail>
|
|
73
|
-
|
|
74
61
|
/** 当播放到末尾时触发 ended 事件
|
|
75
62
|
* @supported weapp, swan, qq, h5
|
|
76
63
|
*/
|
|
@@ -83,7 +70,6 @@ declare namespace AudioProps {
|
|
|
83
70
|
interface onTimeUpdateEventDetail {
|
|
84
71
|
/** 当前时间 */
|
|
85
72
|
currentTime: number
|
|
86
|
-
|
|
87
73
|
/** 持续时间 */
|
|
88
74
|
duration: number
|
|
89
75
|
}
|
|
@@ -91,19 +77,15 @@ declare namespace AudioProps {
|
|
|
91
77
|
interface Code {
|
|
92
78
|
/** 获取资源被用户禁止 */
|
|
93
79
|
1
|
|
94
|
-
|
|
95
80
|
/** 网络错误 */
|
|
96
81
|
2
|
|
97
|
-
|
|
98
82
|
/** 解码错误 */
|
|
99
83
|
3
|
|
100
|
-
|
|
101
84
|
/** 不合适资源 */
|
|
102
85
|
4
|
|
103
86
|
}
|
|
104
87
|
}
|
|
105
88
|
}
|
|
106
|
-
|
|
107
89
|
/** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
|
|
108
90
|
* @classification media
|
|
109
91
|
* @deprecated
|
package/types/AwemeData.d.ts
CHANGED
|
@@ -5,35 +5,29 @@ interface AwemeDataProps extends StandardProps {
|
|
|
5
5
|
* @supported tt
|
|
6
6
|
*/
|
|
7
7
|
awemeId?: string
|
|
8
|
-
|
|
9
8
|
/** 类型,可以选择头像或昵称
|
|
10
9
|
* @supported tt
|
|
11
10
|
* @default "avatar"
|
|
12
11
|
*/
|
|
13
12
|
type?: string
|
|
14
|
-
|
|
15
13
|
/** 禁用默认行为。点击头像时,如果用户处于直播状态下默认会跳转到直播间,非直播状态下跳转到个人主页。如果为 true,点击头像时不会有默认行为。
|
|
16
14
|
* @supported tt
|
|
17
15
|
* @default false
|
|
18
16
|
*/
|
|
19
17
|
disableDefault?: boolean
|
|
20
|
-
|
|
21
18
|
/** 获取信息失败时显示的默认头像 url
|
|
22
19
|
* @supported tt
|
|
23
20
|
*/
|
|
24
21
|
defaultAvatar?: string
|
|
25
|
-
|
|
26
22
|
/** 获取信息失败时显示的默认昵称文本
|
|
27
23
|
* @supported tt
|
|
28
24
|
*/
|
|
29
25
|
defaultText?: string
|
|
30
|
-
|
|
31
26
|
/** 当错误发生时触发
|
|
32
27
|
* @supported tt
|
|
33
28
|
*/
|
|
34
29
|
onError?: CommonEventFunction
|
|
35
30
|
}
|
|
36
|
-
|
|
37
31
|
/** 直播间状态组件
|
|
38
32
|
* @classification open
|
|
39
33
|
* @supported tt
|