@tarojs/components 3.7.0-alpha.26 → 3.7.0-alpha.27

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 (87) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/taro-components.cjs.js +1 -1
  3. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +35 -35
  4. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -0
  5. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +11 -1
  6. package/dist/cjs/taro-video-control_3.cjs.entry.js +4 -3
  7. package/dist/collection/components/picker-view/picker-view-column.js +27 -55
  8. package/dist/collection/components/picker-view/picker-view.js +14 -2
  9. package/dist/collection/components/scroll-view/scroll-view.js +2 -0
  10. package/dist/collection/components/swiper/swiper.js +12 -1
  11. package/dist/collection/components/tabbar/tabbar-item.js +1 -1
  12. package/dist/collection/components/tabbar/tabbar.js +4 -4
  13. package/dist/collection/components/video/video.js +4 -3
  14. package/dist/components/taro-picker-view-column-core.js +26 -36
  15. package/dist/components/taro-picker-view-core.js +11 -2
  16. package/dist/components/taro-scroll-view-core.js +2 -0
  17. package/dist/components/taro-swiper-core.js +12 -1
  18. package/dist/components/taro-video-core.js +4 -3
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/taro-components.js +1 -1
  21. package/dist/esm/taro-picker-view-column-core_2.entry.js +35 -35
  22. package/dist/esm/taro-scroll-view-core.entry.js +2 -0
  23. package/dist/esm/taro-swiper-core_2.entry.js +11 -1
  24. package/dist/esm/taro-video-control_3.entry.js +4 -3
  25. package/dist/esm-es5/loader.js +1 -1
  26. package/dist/esm-es5/taro-components.js +1 -1
  27. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  28. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  29. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  30. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  31. package/dist/taro-components/p-06671eee.entry.js +1 -0
  32. package/dist/taro-components/{p-85fce63e.system.entry.js → p-7102ecf5.system.entry.js} +1 -1
  33. package/dist/taro-components/p-9b0298bf.entry.js +1 -0
  34. package/dist/taro-components/{p-d35c8257.system.entry.js → p-9dcba4a7.system.entry.js} +1 -1
  35. package/dist/taro-components/p-9feff958.system.entry.js +1 -0
  36. package/dist/taro-components/p-b0fc8752.entry.js +1 -0
  37. package/dist/taro-components/{p-fefedf44.entry.js → p-d8fe59c7.entry.js} +1 -1
  38. package/dist/taro-components/p-ed331c06.system.js +1 -1
  39. package/dist/taro-components/{p-7fb57a30.system.entry.js → p-eee6e075.system.entry.js} +1 -1
  40. package/dist/taro-components/taro-components.esm.js +1 -1
  41. package/dist/types/components/picker-view/picker-view-column.d.ts +3 -3
  42. package/dist/types/components/picker-view/picker-view.d.ts +2 -0
  43. package/dist/types/components/swiper/swiper.d.ts +1 -0
  44. package/dist/types/components/tabbar/tabbar-item.d.ts +4 -4
  45. package/dist/types/components/tabbar/tabbar.d.ts +17 -16
  46. package/dist/types/components.d.ts +2 -3
  47. package/lib/react/component-lib/reactify-wc.js +1 -1
  48. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  49. package/lib/vue2/components.d.ts +1 -1
  50. package/lib/vue3/components.d.ts +3 -1
  51. package/package.json +5 -5
  52. package/types/Button.d.ts +5 -5
  53. package/types/Camera.d.ts +1 -1
  54. package/types/Canvas.d.ts +1 -1
  55. package/types/ChannelVideo.d.ts +2 -2
  56. package/types/Checkbox.d.ts +10 -5
  57. package/types/CoverImage.d.ts +1 -1
  58. package/types/Form.d.ts +2 -2
  59. package/types/Icon.d.ts +2 -2
  60. package/types/Image.d.ts +3 -2
  61. package/types/Input.d.ts +15 -15
  62. package/types/Label.d.ts +1 -1
  63. package/types/LivePlayer.d.ts +11 -4
  64. package/types/Map.d.ts +46 -3
  65. package/types/NavigationBar.d.ts +7 -1
  66. package/types/Navigator.d.ts +1 -1
  67. package/types/PageMeta.d.ts +40 -0
  68. package/types/Picker.d.ts +20 -20
  69. package/types/PickerView.d.ts +1 -1
  70. package/types/PickerViewColumn.d.ts +1 -1
  71. package/types/Progress.d.ts +1 -1
  72. package/types/Radio.d.ts +10 -5
  73. package/types/RadioGroup.d.ts +1 -1
  74. package/types/ScrollView.d.ts +4 -4
  75. package/types/Slider.d.ts +14 -14
  76. package/types/Slot.d.ts +1 -1
  77. package/types/Swiper.d.ts +13 -9
  78. package/types/SwiperItem.d.ts +1 -1
  79. package/types/Switch.d.ts +5 -5
  80. package/types/Text.d.ts +2 -2
  81. package/types/Textarea.d.ts +7 -7
  82. package/types/Video.d.ts +16 -16
  83. package/types/common.d.ts +5 -0
  84. package/dist/taro-components/p-1991cc1a.system.entry.js +0 -1
  85. package/dist/taro-components/p-25632af9.entry.js +0 -1
  86. package/dist/taro-components/p-4a3357a4.entry.js +0 -1
  87. package/dist/taro-components/p-a20ecd3b.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.7.0-alpha.26",
