@tarojs/components 3.5.5 → 3.5.6-alpha.1

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.
Files changed (73) hide show
  1. package/dist/cjs/taro-input-core.cjs.entry.js +24 -3
  2. package/dist/cjs/taro-video-control_3.cjs.entry.js +21 -3
  3. package/dist/collection/components/input/input.js +24 -3
  4. package/dist/collection/components/video/video.js +23 -3
  5. package/dist/collection/utils/json-schema-to-types.js +224 -0
  6. package/dist/esm/taro-input-core.entry.js +24 -3
  7. package/dist/esm/taro-video-control_3.entry.js +21 -3
  8. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  9. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  10. package/dist/taro-components/p-0380841f.system.js +1 -1
  11. package/dist/taro-components/p-232ebfae.system.entry.js +1 -0
  12. package/dist/taro-components/{p-7e8943d8.entry.js → p-3744e978.entry.js} +1 -1
  13. package/dist/taro-components/p-56c86512.entry.js +1 -0
  14. package/dist/taro-components/{p-ed8c1bb8.system.entry.js → p-f81a74bb.system.entry.js} +1 -1
  15. package/dist/taro-components/taro-components.esm.js +1 -1
  16. package/dist/types/components/input/input.d.ts +1 -0
  17. package/dist/types/utils/json-schema-to-types.d.ts +25 -0
  18. package/dist-h5/react/components/index.js +5 -5
  19. package/package.json +9 -5
  20. package/types/Ad.d.ts +99 -9
  21. package/types/AdCustom.d.ts +1 -3
  22. package/types/Audio.d.ts +16 -16
  23. package/types/Block.d.ts +0 -2
  24. package/types/Button.d.ts +187 -47
  25. package/types/Camera.d.ts +20 -18
  26. package/types/Canvas.d.ts +52 -13
  27. package/types/Checkbox.d.ts +13 -10
  28. package/types/CheckboxGroup.d.ts +5 -7
  29. package/types/CoverImage.d.ts +44 -5
  30. package/types/CoverView.d.ts +34 -10
  31. package/types/Editor.d.ts +4 -6
  32. package/types/Form.d.ts +23 -7
  33. package/types/FunctionalPageNavigator.d.ts +5 -3
  34. package/types/Icon.d.ts +19 -7
  35. package/types/Image.d.ts +71 -14
  36. package/types/Input.d.ts +44 -33
  37. package/types/Label.d.ts +0 -3
  38. package/types/LivePlayer.d.ts +80 -24
  39. package/types/LivePusher.d.ts +78 -37
  40. package/types/Map.d.ts +208 -66
  41. package/types/MatchMedia.d.ts +8 -10
  42. package/types/MovableArea.d.ts +1 -3
  43. package/types/MovableView.d.ts +88 -30
  44. package/types/NavigationBar.d.ts +0 -2
  45. package/types/Navigator.d.ts +35 -18
  46. package/types/OfficialAccount.d.ts +10 -3
  47. package/types/OpenData.d.ts +35 -6
  48. package/types/PageContainer.d.ts +13 -10
  49. package/types/PageMeta.d.ts +27 -13
  50. package/types/Picker.d.ts +50 -14
  51. package/types/PickerView.d.ts +31 -13
  52. package/types/PickerViewColumn.d.ts +0 -2
  53. package/types/Progress.d.ts +17 -14
  54. package/types/Radio.d.ts +16 -6
  55. package/types/RadioGroup.d.ts +6 -4
  56. package/types/RichText.d.ts +53 -5
  57. package/types/RootPortal.d.ts +2 -1
  58. package/types/ScrollView.d.ts +82 -19
  59. package/types/ShareElement.d.ts +5 -7
  60. package/types/Slider.d.ts +41 -17
  61. package/types/Swiper.d.ts +100 -22
  62. package/types/SwiperItem.d.ts +6 -3
  63. package/types/Switch.d.ts +22 -8
  64. package/types/Text.d.ts +10 -6
  65. package/types/Textarea.d.ts +61 -28
  66. package/types/Video.d.ts +331 -50
  67. package/types/View.d.ts +122 -9
  68. package/types/VoipRoom.d.ts +6 -9
  69. package/types/WebView.d.ts +9 -7
  70. package/types/common.d.ts +1 -1
  71. package/types/index.vue3.d.ts +261 -138
  72. package/dist/taro-components/p-1b356f4d.entry.js +0 -1
  73. package/dist/taro-components/p-a39276ff.system.entry.js +0 -1
