@tarojs/components 3.6.2-canary.1 → 3.6.2-canary.2

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 (107) hide show
  1. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  2. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  3. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +28 -18
  4. package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -2
  5. package/dist/collection/components/input/input.js +1 -1
  6. package/dist/collection/components/picker/picker.js +1 -1
  7. package/dist/collection/components/swiper/swiper-item.js +16 -9
  8. package/dist/collection/components/swiper/swiper.js +12 -9
  9. package/dist/collection/components/textarea/textarea.js +7 -3
  10. package/dist/components/taro-input-core.js +1 -1
  11. package/dist/components/taro-picker-core.js +1 -1
  12. package/dist/components/taro-swiper-core.js +12 -9
  13. package/dist/components/taro-swiper-item-core.js +16 -9
  14. package/dist/components/taro-textarea-core.js +2 -2
  15. package/dist/esm/taro-input-core.entry.js +1 -1
  16. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  17. package/dist/esm/taro-swiper-core_2.entry.js +28 -18
  18. package/dist/esm/taro-textarea-core.entry.js +2 -2
  19. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  20. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  21. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  22. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  23. package/dist/taro-components/{p-4d390d17.entry.js → p-0b8b3af5.entry.js} +1 -1
  24. package/dist/taro-components/p-1c446c65.system.js +1 -1
  25. package/dist/taro-components/p-1eac7c75.system.entry.js +1 -0
  26. package/dist/taro-components/{p-3e23fa46.system.entry.js → p-39685396.system.entry.js} +1 -1
  27. package/dist/taro-components/{p-e53feb03.system.entry.js → p-58f9a827.system.entry.js} +1 -1
  28. package/dist/taro-components/{p-ab84c88e.entry.js → p-7704e165.entry.js} +1 -1
  29. package/dist/taro-components/{p-10046f1a.system.entry.js → p-a5afdc47.system.entry.js} +1 -1
  30. package/dist/taro-components/p-affb28de.entry.js +1 -0
  31. package/dist/taro-components/{p-7db63e92.entry.js → p-c30d1b2d.entry.js} +1 -1
  32. package/dist/taro-components/taro-components.esm.js +1 -1
  33. package/dist/types/components/textarea/textarea.d.ts +1 -1
  34. package/lib/vue2/components.d.ts +361 -589
  35. package/lib/vue2/components.js +248 -246
  36. package/lib/vue2/components.js.map +1 -1
  37. package/package.json +5 -5
  38. package/types/Ad.d.ts +2 -31
  39. package/types/AdCustom.d.ts +0 -4
  40. package/types/AnimationVideo.d.ts +0 -9
  41. package/types/AnimationView.d.ts +0 -6
  42. package/types/ArCamera.d.ts +0 -7
  43. package/types/Audio.d.ts +0 -18
  44. package/types/AwemeData.d.ts +0 -6
  45. package/types/Button.d.ts +3 -106
  46. package/types/Camera.d.ts +0 -28
  47. package/types/Canvas.d.ts +2 -17
  48. package/types/ChannelLive.d.ts +0 -2
  49. package/types/ChannelVideo.d.ts +0 -6
  50. package/types/Checkbox.d.ts +1 -8
  51. package/types/CheckboxGroup.d.ts +0 -2
  52. package/types/CommentDetail.d.ts +4 -10
  53. package/types/CommentList.d.ts +4 -20
  54. package/types/ContactButton.d.ts +0 -7
  55. package/types/CoverImage.d.ts +0 -11
  56. package/types/CoverView.d.ts +0 -26
  57. package/types/Editor.d.ts +0 -10
  58. package/types/FollowSwan.d.ts +0 -3
  59. package/types/Form.d.ts +1 -9
  60. package/types/FunctionalPageNavigator.d.ts +0 -11
  61. package/types/GridView.d.ts +5 -10
  62. package/types/Icon.d.ts +0 -14
  63. package/types/Image.d.ts +0 -31
  64. package/types/InlinePaymentPanel.d.ts +0 -9
  65. package/types/Input.d.ts +0 -62
  66. package/types/Label.d.ts +3 -2
  67. package/types/Lifestyle.d.ts +0 -3
  68. package/types/Like.d.ts +0 -17
  69. package/types/LivePlayer.d.ts +1 -58
  70. package/types/LivePusher.d.ts +0 -77
  71. package/types/Login.d.ts +0 -5
  72. package/types/Lottie.d.ts +0 -16
  73. package/types/Map.d.ts +19 -136
  74. package/types/MatchMedia.d.ts +0 -7
  75. package/types/MovableArea.d.ts +0 -1
  76. package/types/MovableView.d.ts +0 -35
  77. package/types/NavigationBar.d.ts +0 -6
  78. package/types/Navigator.d.ts +0 -27
  79. package/types/OfficialAccount.d.ts +0 -12
  80. package/types/OpenData.d.ts +0 -20
  81. package/types/PageContainer.d.ts +0 -21
  82. package/types/PageMeta.d.ts +0 -16
  83. package/types/Picker.d.ts +17 -45
  84. package/types/PickerView.d.ts +1 -12
  85. package/types/Progress.d.ts +0 -13
  86. package/types/Radio.d.ts +1 -8
  87. package/types/RadioGroup.d.ts +0 -2
  88. package/types/RichText.d.ts +1 -22
  89. package/types/RootPortal.d.ts +1 -2
  90. package/types/RtcRoom.d.ts +0 -16
  91. package/types/RtcRoomItem.d.ts +0 -3
  92. package/types/ScrollView.d.ts +2 -57
  93. package/types/ShareElement.d.ts +2 -7
  94. package/types/Slider.d.ts +0 -19
  95. package/types/Swiper.d.ts +0 -44
  96. package/types/SwiperItem.d.ts +0 -2
  97. package/types/Switch.d.ts +2 -11
  98. package/types/TabItem.d.ts +0 -4
  99. package/types/Tabs.d.ts +0 -8
  100. package/types/Text.d.ts +0 -7
  101. package/types/Textarea.d.ts +0 -36
  102. package/types/Video.d.ts +1 -112
  103. package/types/View.d.ts +0 -25
  104. package/types/VoipRoom.d.ts +0 -6
  105. package/types/WebView.d.ts +0 -6
  106. package/dist/taro-components/p-0aaf66d2.entry.js +0 -1
  107. package/dist/taro-components/p-da1f3d54.system.entry.js +0 -1
