@tarojs/components 3.5.7 → 3.5.9
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/loader.cjs.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +18 -43
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +5 -0
- package/dist/cjs/taro-video-control_3.cjs.entry.js +98 -181
- package/dist/collection/components/button/button.js +11 -0
- package/dist/collection/components/movable-area/area.css +2 -2
- package/dist/collection/components/movable-area/movable-view.js +18 -33
- package/dist/collection/components/swiper/swiper.js +23 -0
- package/dist/collection/components/video/video-control.js +22 -39
- package/dist/collection/components/video/video-danmu.js +39 -52
- package/dist/collection/components/video/video.js +37 -60
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-button-core.entry.js +5 -0
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +1 -1
- package/dist/esm/taro-movable-view-core.entry.js +18 -43
- package/dist/esm/taro-swiper-core_2.entry.js +5 -0
- package/dist/esm/taro-video-control_3.entry.js +98 -181
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
- package/dist/taro-components/p-0380841f.system.js +1 -1
- package/dist/taro-components/{p-a94524c9.system.entry.js → p-06b9d39c.system.entry.js} +1 -1
- package/dist/taro-components/{p-63a0c6b0.entry.js → p-34178401.entry.js} +1 -1
- package/dist/taro-components/p-3549b6d2.entry.js +1 -0
- package/dist/taro-components/p-4262d1b6.entry.js +1 -0
- package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
- package/dist/taro-components/{p-f81a74bb.system.entry.js → p-4c1a7cae.system.entry.js} +81 -81
- package/dist/taro-components/{p-3744e978.entry.js → p-99d17a1a.entry.js} +52 -52
- package/dist/taro-components/{p-13f0b11f.system.entry.js → p-a5496bf5.system.entry.js} +1 -1
- package/dist/taro-components/p-f40e1218.system.entry.js +1 -0
- package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/swiper/swiper.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +15 -12
- package/types/Ad.d.ts +21 -22
- package/types/AnimationVideo.d.ts +62 -0
- package/types/AnimationView.d.ts +45 -0
- package/types/ArCamera.d.ts +50 -0
- package/types/Audio.d.ts +6 -6
- package/types/AwemeData.d.ts +43 -0
- package/types/Button.d.ts +68 -71
- package/types/Camera.d.ts +16 -17
- package/types/Canvas.d.ts +23 -28
- package/types/Checkbox.d.ts +8 -8
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CommentDetail.d.ts +72 -0
- package/types/CommentList.d.ts +128 -0
- package/types/ContactButton.d.ts +53 -0
- package/types/CoverImage.d.ts +16 -16
- package/types/CoverView.d.ts +105 -7
- package/types/CustomWrapper.d.ts +1 -1
- package/types/FollowSwan.d.ts +28 -0
- package/types/Form.d.ts +11 -11
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +21 -21
- package/types/InlinePaymentPanel.d.ts +58 -0
- package/types/Input.d.ts +93 -28
- package/types/Lifestyle.d.ts +26 -0
- package/types/Like.d.ts +107 -0
- package/types/LivePlayer.d.ts +32 -26
- package/types/LivePusher.d.ts +6 -6
- package/types/Login.d.ts +45 -0
- package/types/Lottie.d.ts +113 -0
- package/types/Map.d.ts +67 -72
- package/types/MatchMedia.d.ts +1 -1
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +20 -29
- package/types/NativeSlot.d.ts +32 -0
- package/types/Navigator.d.ts +11 -11
- package/types/OpenData.d.ts +6 -6
- package/types/PageContainer.d.ts +31 -24
- package/types/PageMeta.d.ts +15 -15
- package/types/Picker.d.ts +2 -6
- package/types/PickerView.d.ts +12 -22
- package/types/Progress.d.ts +6 -6
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +6 -6
- package/types/RichText.d.ts +17 -17
- package/types/RootPortal.d.ts +11 -2
- package/types/RtcRoom.d.ts +104 -0
- package/types/RtcRoomItem.d.ts +26 -0
- package/types/ScrollView.d.ts +47 -31
- package/types/ShareElement.d.ts +20 -10
- package/types/Slider.d.ts +11 -11
- package/types/Slot.d.ts +1 -1
- package/types/Swiper.d.ts +32 -20
- package/types/SwiperItem.d.ts +3 -2
- package/types/Switch.d.ts +6 -6
- package/types/TabItem.d.ts +35 -0
- package/types/Tabs.d.ts +58 -0
- package/types/Text.d.ts +1 -1
- package/types/Textarea.d.ts +39 -33
- package/types/Video.d.ts +123 -108
- package/types/View.d.ts +21 -14
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +12 -6
- package/types/index.vue3.d.ts +268 -259
- package/dist/taro-components/p-6800ac6f.entry.js +0 -1
- package/dist/taro-components/p-7f93fa08.entry.js +0 -1
- package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
package/types/MovableView.d.ts
CHANGED
|
@@ -1,83 +1,79 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
StandardProps,
|
|
4
|
-
CommonEventFunction,
|
|
5
|
-
TouchEventFunction,
|
|
6
|
-
} from './common'
|
|
2
|
+
import { StandardProps, CommonEventFunction, TouchEventFunction } from './common'
|
|
7
3
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
8
4
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
9
5
|
* @default none
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
11
7
|
*/
|
|
12
8
|
direction?: 'all' | 'vertical' | 'horizontal' | 'none'
|
|
13
9
|
|
|
14
10
|
/** movable-view 是否带有惯性
|
|
15
11
|
* @default false
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
12
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
17
13
|
*/
|
|
18
14
|
inertia?: boolean
|
|
19
15
|
|
|
20
16
|
/** 超过可移动区域后,movable-view 是否还可以移动
|
|
21
17
|
* @default false
|
|
22
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
18
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
23
19
|
*/
|
|
24
20
|
outOfBounds?: boolean
|
|
25
21
|
|
|
26
22
|
/** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
|
|
27
|
-
* @supported weapp, alipay, swan, tt, qq, rn
|
|
23
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
28
24
|
*/
|
|
29
25
|
x?: number | string
|
|
30
26
|
|
|
31
27
|
/** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
|
|
32
|
-
* @supported weapp, alipay, swan, tt, qq, rn
|
|
28
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
33
29
|
*/
|
|
34
30
|
y?: number | string
|
|
35
31
|
|
|
36
32
|
/** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
37
33
|
* @default 20
|
|
38
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
34
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
39
35
|
*/
|
|
40
36
|
damping?: number
|
|
41
37
|
|
|
42
38
|
/** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
|
|
43
39
|
* @default 2
|
|
44
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
45
41
|
*/
|
|
46
42
|
friction?: number
|
|
47
43
|
|
|
48
44
|
/** 是否禁用
|
|
49
45
|
* @default false
|
|
50
|
-
* @supported weapp, alipay, swan, tt, qq, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
51
47
|
*/
|
|
52
48
|
disabled?: boolean
|
|
53
49
|
|
|
54
50
|
/** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
|
|
55
51
|
* @default false
|
|
56
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
52
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
57
53
|
*/
|
|
58
54
|
scale?: boolean
|
|
59
55
|
|
|
60
56
|
/** 定义缩放倍数最小值
|
|
61
57
|
* @default 0.5
|
|
62
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
58
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
63
59
|
*/
|
|
64
60
|
scaleMin?: number
|
|
65
61
|
|
|
66
62
|
/** 定义缩放倍数最大值
|
|
67
63
|
* @default 10
|
|
68
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
64
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
69
65
|
*/
|
|
70
66
|
scaleMax?: number
|
|
71
67
|
|
|
72
68
|
/** 定义缩放倍数,取值范围为 0.5 - 10
|
|
73
69
|
* @default 1
|
|
74
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
70
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
75
71
|
*/
|
|
76
72
|
scaleValue?: number
|
|
77
73
|
|
|
78
74
|
/** 是否使用动画
|
|
79
75
|
* @default true
|
|
80
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
76
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
81
77
|
*/
|
|
82
78
|
animation?: boolean
|
|
83
79
|
|
|
@@ -101,13 +97,8 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
101
97
|
*/
|
|
102
98
|
onDragEnd?: CommonEventFunction
|
|
103
99
|
|
|
104
|
-
/** 触摸动作结束,事件会向父节点传递。
|
|
105
|
-
* @supported alipay
|
|
106
|
-
*/
|
|
107
|
-
onDragEnd?: CommonEventFunction
|
|
108
|
-
|
|
109
100
|
/** 缩放过程中触发的事件
|
|
110
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
101
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
111
102
|
*/
|
|
112
103
|
onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
|
|
113
104
|
|
|
@@ -122,7 +113,7 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
122
113
|
onTouchMove?: CommonEventFunction
|
|
123
114
|
|
|
124
115
|
/** 手指触摸动作结束
|
|
125
|
-
* @supported h5
|
|
116
|
+
* @supported alipay, h5
|
|
126
117
|
* @h5 此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理
|
|
127
118
|
*/
|
|
128
119
|
onTouchEnd?: TouchEventFunction
|
|
@@ -133,12 +124,12 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
133
124
|
onTouchCancel?: CommonEventFunction
|
|
134
125
|
|
|
135
126
|
/** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
136
|
-
* @supported swan
|
|
127
|
+
* @supported weapp, swan, tt, h5
|
|
137
128
|
*/
|
|
138
129
|
onHTouchMove?: TouchEventFunction
|
|
139
130
|
|
|
140
131
|
/** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
141
|
-
* @supported swan
|
|
132
|
+
* @supported weapp, swan, tt, h5
|
|
142
133
|
*/
|
|
143
134
|
onVTouchMove?: TouchEventFunction
|
|
144
135
|
|
|
@@ -148,7 +139,7 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
148
139
|
catchTouchStart?: CommonEventFunction
|
|
149
140
|
|
|
150
141
|
/** 触摸移动事件,事件仅作用于组件,不向父节点传递。
|
|
151
|
-
* @supported
|
|
142
|
+
* @supported alipay
|
|
152
143
|
*/
|
|
153
144
|
catchTouchMove?: CommonEventFunction
|
|
154
145
|
|
|
@@ -199,7 +190,7 @@ declare namespace MovableViewProps {
|
|
|
199
190
|
|
|
200
191
|
/** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
|
|
201
192
|
* @classification viewContainer
|
|
202
|
-
* @supported weapp, swan,
|
|
193
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
203
194
|
* @example_react
|
|
204
195
|
* ```tsx
|
|
205
196
|
* class App extends Components {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
interface NativeSlotProps {
|
|
4
|
+
/** 指定插入的 slot 位置
|
|
5
|
+
* @default none
|
|
6
|
+
* @supported weapp, swan, alipay, tt, jd, qq
|
|
7
|
+
*/
|
|
8
|
+
name?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** 编译的原生组件支持使用 slot 插槽
|
|
12
|
+
* @supported weapp, swan, alipay, tt, jd, qq
|
|
13
|
+
* @version 3.5.7+
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { NativeSlot, View } from '@tarojs/components'
|
|
17
|
+
*
|
|
18
|
+
* export default function () {
|
|
19
|
+
* render () {
|
|
20
|
+
* return (
|
|
21
|
+
* <View>
|
|
22
|
+
* <NativeSlot />
|
|
23
|
+
* </View>
|
|
24
|
+
* )
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
* @see https://github.com/NervJS/taro/pull/12627
|
|
29
|
+
*/
|
|
30
|
+
declare const NativeSlot: ComponentType<NativeSlotProps>
|
|
31
|
+
|
|
32
|
+
export { NativeSlot, NativeSlotProps }
|
package/types/Navigator.d.ts
CHANGED
|
@@ -67,6 +67,16 @@ interface NavigatorProps extends StandardProps {
|
|
|
67
67
|
*/
|
|
68
68
|
hoverStayTime?: number
|
|
69
69
|
|
|
70
|
+
/** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
|
|
71
|
+
* @supported weapp
|
|
72
|
+
*/
|
|
73
|
+
shortLink?: string
|
|
74
|
+
|
|
75
|
+
/** 无障碍访问,(属性)元素的额外描述
|
|
76
|
+
* @supported qq
|
|
77
|
+
*/
|
|
78
|
+
ariaLabel?: string
|
|
79
|
+
|
|
70
80
|
/** 当 `target="miniProgram"` 时有效,跳转小程序成功
|
|
71
81
|
* @supported weapp, swan, qq
|
|
72
82
|
*/
|
|
@@ -81,16 +91,6 @@ interface NavigatorProps extends StandardProps {
|
|
|
81
91
|
* @supported weapp, swan, qq
|
|
82
92
|
*/
|
|
83
93
|
onComplete?: CommonEventFunction
|
|
84
|
-
|
|
85
|
-
/** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
|
|
86
|
-
* @supported weapp
|
|
87
|
-
*/
|
|
88
|
-
shortLink?: string
|
|
89
|
-
|
|
90
|
-
/** 无障碍访问,(属性)元素的额外描述
|
|
91
|
-
* @supported qq
|
|
92
|
-
*/
|
|
93
|
-
ariaLabel?: string
|
|
94
94
|
}
|
|
95
95
|
declare namespace NavigatorProps {
|
|
96
96
|
/** target 的合法值 */
|
|
@@ -138,7 +138,7 @@ declare namespace NavigatorProps {
|
|
|
138
138
|
|
|
139
139
|
/** 页面链接
|
|
140
140
|
* @classification navig
|
|
141
|
-
* @supported weapp, swan,
|
|
141
|
+
* @supported weapp, alipay, swan, tt, qq, jd
|
|
142
142
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
143
143
|
*/
|
|
144
144
|
declare const Navigator: ComponentType<NavigatorProps>
|
package/types/OpenData.d.ts
CHANGED
|
@@ -27,11 +27,6 @@ interface OpenDataProps extends StandardProps {
|
|
|
27
27
|
*/
|
|
28
28
|
defaultAvatar?: string
|
|
29
29
|
|
|
30
|
-
/** 群名称或用户信息为空时触发
|
|
31
|
-
* @supported weapp, tt, qq
|
|
32
|
-
*/
|
|
33
|
-
onError?: CommonEventFunction
|
|
34
|
-
|
|
35
30
|
/** 当数据为空且未设置默认值时,是否显示官方默认值
|
|
36
31
|
* @supported tt
|
|
37
32
|
*/
|
|
@@ -51,6 +46,11 @@ interface OpenDataProps extends StandardProps {
|
|
|
51
46
|
* @supported qq
|
|
52
47
|
*/
|
|
53
48
|
componentData?: string
|
|
49
|
+
|
|
50
|
+
/** 群名称或用户信息为空时触发
|
|
51
|
+
* @supported weapp, tt, qq
|
|
52
|
+
*/
|
|
53
|
+
onError?: CommonEventFunction
|
|
54
54
|
}
|
|
55
55
|
declare namespace OpenDataProps {
|
|
56
56
|
/** type 的合法值 */
|
|
@@ -95,7 +95,7 @@ declare namespace OpenDataProps {
|
|
|
95
95
|
|
|
96
96
|
/** 用于展示平台开放的数据
|
|
97
97
|
* @classification open
|
|
98
|
-
* @supported weapp, tt
|
|
98
|
+
* @supported weapp, swan, tt, qq
|
|
99
99
|
* @example_react
|
|
100
100
|
* ```tsx
|
|
101
101
|
* class App extends Component {
|
package/types/PageContainer.d.ts
CHANGED
|
@@ -1,95 +1,102 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
StandardProps,
|
|
4
|
-
CommonEventFunction,
|
|
5
|
-
} from './common'
|
|
2
|
+
import { StandardProps, CommonEventFunction } from './common'
|
|
6
3
|
interface PageContainerProps extends StandardProps {
|
|
7
4
|
/** 是否显示容器组件
|
|
8
5
|
* @default false
|
|
9
|
-
* @supported weapp, rn
|
|
6
|
+
* @supported weapp, alipay, rn
|
|
10
7
|
*/
|
|
11
8
|
show?: boolean
|
|
12
9
|
|
|
13
10
|
/** 动画时长,单位毫秒
|
|
14
11
|
* @default 300
|
|
15
|
-
* @supported weapp, rn
|
|
12
|
+
* @supported weapp, alipay, rn
|
|
16
13
|
*/
|
|
17
14
|
duration?: number
|
|
18
15
|
|
|
19
16
|
/** z-index 层级
|
|
20
17
|
* @default 100
|
|
21
|
-
* @supported weapp
|
|
18
|
+
* @supported weapp, alipay
|
|
22
19
|
*/
|
|
23
20
|
zIndex?: number
|
|
24
21
|
|
|
25
22
|
/** 是否显示遮罩层
|
|
26
23
|
* @default true
|
|
27
|
-
* @supported weapp, rn
|
|
24
|
+
* @supported weapp, alipay, rn
|
|
28
25
|
*/
|
|
29
26
|
overlay?: boolean
|
|
30
27
|
|
|
31
28
|
/** 弹出位置,可选值为 top bottom right center
|
|
32
29
|
* @default bottom
|
|
33
|
-
* @supported weapp, rn
|
|
30
|
+
* @supported weapp, alipay, rn
|
|
34
31
|
*/
|
|
35
32
|
position?: keyof PageContainerProps.Position
|
|
36
33
|
|
|
37
34
|
/** 是否显示圆角
|
|
38
35
|
* @default false
|
|
39
|
-
* @supported weapp, rn
|
|
36
|
+
* @supported weapp, alipay, rn
|
|
40
37
|
*/
|
|
41
38
|
round?: boolean
|
|
42
39
|
|
|
43
40
|
/** 自定义遮罩层样式
|
|
44
|
-
* @supported weapp, rn
|
|
41
|
+
* @supported weapp, alipay, rn
|
|
45
42
|
*/
|
|
46
43
|
overlayStyle?: string
|
|
47
44
|
|
|
48
45
|
/** 自定义弹出层样式
|
|
49
|
-
* @supported weapp, rn
|
|
46
|
+
* @supported weapp, alipay, rn
|
|
50
47
|
*/
|
|
51
48
|
customStyle?: string
|
|
52
49
|
|
|
50
|
+
/** 是否在下滑一段距离后关闭
|
|
51
|
+
* @supported weapp, alipay
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
closeOnSlideDown?: boolean
|
|
55
|
+
|
|
53
56
|
/** 进入前触发
|
|
54
|
-
* @supported weapp, rn
|
|
57
|
+
* @supported weapp, alipay, rn
|
|
55
58
|
*/
|
|
56
59
|
onBeforeEnter?: CommonEventFunction
|
|
57
60
|
|
|
58
61
|
/** 进入中触发
|
|
59
|
-
* @supported weapp, rn
|
|
62
|
+
* @supported weapp, alipay, rn
|
|
60
63
|
*/
|
|
61
64
|
onEnter?: CommonEventFunction
|
|
62
65
|
|
|
63
66
|
/** 进入后触发
|
|
64
|
-
* @supported weapp, rn
|
|
67
|
+
* @supported weapp, alipay, rn
|
|
65
68
|
*/
|
|
66
69
|
onAfterEnter?: CommonEventFunction
|
|
67
70
|
|
|
68
71
|
/** 离开前触发
|
|
69
|
-
* @supported weapp, rn
|
|
72
|
+
* @supported weapp, alipay, rn
|
|
70
73
|
*/
|
|
71
74
|
onBeforeLeave?: CommonEventFunction
|
|
72
75
|
|
|
73
76
|
/** 离开中触发
|
|
74
|
-
* @supported weapp, rn
|
|
77
|
+
* @supported weapp, alipay, rn
|
|
75
78
|
*/
|
|
76
79
|
onLeave?: CommonEventFunction
|
|
77
80
|
|
|
78
81
|
/** 离开后触发
|
|
79
|
-
* @supported weapp, rn
|
|
82
|
+
* @supported weapp, alipay, rn
|
|
80
83
|
*/
|
|
81
84
|
onAfterLeave?: CommonEventFunction
|
|
82
85
|
|
|
83
86
|
/** 点击遮罩层时触发
|
|
84
|
-
* @supported weapp
|
|
87
|
+
* @supported weapp, alipay
|
|
85
88
|
*/
|
|
86
89
|
onClickOverlay?: CommonEventFunction
|
|
87
90
|
|
|
88
|
-
/**
|
|
89
|
-
* @supported
|
|
90
|
-
|
|
91
|
+
/** 进入被打断时触发(通过 a: if 打断时不会触发)。
|
|
92
|
+
* @supported alipay
|
|
93
|
+
*/
|
|
94
|
+
onEnterCancelled?: CommonEventFunction
|
|
95
|
+
|
|
96
|
+
/** 离开被打断时触发(通过 a: if 打断时不会触发)。
|
|
97
|
+
* @supported alipay
|
|
91
98
|
*/
|
|
92
|
-
|
|
99
|
+
onLeaveCancelled?: CommonEventFunction
|
|
93
100
|
}
|
|
94
101
|
declare namespace PageContainerProps {
|
|
95
102
|
/** 弹出位置 */
|
|
@@ -117,7 +124,7 @@ declare namespace PageContainerProps {
|
|
|
117
124
|
* 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
|
|
118
125
|
* 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面
|
|
119
126
|
* @classification viewContainer
|
|
120
|
-
* @supported weapp, rn
|
|
127
|
+
* @supported weapp, alipay, rn
|
|
121
128
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
|
|
122
129
|
*/
|
|
123
130
|
declare const PageContainer: ComponentType<PageContainerProps>
|
package/types/PageMeta.d.ts
CHANGED
|
@@ -45,35 +45,35 @@ interface PageMetaProps extends StandardProps {
|
|
|
45
45
|
*/
|
|
46
46
|
rootFontSize?: string
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* @supported weapp
|
|
48
|
+
/** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
|
|
49
|
+
* @supported weapp, alipay
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
rootBackgroundColor?: string
|
|
52
52
|
|
|
53
|
-
/**
|
|
53
|
+
/** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
|
|
54
54
|
* @supported weapp, alipay
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
pageFontSize?: string
|
|
57
57
|
|
|
58
|
-
/**
|
|
58
|
+
/** 页面的方向,可为 auto portrait 或 landscape
|
|
59
59
|
* @supported weapp
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
pageOrientation?: string
|
|
62
62
|
|
|
63
|
-
/**
|
|
64
|
-
* @supported weapp
|
|
63
|
+
/** 页面尺寸变化时会触发 resize 事件
|
|
64
|
+
* @supported weapp
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
|
|
67
67
|
|
|
68
|
-
/**
|
|
68
|
+
/** 页面滚动时会触发 scroll 事件
|
|
69
69
|
* @supported weapp, alipay
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
|
|
72
72
|
|
|
73
|
-
/**
|
|
73
|
+
/** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
|
|
74
74
|
* @supported weapp
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
onScrollDone?: CommonEventFunction
|
|
77
77
|
}
|
|
78
78
|
declare namespace PageMetaProps {
|
|
79
79
|
interface onResizeEventDetail {
|
|
@@ -96,7 +96,7 @@ declare namespace PageMetaProps {
|
|
|
96
96
|
|
|
97
97
|
/** 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。可以配合 navigation-bar 组件一同使用。
|
|
98
98
|
* 通过这个节点可以获得类似于调用 Taro.setBackgroundTextStyle Taro.setBackgroundColor 等接口调用的效果。
|
|
99
|
-
* @supported weapp
|
|
99
|
+
* @supported weapp, alipay
|
|
100
100
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-meta.html
|
|
101
101
|
*/
|
|
102
102
|
declare const PageMeta: ComponentType<PageMetaProps>
|
package/types/Picker.d.ts
CHANGED
|
@@ -302,7 +302,7 @@ declare namespace PickerRegionProps {
|
|
|
302
302
|
/**
|
|
303
303
|
* 从底部弹起的滚动选择器
|
|
304
304
|
* @classification forms
|
|
305
|
-
* @supported weapp,
|
|
305
|
+
* @supported weapp, swan, alipay, tt, h5, rn
|
|
306
306
|
* @example_react
|
|
307
307
|
* ```tsx
|
|
308
308
|
* export default class PagePicker extends Component {
|
|
@@ -436,11 +436,7 @@ declare namespace PickerRegionProps {
|
|
|
436
436
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker.html
|
|
437
437
|
*/
|
|
438
438
|
declare const Picker: ComponentType<
|
|
439
|
-
|
|
|
440
|
-
| PickerTimeProps
|
|
441
|
-
| PickerDateProps
|
|
442
|
-
| PickerRegionProps
|
|
443
|
-
| PickerSelectorProps
|
|
439
|
+
PickerMultiSelectorProps | PickerTimeProps | PickerDateProps | PickerRegionProps | PickerSelectorProps
|
|
444
440
|
>
|
|
445
441
|
export {
|
|
446
442
|
Picker,
|
package/types/PickerView.d.ts
CHANGED
|
@@ -32,21 +32,6 @@ interface PickerViewProps extends StandardProps {
|
|
|
32
32
|
*/
|
|
33
33
|
immediateChange?: boolean
|
|
34
34
|
|
|
35
|
-
/** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
|
|
36
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
37
|
-
*/
|
|
38
|
-
onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
|
|
39
|
-
|
|
40
|
-
/** 当滚动选择开始时候触发事件
|
|
41
|
-
* @supported weapp, tt, qq
|
|
42
|
-
*/
|
|
43
|
-
onPickStart?: CommonEventFunction
|
|
44
|
-
|
|
45
|
-
/** 当滚动选择结束时候触发事件
|
|
46
|
-
* @supported weapp, tt, qq
|
|
47
|
-
*/
|
|
48
|
-
onPickEnd?: CommonEventFunction
|
|
49
|
-
|
|
50
35
|
/** 选择器标题,建议标题控制在 12 个中文汉字长度内,避免出现截断现象, 截断部分将以 ... 形式展示
|
|
51
36
|
* @supported swan
|
|
52
37
|
*/
|
|
@@ -57,15 +42,20 @@ interface PickerViewProps extends StandardProps {
|
|
|
57
42
|
*/
|
|
58
43
|
ariaLabel?: string
|
|
59
44
|
|
|
60
|
-
/**
|
|
61
|
-
* @supported alipay
|
|
45
|
+
/** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
62
47
|
*/
|
|
63
|
-
|
|
48
|
+
onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
|
|
64
49
|
|
|
65
|
-
/**
|
|
66
|
-
* @supported alipay
|
|
50
|
+
/** 当滚动选择开始时候触发事件
|
|
51
|
+
* @supported weapp, alipay, tt, qq
|
|
67
52
|
*/
|
|
68
|
-
|
|
53
|
+
onPickStart?: CommonEventFunction
|
|
54
|
+
|
|
55
|
+
/** 当滚动选择结束时候触发事件
|
|
56
|
+
* @supported weapp, alipay, tt, qq
|
|
57
|
+
*/
|
|
58
|
+
onPickEnd?: CommonEventFunction
|
|
69
59
|
}
|
|
70
60
|
declare namespace PickerViewProps {
|
|
71
61
|
interface onChangeEventDetail {
|
|
@@ -76,7 +66,7 @@ declare namespace PickerViewProps {
|
|
|
76
66
|
/** 嵌入页面的滚动选择器
|
|
77
67
|
* 其中只可放置 picker-view-column 组件,其它节点不会显示
|
|
78
68
|
* @classification forms
|
|
79
|
-
* @supported weapp,
|
|
69
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
80
70
|
* @example_react
|
|
81
71
|
* ```tsx
|
|
82
72
|
* export default class Picks extends Component {
|
package/types/Progress.d.ts
CHANGED
|
@@ -68,20 +68,20 @@ interface ProgressProps extends StandardProps {
|
|
|
68
68
|
*/
|
|
69
69
|
duration?: number
|
|
70
70
|
|
|
71
|
-
/** 动画完成事件
|
|
72
|
-
* @supported weapp, qq, jd, h5
|
|
73
|
-
*/
|
|
74
|
-
onActiveEnd?: CommonEventFunction
|
|
75
|
-
|
|
76
71
|
/** 无障碍访问,(属性)元素的额外描述
|
|
77
72
|
* @supported qq
|
|
78
73
|
*/
|
|
79
74
|
ariaLabel?: string
|
|
75
|
+
|
|
76
|
+
/** 动画完成事件
|
|
77
|
+
* @supported weapp, qq, jd, h5
|
|
78
|
+
*/
|
|
79
|
+
onActiveEnd?: CommonEventFunction
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/** 进度条。组件属性的长度单位默认为 px
|
|
83
83
|
* @classification base
|
|
84
|
-
* @supported weapp,
|
|
84
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
85
85
|
* @example_react
|
|
86
86
|
* ```tsx
|
|
87
87
|
* export default class PageView extends Component {
|
package/types/Radio.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface RadioProps extends StandardProps {
|
|
|
44
44
|
|
|
45
45
|
/** 单选项目
|
|
46
46
|
* @classification forms
|
|
47
|
-
* @supported weapp,
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
48
48
|
* @example_react
|
|
49
49
|
* ```tsx
|
|
50
50
|
* export default class PageRadio extends Component {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface RadioGroupProps extends StandardProps, FormItemProps {
|
|
4
|
-
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, h5
|
|
6
|
-
*/
|
|
7
|
-
onChange?: CommonEventFunction
|
|
8
|
-
|
|
9
4
|
/** 组件名字,用于表单提交获取数据。
|
|
10
5
|
* @supported alipay, tt
|
|
11
6
|
*/
|
|
12
7
|
name?: string
|
|
8
|
+
|
|
9
|
+
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, h5
|
|
11
|
+
*/
|
|
12
|
+
onChange?: CommonEventFunction
|
|
13
13
|
}
|
|
14
14
|
declare namespace RadioGroupProps {
|
|
15
15
|
interface onChangeEventDetail {
|
|
@@ -19,7 +19,7 @@ declare namespace RadioGroupProps {
|
|
|
19
19
|
|
|
20
20
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
21
21
|
* @classification forms
|
|
22
|
-
* @supported weapp,
|
|
22
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
23
23
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
24
24
|
*/
|
|
25
25
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -15,6 +15,23 @@ interface RichTextProps extends StandardProps {
|
|
|
15
15
|
*/
|
|
16
16
|
space?: keyof RichTextProps.TSpace
|
|
17
17
|
|
|
18
|
+
/** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
|
|
19
|
+
* @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
|
|
20
|
+
* @supported swan
|
|
21
|
+
*/
|
|
22
|
+
selectable?: string
|
|
23
|
+
|
|
24
|
+
/** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
|
|
25
|
+
* @default false
|
|
26
|
+
* @supported swan
|
|
27
|
+
*/
|
|
28
|
+
imageMenuPrevent?: string
|
|
29
|
+
|
|
30
|
+
/** 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview
|
|
31
|
+
* @supported swan
|
|
32
|
+
*/
|
|
33
|
+
preview?: string
|
|
34
|
+
|
|
18
35
|
/** 触摸。
|
|
19
36
|
* @supported alipay
|
|
20
37
|
*/
|
|
@@ -44,23 +61,6 @@ interface RichTextProps extends StandardProps {
|
|
|
44
61
|
* @supported alipay
|
|
45
62
|
*/
|
|
46
63
|
onLongtap?: CommonEventFunction
|
|
47
|
-
|
|
48
|
-
/** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
|
|
49
|
-
* @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
|
|
50
|
-
* @supported swan
|
|
51
|
-
*/
|
|
52
|
-
selectable?: string
|
|
53
|
-
|
|
54
|
-
/** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
|
|
55
|
-
* @default false
|
|
56
|
-
* @supported swan
|
|
57
|
-
*/
|
|
58
|
-
imageMenuPrevent?: string
|
|
59
|
-
|
|
60
|
-
/** 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview
|
|
61
|
-
* @supported swan
|
|
62
|
-
*/
|
|
63
|
-
preview?: string
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/** 节点类型
|
package/types/RootPortal.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
interface RootPortalProps extends StandardProps {
|
|
4
|
+
/**
|
|
5
|
+
* 是否从页面中脱离出来
|
|
6
|
+
* @supported weapp
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
enable?: boolean
|
|
10
|
+
}
|
|
2
11
|
|
|
3
12
|
/** root-portal
|
|
4
13
|
* 使整个子树从页面中脱离出来,类似于在 CSS 中使用 fixed position 的效果。主要用于制作弹窗、弹出层等。
|
|
@@ -28,6 +37,6 @@ import { ComponentType } from 'react'
|
|
|
28
37
|
* }
|
|
29
38
|
* ```
|
|
30
39
|
*/
|
|
31
|
-
declare const RootPortal: ComponentType
|
|
40
|
+
declare const RootPortal: ComponentType<RootPortalProps>
|
|
32
41
|
|
|
33
|
-
export { RootPortal }
|
|
42
|
+
export { RootPortal, RootPortalProps }
|