@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/Canvas.d.ts
CHANGED
|
@@ -5,74 +5,60 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
|
|
|
5
5
|
* @supported weapp, alipay, tt
|
|
6
6
|
*/
|
|
7
7
|
type?: string
|
|
8
|
-
|
|
9
8
|
/** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性
|
|
10
|
-
* @supported weapp, swan, tt, qq, jd
|
|
9
|
+
* @supported weapp, swan, tt, qq, jd, h5
|
|
11
10
|
*/
|
|
12
11
|
canvasId?: string
|
|
13
|
-
|
|
14
12
|
/** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
|
|
15
13
|
* @default false
|
|
16
14
|
* @supported weapp, alipay, swan, qq, jd
|
|
17
15
|
*/
|
|
18
16
|
disableScroll?: boolean
|
|
19
|
-
|
|
20
17
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
21
18
|
* @supported h5
|
|
22
19
|
*/
|
|
23
20
|
nativeProps?: Record<string, unknown>
|
|
24
|
-
|
|
25
21
|
/** 组件唯一标识符。
|
|
26
22
|
* 注意:同一页面中的 id 不可重复。
|
|
27
23
|
* @supported alipay
|
|
28
24
|
*/
|
|
29
25
|
id?: string
|
|
30
|
-
|
|
31
26
|
/**
|
|
32
27
|
* @supported alipay
|
|
33
28
|
*/
|
|
34
29
|
width?: string
|
|
35
|
-
|
|
36
30
|
/**
|
|
37
31
|
* @supported alipay
|
|
38
32
|
*/
|
|
39
33
|
height?: string
|
|
40
|
-
|
|
41
34
|
/** 手指触摸动作开始
|
|
42
35
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
43
36
|
*/
|
|
44
37
|
onTouchStart?: CanvasTouchEventFunction
|
|
45
|
-
|
|
46
38
|
/** 手指触摸后移动
|
|
47
39
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
48
40
|
*/
|
|
49
41
|
onTouchMove?: CanvasTouchEventFunction
|
|
50
|
-
|
|
51
42
|
/** 手指触摸动作结束
|
|
52
43
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
53
44
|
*/
|
|
54
45
|
onTouchEnd?: CanvasTouchEventFunction
|
|
55
|
-
|
|
56
46
|
/** 手指触摸动作被打断,如来电提醒,弹窗
|
|
57
47
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
58
48
|
*/
|
|
59
49
|
onTouchCancel?: CanvasTouchEventFunction
|
|
60
|
-
|
|
61
50
|
/** 手指长按 500ms 之后触发,触发了长按事件后进行移动不会触发屏幕的滚动
|
|
62
|
-
* @supported weapp, alipay, swan, qq, jd
|
|
51
|
+
* @supported weapp, alipay, swan, qq, jd, h5
|
|
63
52
|
*/
|
|
64
53
|
onLongTap?: CommonEventFunction
|
|
65
|
-
|
|
66
54
|
/** 当发生错误时触发 error 事件,detail = {errMsg: 'something wrong'}
|
|
67
55
|
* @supported weapp, swan, qq, jd
|
|
68
56
|
*/
|
|
69
57
|
onError?: CommonEventFunction<CanvasProps.onErrorEventDetail>
|
|
70
|
-
|
|
71
58
|
/** 点击。
|
|
72
59
|
* @supported alipay
|
|
73
60
|
*/
|
|
74
61
|
onTap?: CommonEventFunction
|
|
75
|
-
|
|
76
62
|
/** canvas 组件初始化成功触发。
|
|
77
63
|
* @supported alipay
|
|
78
64
|
*/
|
|
@@ -83,7 +69,6 @@ declare namespace CanvasProps {
|
|
|
83
69
|
errMsg: string
|
|
84
70
|
}
|
|
85
71
|
}
|
|
86
|
-
|
|
87
72
|
/** 画布
|
|
88
73
|
*
|
|
89
74
|
* `<Canvas />` 组件的 RN 版本尚未实现。
|
package/types/ChannelLive.d.ts
CHANGED
|
@@ -5,13 +5,11 @@ interface ChannelLiveProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp
|
|
6
6
|
*/
|
|
7
7
|
feedId: string
|
|
8
|
-
|
|
9
8
|
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
|
|
10
9
|
* @supported weapp
|
|
11
10
|
*/
|
|
12
11
|
finderUserName: string
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
/**
|
|
16
14
|
* 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。
|
|
17
15
|
* @classification media
|
package/types/ChannelVideo.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ interface ChannelVideoProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp
|
|
6
6
|
*/
|
|
7
7
|
feedId: string
|
|
8
|
-
|
|
9
8
|
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
|
|
10
9
|
* @supported weapp
|
|
11
10
|
*/
|
|
@@ -15,31 +14,26 @@ interface ChannelVideoProps extends StandardProps {
|
|
|
15
14
|
* @default false
|
|
16
15
|
*/
|
|
17
16
|
loop?: boolean
|
|
18
|
-
|
|
19
17
|
/** 是否静音播放
|
|
20
18
|
* @supported weapp
|
|
21
19
|
* @default false
|
|
22
20
|
*/
|
|
23
21
|
muted?: boolean
|
|
24
|
-
|
|
25
22
|
/** 当视频大小与 video 容器大小不一致时,视频的表现形式
|
|
26
23
|
* @supported weapp
|
|
27
24
|
* @default "contain"
|
|
28
25
|
*/
|
|
29
26
|
objectFit?: 'fill' | 'contain' | 'cover'
|
|
30
|
-
|
|
31
27
|
/** 是否自动播放
|
|
32
28
|
* @supported weapp
|
|
33
29
|
* @default false
|
|
34
30
|
*/
|
|
35
31
|
autoplay?: boolean
|
|
36
|
-
|
|
37
32
|
/** 视频播放出错时触发
|
|
38
33
|
* @supported weapp
|
|
39
34
|
*/
|
|
40
35
|
onError?: CommonEventFunction
|
|
41
36
|
}
|
|
42
|
-
|
|
43
37
|
/**
|
|
44
38
|
* 小程序内嵌视频号视频组件,支持在小程序中播放视频号视频,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序相同主体或关联主体。
|
|
45
39
|
* @classification media
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -2,37 +2,31 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface CheckboxProps extends StandardProps {
|
|
4
4
|
/** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
6
|
*/
|
|
7
7
|
value: string
|
|
8
|
-
|
|
9
8
|
/** 是否禁用
|
|
10
9
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
10
|
* @default false
|
|
12
11
|
*/
|
|
13
12
|
disabled?: boolean
|
|
14
|
-
|
|
15
13
|
/** 当前是否选中,可用来设置默认选中
|
|
16
14
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
17
15
|
* @default false
|
|
18
16
|
*/
|
|
19
17
|
checked?: boolean
|
|
20
|
-
|
|
21
18
|
/** checkbox的颜色,同 css 的 color
|
|
22
19
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
23
20
|
*/
|
|
24
21
|
color?: string
|
|
25
|
-
|
|
26
22
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
27
23
|
* @supported h5
|
|
28
24
|
*/
|
|
29
25
|
nativeProps?: Record<string, unknown>
|
|
30
|
-
|
|
31
26
|
/** 无障碍访问,(属性)元素的额外描述
|
|
32
27
|
* @supported qq
|
|
33
28
|
*/
|
|
34
29
|
ariaLabel?: string
|
|
35
|
-
|
|
36
30
|
/** 选中项发生变化时触发 change 事件,小程序无此 API
|
|
37
31
|
* @supported alipay, h5, rn
|
|
38
32
|
*/
|
|
@@ -40,7 +34,6 @@ interface CheckboxProps extends StandardProps {
|
|
|
40
34
|
value: string[]
|
|
41
35
|
}>
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
/** 多选项目
|
|
45
38
|
* @classification forms
|
|
46
39
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
5
5
|
* @supported alipay, tt, h5
|
|
6
6
|
*/
|
|
7
7
|
name?: string
|
|
8
|
-
|
|
9
8
|
/** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
|
|
10
9
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
10
|
*/
|
|
@@ -13,7 +12,6 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
13
12
|
value: string[]
|
|
14
13
|
}>
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
/** 多项选择器,内部由多个checkbox组成
|
|
18
16
|
* @classification forms
|
|
19
17
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
package/types/CommentDetail.d.ts
CHANGED
|
@@ -5,46 +5,43 @@ interface CommentDetailProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
commentParam: CommentDetailProps.ICommentParam
|
|
8
|
-
|
|
9
8
|
/** 评论 ID
|
|
10
9
|
* @supported swan
|
|
11
10
|
*/
|
|
12
11
|
srid: string
|
|
13
|
-
|
|
14
12
|
/** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
|
|
15
13
|
* @supported swan
|
|
16
14
|
* @default true
|
|
17
15
|
*/
|
|
18
16
|
isPageScroll?: boolean
|
|
19
|
-
|
|
20
17
|
/** 是否需要底部 toolbar,若使用开发者自定义的底部 toolbar,该参数需设为 false
|
|
21
18
|
* @supported swan
|
|
22
19
|
* @default true
|
|
23
20
|
*/
|
|
24
21
|
needToolbar?: boolean
|
|
25
|
-
|
|
26
22
|
/** 是否需要详情顶部父级评论的点赞按钮,默认显示
|
|
27
23
|
* @supported swan
|
|
28
24
|
* @default true
|
|
29
25
|
*/
|
|
30
26
|
needLikeBtn?: boolean
|
|
31
|
-
|
|
32
27
|
/** 删除详情后是否返回列表项,默认一站式逻辑。若使用浮层,请设置改属性为 false
|
|
33
28
|
* @supported swan
|
|
34
29
|
* @default true
|
|
35
30
|
*/
|
|
36
31
|
backListAfterDelete?: boolean
|
|
37
|
-
|
|
38
32
|
/** 用于调起评论发布器发布评论
|
|
39
33
|
* @supported swan
|
|
40
34
|
* @default false
|
|
41
35
|
*/
|
|
42
36
|
addComment?: boolean
|
|
43
|
-
|
|
44
37
|
/** 删除整体详情内容时触发,返回数据为{status, data:{srid}}
|
|
45
38
|
* @supported swan
|
|
46
39
|
*/
|
|
47
40
|
onDelete?: CommonEventFunction
|
|
41
|
+
/** 评论发布成功时触发,返回数据为 {status, data:{srid}}
|
|
42
|
+
* @supported swan
|
|
43
|
+
*/
|
|
44
|
+
onReply?: CommonEventFunction
|
|
48
45
|
}
|
|
49
46
|
namespace CommentDetailProps {
|
|
50
47
|
interface ICommentParam {
|
|
@@ -52,17 +49,14 @@ namespace CommentDetailProps {
|
|
|
52
49
|
* @example "20200101"
|
|
53
50
|
*/
|
|
54
51
|
snid: string
|
|
55
|
-
|
|
56
52
|
/** 文章标题 */
|
|
57
53
|
title: string
|
|
58
|
-
|
|
59
54
|
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
60
55
|
* @example "/pages/index/index"
|
|
61
56
|
*/
|
|
62
57
|
path: string
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
|
-
|
|
66
60
|
/** 评论详情
|
|
67
61
|
* @classification open
|
|
68
62
|
* @supported swan
|
package/types/CommentList.d.ts
CHANGED
|
@@ -5,66 +5,59 @@ interface CommentListProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
commentParam: CommentListProps.ICommentParam
|
|
8
|
-
|
|
9
8
|
/** 底部 toolbar 的相关配置
|
|
10
9
|
* @supported swan
|
|
11
10
|
*/
|
|
12
11
|
toolbarConfig?: CommentListProps.IToolbarConfig
|
|
13
|
-
|
|
14
12
|
/** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
|
|
15
13
|
* @supported swan
|
|
16
14
|
* @default true
|
|
17
15
|
*/
|
|
18
16
|
isPageScroll?: boolean
|
|
19
|
-
|
|
20
17
|
/** 是否需要底部 toolbar ,若使用开发者自定义的底部 toolbar ,该参数需设为 false
|
|
21
18
|
* @supported swan
|
|
22
19
|
* @default true
|
|
23
20
|
*/
|
|
24
21
|
needToolbar?: boolean
|
|
25
|
-
|
|
26
22
|
/** 用于调起评论发布器发布评论,发布成功插入列表第一条,且滚动到列表顶部
|
|
27
23
|
* @supported swan
|
|
28
24
|
* @default false
|
|
29
25
|
*/
|
|
30
26
|
addComment?: boolean
|
|
31
|
-
|
|
32
27
|
/** 点击单条评论跳转的详情页页面 path ,若没有配置则不会发生跳转;配置的前提是列表与详情均是页面级
|
|
33
28
|
* @supported swan
|
|
34
29
|
*/
|
|
35
30
|
detailPath?: string
|
|
36
|
-
|
|
37
31
|
/** 是否折叠列表,默认全展示
|
|
38
32
|
* @supported swan
|
|
39
33
|
* @default false
|
|
40
34
|
*/
|
|
41
35
|
isFolded?: boolean
|
|
42
|
-
|
|
43
36
|
/** 折叠后列表展示最大条数,默认 3 条,最多 10 条
|
|
44
37
|
* @supported swan
|
|
45
38
|
* @default 3
|
|
46
39
|
*/
|
|
47
40
|
foldNum?: number
|
|
48
|
-
|
|
49
41
|
/** 传入放置评论组件的页面路径,如'/pages/list/index',组件内部会触发跳转逻辑
|
|
50
42
|
* @supported swan
|
|
51
43
|
*/
|
|
52
44
|
viewMorePath?: string
|
|
53
|
-
|
|
54
45
|
/** 『全部 xx 条』的样式,目前只支持开发者自定义字体颜色
|
|
55
46
|
* @supported swan
|
|
56
47
|
*/
|
|
57
48
|
viewMoreStyle?: CommentListProps.IViewMoreStyle
|
|
58
|
-
|
|
59
49
|
/** 绑定点击单条评论的事件,点击单条评论时触发,返回数据为{status, data:{srid}}
|
|
60
50
|
* @supported swan
|
|
61
51
|
*/
|
|
62
52
|
onClickComment?: CommonEventFunction
|
|
63
|
-
|
|
64
53
|
/** 绑定点击更多事件,若除了页面跳转还需要其他操作,可通过该回调执行;若为浮层,也可使用该回调自定义交互逻辑
|
|
65
54
|
* @supported swan
|
|
66
55
|
*/
|
|
67
56
|
onViewMore?: CommonEventFunction
|
|
57
|
+
/** 评论发布成功时触发,返回数据为 {status, data:{srid}}
|
|
58
|
+
* @supported swan
|
|
59
|
+
*/
|
|
60
|
+
onReply?: CommonEventFunction
|
|
68
61
|
}
|
|
69
62
|
namespace CommentListProps {
|
|
70
63
|
interface ICommentParam {
|
|
@@ -72,15 +65,12 @@ namespace CommentListProps {
|
|
|
72
65
|
* @example "20200101"
|
|
73
66
|
*/
|
|
74
67
|
snid: string
|
|
75
|
-
|
|
76
68
|
/** 文章标题 */
|
|
77
69
|
title: string
|
|
78
|
-
|
|
79
70
|
/** 智能小程序内页链接,最长不能超过 194 字符
|
|
80
71
|
* @example "/pages/index/index"
|
|
81
72
|
*/
|
|
82
73
|
path: string
|
|
83
|
-
|
|
84
74
|
/** 数组第一项用于收藏功能的展示图片
|
|
85
75
|
* @default ['https://b.bdstatic.com/miniapp/images/demo-dog.png']
|
|
86
76
|
*/
|
|
@@ -89,25 +79,20 @@ namespace CommentListProps {
|
|
|
89
79
|
interface IToolbarConfig {
|
|
90
80
|
/** 输入框提示文字 */
|
|
91
81
|
placeholder?: string
|
|
92
|
-
|
|
93
82
|
/** 显示的互动模块,对应默认值分别是:评论数、点赞、收藏、分享
|
|
94
83
|
* @default ['comment', 'like', 'favor', 'share']
|
|
95
84
|
*/
|
|
96
85
|
moduleList?: string
|
|
97
|
-
|
|
98
86
|
/** 若 moduleList 里配置了 share 模块,该参数为必填 */
|
|
99
87
|
share?: IShare
|
|
100
88
|
}
|
|
101
89
|
interface IShare {
|
|
102
90
|
/** 分享标题 */
|
|
103
91
|
title: string
|
|
104
|
-
|
|
105
92
|
/** 分享内容 */
|
|
106
93
|
content?: string
|
|
107
|
-
|
|
108
94
|
/** 分享图标 */
|
|
109
95
|
imageUrl?: string
|
|
110
|
-
|
|
111
96
|
/** 页面 path ,必须是以 / 开头的完整路径,如果 path 中参数包含中文字符,需对中文字符进行编码 */
|
|
112
97
|
path?: string
|
|
113
98
|
}
|
|
@@ -118,7 +103,6 @@ namespace CommentListProps {
|
|
|
118
103
|
color?: string
|
|
119
104
|
}
|
|
120
105
|
}
|
|
121
|
-
|
|
122
106
|
/** 评论列表
|
|
123
107
|
* @classification open
|
|
124
108
|
* @supported swan
|
package/types/ContactButton.d.ts
CHANGED
|
@@ -5,35 +5,29 @@ interface ContactButtonProps extends StandardProps {
|
|
|
5
5
|
* @supported alipay
|
|
6
6
|
*/
|
|
7
7
|
tntInstId: string
|
|
8
|
-
|
|
9
8
|
/** 必填。聊天窗编码,每个聊天窗的唯一编码。
|
|
10
9
|
* @supported alipay
|
|
11
10
|
*/
|
|
12
11
|
scene: string
|
|
13
|
-
|
|
14
12
|
/** 选填。咨询按钮大小,正方形设置边长(如25*25 px)。
|
|
15
13
|
* @supported alipay
|
|
16
14
|
* @default 25
|
|
17
15
|
*/
|
|
18
16
|
size?: number | string
|
|
19
|
-
|
|
20
17
|
/** 选填。咨询按钮颜色,默认白底蓝色。
|
|
21
18
|
* @supported alipay
|
|
22
19
|
* @default "#00A3FF"
|
|
23
20
|
*/
|
|
24
21
|
color?: string
|
|
25
|
-
|
|
26
22
|
/** 选填。咨询按钮头像。
|
|
27
23
|
* @supported alipay
|
|
28
24
|
*/
|
|
29
25
|
icon?: string
|
|
30
|
-
|
|
31
26
|
/** 选填。支付宝访客用户ID(2088开头)。
|
|
32
27
|
* 说明: 客服回答问题时,如客户已离开咨询窗口,则通过推送消息到支付宝 card 中提醒客户。
|
|
33
28
|
* @supported alipay
|
|
34
29
|
*/
|
|
35
30
|
alipayCardNo?: string
|
|
36
|
-
|
|
37
31
|
/** 选填。该属性主要用于传递一些扩展信息给组件,以实现一些高级功能。该属性值的生成方式为:encodeURIComponent({"字段名":"字段值"}), 其中,字段名和字段值要根据实际使用的功能进行替换。
|
|
38
32
|
* 目前通过传入扩展信息可支持的 3 个功能:
|
|
39
33
|
* 1.访客名片。需传 cinfo 和 key 两个扩展字段,代码形如在云客服中进入 设置 > 服务窗配置 > 聊天窗 URL。点击操作栏中的 聊天窗 URL ,获取 tntInstId(企业编码)和 scene(聊天窗编码)。encodeURIComponent({"cinfo":"生成的 cinfo","key":"生成的key"}),cinfo 和 key 的值说明 支付宝小程序接入访客名片;
|
|
@@ -43,7 +37,6 @@ interface ContactButtonProps extends StandardProps {
|
|
|
43
37
|
*/
|
|
44
38
|
extInfo?: string
|
|
45
39
|
}
|
|
46
|
-
|
|
47
40
|
/** 智能客服
|
|
48
41
|
* @classification open
|
|
49
42
|
* @supported alipay
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -5,58 +5,47 @@ interface CoverImageProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp, alipay, swan, qq, jd, h5
|
|
6
6
|
*/
|
|
7
7
|
src: string
|
|
8
|
-
|
|
9
8
|
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
10
9
|
* @supported weapp
|
|
11
10
|
*/
|
|
12
11
|
referrerPolicy?: 'origin' | 'no-referrer'
|
|
13
|
-
|
|
14
12
|
/** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
|
|
15
13
|
* @supported swan
|
|
16
14
|
*/
|
|
17
15
|
fixedTop?: string
|
|
18
|
-
|
|
19
16
|
/** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
|
|
20
17
|
* @supported swan
|
|
21
18
|
*/
|
|
22
19
|
fixedRight?: string
|
|
23
|
-
|
|
24
20
|
/** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
|
|
25
21
|
* @supported swan
|
|
26
22
|
*/
|
|
27
23
|
fixedBottom?: string
|
|
28
|
-
|
|
29
24
|
/** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
|
|
30
25
|
* @supported swan
|
|
31
26
|
*/
|
|
32
27
|
fixedLeft?: string
|
|
33
|
-
|
|
34
28
|
/** 无障碍访问,(角色)标识元素的作用
|
|
35
29
|
* @supported qq
|
|
36
30
|
*/
|
|
37
31
|
ariaRole?: string
|
|
38
|
-
|
|
39
32
|
/** 无障碍访问,(属性)元素的额外描述
|
|
40
33
|
* @supported qq
|
|
41
34
|
*/
|
|
42
35
|
ariaLabel?: string
|
|
43
|
-
|
|
44
36
|
/** 图片加载成功时触发
|
|
45
37
|
* @supported weapp, swan, qq, jd, h5
|
|
46
38
|
*/
|
|
47
39
|
onLoad?: CommonEventFunction
|
|
48
|
-
|
|
49
40
|
/** 图片加载失败时触发
|
|
50
41
|
* @supported weapp, swan, qq, jd, h5
|
|
51
42
|
*/
|
|
52
43
|
onError?: CommonEventFunction
|
|
53
|
-
|
|
54
44
|
/** 点击事件回调。
|
|
55
45
|
* @supported alipay
|
|
56
46
|
*/
|
|
57
47
|
onTap?: CommonEventFunction
|
|
58
48
|
}
|
|
59
|
-
|
|
60
49
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
|
61
50
|
* @classification viewContainer
|
|
62
51
|
* @supported weapp, alipay, swan, qq, jd, h5, harmony
|
package/types/CoverView.d.ts
CHANGED
|
@@ -6,141 +6,115 @@ interface CoverViewProps extends ViewProps {
|
|
|
6
6
|
* @supported weapp, alipay, swan, qq, jd
|
|
7
7
|
*/
|
|
8
8
|
scrollTop?: number
|
|
9
|
-
|
|
10
9
|
/** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
|
|
11
10
|
* @supported swan
|
|
12
11
|
*/
|
|
13
12
|
fixedTop?: string
|
|
14
|
-
|
|
15
13
|
/** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
|
|
16
14
|
* @supported swan
|
|
17
15
|
*/
|
|
18
16
|
fixedRight?: string
|
|
19
|
-
|
|
20
17
|
/** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
|
|
21
18
|
* @supported swan
|
|
22
19
|
*/
|
|
23
20
|
fixedBottom?: string
|
|
24
|
-
|
|
25
21
|
/** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
|
|
26
22
|
* @supported swan
|
|
27
23
|
*/
|
|
28
24
|
fixedLeft?: string
|
|
29
|
-
|
|
30
25
|
/** 无障碍访问,(角色)标识元素的作用
|
|
31
26
|
* @supported qq
|
|
32
27
|
*/
|
|
33
28
|
ariaRole?: string
|
|
34
|
-
|
|
35
29
|
/** 无障碍访问,(属性)元素的额外描述
|
|
36
30
|
* @supported qq
|
|
37
31
|
*/
|
|
38
32
|
ariaLabel?: string
|
|
39
|
-
|
|
40
33
|
/** 允许横向滚动。
|
|
41
34
|
* @supported alipay
|
|
42
35
|
* @default false
|
|
43
36
|
*/
|
|
44
37
|
scrollX?: boolean
|
|
45
|
-
|
|
46
38
|
/** 允许纵向滚动。
|
|
47
39
|
* @supported alipay
|
|
48
40
|
* @default false
|
|
49
41
|
*/
|
|
50
42
|
scrollY?: boolean
|
|
51
|
-
|
|
52
43
|
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件。
|
|
53
44
|
* @supported alipay
|
|
54
45
|
* @default 50
|
|
55
46
|
*/
|
|
56
47
|
upperThreshold?: number
|
|
57
|
-
|
|
58
48
|
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件。
|
|
59
49
|
* @supported alipay
|
|
60
50
|
* @default 50
|
|
61
51
|
*/
|
|
62
52
|
lowerThreshold?: number
|
|
63
|
-
|
|
64
53
|
/** 设置横向滚动条位置。
|
|
65
54
|
* @supported alipay
|
|
66
55
|
*/
|
|
67
56
|
scrollLeft?: number
|
|
68
|
-
|
|
69
57
|
/** 滚动到子元素,值应为某子元素的 id。当滚动到该元素时,元素顶部对齐滚动区域顶部。
|
|
70
58
|
* 说明:scroll-into-view 的优先级高于 scroll-top。
|
|
71
59
|
* @supported alipay
|
|
72
60
|
*/
|
|
73
61
|
scrollIntoView?: string
|
|
74
|
-
|
|
75
62
|
/** 在设置滚动条位置时使用动画过渡。
|
|
76
63
|
* @supported alipay
|
|
77
64
|
* @default false
|
|
78
65
|
*/
|
|
79
66
|
scrollWithAnimation?: boolean
|
|
80
|
-
|
|
81
67
|
/** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
|
|
82
68
|
* @supported alipay
|
|
83
69
|
*/
|
|
84
70
|
scrollAnimationDuration?: number
|
|
85
|
-
|
|
86
71
|
/** 当点击 iOS 顶部状态栏或者双击 Android 标题栏时,滚动条返回顶部,只支持竖向。
|
|
87
72
|
* @supported alipay
|
|
88
73
|
* @default false
|
|
89
74
|
*/
|
|
90
75
|
enableBackToTop?: boolean
|
|
91
|
-
|
|
92
76
|
/** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
|
|
93
77
|
* @supported alipay
|
|
94
78
|
* @default false
|
|
95
79
|
*/
|
|
96
80
|
trapScroll?: boolean
|
|
97
|
-
|
|
98
81
|
/** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
|
|
99
82
|
* @supported alipay
|
|
100
83
|
*/
|
|
101
84
|
disableLowerScroll?: string
|
|
102
|
-
|
|
103
85
|
/** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
|
|
104
86
|
* @supported alipay
|
|
105
87
|
*/
|
|
106
88
|
disableUpperScroll?: string
|
|
107
|
-
|
|
108
89
|
/** 滚动到顶部/左边,会触发 scrolltoupper 事件。
|
|
109
90
|
* @supported alipay
|
|
110
91
|
*/
|
|
111
92
|
onScrollToUpper?: CommonEventFunction
|
|
112
|
-
|
|
113
93
|
/** 滚动到底部/右边,会触发 scrolltolower事件。
|
|
114
94
|
* @supported alipay
|
|
115
95
|
*/
|
|
116
96
|
onScrollToLower?: CommonEventFunction
|
|
117
|
-
|
|
118
97
|
/** 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth}。
|
|
119
98
|
* @supported alipay
|
|
120
99
|
*/
|
|
121
100
|
onScroll?: CommonEventFunction
|
|
122
|
-
|
|
123
101
|
/** 触摸动作开始。
|
|
124
102
|
* @supported alipay
|
|
125
103
|
*/
|
|
126
104
|
onTouchStart?: CommonEventFunction
|
|
127
|
-
|
|
128
105
|
/** 触摸后移动。
|
|
129
106
|
* @supported alipay
|
|
130
107
|
*/
|
|
131
108
|
onTouchMove?: CommonEventFunction
|
|
132
|
-
|
|
133
109
|
/** 触摸动作结束。
|
|
134
110
|
* @supported alipay
|
|
135
111
|
*/
|
|
136
112
|
onTouchEnd?: CommonEventFunction
|
|
137
|
-
|
|
138
113
|
/** 触摸动作被打断,如来电提醒、弹窗。
|
|
139
114
|
* @supported alipay
|
|
140
115
|
*/
|
|
141
116
|
onTouchCancel?: CommonEventFunction
|
|
142
117
|
}
|
|
143
|
-
|
|
144
118
|
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
|
|
145
119
|
* @classification viewContainer
|
|
146
120
|
* @supported weapp, alipay, swan, qq, jd, h5
|