package/types/Editor.d.ts CHANGED
@@ -6,52 +6,43 @@ interface EditorProps extends StandardProps {
6
6
  * @supported weapp
7
7
  */
8
8
  readOnly?: boolean
9
-
10
9
  /** 提示信息
11
10
  * @supported weapp
12
11
  */
13
12
  placeholder?: string
14
-
15
13
  /** 点击图片时显示图片大小控件
16
14
  * @default false
17
15
  * @supported weapp
18
16
  */
19
17
  showImgSize?: boolean
20
-
21
18
  /** 点击图片时显示工具栏控件
22
19
  * @default false
23
20
  * @supported weapp
24
21
  */
25
22
  showImgToolbar?: boolean
26
-
27
23
  /** 点击图片时显示修改尺寸控件
28
24
  * @default false
29
25
  * @supported weapp
30
26
  */
31
27
  showImgResize?: boolean
32
-
33
28
  /** 编辑器初始化完成时触发
34
29
  * @supported weapp
35
30
  */
36
31
  onReady?: CommonEventFunction
37
-
38
32
  /** 编辑器聚焦时触发
39
33
  * @supported weapp
40
34
  */
41
35
  onFocus?: CommonEventFunction<EditorProps.editorEventDetail>
42
-
43
36
  /** 编辑器失去焦点时触发
44
37
  * detail = { html, text, delta }
45
38
  * @supported weapp
46
39
  */
47
40
  onBlur?: CommonEventFunction<EditorProps.editorEventDetail>
48
-
49
41
  /** 编辑器内容改变时触发
50
42
  * detail = { html, text, delta }
51
43
  * @supported weapp
52
44
  */
53
45
  onInput?: CommonEventFunction<EditorProps.editorEventDetail>
54
-
55
46
  /** 通过 Context 方法改变编辑器内样式时触发,返回选区已设置的样式
56
47
  * @supported weapp
57
48
  */
@@ -64,7 +55,6 @@ declare namespace EditorProps {
64
55
  delta
65
56
  }
66
57
  }