package/types/Canvas.d.ts CHANGED
@@ -1,50 +1,54 @@
1
1
  import { ComponentType } from 'react'
2
- import { StandardProps, CommonEventFunction, CanvasTouchEventFunction, CanvasTouchEvent } from './common'
3
-
2
+ import {
3
+ StandardProps,
4
+ CommonEventFunction,
5
+ CanvasTouchEventFunction,
6
+ CanvasTouchEvent,
7
+ } from './common'
4
8
  interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
5
9
  /** 指定 canvas 类型,支持 2d 和 webgl
6
- * @supported weapp
10
+ * @supported weapp, alipay, tt
7
11
  */
8
12
  type?: string
9
13
 
10
14
  /** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性
11
- * @supported weapp
15
+ * @supported weapp, swan, tt, qq, jd
12
16
  */
13
17
  canvasId?: string
14
18
 
15
19
  /** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
16
20
  * @default false
17
- * @supported weapp
21
+ * @supported weapp, alipay, swan, qq, jd
18
22
  */
19
23
  disableScroll?: boolean
20
24
 
21
25
  /** 手指触摸动作开始
22
- * @supported weapp
26
+ * @supported weapp, alipay, swan, tt, qq, jd
23
27
  */
24
28
  onTouchStart?: CanvasTouchEventFunction
25
29
 
26
30
  /** 手指触摸后移动
27
- * @supported weapp
31
+ * @supported weapp, alipay, swan, tt, qq, jd
28
32
  */
29
33
  onTouchMove?: CanvasTouchEventFunction
30
34
 
31
35
  /** 手指触摸动作结束
32
- * @supported weapp
36
+ * @supported weapp, alipay, swan, tt, qq, jd
33
37
  */
34
38
  onTouchEnd?: CanvasTouchEventFunction
35
39
 
36
40
  /** 手指触摸动作被打断,如来电提醒,弹窗
37
- * @supported weapp
41
+ * @supported weapp, alipay, swan, tt, qq, jd
38
42
  */
39
43
  onTouchCancel?: CanvasTouchEventFunction
40
44
 
41
45
  /** 手指长按 500ms 之后触发,触发了长按事件后进行移动不会触发屏幕的滚动
42
- * @supported weapp
46
+ * @supported weapp, alipay, swan, qq, jd
43
47
  */
44
48
  onLongTap?: CommonEventFunction
45
49
 
46
50
  /** 当发生错误时触发 error 事件,detail = {errMsg: 'something wrong'}
47
- * @supported weapp
51
+ * @supported weapp, swan, qq, jd
48
52
  */
49
53
  onError?: CommonEventFunction<CanvasProps.onErrorEventDetail>
50
54
 
@@ -52,8 +56,44 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
52
56
  * @supported h5
53
57
  */
54
58
  nativeProps?: Record<string, unknown>
55
- }
56
59
 