3
+ "version": "3.7.0-alpha.27",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -37,9 +37,9 @@
37
37
  "resolve-pathname": "^3.0.0",
38
38
  "swiper": "6.8.0",
39
39
  "weui": "^1.1.2",
40
- "@tarojs/components-advanced": "3.7.0-alpha.26",
41
- "@tarojs/router": "3.7.0-alpha.26",
42
- "@tarojs/taro": "3.7.0-alpha.26"
40
+ "@tarojs/components-advanced": "3.7.0-alpha.27",
41
+ "@tarojs/router": "3.7.0-alpha.27",
42
+ "@tarojs/taro": "3.7.0-alpha.27"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/generator": "^7.20.0",
@@ -53,7 +53,7 @@
53
53
  "@types/node": "^14.14.31",
54
54
  "change-case": "^4.1.2",
55
55
  "csstype": "^3.1.1",
56
- "esbuild": "^0.14.27",
56
+ "esbuild": "~0.19.5",
57
57
  "jquery": "^3.4.1",
58
58
  "lodash": "^4.17.21",
59
59
  "miniapp-types": "1.6.0",
package/types/Button.d.ts CHANGED
@@ -8,27 +8,27 @@ interface ButtonProps extends StandardProps {
8
8
  */
9
9
  size?: keyof ButtonProps.Size
10
10
  /** 按钮的样式类型
11
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
11
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
12
12
  * @default default
13
13
  */
14
14
  type?: keyof ButtonProps.Type
15
15
  /** 按钮是否镂空,背景色透明
16
- * @supported weapp, alipay, swan, qq, jd, h5, rn
16
+ * @supported weapp, alipay, swan, qq, jd, h5, rn, harmony
17
17
  * @default false
18
18
  */
19
19
  plain?: boolean
20
20
  /** 是否禁用
21
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
21
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
22
22
  * @default false
23
23
  */
24
24
  disabled?: boolean
25
25
  /** 名称前是否带 loading 图标
26
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
26
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
27
27
  * @default false
28
28
  */
29
29
  loading?: boolean
30
30
  /** 用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件
31
- * @supported weapp, alipay, swan, tt, qq, jd
31
+ * @supported weapp, alipay, swan, tt, qq, jd, harmony
32
32
  */
33
33
  formType?: keyof ButtonProps.FormType
34
34
  /** 微信开放能力
package/types/Camera.d.ts CHANGED
@@ -121,7 +121,7 @@ declare namespace CameraProps {
121
121
  }
122
122
  /** 系统相机
123
123
  * @classification media
124
- * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
124
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
125
125
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
126
126
  */
127
127
  declare const Camera: ComponentType<CameraProps>
package/types/Canvas.d.ts CHANGED
@@ -73,7 +73,7 @@ declare namespace CanvasProps {
73
73
  *
74
74
  * `<Canvas />` 组件的 RN 版本尚未实现。
75
75
  * @classification canvas
76
- * @supported weapp, alipay, swan, tt, qq, jd, h5
76
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
77
77
  * @example_react
78
78
  * ```tsx
79
79
  * class App extends Components {
@@ -1,7 +1,7 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface ChannelVideoProps extends StandardProps {
4
- /** 视频 feedId
4
+ /** 仅视频号视频与小程序同主体时生效。若内嵌非同主体视频,请使用 feed-token。
5
5
  * @supported weapp
6
6
  */
7
7
  feedId: string
@@ -29,7 +29,7 @@ interface ChannelVideoProps extends StandardProps {
29
29
  * @default false
30
30
  */
31
31
  autoplay?: boolean
32
- /** 仅内嵌小程序非同主体视频号视频时使用,获取方式参考本指引。
32
+ /** 仅内嵌小程序非同主体视频号视频时使用,获取方式参考[本指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/channels-activity.html#feed-token)。
33
33
  * @supported weapp
34
34
  */
35
35
  feedToken?: string
@@ -2,23 +2,28 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxProps extends StandardProps {
4
4
  /** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
6
6
  */
7
7
  value: string
8
8
  /** 是否禁用
9
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
10
10
  * @default false
11
11
  */
12
12
  disabled?: boolean
13
13
  /** 当前是否选中,可用来设置默认选中
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
15
15
  * @default false
16
16
  */
17
17
  checked?: boolean
18
18
  /** checkbox的颜色,同 css 的 color
19
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
20
20
  */
21
21
  color?: string
22
+ /**
23
+ * Checkbox 的名字
24
+ * @supported h5, harmony
25
+ */
26
+ name?: string
22
27
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
23
28
  * @supported h5
24
29
  */
@@ -28,7 +33,7 @@ interface CheckboxProps extends StandardProps {
28
33
  */
29
34
  ariaLabel?: string
30
35
  /** 选中项发生变化时触发 change 事件,小程序无此 API
31
- * @supported alipay, h5, rn
36
+ * @supported alipay, h5, rn, harmony
32
37
  */
33
38
  onChange?: CommonEventFunction<{
34
39
  value: string[]
@@ -48,7 +48,7 @@ interface CoverImageProps extends StandardProps {
48
48
  }
49
49
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
50
50
  * @classification viewContainer
51
- * @supported weapp, alipay, swan, qq, jd, h5, harmony
51
+ * @supported weapp, alipay, swan, qq, jd, h5
52
52
  * @example_react
53
53
  * ```tsx
54
54
  * // js
package/types/Form.d.ts CHANGED
@@ -43,11 +43,11 @@ interface FormProps extends StandardProps {
43
43
  */
44
44
  clueComponentId?: string
45
45
  /** 携带 form 中的数据触发 submit 事件
46
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
46
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
47
47
  */
48
48
  onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
49
49
  /** 表单重置时会触发 reset 事件
50
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
50
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
51
51
  */
52
52
  onReset?: CommonEventFunction
53
53
  }
package/types/Icon.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface IconProps extends StandardProps {
4
4
  /** icon 的类型
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
6
6
  */
7
7
  type: keyof IconProps.TIconType
8
8
  /** icon 的大小,单位px
@@ -11,7 +11,7 @@ interface IconProps extends StandardProps {
11
11
  */
12
12
  size?: string
13
13
  /** icon 的颜色,同 css 的 color
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
15
15
  */
16
16
  color?: string
17
17
  /** 无障碍访问,(属性)元素的额外描述
package/types/Image.d.ts CHANGED
@@ -2,13 +2,14 @@ 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
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
6
6
  */
7
7
  src: string
8
8
  /** 图片裁剪、缩放的模式
9
9
  * @default "scaleToFill"
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
11
11
  * @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
12
+ * @harmony 部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix
12
13
  */
13
14
  mode?: keyof ImageProps.Mode
14
15
  /** 默认不解析 webP 格式,只支持网络资源
package/types/Input.d.ts CHANGED
@@ -2,25 +2,25 @@ 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
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
6
6
  */
7
7
  value?: string
8
8
  /** input 的类型
9
9
  * @default "text"
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
11
11
  */
12
12
  type?: keyof InputProps.Type
13
13
  /** 是否是密码类型
14
14
  * @default false
15
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
15
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
16
16
  */
17
17
  password?: boolean
18
18
  /** 输入框为空时占位符
19
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
20
20
  */
21
21
  placeholder?: string
22
22
  /** 指定 placeholder 的样式
23
- * @supported weapp, alipay, swan, tt, qq, jd, rn
23
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
24
24
  */
25
25
  placeholderStyle?: string
26
26
  /** 指定 placeholder 的样式类
@@ -29,7 +29,7 @@ interface InputProps extends StandardProps, FormItemProps {
29
29
  */
30
30
  placeholderClass?: string
31
31
  /** 指定 placeholder 的文本颜色
32
- * @supported rn
32
+ * @supported rn, harmony
33
33
  */
34
34
  placeholderTextColor?: string
35
35
  /** 是否禁用
@@ -39,7 +39,7 @@ interface InputProps extends StandardProps, FormItemProps {
39
39
  disabled?: boolean
40
40
  /** 最大输入长度,设置为 -1 的时候不限制最大长度
41
41
  * @default 140
42
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
42
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
43
43
  */
44
44
  maxlength?: number
45
45
  /** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
@@ -61,7 +61,7 @@ interface InputProps extends StandardProps, FormItemProps {
61
61
  /** 设置键盘右下角按钮的文字,仅在type='text'时生效
62
62
  * @alipay confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system
63
63
  * @default done
64
- * @supported weapp, alipay, swan, tt, qq, jd, rn
64
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
65
65
  */
66
66
  confirmType?: keyof InputProps.ConfirmType
67
67
  /** 点击键盘右下角按钮时是否保持键盘不收起
@@ -70,7 +70,7 @@ interface InputProps extends StandardProps, FormItemProps {
70
70
  */
71
71
  confirmHold?: boolean
72
72
  /** 指定focus时的光标位置
73
- * @supported weapp, alipay, swan, tt, qq, jd, rn
73
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
74
74
  */
75
75
  cursor?: number
76
76
  /** 光标起始位置,自动聚集时有效,需与selection-end搭配使用
@@ -85,7 +85,7 @@ interface InputProps extends StandardProps, FormItemProps {
85
85
  selectionEnd?: number
86
86
  /** 键盘弹起时,是否自动上推页面
87
87
  * @default true
88
- * @supported weapp, swan, tt, qq, jd
88
+ * @supported weapp, swan, tt, qq, jd, harmony
89
89
  */
90
90
  adjustPosition?: boolean
91
91
  /** focus 时,点击页面的时候不收起键盘
@@ -166,23 +166,23 @@ interface InputProps extends StandardProps, FormItemProps {
166
166
  */
167
167
  clueType?: number
168
168
  /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
169
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
169
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
170
170
  */
171
171
  onInput?: CommonEventFunction<InputProps.inputEventDetail>
172
172
  /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
173
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
173
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
174
174
  */
175
175
  onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
176
176
  /** 输入框失去焦点时触发
177
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
177
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
178
178
  */
179
179
  onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
180
180
  /** 点击完成按钮时触发
181
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
181
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
182
182
  */
183
183
  onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
184
184
  /** 键盘高度发生变化的时候触发此事件
185
- * @supported weapp, tt, qq
185
+ * @supported weapp, tt, qq, harmony
186
186
  */
187
187
  onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
188
188
  /** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效,event.detail = { pass, timeout }
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
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
6
6
  */
7
7
  for?: string
8
8
  }
@@ -61,10 +61,12 @@ interface LivePlayerProps extends StandardProps {
61
61
  */
62
62
  pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
63
63
  /** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
64
+ * @default true
64
65
  * @supported weapp, qq
65
66
  */
66
- autoPauseIfOpenNative?: string
67
- /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
67
+ autoPauseIfOpenNative?: boolean
68
+ /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html ,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
69
+ * @default 'no-referrer'
68
70
  * @supported weapp
69
71
  */
70
72
  referrerPolicy?: 'origin' | 'no-referrer'
@@ -125,11 +127,16 @@ interface LivePlayerProps extends StandardProps {
125
127
  /** 用户选择投屏设备时触发 detail = { state: "success"/"fail" }
126
128
  * @supported weapp
127
129
  */
128
- onCastingUserSelect?: CommonEventFunction
130
+ onCastingUserSelect?: CommonEventFunction<{
131
+ state: 'success' | 'fail'
132
+ }>
129
133
  /** 投屏成功/失败时触发 detail = { type, state: "success"/"fail" }
130
134
  * @supported weapp
131
135
  */
132
- onCastingStateChange?: CommonEventFunction
136
+ onCastingStateChange?: CommonEventFunction<{
137
+ type: any
138
+ state: 'success' | 'fail'
139
+ }>
133
140
  /** 投屏被中断时触发
134
141
  * @supported weapp
135
142
  */
package/types/Map.d.ts CHANGED
@@ -30,8 +30,9 @@ interface MapProps extends StandardProps {
30
30
  * @supported weapp, alipay, swan, tt, qq, jd
31
31
  */
32
32
  markers?: MapProps.marker[]
33
- /** 标记点
33
+ /** **即将移除,请使用 markers**
34
34
  * @supported weapp
35
+ * @deprecated
35
36
  */
36
37
  covers?: any[]
37
38
  /** 路线
@@ -217,14 +218,38 @@ interface MapProps extends StandardProps {
217
218
  * @supported weapp, swan, qq
218
219
  */
219
220
  onPoiTap?: CommonEventFunction<MapProps.onPoiTapEventDetail>
221
+ /** 点击地图路线时触发,e.detail = {longitude, latitude}
222
+ * @supported weapp, swan, qq
223
+ */
224
+ onPolylineTap?: CommonEventFunction<MapProps.onPolylineTapEventDetail>
225
+ /** 地图能力生效时触发,e.detail = {ability, errCode, errMsg}
226
+ * @supported weapp
227
+ */
228
+ onAbilitySuccess?: CommonEventFunction<MapProps.onAbilityEventDetail>
229
+ /** 地图能力失败时触发,e.detail = {ability, errCode, errMsg}
230
+ * @supported weapp
231
+ */
232
+ onAbilityFailed?: CommonEventFunction<MapProps.onAbilityEventDetail>
233
+ /** 地图鉴权结果成功时触发,e.detail = {errCode, errMsg}
234
+ * @supported weapp
235
+ */
236
+ onAuthSuccess?: CommonEventFunction<{ errCode: number; errMsg: string }>
237
+ /** MapContext.moveAlong 插值动画时触发。e.detail = {markerId, longitude, latitude, animationStatus: "interpolating" | "complete"}
238
+ * @supported weapp
239
+ */
240
+ onInterpolatePoint?: CommonEventFunction<MapProps.onInterpolatePointEventDetail>
241
+ /** 组件错误时触发,例如创建或鉴权失败,e.detail = {longitude, latitude}
242
+ * @supported weapp
243
+ */
244
+ onError: CommonEventFunction<MapProps.point>
220
245
  /** 点击标记点对应的气泡时触发e.detail = {markerId}
221
246
  * @supported weapp, swan, tt, jd
222
247
  */
223
- onCallOutTap?: CommonEventFunction
248
+ onCallOutTap?: CommonEventFunction<MapProps.onCalloutTapEventDetail>
224
249
  /** 点击定位标时触发,e.detail = {longitude, latitude}
225
250
  * @supported weapp, tt
226
251
  */
227
- onAnchorPointTap?: CommonEventFunction
252
+ onAnchorPointTap?: CommonEventFunction<MapProps.point>
228
253
  /** 点击 panel 时触发。
229
254
  * @supported alipay
230
255
  */
@@ -612,6 +637,24 @@ declare namespace MapProps {
612
637
  longitude: number
613
638
  latitude: number
614
639
  }
640
+
641
+ interface onPolylineTapEventDetail {
642
+ polylineId: number
643
+ longitude: number
644
+ latitude: number
645
+ }
646
+ interface onAbilityEventDetail {
647
+ ability: string
648
+ errCode: number
649
+ errMsg: string
650
+ }
651
+
652
+ interface onInterpolatePointEventDetail {
653
+ markerId: number
654
+ longitude: number
655
+ latitude: number
656
+ animationStatus: 'interpolating' | 'complete'
657
+ }
615
658
  }
616
659
  /** 地图。相关api Taro.createMapContext。
617
660
  * @classification maps
@@ -30,8 +30,14 @@ interface NavigationBarProps extends StandardProps {
30
30
  }
31
31
  /** 页面导航条配置节点,用于指定导航栏的一些属性。只能是 PageMeta 组件内的第一个节点,需要配合它一同使用。
32
32
  * 通过这个节点可以获得类似于调用 Taro.setNavigationBarTitle Taro.setNavigationBarColor 等接口调用的效果。
33
+ *
34
+ * :::info
35
+ * Taro v3.6.19 开始支持
36
+ * 需要配合 PageMeta 组件使用
37
+ * :::
38
+ *
33
39
  * @classification navig
34
- * @supported weapp, harmony
40
+ * @supported weapp
35
41
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
36
42
  */
37
43
  declare const NavigationBar: ComponentType<NavigationBarProps>
@@ -111,7 +111,7 @@ declare namespace NavigatorProps {
111
111
  }
112
112
  /** 页面链接
113
113
  * @classification navig
114
- * @supported weapp, alipay, swan, tt, qq, jd, harmony, h5
114
+ * @supported weapp, alipay, swan, tt, qq, jd, h5
115
115
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
116
116
  */
117
117
  declare const Navigator: ComponentType<NavigatorProps>
@@ -80,7 +80,47 @@ declare namespace PageMetaProps {
80
80
  }
81
81
  /** 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。可以配合 navigation-bar 组件一同使用。
82
82
  * 通过这个节点可以获得类似于调用 Taro.setBackgroundTextStyle Taro.setBackgroundColor 等接口调用的效果。
83
+ *
84
+ * :::info
85
+ * Taro v3.6.19 开始支持
86
+ * 开发者需要在页面配置里添加:`enablePageMeta: true`
87
+ * :::
88
+ *
83
89
  * @supported weapp, alipay
90
+ * @example_react
91
+ * ```tsx
92
+ * // page.config.ts
93
+ * export default definePageConfig({ enablePageMeta: true, ... })
94
+ *
95
+ * // page.tsx
96
+ * function Index () {
97
+ * return (
98
+ * <View>
99
+ * <PageMeta
100
+ * pageStyle={myPageStyle}
101
+ * onScroll={handleScroll}
102
+ * >
103
+ * <NavigationBar title={title} />
104
+ * </PageMeta>
105
+ * </View>
106
+ * )
107
+ * }
108
+ * ```
109
+ * @example_vue
110
+ * ```html
111
+ * <!-- page.config.ts -->
112
+ * <!-- export default definePageConfig({ enablePageMeta: true, ... }) -->
113
+ *
114
+ * <!-- page.vue -->
115
+ * <template>
116
+ * <page-meta
117
+ * :page-style="myPageStyle"
118
+ * `@scroll="handleScroll"
119
+ * >
120
+ * <navigation-bar :title="title" />
121
+ * </page-meta>
122
+ * </template>
123
+ * ```
84
124
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/page-meta.html
85
125
  */
86
126
  declare const PageMeta: ComponentType<PageMetaProps>
package/types/Picker.d.ts CHANGED
@@ -6,7 +6,7 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
6
6
  /**
7
7
  * 选择器类型,默认是普通选择器
8
8
  * @default "selector"
9
- * @supported weapp, h5, rn
9
+ * @supported weapp, h5, rn, harmony
10
10
  */
11
11
  mode?: keyof PickerStandardProps.Mode
12
12
  /**
@@ -17,7 +17,7 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
17
17
  disabled?: boolean
18
18
  /**
19
19
  * 取消选择或点遮罩层收起 picker 时触发
20
- * @supported weapp, h5, rn
20
+ * @supported weapp, h5, rn, harmony
21
21
  */
22
22
  onCancel?: CommonEventFunction
23
23
  }
@@ -46,18 +46,18 @@ interface PickerSelectorProps extends PickerStandardProps {
46
46
  mode?: 'selector'
47
47
  /**
48
48
  * mode为 selector 或 multiSelector 时,range 有效
49
- * @supported weapp, h5, rn
49
+ * @supported weapp, h5, rn, harmony
50
50
  * @default []
51
51
  */
52
52
  range: string[] | number[] | Record<string, any>[]
53
53
  /**
54
54
  * 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
55
- * @supported weapp, h5, rn
55
+ * @supported weapp, h5, rn, harmony
56
56
  */
57
57
  rangeKey?: string
58
58
  /**
59
59
  * 表示选择了 range 中的第几个(下标从 0 开始)
60
- * @supported weapp, h5, rn
60
+ * @supported weapp, h5, rn, harmony
61
61
  * @default 0
62
62
  */
63
63
  value?: number
@@ -75,12 +75,12 @@ interface PickerSelectorProps extends PickerStandardProps {
75
75
  indicatorStyle?: StyleProp<ViewStyle>
76
76
  /**
77
77
  * value 改变时触发 change 事件
78
- * @supported weapp, h5, rn
78
+ * @supported weapp, h5, rn, harmony
79
79
  */
80
80
  onChange: CommonEventFunction<PickerSelectorProps.ChangeEventDetail>
81
81
  /**
82
82
  * 用于替换组件内部文本
83
- * @supported h5
83
+ * @supported h5, harmony
84
84
  */
85
85
  textProps?: PickerStandardProps.PickerText
86
86
  }
@@ -96,18 +96,18 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
96
96
  mode: 'multiSelector'
97
97
  /**
98
98
  * mode为 selector 或 multiSelector 时,range 有效
99
- * @supported weapp, h5, rn
99
+ * @supported weapp, h5, rn, harmony
100
100
  * @default []
101
101
  */
102
102
  range: Array<string[]> | Array<number[]> | Array<Record<string, any>[]>
103
103
  /**
104
104
  * 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
105
- * @supported weapp, h5, rn
105
+ * @supported weapp, h5, rn, harmony
106
106
  */
107
107
  rangeKey?: string
108
108
  /**
109
109
  * 表示选择了 range 中的第几个(下标从 0 开始)
110
- * @supported weapp, h5, rn
110
+ * @supported weapp, h5, rn, harmony
111
111
  * @default []
112
112
  */
113
113
  value: number[] | string[] | Record<string, any>[]
@@ -125,12 +125,12 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
125
125
  indicatorStyle?: StyleProp<ViewStyle>
126
126
  /**
127
127
  * 当 value 改变时触发 change 事件
128
- * @supported weapp, h5, rn
128
+ * @supported weapp, h5, rn, harmony
129
129
  */
130
130
  onChange: CommonEventFunction<PickerMultiSelectorProps.ChangeEventDetail>
131
131
  /**
132
132
  * 列改变时触发
133
- * @supported weapp, h5, rn
133
+ * @supported weapp, h5, rn, harmony
134
134
  */
135
135
  onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
136
136
  }
@@ -152,22 +152,22 @@ interface PickerTimeProps extends PickerStandardProps {
152
152
  mode: 'time'
153
153
  /**
154
154
  * value 的值表示选择了 range 中的第几个(下标从 0 开始)
155
- * @supported weapp, h5, rn
155
+ * @supported weapp, h5, rn, harmony
156
156
  */
157
157
  value: string
158
158
  /**
159
159
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
160
- * @supported weapp, h5, rn
160
+ * @supported weapp, h5, rn, harmony
161
161
  */
162
162
  start?: string
163
163
  /**
164
164
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
165
- * @supported weapp, h5, rn
165
+ * @supported weapp, h5, rn, harmony
166
166
  */
167
167
  end?: string
168
168
  /**
169
169
  * value 改变时触发 change 事件
170
- * @supported weapp, h5, rn
170
+ * @supported weapp, h5, rn, harmony
171
171
  */
172
172
  onChange: CommonEventFunction<PickerTimeProps.ChangeEventDetail>
173
173
  }
@@ -183,18 +183,18 @@ interface PickerDateProps extends PickerStandardProps {
183
183
  mode: 'date'
184
184
  /**
185
185
  * 表示选中的日期,格式为"YYYY-MM-DD"
186
- * @supported weapp, h5, rn
186
+ * @supported weapp, h5, rn, harmony
187
187
  * @default 0
188
188
  */
189
189
  value: string
190
190
  /**
191
191
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"YYYY-MM-DD"
192
- * @supported weapp, h5, rn
192
+ * @supported weapp, h5, rn, harmony
193
193
  */
194
194
  start?: string
195
195
  /**
196
196
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"YYYY-MM-DD"
197
- * @supported weapp, h5, rn
197
+ * @supported weapp, h5, rn, harmony
198
198
  */
199
199
  end?: string
200
200
  /**
@@ -205,7 +205,7 @@ interface PickerDateProps extends PickerStandardProps {
205
205
  fields?: keyof PickerDateProps.Fields
206
206
  /**
207
207
  * value 改变时触发 change 事件
208
- * @supported weapp, h5, rn
208
+ * @supported weapp, h5, rn, harmony
209
209
  */
210
210
  onChange: CommonEventFunction<PickerDateProps.ChangeEventDetail>
211
211
  }
@@ -55,7 +55,7 @@ declare namespace PickerViewProps {
55
55
  /** 嵌入页面的滚动选择器
56
56
  * 其中只可放置 picker-view-column 组件,其它节点不会显示
57
57
  * @classification forms
58
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
58
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
59
59
  * @example_react
60
60
  * ```tsx
61
61
  * export default class Picks extends Component {