67
-
68
58
  /** 富文本编辑器,可以对图片、文字进行编辑。
69
59
  *
70
60
  * 编辑器导出内容支持带标签的 html和纯文本的 text,编辑器内部采用 delta 格式进行存储。
@@ -6,19 +6,16 @@ interface FollowSwanProps extends StandardProps {
6
6
  * @default "default"
7
7
  */
8
8
  size?: string
9
-
10
9
  /** 组件样式
11
10
  * @supported swan
12
11
  * @default "primary"
13
12
  */
14
13
  type?: string
15
-
16
14
  /** 关注和取消关注成功的回调,返回关注状态 {isFavor: true|false}
17
15
  * @supported swan
18
16
  */
19
17
  onFavorStatusChange?: CommonEventFunction
20
18
  }
21
-
22
19
  /** 关注小程序
23
20
  * @classification open
24
21
  * @supported swan
package/types/Form.d.ts CHANGED
@@ -6,7 +6,6 @@ interface FormProps extends StandardProps {
6
6
  * @supported weapp, alipay, swan, qq, jd, h5
7
7
  */
8
8
  reportSubmit?: boolean
9
-
10
9
  /** 等待一段时间(毫秒数)以确认 `formId` 是否生效。
11
10
  * 如果未指定这个参数,`formId` 有很小的概率是无效的(如遇到网络失败的情况)。
12
11
  * 指定这个参数将可以检测 `formId` 是否有效,
@@ -16,31 +15,26 @@ interface FormProps extends StandardProps {
16
15
  * @supported weapp
17
16
  */
18
17
  reportSubmitTimeout?: number
19
-
20
18
  /** 模板消息的类型,report-submit 为 true 时填写有效
21
19
  * 取值:default / subscribe
22
20
  * @default 'default'
23
21
  * @supported swan
24
22
  */
25
23
  reportType?: string
26
-
27
24
  /** 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取
28
25
  * 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID (注:此处填写模板库id。示例:BD0001)
29
26
  * @supported swan
30
27
  */
31
28
  templateId?: string | Array<string>
32
-
33
29
  /** 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景
34
30
  * 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id
35
31
  * @supported swan
36
32
  */
37
33
  subscribeId?: string
38
-
39
34
  /** 携带 form 中的数据触发 submit 事件
40
- * @supported weapp, alipay, swan, tt, qq, jd, rn
35
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
41
36
  */
42
37
  onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
43
-
44
38
  /** 表单重置时会触发 reset 事件
45
39
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
46
40
  */
@@ -55,13 +49,11 @@ declare namespace FormProps {
55
49
  value?: {
56
50
  [formItemName: string]: any
57
51
  }
58
-
59
52
  /** 当 `reportSubmit` 为 `true` 时,返回 `formId` 用于发送模板消息。
60
53
  */
61
54
  formId?: string
62
55
  }
63
56
  }
64
-
65
57
  /** 表单。将组件内的用户输入的 switch input checkbox slider radio picker 提交。
66
58
  *
67
59
  * 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
@@ -6,27 +6,22 @@ interface FunctionalPageNavigatorProps extends StandardProps {
6
6
  * @supported weapp
7
7
  */
8
8
  version?: keyof FunctionalPageNavigatorProps.Version
9
-
10
9
  /** 要跳转到的功能页
11
10
  * @supported weapp
12
11
  */
13
12
  name?: keyof FunctionalPageNavigatorProps.Name
