@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/Camera.d.ts
CHANGED
|
@@ -6,58 +6,48 @@ interface CameraProps extends StandardProps {
|
|
|
6
6
|
* @supported weapp, alipay, tt, qq, jd, rn
|
|
7
7
|
*/
|
|
8
8
|
mode?: keyof CameraProps.Mode
|
|
9
|
-
|
|
10
9
|
/** 分辨率,不支持动态修改
|
|
11
10
|
* @default "medium"
|
|
12
11
|
* @supported weapp, tt
|
|
13
12
|
*/
|
|
14
13
|
resolution?: keyof CameraProps.Resolution
|
|
15
|
-
|
|
16
14
|
/** 摄像头朝向
|
|
17
15
|
* @default "back"
|
|
18
16
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
19
17
|
*/
|
|
20
18
|
devicePosition?: keyof CameraProps.DevicePosition
|
|
21
|
-
|
|
22
19
|
/** 闪光灯
|
|
23
20
|
* @default "auto"
|
|
24
21
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
25
22
|
*/
|
|
26
23
|
flash?: keyof CameraProps.Flash
|
|
27
|
-
|
|
28
24
|
/** 指定期望的相机帧数据尺寸
|
|
29
25
|
* @default "medium"
|
|
30
26
|
* @supported weapp, alipay, tt
|
|
31
27
|
*/
|
|
32
28
|
frameSize?: keyof CameraProps.FrameSize
|
|
33
|
-
|
|
34
29
|
/** 相机拍照,录制的分辨率。
|
|
35
30
|
* @supported alipay
|
|
36
31
|
* @default "720P"
|
|
37
32
|
*/
|
|
38
33
|
outputDimension?: '360P' | '540P' | '720P' | '1080P' | 'max'
|
|
39
|
-
|
|
40
34
|
/** 摄像头在非正常终止时触发,
|
|
41
35
|
* 如退出后台等情况
|
|
42
36
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
43
37
|
*/
|
|
44
38
|
onStop?: CommonEventFunction
|
|
45
|
-
|
|
46
39
|
/** 用户不允许使用摄像头时触发
|
|
47
40
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
48
41
|
*/
|
|
49
42
|
onError?: CommonEventFunction
|
|
50
|
-
|
|
51
43
|
/** 相机初始化完成时触发
|
|
52
44
|
* @supported weapp, tt, rn
|
|
53
45
|
*/
|
|
54
46
|
onInitDone?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
|
|
55
|
-
|
|
56
47
|
/** 相机初始化成功时触发。
|
|
57
48
|
* @supported alipay
|
|
58
49
|
*/
|
|
59
50
|
onReady?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
|
|
60
|
-
|
|
61
51
|
/** 在成功识别到一维码时触发,
|
|
62
52
|
* 仅在 mode="scanCode" 时生效
|
|
63
53
|
* @supported weapp, alipay, tt, qq, rn
|
|
@@ -69,55 +59,42 @@ declare namespace CameraProps {
|
|
|
69
59
|
interface Mode {
|
|
70
60
|
/** 相机模式 */
|
|
71
61
|
normal
|
|
72
|
-
|
|
73
62
|
/** 扫码模式 */
|
|
74
63
|
scanCode
|
|
75
64
|
}
|
|
76
|
-
|
|
77
65
|
/** resolution 的合法值 */
|
|
78
66
|
interface Resolution {
|
|
79
67
|
/** 低 */
|
|
80
68
|
low
|
|
81
|
-
|
|
82
69
|
/** 中 */
|
|
83
70
|
medium
|
|
84
|
-
|
|
85
71
|
/** 高 */
|
|
86
72
|
high
|
|
87
73
|
}
|
|
88
|
-
|
|
89
74
|
/** device-position 的合法值 */
|
|
90
75
|
interface DevicePosition {
|
|
91
76
|
/** 前置 */
|
|
92
77
|
front
|
|
93
|
-
|
|
94
78
|
/** 后置 */
|
|
95
79
|
back
|
|
96
80
|
}
|
|
97
|
-
|
|
98
81
|
/** flash 的合法值 */
|
|
99
82
|
interface Flash {
|
|
100
83
|
/** 自动 */
|
|
101
84
|
auto
|
|
102
|
-
|
|
103
85
|
/** 打开 */
|
|
104
86
|
on
|
|
105
|
-
|
|
106
87
|
/** 关闭 */
|
|
107
88
|
off
|
|
108
|
-
|
|
109
89
|
/** 常亮 */
|
|
110
90
|
torch
|
|
111
91
|
}
|
|
112
|
-
|
|
113
92
|
/** frame-size 的合法值 */
|
|
114
93
|
interface FrameSize {
|
|
115
94
|
/** 小尺寸帧数据 */
|
|
116
95
|
small
|
|
117
|
-
|
|
118
96
|
/** 中尺寸帧数据 */
|
|
119
97
|
medium
|
|
120
|
-
|
|
121
98
|
/** 大尺寸帧数据 */
|
|
122
99
|
large
|
|
123
100
|
}
|
|
@@ -128,25 +105,20 @@ declare namespace CameraProps {
|
|
|
128
105
|
interface onScanCodeEventDetail {
|
|
129
106
|
/** 字符集 */
|
|
130
107
|
charSet: string
|
|
131
|
-
|
|
132
108
|
/** 原始数据
|
|
133
109
|
* @supported weapp
|
|
134
110
|
*/
|
|
135
111
|
rawData: string
|
|
136
|
-
|
|
137
112
|
/** 码类型 */
|
|
138
113
|
type: string
|
|
139
|
-
|
|
140
114
|
/** 识别结果 */
|
|
141
115
|
result: string
|
|
142
|
-
|
|
143
116
|
/** 识别结果(完整)
|
|
144
117
|
* @supported alipay
|
|
145
118
|
*/
|
|
146
119
|
fullResult: string
|
|
147
120
|
}
|
|
148
121
|
}
|
|
149
|
-
|
|
150
122
|
/** 系统相机
|
|
151
123
|
* @classification media
|
|
152
124
|
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
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
|