60
+ /** 组件唯一标识符。
61
+ * 注意:同一页面中的 id 不可重复。
62
+ * @supported alipay
63
+ */
64
+ id?: string
65
+
66
+ /** -
67
+ * @supported alipay
68
+ */
69
+ style?: string
70
+
71
+ /** -
72
+ * @supported alipay
73
+ */
74
+ class?: string
75
+
76
+ /**
77
+ * @supported alipay
78
+ */
79
+ width?: string
80
+
81
+ /**
82
+ * @supported alipay
83
+ */
84
+ height?: string
85
+
86
+ /** 点击。
87
+ * @supported alipay
88
+ */
89
+ onTap?: CommonEventFunction
90
+
91
+ /** canvas 组件初始化成功触发。
92
+ * 版本要求:基础库 2.7.0 及以上
93
+ * @supported alipay
94
+ */
95
+ onReady?: CommonEventFunction
96
+ }
57
97
  declare namespace CanvasProps {
58
98
  interface onErrorEventDetail {
59
99
  errMsg: string
@@ -86,5 +126,4 @@ declare namespace CanvasProps {
86
126
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html
87
127
  */
88
128
  declare const Canvas: ComponentType<CanvasProps>
89
-
90
129
  export { Canvas, CanvasProps }
@@ -1,39 +1,44 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
-
4
3
  interface CheckboxProps extends StandardProps {
5
-
6
4
  /** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
7
- * @supported weapp, rn, tt
5
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
8
6
  */
9
7
  value: string
10
8
 
11
9
  /** 是否禁用
12
- * @supported weapp, h5, rn, tt
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
13
11
  * @default false
14
12
  */
15
13
  disabled?: boolean
16
14
 
17
15
  /** 当前是否选中,可用来设置默认选中
18
- * @supported weapp, h5, rn, tt
16
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
19
17
  * @default false
20
18
  */
21
19
  checked?: boolean
22
20
 
23
21
  /** checkbox的颜色,同 css 的 color
24
- * @supported weapp, h5, rn, tt
22
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
25
23
  */
26
24
  color?: string
27
25
 
28
26
  /** 选中项发生变化时触发 change 事件,小程序无此 API
29
- * @supported h5, rn
27
+ * @supported alipay, h5, rn
30
28
  */
31
- onChange?: CommonEventFunction<{ value: string[] }>
29
+ onChange?: CommonEventFunction<{
30
+ value: string[]
31
+ }>
32
32
 
33
33
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
34
34
  * @supported h5
35
35
  */
36
36
  nativeProps?: Record<string, unknown>
37
+
38
+ /** 无障碍访问,(属性)元素的额外描述
39
+ * @supported qq
40
+ */
41
+ ariaLabel?: string
37
42
  }
38
43
 
39
44
  /** 多选项目
@@ -161,6 +166,4 @@ interface CheckboxProps extends StandardProps {
161
166
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
162
167
  */
163
168
  declare const Checkbox: ComponentType<CheckboxProps>
164
-
165
-
166
169
  export { Checkbox, CheckboxProps }
@@ -1,18 +1,17 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
-
4
3
  interface CheckboxGroupProps extends StandardProps, FormItemProps {
5
4
  /** 表单组件中加上 name 来作为 key
6
- * @supported h5, tt
5
+ * @supported alipay, tt, h5
7
6
  */
8
7
  name?: string
9
8
 
10
9
  /** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
11
- *
12
- * event.detail = { value: [选中的checkbox的 value 的数组] }
13
- * @supported weapp, h5, rn, tt
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
11
  */
15
- onChange?: CommonEventFunction<{ value: string[] }>
12
+ onChange?: CommonEventFunction<{
13
+ value: string[]
14
+ }>
16
15
  }
17
16
 
18
17
  /** 多项选择器,内部由多个checkbox组成
@@ -81,5 +80,4 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
81
80
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox-group.html
82
81
  */
83
82
  declare const CheckboxGroup: ComponentType<CheckboxGroupProps>
84
-
85
83
  export { CheckboxGroup, CheckboxGroupProps }
@@ -1,21 +1,61 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface CoverImageProps extends StandardProps {
5
4
  /** 图标路径,支持临时路径、网络地址、云文件ID。暂不支持base64格式。
6
- * @supported weapp, h5
5
+ * @supported weapp, alipay, swan, qq, h5
7
6
  */
8
7
  src: string
9
8
 
10
9
  /** 图片加载成功时触发
11
- * @supported weapp, h5
10
+ * @supported weapp, swan, qq, h5
12
11
  */
13
12
  onLoad?: CommonEventFunction
14
13
 
15
14
  /** 图片加载失败时触发
16
- * @supported weapp, h5
15
+ * @supported weapp, swan, qq, h5
17
16
  */
18
17
  onError?: CommonEventFunction
18
+
19
+ /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
20
+ * @supported weapp
21
+ */
22
+ referrerPolicy?: 'origin' | 'no-referrer'
23
+
24
+ /** 点击事件回调。
25
+ * 版本要求: 基础库 1.9.0 及以上
26
+ * @supported alipay
27
+ */
28
+ onTap?: CommonEventFunction
29
+
30
+ /** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
31
+ * @supported swan
32
+ */
33
+ fixedTop?: string
34
+
35
+ /** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
36
+ * @supported swan
37
+ */
38
+ fixedRight?: string
39
+
40
+ /** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
41
+ * @supported swan
42
+ */
43
+ fixedBottom?: string
44
+
45
+ /** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
46
+ * @supported swan
47
+ */
48
+ fixedLeft?: string
49
+
50
+ /** 无障碍访问,(角色)标识元素的作用
51
+ * @supported qq
52
+ */
53
+ ariaRole?: string
54
+
55
+ /** 无障碍访问,(属性)元素的额外描述
56
+ * @supported qq
57
+ */
58
+ ariaLabel?: string
19
59
  }
20
60
 
21
61
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
@@ -82,5 +122,4 @@ interface CoverImageProps extends StandardProps {
82
122
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html
83
123
  */
84
124
  declare const CoverImage: ComponentType<CoverImageProps>
85
-
86
125
  export { CoverImage, CoverImageProps }
@@ -1,22 +1,47 @@
1
1
  import { ComponentType } from 'react'
2
+ import { CommonEventFunction } from './common'
2
3
  import { ViewProps } from './View'
3
-
4
4
  interface CoverViewProps extends ViewProps {
5
5
  /** 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效
6
- * @supported weapp
6
+ * @supported weapp, swan, qq
7
7
  */
8
8
  scrollTop?: number
9
9
 
10
- /**
11
- * 适用于地图组件 map 的自定义气泡 customCallout
12
- * @supported weapp
10
+ /** 点击事件回调。
11
+ * 版本要求:基础库 1.9.0 及以上
12
+ * @supported alipay
13
+ */
14
+ onTap?: CommonEventFunction
15
+
16
+ /** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
17
+ * @supported swan
18
+ */
19
+ fixedTop?: string
20
+
21
+ /** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
22
+ * @supported swan
23
+ */
24
+ fixedRight?: string
25
+
26
+ /** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
27
+ * @supported swan
28
+ */
29
+ fixedBottom?: string
30
+
31
+ /** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
32
+ * @supported swan
13
33
  */
14
- markerId?: string
34
+ fixedLeft?: string
15
35
 
16
- /**
17
- * @supported weapp
36
+ /** 无障碍访问,(角色)标识元素的作用
37
+ * @supported qq
18
38
  */
19
- slot?: string
39
+ ariaRole?: string
40
+
41
+ /** 无障碍访问,(属性)元素的额外描述
42
+ * @supported qq
43
+ */
44
+ ariaLabel?: string
20
45
  }
21
46
 
22
47
  /** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
@@ -84,5 +109,4 @@ interface CoverViewProps extends ViewProps {
84
109
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html
85
110
  */
86
111
  declare const CoverView: ComponentType<CoverViewProps>
87
-
88
112
  export { CoverView, CoverViewProps }
package/types/Editor.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface EditorProps extends StandardProps {
5
4
  /** 设置编辑器为只读
6
5
  * @default false
@@ -37,7 +36,6 @@ interface EditorProps extends StandardProps {
37
36
  onReady?: CommonEventFunction
38
37
 
39
38
  /** 编辑器聚焦时触发
40
- * event.detail = { html, text, delta }
41
39
  * @supported weapp
42
40
  */
43
41
  onFocus?: CommonEventFunction<EditorProps.editorEventDetail>
@@ -57,12 +55,13 @@ interface EditorProps extends StandardProps {
57
55
  /** 通过 Context 方法改变编辑器内样式时触发,返回选区已设置的样式
58
56
  * @supported weapp
59
57
  */
60
- onStatuschange?: CommonEventFunction
58
+ onStatusChange?: CommonEventFunction
61
59
  }
62
-
63
60
  declare namespace EditorProps {
64
61
  interface editorEventDetail {
65
- html, text, delta
62
+ html
63
+ text
64
+ delta
66
65
  }
67
66
  }
68
67
 
@@ -139,5 +138,4 @@ declare namespace EditorProps {
139
138
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/editor.html
140
139
  */
141
140
  declare const Editor: ComponentType<EditorProps>
142
-
143
141
  export { Editor, EditorProps }
package/types/Form.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface FormProps extends StandardProps {
5
4
  /** 是否返回 `formId` 用于发送模板消息。
6
5
  * @default false
7
- * @supported weapp, h5
6
+ * @supported weapp, alipay, swan, qq, jd, h5
8
7
  */
9
8
  reportSubmit?: boolean
10
9
 
@@ -19,17 +18,34 @@ interface FormProps extends StandardProps {
19
18
  reportSubmitTimeout?: number
20
19
 
21
20
  /** 携带 form 中的数据触发 submit 事件
22
- * event.detail = { value : {'name': 'value'} , formId: '' }
23
- * @supported weapp, rn, tt
21
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
24
22
  */
25
23
  onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
26
24
 
27
25
  /** 表单重置时会触发 reset 事件
28
- * @supported weapp, h5, rn, tt
26
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
29
27
  */
30
28
  onReset?: CommonEventFunction
31
- }
32
29
 
30
+ /** 模板消息的类型,report-submit 为 true 时填写有效
31
+ * 取值:default / subscribe
32
+ * @default 'default'
33
+ * @supported swan
34
+ */
35
+ reportType?: string
36
+
37
+ /** 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取
38
+ * 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID (注:此处填写模板库id。示例:BD0001)
39
+ * @supported swan
40
+ */
41
+ templateId?: string | Array<string>
42
+
43
+ /** 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景
44
+ * 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id
45
+ * @supported swan
46
+ */
47
+ subscribeId?: string
48
+ }
33
49
  declare namespace FormProps {
34
50
  interface onSubmitEventDetail {
35
51
  /** 当点击 `<form>` 表单中 `form-type` 为 `submit` 的 `<button>` 组件时,
@@ -39,6 +55,7 @@ declare namespace FormProps {
39
55
  value?: {
40
56
  [formItemName: string]: any
41
57
  }
58
+
42
59
  /** 当 `reportSubmit` 为 `true` 时,返回 `formId` 用于发送模板消息。
43
60
  */
44
61
  formId?: string
@@ -107,5 +124,4 @@ declare namespace FormProps {
107
124
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/form.html
108
125
  */
109
126
  declare const Form: ComponentType<FormProps>
110
-
111
127
  export { Form, FormProps }
@@ -1,6 +1,5 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface FunctionalPageNavigatorProps extends StandardProps {
5
4
  /** 跳转到的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版);线上版本必须设置为 release
6
5
  * @default "release"
@@ -33,23 +32,27 @@ interface FunctionalPageNavigatorProps extends StandardProps {
33
32
  */
34
33
  onCancel?: CommonEventFunction
35
34
  }
36
-
37
35
  declare namespace FunctionalPageNavigatorProps {
38
36
  /** version 的合法值 */
39
37
  interface Version {
40
38
  /** 开发版 */
41
39
  develop
40
+
42
41
  /** 体验版 */
43
42
  trial
43
+
44
44
  /** 正式版 */
45
45
  release
46
46
  }
47
+
47
48
  /** name 的合法值 */
48
49
  interface Name {
49
50
  /** [用户信息功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/user-info.html) */
50
51
  loginAndGetUserInfo
52
+
51
53
  /** [支付功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/request-payment.html) */
52
54
  requestPayment
55
+
53
56
  /** [收货地址功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/choose-address.html) */
54
57
  chooseAddress
55
58
  }
@@ -61,5 +64,4 @@ declare namespace FunctionalPageNavigatorProps {
61
64
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/functional-page-navigator.html
62
65
  */
63
66
  declare const FunctionalPageNavigator: ComponentType<FunctionalPageNavigatorProps>
64
-
65
67
  export { FunctionalPageNavigator, FunctionalPageNavigatorProps }
package/types/Icon.d.ts CHANGED
@@ -1,47 +1,60 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
-
4
3
  interface IconProps extends StandardProps {
5
4
  /** icon 的类型
6
- * @supported weapp, swan, alipay, tt, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
7
6
  */
8
7
  type: keyof IconProps.TIconType
9
8
 
10
9
  /** icon 的大小,单位px
11
10
  * @default 23
12
- * @supported weapp, swan, alipay, tt, h5, rn
11
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
13
12
  */
14
- size?: string,
13
+ size?: string
15
14
 
16
15
  /** icon 的颜色,同 css 的 color
17
- * @supported weapp, swan, alipay, tt, h5, rn
16
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
18
17
  */
19
18
  color?: string
20
- }
21
19
 
20
+ /** 无障碍访问,(属性)元素的额外描述
21
+ * @supported qq
22
+ */
23
+ ariaLabel?: string
24
+ }
22
25
  declare namespace IconProps {
23
26
  /** icon 的类型 */
24
27
  interface TIconType {
25
28
  /** 成功图标 */
26
29
  success
30
+
27
31
  /** 成功图标(不带外圈) */
28
32
  success_no_circle
33
+
29
34
  /** 信息图标 */
30
35
  info
36
+
31
37
  /** 警告图标 */
32
38
  warn
39
+
33
40
  /** 等待图标 */
34
41
  waiting
42
+
35
43
  /** 取消图标 */
36
44
  cancel
45
+
37
46
  /** 下载图标 */
38
47
  download
48
+
39
49
  /** 搜索图标 */
40
50
  search
51
+
41
52
  /** 清除图标 */
42
53
  clear
54
+
43
55
  /** 圆环图标(多选控件图标未选择)「微信文档未标注属性」 */
44
56
  circle
57
+
45
58
  /** 带圆环的信息图标「微信文档未标注属性」 */
46
59
  info_circle
47
60
  }
@@ -95,5 +108,4 @@ declare namespace IconProps {
95
108
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/icon.html
96
109
  */
97
110
  declare const Icon: ComponentType<IconProps>
98
-
99
111
  export { Icon, IconProps }