14
-
15
13
  /** 功能页参数,参数格式与具体功能页相关
16
14
  * @supported weapp
17
15
  */
18
16
  args?: object
19
-
20
17
  /** 功能页返回,且操作成功时触发, detail 格式与具体功能页相关
21
18
  * @supported weapp
22
19
  */
23
20
  onSuccess?: CommonEventFunction
24
-
25
21
  /** 功能页返回,且操作失败时触发, detail 格式与具体功能页相关
26
22
  * @supported weapp
27
23
  */
28
24
  onFail?: CommonEventFunction
29
-
30
25
  /** 因用户操作从功能页返回时触发
31
26
  * @supported weapp
32
27
  */
@@ -37,27 +32,21 @@ declare namespace FunctionalPageNavigatorProps {
37
32
  interface Version {
38
33
  /** 开发版 */
39
34
  develop
40
-
41
35
  /** 体验版 */
42
36
  trial
43
-
44
37
  /** 正式版 */
45
38
  release
46
39
  }
47
-
48
40
  /** name 的合法值 */
49
41
  interface Name {
50
42
  /** [用户信息功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/user-info.html) */
51
43
  loginAndGetUserInfo
52
-
53
44
  /** [支付功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/request-payment.html) */
54
45
  requestPayment
55
-
56
46
  /** [收货地址功能页](https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/functional-pages/choose-address.html) */
57
47
  chooseAddress
58
48
  }
59
49
  }
60
-
61
50
  /** 仅在插件中有效,用于跳转到插件功能页
62
51
  * @classification navig
63
52
  * @supported weapp
@@ -6,32 +6,27 @@ interface GridViewProps extends StandardProps {
6
6
  * @default "aligned"
7
7
  */
8
8
  type: string
9
-
10
9
  /** 交叉轴元素数量
11
10
  * @supported weapp
12
11
  * @default 2
13
12
  */
14
13
  crossAxisCount?: number
15
-
16
- /** 交叉轴元素最大范围
17
- * @supported weapp
18
- * @default 0
19
- */
20
- maxCrossAxisExtend?: number
21
-
22
14
  /** 主轴方向间隔
23
15
  * @supported weapp
24
16
  * @default 0
25
17
  */
26
18
  mainAxisGap?: number
27
-
28
19
  /** 交叉轴方向间隔
29
20
  * @supported weapp
30
21
  * @default 0
31
22
  */
32
23
  crossAxisGap?: number
24
+ /** 交叉轴元素最大范围
25
+ * @supported weapp
26
+ * @default 0
27
+ */
28
+ maxCrossAxisExtent?: number
33
29
  }
34
-
35
30
  /**
36
31
  * 网格布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
37
32
  * @classification viewContainer
package/types/Icon.d.ts CHANGED
@@ -5,18 +5,15 @@ interface IconProps extends StandardProps {
5
5
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
6
6
  */
7
7
  type: keyof IconProps.TIconType
8
-
9
8
  /** icon 的大小,单位px
10
9
  * @default 23
11
10
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
12
11
  */
13
12
  size?: string
14
-
15
13
  /** icon 的颜色,同 css 的 color
16
14
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
17
15
  */
18
16
  color?: string
19
-
20
17
  /** 无障碍访问,(属性)元素的额外描述
21
18
  * @supported qq
22
19
  */
@@ -27,39 +24,28 @@ declare namespace IconProps {
27
24
  interface TIconType {
28
25
  /** 成功图标 */
29
26
  success
30
-
31
27
  /** 成功图标(不带外圈) */
32
28
  success_no_circle
33
-
34
29
  /** 信息图标 */
35
30
  info
36
-
37
31
  /** 警告图标 */
38
32
  warn
39
-
40
33
  /** 等待图标 */
41
34
  waiting
42
-
43
35
  /** 取消图标 */
44
36
  cancel
45
-
46
37
  /** 下载图标 */
47
38
  download
48
-
49
39
  /** 搜索图标 */
50
40
  search
51
-
52
41
  /** 清除图标 */
53
42
  clear
54
-
55
43
  /** 圆环图标(多选控件图标未选择)「微信文档未标注属性」 */
56
44
  circle
57
-
58
45
  /** 带圆环的信息图标「微信文档未标注属性」 */
59
46
  info_circle
60
47
  }
61
48
  }
