@tarojs/components 3.5.0-beta.0 → 3.5.0-beta.3
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-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +8 -3
- package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +19 -13
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/swiper/swiper.js +8 -3
- package/dist/collection/components/tabbar/tabbar.js +1 -1
- package/dist/collection/components/video/style/index.css +0 -1
- package/dist/collection/components/video/utils.js +6 -7
- package/dist/collection/components/video/video-control.js +3 -3
- package/dist/collection/components/video/video.js +10 -3
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +8 -3
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +19 -13
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +2 -2
- package/dist/taro-components/{p-64f6f87c.system.entry.js → p-12615394.system.entry.js} +2 -2
- package/dist/taro-components/p-1b11a8d4.system.entry.js +1 -0
- package/dist/taro-components/p-1d5fa0f3.entry.js +1 -0
- package/dist/taro-components/{p-bb3d337d.entry.js → p-9eb01395.entry.js} +2 -2
- package/dist/taro-components/p-a2fd3c03.system.js +1 -1
- package/dist/taro-components/{p-49df1b65.system.entry.js → p-c59f3780.system.entry.js} +1 -1
- package/dist/taro-components/{p-7419e765.entry.js → p-f980e090.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/video/utils.d.ts +1 -3
- package/dist/types/components/video/video-control.d.ts +1 -1
- package/dist-h5/react/utils/reactify-wc.js +5 -2
- package/package.json +7 -3
- package/types/Ad.d.ts +6 -6
- package/types/Button.d.ts +12 -12
- package/types/Camera.d.ts +10 -10
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +4 -4
- package/types/CheckboxGroup.d.ts +3 -3
- package/types/Form.d.ts +2 -2
- package/types/Input.d.ts +19 -19
- package/types/LivePlayer.d.ts +8 -8
- package/types/Map.d.ts +28 -28
- package/types/MovableArea.d.ts +1 -1
- package/types/MovableView.d.ts +18 -18
- package/types/OpenData.d.ts +6 -6
- package/types/PageContainer.d.ts +14 -14
- package/types/Radio.d.ts +5 -5
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +6 -1
- package/types/ScrollView.d.ts +3 -3
- package/types/Swiper.d.ts +5 -5
- package/types/Switch.d.ts +2 -2
- package/types/Textarea.d.ts +21 -21
- package/types/Video.d.ts +13 -13
- package/types/WebView.d.ts +5 -5
- package/dist/taro-components/p-97af3986.system.entry.js +0 -1
- package/dist/taro-components/p-fc28dbdd.entry.js +0 -1
package/types/Map.d.ts
CHANGED
|
@@ -3,35 +3,35 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface MapProps extends StandardProps {
|
|
5
5
|
/** 中心经度
|
|
6
|
-
* @supported weapp, swan, alipay
|
|
6
|
+
* @supported weapp, swan, alipay, tt
|
|
7
7
|
*/
|
|
8
8
|
longitude: number
|
|
9
9
|
|
|
10
10
|
/** 中心纬度
|
|
11
|
-
* @supported weapp, swan, alipay
|
|
11
|
+
* @supported weapp, swan, alipay, tt
|
|
12
12
|
*/
|
|
13
13
|
latitude: number
|
|
14
14
|
|
|
15
15
|
/** 缩放级别,取值范围为3-20
|
|
16
16
|
* @default 16
|
|
17
|
-
* @supported weapp, swan, alipay
|
|
17
|
+
* @supported weapp, swan, alipay, tt
|
|
18
18
|
* @swan 取值范围为4-21
|
|
19
19
|
* @alipay 取值范围为5-18
|
|
20
20
|
*/
|
|
21
21
|
scale?: number
|
|
22
22
|
/** 最小缩放级别3-20
|
|
23
23
|
* @default 3
|
|
24
|
-
* @supported weapp
|
|
24
|
+
* @supported weapp, tt
|
|
25
25
|
*/
|
|
26
26
|
minScale?: number
|
|
27
27
|
/** 最大缩放级别3-20
|
|
28
28
|
* @default 20
|
|
29
|
-
* @supported weapp
|
|
29
|
+
* @supported weapp, tt
|
|
30
30
|
*/
|
|
31
31
|
maxScale?: number
|
|
32
32
|
|
|
33
33
|
/** 标记点
|
|
34
|
-
* @supported weapp, swan, alipay
|
|
34
|
+
* @supported weapp, swan, alipay, tt
|
|
35
35
|
*/
|
|
36
36
|
markers?: MapProps.marker[]
|
|
37
37
|
|
|
@@ -42,12 +42,12 @@ interface MapProps extends StandardProps {
|
|
|
42
42
|
covers?: any[]
|
|
43
43
|
|
|
44
44
|
/** 路线
|
|
45
|
-
* @supported weapp, swan, alipay
|
|
45
|
+
* @supported weapp, swan, alipay, tt
|
|
46
46
|
*/
|
|
47
47
|
polyline?: MapProps.polyline[]
|
|
48
48
|
|
|
49
49
|
/** 圆
|
|
50
|
-
* @supported weapp, swan, alipay
|
|
50
|
+
* @supported weapp, swan, alipay, tt
|
|
51
51
|
*/
|
|
52
52
|
circles?: MapProps.circle[]
|
|
53
53
|
|
|
@@ -58,18 +58,18 @@ interface MapProps extends StandardProps {
|
|
|
58
58
|
controls?: MapProps.control[]
|
|
59
59
|
|
|
60
60
|
/** 缩放视野以包含所有给定的坐标点
|
|
61
|
-
* @supported weapp, swan, alipay
|
|
61
|
+
* @supported weapp, swan, alipay, tt
|
|
62
62
|
*/
|
|
63
63
|
includePoints?: MapProps.point[]
|
|
64
64
|
|
|
65
65
|
/** 显示带有方向的当前定位点
|
|
66
66
|
* @default false
|
|
67
|
-
* @supported weapp, swan, alipay
|
|
67
|
+
* @supported weapp, swan, alipay, tt
|
|
68
68
|
*/
|
|
69
69
|
showLocation?: boolean
|
|
70
70
|
|
|
71
71
|
/** 多边形
|
|
72
|
-
* @supported weapp, swan, alipay
|
|
72
|
+
* @supported weapp, swan, alipay, tt
|
|
73
73
|
*/
|
|
74
74
|
polygons?: MapProps.polygon[]
|
|
75
75
|
|
|
@@ -86,67 +86,67 @@ interface MapProps extends StandardProps {
|
|
|
86
86
|
|
|
87
87
|
/** 旋转角度,范围 0 ~ 360, 地图正北和设备 y 轴角度的夹角
|
|
88
88
|
* @default 0
|
|
89
|
-
* @supported weapp
|
|
89
|
+
* @supported weapp, tt
|
|
90
90
|
*/
|
|
91
91
|
rotate?: number
|
|
92
92
|
|
|
93
93
|
/** 倾斜角度,范围 0 ~ 40 , 关于 z 轴的倾角
|
|
94
94
|
* @default 0
|
|
95
|
-
* @supported weapp
|
|
95
|
+
* @supported weapp, tt
|
|
96
96
|
*/
|
|
97
97
|
skew?: number
|
|
98
98
|
|
|
99
99
|
/** 展示 3D 楼块
|
|
100
100
|
* @default false
|
|
101
|
-
* @supported weapp, swan
|
|
101
|
+
* @supported weapp, swan, tt
|
|
102
102
|
*/
|
|
103
103
|
enable3D?: boolean
|
|
104
104
|
|
|
105
105
|
/** 显示指南针
|
|
106
106
|
* @default false
|
|
107
|
-
* @supported weapp, swan
|
|
107
|
+
* @supported weapp, swan, tt
|
|
108
108
|
*/
|
|
109
109
|
showCompass?: boolean
|
|
110
110
|
|
|
111
111
|
/** 显示比例尺
|
|
112
112
|
* @default false
|
|
113
|
-
* @supported weapp
|
|
113
|
+
* @supported weapp, tt
|
|
114
114
|
*/
|
|
115
115
|
showScale?: boolean
|
|
116
116
|
|
|
117
117
|
/** 开启俯视
|
|
118
118
|
* @default false
|
|
119
|
-
* @supported weapp, swan
|
|
119
|
+
* @supported weapp, swan, tt
|
|
120
120
|
*/
|
|
121
121
|
enableOverlooking?: boolean
|
|
122
122
|
|
|
123
123
|
/** 是否支持缩放
|
|
124
124
|
* @default true
|
|
125
|
-
* @supported weapp, swan
|
|
125
|
+
* @supported weapp, swan, tt
|
|
126
126
|
*/
|
|
127
127
|
enableZoom?: boolean
|
|
128
128
|
|
|
129
129
|
/** 是否支持拖动
|
|
130
130
|
* @default true
|
|
131
|
-
* @supported weapp, swan
|
|
131
|
+
* @supported weapp, swan, tt
|
|
132
132
|
*/
|
|
133
133
|
enableScroll?: boolean
|
|
134
134
|
|
|
135
135
|
/** 是否支持旋转
|
|
136
136
|
* @default false
|
|
137
|
-
* @supported weapp, swan
|
|
137
|
+
* @supported weapp, swan, tt
|
|
138
138
|
*/
|
|
139
139
|
enableRotate?: boolean
|
|
140
140
|
|
|
141
141
|
/** 是否开启卫星图
|
|
142
142
|
* @default false
|
|
143
|
-
* @supported weapp
|
|
143
|
+
* @supported weapp, tt
|
|
144
144
|
*/
|
|
145
145
|
enableSatellite?: boolean
|
|
146
146
|
|
|
147
147
|
/** 是否开启实时路况
|
|
148
148
|
* @default false
|
|
149
|
-
* @supported weapp
|
|
149
|
+
* @supported weapp, tt
|
|
150
150
|
*/
|
|
151
151
|
enableTraffic?: boolean
|
|
152
152
|
|
|
@@ -158,17 +158,17 @@ interface MapProps extends StandardProps {
|
|
|
158
158
|
setting?: MapProps | { [key: string]: number | string | any }
|
|
159
159
|
|
|
160
160
|
/** 点击地图时触发
|
|
161
|
-
* @supported weapp, swan, alipay
|
|
161
|
+
* @supported weapp, swan, alipay, tt
|
|
162
162
|
*/
|
|
163
163
|
onTap?: CommonEventFunction
|
|
164
164
|
|
|
165
165
|
/** 点击标记点时触发,e.detail = {markerId}
|
|
166
|
-
* @supported weapp, swan, alipay
|
|
166
|
+
* @supported weapp, swan, alipay, tt
|
|
167
167
|
*/
|
|
168
168
|
onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
|
|
169
169
|
|
|
170
170
|
/** 点击label时触发,e.detail = {markerId}
|
|
171
|
-
* @supported weapp
|
|
171
|
+
* @supported weapp, tt
|
|
172
172
|
*/
|
|
173
173
|
onLabelTap?: CommonEventFunction<MapProps.onLabelTapEventDetail>
|
|
174
174
|
|
|
@@ -178,17 +178,17 @@ interface MapProps extends StandardProps {
|
|
|
178
178
|
onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
|
|
179
179
|
|
|
180
180
|
/** 点击标记点对应的气泡时触发,e.detail = {markerId}
|
|
181
|
-
* @supported weapp, swan, alipay
|
|
181
|
+
* @supported weapp, swan, alipay, tt
|
|
182
182
|
*/
|
|
183
183
|
onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
|
|
184
184
|
|
|
185
185
|
/** 在地图渲染更新完成时触发
|
|
186
|
-
* @supported weapp, swan
|
|
186
|
+
* @supported weapp, swan, tt
|
|
187
187
|
*/
|
|
188
188
|
onUpdated?: CommonEventFunction
|
|
189
189
|
|
|
190
190
|
/** 视野发生变化时触发
|
|
191
|
-
* @supported weapp, swan, alipay
|
|
191
|
+
* @supported weapp, swan, alipay, tt
|
|
192
192
|
*/
|
|
193
193
|
onRegionChange?: CommonEventFunction<MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>>
|
|
194
194
|
|
package/types/MovableArea.d.ts
CHANGED
package/types/MovableView.d.ts
CHANGED
|
@@ -4,97 +4,97 @@ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common
|
|
|
4
4
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
5
5
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
6
6
|
* @default none
|
|
7
|
-
* @supported weapp, rn
|
|
7
|
+
* @supported weapp, rn, tt
|
|
8
8
|
*/
|
|
9
9
|
direction?: 'all' | 'vertical' | 'horizontal' | 'none'
|
|
10
10
|
|
|
11
11
|
/** movable-view 是否带有惯性
|
|
12
12
|
* @default false
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, tt
|
|
14
14
|
*/
|
|
15
15
|
inertia?: boolean
|
|
16
16
|
|
|
17
17
|
/** 超过可移动区域后,movable-view 是否还可以移动
|
|
18
18
|
* @default false
|
|
19
|
-
* @supported weapp
|
|
19
|
+
* @supported weapp, tt
|
|
20
20
|
*/
|
|
21
21
|
outOfBounds?: boolean
|
|
22
22
|
|
|
23
23
|
/** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
|
|
24
|
-
* @supported weapp, rn
|
|
24
|
+
* @supported weapp, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
x?: number | string
|
|
27
27
|
|
|
28
28
|
/** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
|
|
29
|
-
* @supported weapp, rn
|
|
29
|
+
* @supported weapp, rn, tt
|
|
30
30
|
*/
|
|
31
31
|
y?: number | string
|
|
32
32
|
|
|
33
33
|
/** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
34
34
|
* @default 20
|
|
35
|
-
* @supported weapp
|
|
35
|
+
* @supported weapp, tt
|
|
36
36
|
*/
|
|
37
37
|
damping?: number
|
|
38
38
|
|
|
39
39
|
/** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
|
|
40
40
|
* @default 2
|
|
41
|
-
* @supported weapp
|
|
41
|
+
* @supported weapp, tt
|
|
42
42
|
*/
|
|
43
43
|
friction?: number
|
|
44
44
|
|
|
45
45
|
/** 是否禁用
|
|
46
46
|
* @default false
|
|
47
|
-
* @supported weapp, rn
|
|
47
|
+
* @supported weapp, rn, tt
|
|
48
48
|
*/
|
|
49
49
|
disabled?: boolean
|
|
50
50
|
|
|
51
51
|
/** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
|
|
52
52
|
* @default false
|
|
53
|
-
* @supported weapp
|
|
53
|
+
* @supported weapp, tt
|
|
54
54
|
*/
|
|
55
55
|
scale?: boolean
|
|
56
56
|
|
|
57
57
|
/** 定义缩放倍数最小值
|
|
58
58
|
* @default 0.5
|
|
59
|
-
* @supported weapp
|
|
59
|
+
* @supported weapp, tt
|
|
60
60
|
*/
|
|
61
61
|
scaleMin?: number
|
|
62
62
|
|
|
63
63
|
/** 定义缩放倍数最大值
|
|
64
64
|
* @default 10
|
|
65
|
-
* @supported weapp
|
|
65
|
+
* @supported weapp, tt
|
|
66
66
|
*/
|
|
67
67
|
scaleMax?: number
|
|
68
68
|
|
|
69
69
|
/** 定义缩放倍数,取值范围为 0.5 - 10
|
|
70
70
|
* @default 1
|
|
71
|
-
* @supported weapp
|
|
71
|
+
* @supported weapp, tt
|
|
72
72
|
*/
|
|
73
73
|
scaleValue?: number
|
|
74
74
|
|
|
75
75
|
/** 是否使用动画
|
|
76
76
|
* @default true
|
|
77
|
-
* @supported weapp
|
|
77
|
+
* @supported weapp, tt
|
|
78
78
|
*/
|
|
79
79
|
animation?: boolean
|
|
80
80
|
|
|
81
81
|
/** 拖动过程中触发的事件
|
|
82
|
-
* @supported weapp
|
|
82
|
+
* @supported weapp, tt
|
|
83
83
|
*/
|
|
84
84
|
onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
|
|
85
85
|
|
|
86
86
|
/** 缩放过程中触发的事件
|
|
87
|
-
* @supported weapp
|
|
87
|
+
* @supported weapp, tt
|
|
88
88
|
*/
|
|
89
89
|
onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
|
|
90
90
|
|
|
91
91
|
/** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
92
|
-
* @supported weapp
|
|
92
|
+
* @supported weapp, tt
|
|
93
93
|
*/
|
|
94
94
|
onHTouchMove?: TouchEventFunction
|
|
95
95
|
|
|
96
96
|
/** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
97
|
-
* @supported weapp
|
|
97
|
+
* @supported weapp, tt
|
|
98
98
|
*/
|
|
99
99
|
onVTouchMove?: TouchEventFunction
|
|
100
100
|
/** 开始拖动时触发
|
|
@@ -143,7 +143,7 @@ declare namespace MovableViewProps {
|
|
|
143
143
|
|
|
144
144
|
/** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
|
|
145
145
|
* @classification viewContainer
|
|
146
|
-
* @supported weapp, swan, alipay, rn
|
|
146
|
+
* @supported weapp, swan, alipay, rn, tt
|
|
147
147
|
* @example_react
|
|
148
148
|
* ```tsx
|
|
149
149
|
* class App extends Components {
|
package/types/OpenData.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface OpenDataProps extends StandardProps {
|
|
5
5
|
/** 开放数据类型
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, tt
|
|
7
7
|
*/
|
|
8
8
|
type: keyof OpenDataProps.Type
|
|
9
9
|
/** 当 type="groupName" 时生效, 群id
|
|
@@ -17,17 +17,17 @@ interface OpenDataProps extends StandardProps {
|
|
|
17
17
|
lang?: keyof OpenDataProps.Lang
|
|
18
18
|
|
|
19
19
|
/** 数据为空时的默认文案
|
|
20
|
-
* @supported weapp
|
|
20
|
+
* @supported weapp, tt
|
|
21
21
|
*/
|
|
22
22
|
defaultText?: string
|
|
23
23
|
|
|
24
24
|
/** 用户头像为空时的默认图片,支持相对路径和网络图片路径
|
|
25
|
-
* @supported weapp
|
|
25
|
+
* @supported weapp, tt
|
|
26
26
|
*/
|
|
27
27
|
defaultAvatar?: string
|
|
28
28
|
|
|
29
29
|
/** 群名称或用户信息为空时触发
|
|
30
|
-
* @supported weapp
|
|
30
|
+
* @supported weapp, tt
|
|
31
31
|
*/
|
|
32
32
|
onError?: CommonEventFunction
|
|
33
33
|
}
|
|
@@ -63,9 +63,9 @@ declare namespace OpenDataProps {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/**
|
|
66
|
+
/** 用于展示平台开放的数据
|
|
67
67
|
* @classification open
|
|
68
|
-
* @supported weapp
|
|
68
|
+
* @supported weapp, tt
|
|
69
69
|
* @example_react
|
|
70
70
|
* ```tsx
|
|
71
71
|
* class App extends Component {
|
package/types/PageContainer.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import { StandardProps, CommonEventFunction, BaseEventOrigFunction } from './com
|
|
|
4
4
|
interface PageContainerProps extends StandardProps {
|
|
5
5
|
/** 是否显示容器组件
|
|
6
6
|
* @default false
|
|
7
|
-
* @supported weapp
|
|
7
|
+
* @supported weapp, rn
|
|
8
8
|
*/
|
|
9
9
|
show?: boolean
|
|
10
10
|
|
|
11
11
|
/** 动画时长,单位毫秒
|
|
12
12
|
* @default 300
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, rn
|
|
14
14
|
*/
|
|
15
15
|
duration?: number
|
|
16
16
|
|
|
@@ -22,19 +22,19 @@ interface PageContainerProps extends StandardProps {
|
|
|
22
22
|
|
|
23
23
|
/** 是否显示遮罩层
|
|
24
24
|
* @default true
|
|
25
|
-
* @supported weapp
|
|
25
|
+
* @supported weapp, rn
|
|
26
26
|
*/
|
|
27
27
|
overlay?: boolean
|
|
28
28
|
|
|
29
29
|
/** 弹出位置,可选值为 top bottom right center
|
|
30
30
|
* @default bottom
|
|
31
|
-
* @supported weapp
|
|
31
|
+
* @supported weapp, rn
|
|
32
32
|
*/
|
|
33
33
|
position?: keyof PageContainerProps.Position
|
|
34
34
|
|
|
35
35
|
/** 是否显示圆角
|
|
36
36
|
* @default false
|
|
37
|
-
* @supported weapp
|
|
37
|
+
* @supported weapp, rn
|
|
38
38
|
*/
|
|
39
39
|
round?: boolean
|
|
40
40
|
|
|
@@ -45,42 +45,42 @@ interface PageContainerProps extends StandardProps {
|
|
|
45
45
|
closeOnSlideDown?: boolean
|
|
46
46
|
|
|
47
47
|
/** 自定义遮罩层样式
|
|
48
|
-
* @supported weapp
|
|
48
|
+
* @supported weapp, rn
|
|
49
49
|
*/
|
|
50
50
|
overlayStyle?: string
|
|
51
51
|
|
|
52
52
|
/** 自定义弹出层样式
|
|
53
|
-
* @supported weapp
|
|
53
|
+
* @supported weapp, rn
|
|
54
54
|
*/
|
|
55
55
|
customStyle?: string
|
|
56
56
|
|
|
57
57
|
/** 进入前触发
|
|
58
|
-
* @supported weapp
|
|
58
|
+
* @supported weapp, rn
|
|
59
59
|
*/
|
|
60
60
|
onBeforeEnter?: CommonEventFunction
|
|
61
61
|
|
|
62
62
|
/** 进入中触发
|
|
63
|
-
* @supported weapp
|
|
63
|
+
* @supported weapp, rn
|
|
64
64
|
*/
|
|
65
65
|
onEnter?: CommonEventFunction
|
|
66
66
|
|
|
67
67
|
/** 进入后触发
|
|
68
|
-
* @supported weapp
|
|
68
|
+
* @supported weapp, rn
|
|
69
69
|
*/
|
|
70
70
|
onAfterEnter?: CommonEventFunction
|
|
71
71
|
|
|
72
72
|
/** 离开前触发
|
|
73
|
-
* @supported weapp
|
|
73
|
+
* @supported weapp, rn
|
|
74
74
|
*/
|
|
75
75
|
onBeforeLeave?: CommonEventFunction
|
|
76
76
|
|
|
77
77
|
/** 离开中触发
|
|
78
|
-
* @supported weapp
|
|
78
|
+
* @supported weapp, rn
|
|
79
79
|
*/
|
|
80
80
|
onLeave?: CommonEventFunction
|
|
81
81
|
|
|
82
82
|
/** 离开后触发
|
|
83
|
-
* @supported weapp
|
|
83
|
+
* @supported weapp, rn
|
|
84
84
|
*/
|
|
85
85
|
onAfterLeave?: CommonEventFunction
|
|
86
86
|
|
|
@@ -113,7 +113,7 @@ declare namespace PageContainerProps {
|
|
|
113
113
|
* 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
|
|
114
114
|
* 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面
|
|
115
115
|
* @classification viewContainer
|
|
116
|
-
* @supported weapp
|
|
116
|
+
* @supported weapp, rn
|
|
117
117
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
|
|
118
118
|
*/
|
|
119
119
|
declare const PageContainer: ComponentType<PageContainerProps>
|
package/types/Radio.d.ts
CHANGED
|
@@ -3,25 +3,25 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface RadioProps extends StandardProps {
|
|
5
5
|
/** `<Radio/>` 标识。当该`<Radio/>` 选中时,`<RadioGroup/>`的 change 事件会携带`<Radio/>`的 value
|
|
6
|
-
* @supported weapp, rn
|
|
6
|
+
* @supported weapp, rn, tt
|
|
7
7
|
*/
|
|
8
8
|
value?: string
|
|
9
9
|
|
|
10
10
|
/** 当前是否选中
|
|
11
11
|
* @default false
|
|
12
|
-
* @supported weapp, h5, rn
|
|
12
|
+
* @supported weapp, h5, rn, tt
|
|
13
13
|
*/
|
|
14
14
|
checked?: boolean
|
|
15
15
|
|
|
16
16
|
/** 是否禁用
|
|
17
17
|
* @default false
|
|
18
|
-
* @supported weapp, h5, rn
|
|
18
|
+
* @supported weapp, h5, rn, tt
|
|
19
19
|
*/
|
|
20
20
|
disabled?: boolean
|
|
21
21
|
|
|
22
22
|
/** Radio 的颜色,同 css 的 color
|
|
23
23
|
* @default "#09BB07"
|
|
24
|
-
* @supported weapp, rn
|
|
24
|
+
* @supported weapp, rn, tt
|
|
25
25
|
*/
|
|
26
26
|
color?: string
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@ interface RadioProps extends StandardProps {
|
|
|
33
33
|
|
|
34
34
|
/** 单选项目
|
|
35
35
|
* @classification forms
|
|
36
|
-
* @supported weapp, h5, rn
|
|
36
|
+
* @supported weapp, h5, rn, tt
|
|
37
37
|
* @example_react
|
|
38
38
|
* ```tsx
|
|
39
39
|
* export default class PageRadio extends Component {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
|
|
4
4
|
interface RadioGroupProps extends StandardProps, FormItemProps {
|
|
5
5
|
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
6
|
-
* @supported weapp, h5
|
|
6
|
+
* @supported weapp, h5, tt
|
|
7
7
|
*/
|
|
8
8
|
onChange?: CommonEventFunction
|
|
9
9
|
}
|
|
@@ -16,7 +16,7 @@ declare namespace RadioGroupProps {
|
|
|
16
16
|
|
|
17
17
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
18
18
|
* @classification forms
|
|
19
|
-
* @supported weapp, h5, rn
|
|
19
|
+
* @supported weapp, h5, rn, tt
|
|
20
20
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
21
21
|
*/
|
|
22
22
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -2,10 +2,15 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
|
|
4
4
|
interface RichTextProps extends StandardProps {
|
|
5
|
+
/** 文本是否可选,该属性会使节点显示为 block
|
|
6
|
+
* @default false
|
|
7
|
+
* @supported weapp
|
|
8
|
+
*/
|
|
9
|
+
userSelect?: boolean
|
|
5
10
|
/** 节点列表/ HTML String */
|
|
6
11
|
nodes?: Nodes
|
|
7
12
|
/** 显示连续空格
|
|
8
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, rn
|
|
9
14
|
*/
|
|
10
15
|
space?: keyof RichTextProps.TSpace
|
|
11
16
|
}
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -225,15 +225,15 @@ declare namespace ScrollViewProps {
|
|
|
225
225
|
* const Threshold = 20
|
|
226
226
|
* const vStyleA = {
|
|
227
227
|
* height: '150px',
|
|
228
|
-
* '
|
|
228
|
+
* 'backgroundColor': 'rgb(26, 173, 25)'
|
|
229
229
|
* }
|
|
230
230
|
* const vStyleB = {
|
|
231
231
|
* height: '150px',
|
|
232
|
-
* '
|
|
232
|
+
* 'backgroundColor': 'rgb(39,130,215)'
|
|
233
233
|
* }
|
|
234
234
|
* const vStyleC = {
|
|
235
235
|
* height: '150px',
|
|
236
|
-
* '
|
|
236
|
+
* 'backgroundColor': 'rgb(241,241,241)',
|
|
237
237
|
* color: '#333'
|
|
238
238
|
* }
|
|
239
239
|
* return (
|
package/types/Swiper.d.ts
CHANGED
|
@@ -63,13 +63,13 @@ interface SwiperProps extends StandardProps {
|
|
|
63
63
|
|
|
64
64
|
/** 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值
|
|
65
65
|
* @default "0px"
|
|
66
|
-
* @supported weapp, h5
|
|
66
|
+
* @supported weapp, h5, tt
|
|
67
67
|
*/
|
|
68
68
|
previousMargin?: string
|
|
69
69
|
|
|
70
70
|
/** 后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值
|
|
71
71
|
* @default "0px"
|
|
72
|
-
* @supported weapp, h5
|
|
72
|
+
* @supported weapp, h5, tt
|
|
73
73
|
*/
|
|
74
74
|
nextMargin?: string
|
|
75
75
|
|
|
@@ -94,7 +94,7 @@ interface SwiperProps extends StandardProps {
|
|
|
94
94
|
|
|
95
95
|
/** 指定 swiper 切换缓动动画类型
|
|
96
96
|
* @default "default"
|
|
97
|
-
* @supported weapp
|
|
97
|
+
* @supported weapp, tt
|
|
98
98
|
*/
|
|
99
99
|
easingFunction?: keyof SwiperProps.TEasingFunction
|
|
100
100
|
|
|
@@ -104,12 +104,12 @@ interface SwiperProps extends StandardProps {
|
|
|
104
104
|
onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
|
|
105
105
|
|
|
106
106
|
/** swiper-item 的位置发生改变时会触发 transition 事件
|
|
107
|
-
* @supported weapp
|
|
107
|
+
* @supported weapp, tt
|
|
108
108
|
*/
|
|
109
109
|
onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
|
|
110
110
|
|
|
111
111
|
/** 动画结束时会触发 animationfinish 事件
|
|
112
|
-
* @supported weapp, swan, h5, rn
|
|
112
|
+
* @supported weapp, swan, h5, rn, tt
|
|
113
113
|
*/
|
|
114
114
|
onAnimationFinish?: SwiperProps['onChange']
|
|
115
115
|
|
package/types/Switch.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
10
10
|
|
|
11
11
|
/** 是否禁用
|
|
12
12
|
* @default false
|
|
13
|
-
* @supported weapp, rn
|
|
13
|
+
* @supported weapp, rn, tt
|
|
14
14
|
*/
|
|
15
15
|
disabled?: boolean
|
|
16
16
|
|
|
@@ -27,7 +27,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
|
|
|
27
27
|
color?: string
|
|
28
28
|
|
|
29
29
|
/** checked 改变时触发 change 事件
|
|
30
|
-
* @supported weapp, rn
|
|
30
|
+
* @supported weapp, rn, tt
|
|
31
31
|
*/
|
|
32
32
|
onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
|
|
33
33
|
|