@tarojs/components 4.2.1-beta.1 → 4.2.1-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/{image-32205a1d.js → image-4303ed3a.js} +4 -9
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scroll-view-f1361b2b.js → scroll-view-65cb8d5f.js} +2 -3
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/cjs/web-view-be5a2d1d.js +27 -0
- package/dist/collection/components/image/image.js +3 -29
- package/dist/collection/components/image/style/index.css +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js +2 -3
- package/dist/collection/components/web-view/web-view.js +1 -62
- package/dist/components/taro-image-core.js +4 -10
- package/dist/components/taro-scroll-view-core.js +2 -3
- package/dist/components/taro-web-view-core.js +1 -48
- package/dist/esm/{image-9c1a61f3.js → image-b0b222bc.js} +4 -9
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scroll-view-7f9988b3.js → scroll-view-43e9acfc.js} +2 -3
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm/web-view-8f780a19.js +25 -0
- package/dist/hydrate/index.js +7 -61
- package/dist/taro-components/index.esm.js +1 -1
- package/dist/taro-components/p-00e72620.entry.js +1 -0
- package/dist/taro-components/p-1f81d4f4.js +1 -0
- package/dist/taro-components/p-5570a53e.entry.js +1 -0
- package/dist/taro-components/{p-5108ba78.js → p-58a709ad.js} +1 -1
- package/dist/taro-components/p-beae3fe0.js +1 -0
- package/dist/taro-components/p-cb7e1d6e.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/image/image.d.ts +0 -5
- package/dist/types/components/web-view/web-view.d.ts +0 -5
- package/dist/types/components.d.ts +0 -11
- package/lib/react/react-component-lib/utils/attachProps.js +4 -1
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/vue3/components.js +1 -3
- package/lib/vue3/components.js.map +1 -1
- package/package.json +5 -5
- package/types/Audio.d.ts +13 -13
- package/types/Button.d.ts +50 -16
- package/types/Camera.d.ts +7 -7
- package/types/Canvas.d.ts +10 -10
- package/types/Checkbox.d.ts +5 -5
- package/types/CheckboxGroup.d.ts +2 -2
- package/types/CoverImage.d.ts +42 -4
- package/types/CoverView.d.ts +21 -1
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Editor.d.ts +20 -8
- package/types/Form.d.ts +3 -3
- package/types/Icon.d.ts +4 -4
- package/types/Image.d.ts +6 -12
- package/types/Input.d.ts +16 -16
- package/types/Label.d.ts +2 -2
- package/types/Map.d.ts +21 -17
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +16 -16
- package/types/Navigator.d.ts +8 -8
- package/types/Picker.d.ts +26 -26
- package/types/PickerView.d.ts +7 -7
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +13 -13
- package/types/Radio.d.ts +5 -5
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +4 -4
- package/types/ScrollView.d.ts +17 -17
- package/types/Slider.d.ts +14 -14
- package/types/Swiper.d.ts +14 -14
- package/types/SwiperItem.d.ts +2 -2
- package/types/Switch.d.ts +7 -7
- package/types/Text.d.ts +4 -4
- package/types/Textarea.d.ts +13 -13
- package/types/Video.d.ts +37 -37
- package/types/View.d.ts +5 -5
- package/types/WebView.d.ts +4 -4
- package/types/common.d.ts +6 -24
- package/dist/cjs/web-view-1ec276e7.js +0 -74
- package/dist/esm/web-view-abc07992.js +0 -72
- package/dist/taro-components/p-85e84cde.entry.js +0 -1
- package/dist/taro-components/p-8635925e.js +0 -1
- package/dist/taro-components/p-a5f2ce14.entry.js +0 -1
- package/dist/taro-components/p-acf31ef0.js +0 -1
- package/dist/taro-components/p-eeec4f43.entry.js +0 -1
package/types/Image.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { ComponentType, ImgHTMLAttributes } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface ImageProps extends StandardProps {
|
|
4
4
|
/** 图片资源地址
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
6
6
|
*/
|
|
7
7
|
src: string
|
|
8
8
|
/** 图片裁剪、缩放的模式
|
|
9
9
|
* @default "scaleToFill"
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
11
11
|
* @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
|
|
12
12
|
* @harmony 部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix
|
|
13
13
|
*/
|
|
@@ -24,7 +24,7 @@ interface ImageProps extends StandardProps {
|
|
|
24
24
|
svg?: boolean
|
|
25
25
|
/** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
|
|
26
26
|
* @default false
|
|
27
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
27
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
28
28
|
*/
|
|
29
29
|
lazyLoad?: boolean
|
|
30
30
|
/** 开启长按图片显示识别小程序码菜单
|
|
@@ -41,12 +41,6 @@ interface ImageProps extends StandardProps {
|
|
|
41
41
|
* @supported h5, harmony_hybrid
|
|
42
42
|
*/
|
|
43
43
|
nativeProps?: Record<string, unknown>
|
|
44
|
-
/**
|
|
45
|
-
* H5 / WebComponents 为 true 时关闭默认占位,`taro-image-core` 外层宽高均为 `auto`(默认 false 仍为 320×240)。
|
|
46
|
-
* @default false
|
|
47
|
-
* @supported h5, harmony_hybrid
|
|
48
|
-
*/
|
|
49
|
-
disableDefaultSize?: boolean
|
|
50
44
|
/** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
|
|
51
45
|
* @supported alipay
|
|
52
46
|
*/
|
|
@@ -73,11 +67,11 @@ interface ImageProps extends StandardProps {
|
|
|
73
67
|
*/
|
|
74
68
|
fadeIn?: boolean
|
|
75
69
|
/** 当错误发生时,发布到 AppService 的事件名,事件对象
|
|
76
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
70
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
77
71
|
*/
|
|
78
72
|
onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
|
|
79
73
|
/** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
|
|
80
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
74
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
81
75
|
*/
|
|
82
76
|
onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
|
|
83
77
|
/** 点击图片时触发。
|
|
@@ -136,7 +130,7 @@ declare namespace ImageProps {
|
|
|
136
130
|
*
|
|
137
131
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
138
132
|
* @classification media
|
|
139
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
133
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
140
134
|
* @example_react
|
|
141
135
|
* ```tsx
|
|
142
136
|
* export default class PageView extends Component {
|
package/types/Input.d.ts
CHANGED
|
@@ -2,35 +2,35 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface InputProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 输入框的初始内容
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
6
6
|
*/
|
|
7
7
|
value?: string
|
|
8
8
|
/** 设置 React 非受控输入框的初始内容
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
10
10
|
* @unique
|
|
11
11
|
*/
|
|
12
12
|
defaultValue?: string
|
|
13
13
|
/** input 的类型
|
|
14
14
|
* @default "text"
|
|
15
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
15
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
16
16
|
*/
|
|
17
17
|
type?: keyof InputProps.Type
|
|
18
18
|
/** 是否是密码类型
|
|
19
19
|
* @default false
|
|
20
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
20
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
21
21
|
*/
|
|
22
22
|
password?: boolean
|
|
23
23
|
/** 输入框为空时占位符
|
|
24
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
24
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
25
25
|
*/
|
|
26
26
|
placeholder?: string
|
|
27
27
|
/** 指定 placeholder 的样式
|
|
28
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
|
28
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony, ascf
|
|
29
29
|
*/
|
|
30
30
|
placeholderStyle?: string
|
|
31
31
|
/** 指定 placeholder 的样式类
|
|
32
32
|
* @default "input-placeholder"
|
|
33
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
33
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
34
34
|
*/
|
|
35
35
|
placeholderClass?: string
|
|
36
36
|
/** 指定 placeholder 的文本颜色
|
|
@@ -39,12 +39,12 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
39
39
|
placeholderTextColor?: string
|
|
40
40
|
/** 是否禁用
|
|
41
41
|
* @default false
|
|
42
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
42
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
43
43
|
*/
|
|
44
44
|
disabled?: boolean
|
|
45
45
|
/** 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
46
46
|
* @default 140
|
|
47
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
48
48
|
*/
|
|
49
49
|
maxlength?: number
|
|
50
50
|
/** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
|
|
@@ -60,13 +60,13 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
60
60
|
autoFocus?: boolean
|
|
61
61
|
/** 获取焦点
|
|
62
62
|
* @default false
|
|
63
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
63
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
64
64
|
*/
|
|
65
65
|
focus?: boolean
|
|
66
66
|
/** 设置键盘右下角按钮的文字,仅在type='text'时生效
|
|
67
67
|
* @alipay confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system
|
|
68
68
|
* @default done
|
|
69
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
|
69
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony, ascf
|
|
70
70
|
*/
|
|
71
71
|
confirmType?: keyof InputProps.ConfirmType
|
|
72
72
|
/** 点击键盘右下角按钮时是否保持键盘不收起
|
|
@@ -175,19 +175,19 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
175
175
|
*/
|
|
176
176
|
clueType?: number
|
|
177
177
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
178
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
178
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
179
179
|
*/
|
|
180
180
|
onInput?: CommonEventFunction<InputProps.inputEventDetail>
|
|
181
181
|
/** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
|
|
182
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
182
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
183
183
|
*/
|
|
184
184
|
onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
|
|
185
185
|
/** 输入框失去焦点时触发
|
|
186
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
186
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
187
187
|
*/
|
|
188
188
|
onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
189
189
|
/** 点击完成按钮时触发
|
|
190
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
190
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
191
191
|
*/
|
|
192
192
|
onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
193
193
|
/** 键盘高度发生变化的时候触发此事件
|
|
@@ -300,7 +300,7 @@ declare namespace InputProps {
|
|
|
300
300
|
}
|
|
301
301
|
/** 输入框。该组件是原生组件,使用时请注意相关限制
|
|
302
302
|
* @classification forms
|
|
303
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
303
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
|
|
304
304
|
* @example_react
|
|
305
305
|
* ```tsx
|
|
306
306
|
* class App extends Component {
|
package/types/Label.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
3
|
interface LabelProps extends StandardProps {
|
|
4
4
|
/** 绑定控件的 id
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid, ascf
|
|
6
6
|
*/
|
|
7
7
|
for?: string
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@ interface LabelProps extends StandardProps {
|
|
|
10
10
|
*
|
|
11
11
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
12
12
|
* @classification forms
|
|
13
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
13
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid, ascf
|
|
14
14
|
* @example_react
|
|
15
15
|
* ```tsx
|
|
16
16
|
* class App extends Components {
|
package/types/Map.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface MapProps extends StandardProps {
|
|
4
4
|
/** 中心经度
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
6
6
|
*/
|
|
7
7
|
longitude: number
|
|
8
8
|
/** 中心纬度
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
10
10
|
*/
|
|
11
11
|
latitude: number
|
|
12
12
|
/** 缩放级别,取值范围为 3-20
|
|
13
13
|
* @default 16
|
|
14
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
14
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
15
15
|
* @swan 取值范围为4-21
|
|
16
16
|
* @alipay 取值范围为5-18
|
|
17
17
|
*/
|
|
@@ -27,7 +27,7 @@ interface MapProps extends StandardProps {
|
|
|
27
27
|
*/
|
|
28
28
|
maxScale?: number
|
|
29
29
|
/** 标记点
|
|
30
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
30
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
31
31
|
*/
|
|
32
32
|
markers?: MapProps.marker[]
|
|
33
33
|
/** **即将移除,请使用 markers**
|
|
@@ -36,11 +36,11 @@ interface MapProps extends StandardProps {
|
|
|
36
36
|
*/
|
|
37
37
|
covers?: any[]
|
|
38
38
|
/** 路线
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
40
40
|
*/
|
|
41
41
|
polyline?: MapProps.polyline[]
|
|
42
42
|
/** 圆
|
|
43
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
43
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
44
44
|
*/
|
|
45
45
|
circles?: MapProps.circle[]
|
|
46
46
|
/** 控件(即将废弃,建议使用 cover-view 代替)
|
|
@@ -54,13 +54,17 @@ interface MapProps extends StandardProps {
|
|
|
54
54
|
includePoints?: MapProps.point[]
|
|
55
55
|
/** 显示带有方向的当前定位点
|
|
56
56
|
* @default false
|
|
57
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
57
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
58
58
|
*/
|
|
59
59
|
showLocation?: boolean
|
|
60
60
|
/** 多边形
|
|
61
|
-
* @supported weapp, swan, tt, qq
|
|
61
|
+
* @supported weapp, swan, tt, qq, ascf
|
|
62
62
|
*/
|
|
63
63
|
polygons?: MapProps.polygon[]
|
|
64
|
+
/** 指定中心点缩放地图。true表示使用组件中心点。
|
|
65
|
+
* @supported ascf
|
|
66
|
+
*/
|
|
67
|
+
enableCenterScale?: boolean
|
|
64
68
|
/** 个性化地图使用的 key
|
|
65
69
|
* @supported weapp, qq
|
|
66
70
|
*/
|
|
@@ -82,7 +86,7 @@ interface MapProps extends StandardProps {
|
|
|
82
86
|
skew?: number
|
|
83
87
|
/** 显示指南针
|
|
84
88
|
* @default false
|
|
85
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
89
|
+
* @supported weapp, alipay, swan, tt, qq, ascf
|
|
86
90
|
*/
|
|
87
91
|
showCompass?: boolean
|
|
88
92
|
/** 显示比例尺
|
|
@@ -97,17 +101,17 @@ interface MapProps extends StandardProps {
|
|
|
97
101
|
enableOverlooking?: boolean
|
|
98
102
|
/** 是否支持缩放
|
|
99
103
|
* @default true
|
|
100
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
104
|
+
* @supported weapp, alipay, swan, tt, qq, ascf
|
|
101
105
|
*/
|
|
102
106
|
enableZoom?: boolean
|
|
103
107
|
/** 是否支持拖动
|
|
104
108
|
* @default true
|
|
105
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
109
|
+
* @supported weapp, alipay, swan, tt, qq, ascf
|
|
106
110
|
*/
|
|
107
111
|
enableScroll?: boolean
|
|
108
112
|
/** 是否支持旋转
|
|
109
113
|
* @default false
|
|
110
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
114
|
+
* @supported weapp, alipay, swan, tt, qq, ascf
|
|
111
115
|
*/
|
|
112
116
|
enableRotate?: boolean
|
|
113
117
|
/** 是否开启卫星图
|
|
@@ -187,11 +191,11 @@ interface MapProps extends StandardProps {
|
|
|
187
191
|
*/
|
|
188
192
|
enable3D?: boolean
|
|
189
193
|
/** 点击地图时触发
|
|
190
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
194
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
191
195
|
*/
|
|
192
196
|
onTap?: CommonEventFunction
|
|
193
197
|
/** 点击标记点时触发,e.detail = {markerId}
|
|
194
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
198
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
195
199
|
*/
|
|
196
200
|
onMarkerTap?: CommonEventFunction<MapProps.onMarkerTapEventDetail>
|
|
197
201
|
/** 点击label时触发,e.detail = {markerId}
|
|
@@ -203,15 +207,15 @@ interface MapProps extends StandardProps {
|
|
|
203
207
|
*/
|
|
204
208
|
onControlTap?: CommonEventFunction<MapProps.onControlTapEventDetail>
|
|
205
209
|
/** 点击标记点对应的气泡时触发,e.detail = {markerId}
|
|
206
|
-
* @supported alipay
|
|
210
|
+
* @supported alipay, ascf
|
|
207
211
|
*/
|
|
208
212
|
onCalloutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
|
|
209
213
|
/** 在地图渲染更新完成时触发
|
|
210
|
-
* @supported weapp, swan, tt, qq
|
|
214
|
+
* @supported weapp, swan, tt, qq, ascf
|
|
211
215
|
*/
|
|
212
216
|
onUpdated?: CommonEventFunction
|
|
213
217
|
/** 视野发生变化时触发
|
|
214
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
218
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
215
219
|
*/
|
|
216
220
|
onRegionChange?: CommonEventFunction<MapProps.onRegionEventDetail<'begin'> | MapProps.onRegionEventDetail<'end'>>
|
|
217
221
|
/** 点击地图poi点时触发,e.detail = {name, longitude, latitude}
|
package/types/MovableArea.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { StandardProps } from './common'
|
|
|
3
3
|
interface MovableAreaProps extends StandardProps {
|
|
4
4
|
/** 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个 movable-area
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
|
|
7
7
|
*/
|
|
8
8
|
scaleArea?: boolean
|
|
9
9
|
}
|
|
10
10
|
/** movable-view 的可移动区域
|
|
11
11
|
* @classification viewContainer
|
|
12
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
12
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
|
|
13
13
|
* @example_react
|
|
14
14
|
* ```tsx
|
|
15
15
|
* class App extends Components {
|
package/types/MovableView.d.ts
CHANGED
|
@@ -3,40 +3,40 @@ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common
|
|
|
3
3
|
interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
4
4
|
/** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
|
|
5
5
|
* @default none
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
|
|
7
7
|
*/
|
|
8
8
|
direction?: 'all' | 'vertical' | 'horizontal' | 'none'
|
|
9
9
|
/** movable-view 是否带有惯性
|
|
10
10
|
* @default false
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
12
12
|
*/
|
|
13
13
|
inertia?: boolean
|
|
14
14
|
/** 超过可移动区域后,movable-view 是否还可以移动
|
|
15
15
|
* @default false
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
17
17
|
*/
|
|
18
18
|
outOfBounds?: boolean
|
|
19
19
|
/** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
|
|
20
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
|
|
20
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
|
|
21
21
|
*/
|
|
22
22
|
x?: number | string
|
|
23
23
|
/** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
|
|
24
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
|
|
24
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
|
|
25
25
|
*/
|
|
26
26
|
y?: number | string
|
|
27
27
|
/** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
28
28
|
* @default 20
|
|
29
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
29
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
30
30
|
*/
|
|
31
31
|
damping?: number
|
|
32
32
|
/** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
|
|
33
33
|
* @default 2
|
|
34
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
34
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
35
35
|
*/
|
|
36
36
|
friction?: number
|
|
37
37
|
/** 是否禁用
|
|
38
38
|
* @default false
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
|
|
40
40
|
*/
|
|
41
41
|
disabled?: boolean
|
|
42
42
|
/** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
|
|
@@ -46,26 +46,26 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
46
46
|
scale?: boolean
|
|
47
47
|
/** 定义缩放倍数最小值
|
|
48
48
|
* @default 0.5
|
|
49
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
49
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
50
50
|
*/
|
|
51
51
|
scaleMin?: number
|
|
52
52
|
/** 定义缩放倍数最大值
|
|
53
53
|
* @default 10
|
|
54
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
54
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
55
55
|
*/
|
|
56
56
|
scaleMax?: number
|
|
57
57
|
/** 定义缩放倍数,取值范围为 0.5 - 10
|
|
58
58
|
* @default 1
|
|
59
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
59
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
60
60
|
*/
|
|
61
61
|
scaleValue?: number
|
|
62
62
|
/** 是否使用动画
|
|
63
63
|
* @default true
|
|
64
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
64
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
65
65
|
*/
|
|
66
66
|
animation?: boolean
|
|
67
67
|
/** 拖动过程中触发的事件
|
|
68
|
-
* @supported weapp, alipay, swan, tt, qq
|
|
68
|
+
* @supported weapp, alipay, swan, tt, qq, ascf
|
|
69
69
|
*/
|
|
70
70
|
onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
|
|
71
71
|
/** 拖动结束触发的事件
|
|
@@ -81,7 +81,7 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
81
81
|
*/
|
|
82
82
|
onDragEnd?: CommonEventFunction
|
|
83
83
|
/** 缩放过程中触发的事件
|
|
84
|
-
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
|
|
84
|
+
* @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
|
|
85
85
|
*/
|
|
86
86
|
onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
|
|
87
87
|
/** 触摸动作开始,事件会向父节点传递。
|
|
@@ -102,11 +102,11 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
|
|
|
102
102
|
*/
|
|
103
103
|
onTouchCancel?: CommonEventFunction
|
|
104
104
|
/** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
105
|
-
* @supported weapp, swan, tt, h5, harmony_hybrid
|
|
105
|
+
* @supported weapp, swan, tt, h5, harmony_hybrid, ascf
|
|
106
106
|
*/
|
|
107
107
|
onHTouchMove?: TouchEventFunction
|
|
108
108
|
/** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
|
|
109
|
-
* @supported weapp, swan, tt, h5, harmony_hybrid
|
|
109
|
+
* @supported weapp, swan, tt, h5, harmony_hybrid, ascf
|
|
110
110
|
*/
|
|
111
111
|
onVTouchMove?: TouchEventFunction
|
|
112
112
|
/** 触摸移动事件,事件仅作用于组件,不向父节点传递。
|
package/types/Navigator.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
interface NavigatorProps extends StandardProps {
|
|
4
4
|
/** 在哪个目标上发生跳转,默认当前小程序
|
|
5
5
|
* @default "self"
|
|
6
|
-
* @supported weapp, swan, qq
|
|
6
|
+
* @supported weapp, swan, qq, ascf
|
|
7
7
|
*/
|
|
8
8
|
target?: keyof NavigatorProps.Target
|
|
9
9
|
/** 当前小程序内的跳转链接
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
|
|
11
11
|
*/
|
|
12
12
|
url?: string
|
|
13
13
|
/** 跳转方式
|
|
14
14
|
* @default "navigate"
|
|
15
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
15
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
|
|
16
16
|
*/
|
|
17
17
|
openType?: keyof NavigatorProps.OpenType
|
|
18
18
|
/** 当 open-type 为 'navigateBack' 时有效,表示回退的层数
|
|
19
|
-
* @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
|
|
19
|
+
* @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid, ascf
|
|
20
20
|
*/
|
|
21
21
|
delta?: number
|
|
22
22
|
/** 当 `target="miniProgram"` 时有效,要打开的小程序 appId
|
|
@@ -37,22 +37,22 @@ interface NavigatorProps extends StandardProps {
|
|
|
37
37
|
version?: keyof NavigatorProps.Version
|
|
38
38
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
39
39
|
* @default "navigator-hover"
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
|
|
41
41
|
*/
|
|
42
42
|
hoverClass?: string
|
|
43
43
|
/** 指定是否阻止本节点的祖先节点出现点击态
|
|
44
44
|
* @default false
|
|
45
|
-
* @supported weapp, swan, tt, qq, jd
|
|
45
|
+
* @supported weapp, swan, tt, qq, jd, ascf
|
|
46
46
|
*/
|
|
47
47
|
hoverStopPropagation?: boolean
|
|
48
48
|
/** 按住后多久出现点击态,单位毫秒
|
|
49
49
|
* @default 50
|
|
50
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
50
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
51
51
|
*/
|
|
52
52
|
hoverStartTime?: number
|
|
53
53
|
/** 手指松开后点击态保留时间,单位毫秒
|
|
54
54
|
* @default 600
|
|
55
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
55
|
+
* @supported weapp, alipay, swan, tt, qq, jd, ascf
|
|
56
56
|
*/
|
|
57
57
|
hoverStayTime?: number
|
|
58
58
|
/** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
|
package/types/Picker.d.ts
CHANGED
|
@@ -11,18 +11,18 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* 选择器类型,默认是普通选择器
|
|
13
13
|
* @default "selector"
|
|
14
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
14
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
15
15
|
*/
|
|
16
16
|
mode?: keyof PickerStandardProps.Mode
|
|
17
17
|
/**
|
|
18
18
|
* 是否禁用
|
|
19
19
|
* @default false
|
|
20
|
-
* @supported weapp, h5, rn, harmony_hybrid
|
|
20
|
+
* @supported weapp, h5, rn, harmony_hybrid, ascf
|
|
21
21
|
*/
|
|
22
22
|
disabled?: boolean
|
|
23
23
|
/**
|
|
24
24
|
* 取消选择或点遮罩层收起 picker 时触发
|
|
25
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
25
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
26
26
|
*/
|
|
27
27
|
onCancel?: CommonEventFunction
|
|
28
28
|
/**
|
|
@@ -56,23 +56,23 @@ interface PickerSelectorProps extends PickerStandardProps {
|
|
|
56
56
|
mode?: 'selector'
|
|
57
57
|
/**
|
|
58
58
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
59
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
59
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
60
60
|
* @default []
|
|
61
61
|
*/
|
|
62
62
|
range: string[] | number[] | Record<string, any>[]
|
|
63
63
|
/**
|
|
64
64
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
65
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
65
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
66
66
|
*/
|
|
67
67
|
rangeKey?: string
|
|
68
68
|
/**
|
|
69
69
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
70
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
70
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
71
71
|
* @default 0
|
|
72
72
|
*/
|
|
73
73
|
value?: number
|
|
74
74
|
/** 设置 React 非受控状态下的初始取值
|
|
75
|
-
* @supported weapp, h5, rn, harmony_hybrid
|
|
75
|
+
* @supported weapp, h5, rn, harmony_hybrid, ascf
|
|
76
76
|
*/
|
|
77
77
|
defaultValue?: number
|
|
78
78
|
/**
|
|
@@ -105,18 +105,18 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
|
105
105
|
mode: 'multiSelector'
|
|
106
106
|
/**
|
|
107
107
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
108
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
108
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
109
109
|
* @default []
|
|
110
110
|
*/
|
|
111
111
|
range: Array<string[]> | Array<number[]> | Array<Record<string, any>[]>
|
|
112
112
|
/**
|
|
113
113
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
114
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
114
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
115
115
|
*/
|
|
116
116
|
rangeKey?: string
|
|
117
117
|
/**
|
|
118
118
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
119
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
119
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
120
120
|
* @default []
|
|
121
121
|
*/
|
|
122
122
|
value: number[] | string[] | Record<string, any>[]
|
|
@@ -134,12 +134,12 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
|
134
134
|
indicatorStyle?: StyleProp<ViewStyle>
|
|
135
135
|
/**
|
|
136
136
|
* 当 value 改变时触发 change 事件
|
|
137
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
137
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
138
138
|
*/
|
|
139
139
|
onChange: CommonEventFunction<PickerMultiSelectorProps.ChangeEventDetail>
|
|
140
140
|
/**
|
|
141
141
|
* 列改变时触发
|
|
142
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
142
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
143
143
|
*/
|
|
144
144
|
onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
|
|
145
145
|
}
|
|
@@ -161,26 +161,26 @@ interface PickerTimeProps extends PickerStandardProps {
|
|
|
161
161
|
mode: 'time'
|
|
162
162
|
/**
|
|
163
163
|
* value 的值表示选择了 range 中的第几个(下标从 0 开始)
|
|
164
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
164
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
165
165
|
*/
|
|
166
166
|
value?: string
|
|
167
167
|
/** 设置 React 非受控状态下的初始取值
|
|
168
|
-
* @supported weapp, h5, rn
|
|
168
|
+
* @supported weapp, h5, rn, ascf
|
|
169
169
|
*/
|
|
170
170
|
defaultValue?: string
|
|
171
171
|
/**
|
|
172
172
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
|
|
173
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
173
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
174
174
|
*/
|
|
175
175
|
start?: string
|
|
176
176
|
/**
|
|
177
177
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
|
|
178
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
178
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
179
179
|
*/
|
|
180
180
|
end?: string
|
|
181
181
|
/**
|
|
182
182
|
* value 改变时触发 change 事件
|
|
183
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
183
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
184
184
|
*/
|
|
185
185
|
onChange: CommonEventFunction<PickerTimeProps.ChangeEventDetail>
|
|
186
186
|
}
|
|
@@ -196,22 +196,22 @@ interface PickerDateProps extends PickerStandardProps {
|
|
|
196
196
|
mode: 'date'
|
|
197
197
|
/**
|
|
198
198
|
* 表示选中的日期,格式为"YYYY-MM-DD"
|
|
199
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
199
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
200
200
|
* @default 0
|
|
201
201
|
*/
|
|
202
202
|
value: string
|
|
203
203
|
/** 设置 React 非受控状态下的初始取值
|
|
204
|
-
* @supported weapp, h5, rn
|
|
204
|
+
* @supported weapp, h5, rn, ascf
|
|
205
205
|
*/
|
|
206
206
|
defaultValue?: string
|
|
207
207
|
/**
|
|
208
208
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"YYYY-MM-DD"
|
|
209
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
209
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
210
210
|
*/
|
|
211
211
|
start?: string
|
|
212
212
|
/**
|
|
213
213
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"YYYY-MM-DD"
|
|
214
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
214
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
215
215
|
*/
|
|
216
216
|
end?: string
|
|
217
217
|
/**
|
|
@@ -222,7 +222,7 @@ interface PickerDateProps extends PickerStandardProps {
|
|
|
222
222
|
fields?: keyof PickerDateProps.Fields
|
|
223
223
|
/**
|
|
224
224
|
* value 改变时触发 change 事件
|
|
225
|
-
* @supported weapp, h5, rn, harmony, harmony_hybrid
|
|
225
|
+
* @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
|
|
226
226
|
*/
|
|
227
227
|
onChange: CommonEventFunction<PickerDateProps.ChangeEventDetail>
|
|
228
228
|
}
|
|
@@ -246,12 +246,12 @@ interface PickerRegionProps extends PickerStandardProps {
|
|
|
246
246
|
mode: 'region'
|
|
247
247
|
/**
|
|
248
248
|
* 表示选中的省市区,默认选中每一列的第一个值
|
|
249
|
-
* @supported weapp, h5, rn, harmony_hybrid
|
|
249
|
+
* @supported weapp, h5, rn, harmony_hybrid, ascf
|
|
250
250
|
* @default []
|
|
251
251
|
*/
|
|
252
252
|
value?: string[]
|
|
253
253
|
/** 设置 React 非受控状态下的初始取值
|
|
254
|
-
* @supported weapp, h5, rn
|
|
254
|
+
* @supported weapp, h5, rn, ascf
|
|
255
255
|
*/
|
|
256
256
|
defaultValue?: string[]
|
|
257
257
|
/**
|
|
@@ -272,7 +272,7 @@ interface PickerRegionProps extends PickerStandardProps {
|
|
|
272
272
|
regionData?: PickerRegionProps.RegionData[]
|
|
273
273
|
/**
|
|
274
274
|
* value 改变时触发 change 事件
|
|
275
|
-
* @supported weapp, h5, rn, harmony_hybrid
|
|
275
|
+
* @supported weapp, h5, rn, harmony_hybrid, ascf
|
|
276
276
|
*/
|
|
277
277
|
onChange: CommonEventFunction<PickerRegionProps.ChangeEventDetail>
|
|
278
278
|
}
|
|
@@ -305,7 +305,7 @@ declare namespace PickerRegionProps {
|
|
|
305
305
|
/**
|
|
306
306
|
* 从底部弹起的滚动选择器
|
|
307
307
|
* @classification forms
|
|
308
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
308
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid, ascf
|
|
309
309
|
* @example_react
|
|
310
310
|
* ```tsx
|
|
311
311
|
* export default class PagePicker extends Component {
|