62
-
63
49
  /** 图标。组件属性的长度单位默认为 px
64
50
  * @classification base
65
51
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
package/types/Image.d.ts CHANGED
@@ -5,89 +5,73 @@ interface ImageProps extends StandardProps {
5
5
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
6
6
  */
7
7
  src: string
8
-
9
8
  /** 图片裁剪、缩放的模式
10
9
  * @default "scaleToFill"
11
10
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
12
11
  * @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
13
12
  */
14
13
  mode?: keyof ImageProps.Mode
15
-
16
14
  /** 默认不解析 webP 格式,只支持网络资源
17
15
  * @default false
18
16
  * @supported weapp, swan
19
17
  */
20
18
  webp?: boolean
21
-
22
19
  /** 默认不解析 svg 格式,svg 图片只支持 aspectFit
23
20
  * @default false
24
21
  * @supported rn
25
22
  */
26
23
  svg?: boolean
27
-
28
24
  /** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
29
25
  * @default false
30
26
  * @supported weapp, alipay, swan, tt, qq, h5
31
27
  */
32
28
  lazyLoad?: boolean
33
-
34
29
  /** 开启长按图片显示识别小程序码菜单
35
30
  * @default false
36
31
  * @supported weapp
37
32
  */
38
33
  showMenuByLongpress?: boolean
39
-
40
34
  /**
41
35
  * 为 img 标签额外增加的属性
42
36
  * @supported h5
43
37
  */
44
38
  imgProps?: ImgHTMLAttributes<HTMLImageElement>
45
-
46
39
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
47
40
  * @supported h5
48
41
  */
49
42
  nativeProps?: Record<string, unknown>
50
-
51
43
  /** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
52
44
  * @supported alipay
53
45
  */
54
46
  defaultSource?: string
55
-
56
47
  /** 阻止长按图片时弹起默认菜单(即将该属性设置为image-menu-prevent="true"或image-menu-prevent),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性。注:长按菜单后的操作暂不支持 svg 格式
57
48
  * @supported swan
58
49
  */
59
50
  imageMenuPrevent?: string
60
-
61
51
  /** 点击后是否预览图片。在不设置的情况下,若 image 未监听点击事件且宽度大于 1/4 屏宽,则默认开启
62
52
  * @supported swan
63
53
  */
64
54
  preview?: string
65
-
66
55
  /** 预览时显示的图片地址
67
56
  * @supported swan
68
57
  */
69
58
  originalSrc?: string
70
-
71
59
  /** 无障碍访问,(属性)元素的额外描述
72
60
  * @supported qq
73
61
  */
74
62
  ariaLabel?: string
75
-
76
63
  /** 当错误发生时,发布到 AppService 的事件名,事件对象
77
64
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
78
65
  */
79
66
  onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
80
-
81
67
  /** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
82
68
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
83
69
  */
84
70
  onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
85
-
86
71
  /** 点击图片时触发。
87
72
  * @supported alipay
88
73
  */
89
74
  onTap?: CommonEventFunction
90
-
91
75
  /** 点击图片时触发,阻止事件冒泡。
92
76
  * @supported alipay
93
77
  */
@@ -98,43 +82,30 @@ declare namespace ImageProps {
98
82
  interface Mode {
99
83
  /** 缩放模式,不保持纵横比缩放图片,使图片的宽高完全拉伸至填满 image 元素 */
100
84
  scaleToFill
101
-
102
85
  /** 缩放模式,保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整地将图片显示出来。 */
103
86
  aspectFit
104
-
105
87
  /** 缩放模式,保持纵横比缩放图片,只保证图片的短边能完全显示出来。也就是说,图片通常只在水平或垂直方向是完整的,另一个方向将会发生截取。 */
106
88
  aspectFill
107
-
108
89
  /** 缩放模式,宽度不变,高度自动变化,保持原图宽高比不变 */
109
90
  widthFix
110
-
111
91
  /** 缩放模式,高度不变,宽度自动变化,保持原图宽高比不变 */
112
92
  heightFix
113
-
114
93
  /** 裁剪模式,不缩放图片,只显示图片的顶部区域 */
115
94
  top
116
-
117
95
  /** 裁剪模式,不缩放图片,只显示图片的底部区域 */
118
96
  bottom
119
-
120
97
  /** 裁剪模式,不缩放图片,只显示图片的中间区域 */
121
98
  center
122
-
123
99
  /** 裁剪模式,不缩放图片,只显示图片的左边区域 */
124
100
  left
125
-
126
101
  /** 裁剪模式,不缩放图片,只显示图片的右边区域 */
127
102
  right
128
-
129
103
  /** 裁剪模式,不缩放图片,只显示图片的左上边区域 */
130
104
  'top left'
131
-
132
105
  /** 裁剪模式,不缩放图片,只显示图片的右上边区域 */
133
106
  'top right'
134
-
135
107
  /** 裁剪模式,不缩放图片,只显示图片的左下边区域 */
136
108
  'bottom left'
137
-
138
109
  /** 裁剪模式,不缩放图片,只显示图片的右下边区域 */
139
110
  'bottom right'
140
111
  }
@@ -145,12 +116,10 @@ declare namespace ImageProps {
145
116
  interface onLoadEventDetail {
146
117
  /** 图片高度 */
147
118
  height: number | string
148
-
149
119
  /** 图片宽度 */
150
120
  width: number | string
151
121
  }
152
122
  }
153
-
154
123
  /** 图片。支持 JPG、PNG、SVG、WEBP、GIF 等格式以及云文件ID。
155
124
  *
156
125
  * **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
@@ -5,50 +5,41 @@ interface InlinePaymentPanelProps extends StandardProps {
5
5
  * @supported swan
6
6
  */
7
7
  totalAmount?: string
8
-
9
8
  /** 百度收银台的财务结算凭证,详见平台术语
10
9
  * @supported swan
11
10
  */
12
11
  dealId?: string
13
-
14
12
  /** 支付能力开通后分配的支付 appKey,详见平台术语
15
13
  * @supported swan
16
14
  */
17
15
  appKey?: string
18
-
19
16
  /** 平台营销信息,此处传当前订单中可使用平台券的 spuid,同时需在 支付能力中搭配使用传入该参数;注:仅与百度合作平台类目券的开发者需要填写该参数
20
17
  * @supported swan
21
18
  */
22
19
  promotionTag?: string | Array<string>
23
-
24
20
  /** 是否设置挽留弹窗
25
21
  * @supported swan
26
22
  * @default false
27
23
  */
28
24
  enablePageBackModal?: boolean
29
-
30
25
  /** 自定义样式设置
31
26
  * @supported swan
32
27
  */
33
28
  customStyle?: string
34
-
35
29
  /** 自定义样式档位配置,各档位配置项包括支付渠道/优惠券条高度、渠道图标大小、支付渠道文案字体大小、营销文案字体大小、选择器图标大小
36
30
  * @supported swan
37
31
  * @default "default"
38
32
  */
39
33
  styleType?: 'tiny' | 'small' | 'default' | 'medium' | 'large'
40
-
41
34
  /** 获取支付相关信息,具体信息在返回值的 detail 字段中
42
35
  * @supported swan
43
36
  */
44
37
  onGetPaymentInfo?: CommonEventFunction
45
-
46
38
  /** 当发生错误时触发 error 事件,具体信息在返回值的 detail 字段中,例如 {detail: {errMsg: "something is wrong"}}
47
39
  * @supported swan
48
40
  */
49
41
  onError?: CommonEventFunction
50
42
  }
51
-
52
43
  /** 内嵌支付组件
53
44
  * @classification open
54
45
  * @supported swan