@dcloudio/uni-app-x 0.7.22 → 0.7.23

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 (41) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -16
  3. package/types/native/CanvasRenderingContext2D.d.ts +1697 -111
  4. package/types/native/IUniElement.d.ts +73 -4
  5. package/types/native/Path2D.d.ts +41 -13
  6. package/types/native/UniProvider.d.ts +17 -0
  7. package/types/native/UniVideoElement.d.ts +13 -5
  8. package/types/native/global.d.ts +18 -0
  9. package/types/uni/uts-plugin-api/global.d.ts +1 -1
  10. package/types/uni/uts-plugin-api/index.d.ts +1 -1
  11. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +14 -4
  12. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +2 -2
  13. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +2 -2
  15. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +78 -14
  16. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -15
  18. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +191 -65
  19. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +3 -3
  20. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +7 -7
  21. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +614 -169
  22. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +12 -6
  23. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +6 -3
  24. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +249 -103
  25. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +9 -2
  26. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +49 -11
  27. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +33 -16
  28. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +80 -33
  29. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +63 -17
  30. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +307 -20
  31. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +213 -21
  32. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +554 -24
  33. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -0
  34. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -0
  35. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -0
  36. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +28 -8
  37. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +766 -364
  38. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +14 -4
  39. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +0 -12
  40. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +0 -5
  41. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +0 -50
@@ -0,0 +1,120 @@
1
+ /**
2
+ * uni.shareWithSystem成功回调参数
3
+ */
4
+ export type ShareWithSystemSuccess = {
5
+
6
+ }
7
+
8
+ /**
9
+ * uni.shareWithSystem失败回调参数
10
+ */
11
+ export type ShareWithSystemFail = {
12
+
13
+ }
14
+
15
+ /**
16
+ * uni.shareWithSystem成功回调函数定义
17
+ */
18
+ export type ShareWithSystemSuccessCallback = (res: ShareWithSystemSuccess) => void
19
+ /**
20
+ * uni.shareWithSystem失败回调函数定义
21
+ */
22
+ export type ShareWithSystemFailCallback = (res: ShareWithSystemFail) => void
23
+ /**
24
+ * uni.shareWithSystem完成回调函数定义
25
+ */
26
+ export type ShareWithSystemCallback = (res: any) => void
27
+ /**
28
+ * uni.shareWithSystem参数定义
29
+ */
30
+ export type ShareWithSystemOptions = {
31
+ /**
32
+ * 分享类型,只支持text,image,默认为text。
33
+ * harmonyOS不支持此参数,如果传了多个类型的数据,分享弹框上可以由用户选择分享什么类型。类型优先级:href > imageUrl > summary,优先级最高的类型会成为默认类型。
34
+ * @uniPlatform {
35
+ * "app": {
36
+ * "android": {
37
+ * "osVer": "5.0",
38
+ * "uniVer": "√",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "ios": {
42
+ * "osVer": "12.0",
43
+ * "uniVer": "√",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "harmony": {
47
+ * "osVer": "3.0",
48
+ * "uniVer": "x",
49
+ * "unixVer": "x"
50
+ * }
51
+ * },
52
+ * "web": {
53
+ * "uniVer": "x",
54
+ * "unixVer": "x"
55
+ * }
56
+ * }
57
+ */
58
+ type?: 'text' | 'image',
59
+ /**
60
+ * 分享的文字内容
61
+ */
62
+ summary?: string,
63
+ /**
64
+ * 分享链接
65
+ */
66
+ href?: string,
67
+ /**
68
+ * 分享图片,仅支持本地路径
69
+ */
70
+ imageUrl?: string,
71
+ /**
72
+ * 接口调用成功的回调函数
73
+ */
74
+ success?: ShareWithSystemSuccessCallback | null,
75
+ /**
76
+ * 接口调用失败的回调函数
77
+ */
78
+ fail?: ShareWithSystemFailCallback | null,
79
+ /**
80
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
81
+ */
82
+ complete?: ShareWithSystemCallback | null
83
+ }
84
+
85
+ export type ShareWithSystem = (options: ShareWithSystemOptions) => void
86
+
87
+ export interface Uni {
88
+ /**
89
+ * uni.shareWithSystem函数定义
90
+ * 使用系统分享。harmonyOS
91
+ *
92
+ * @param {ShareWithSystemOptions} options
93
+ * @uniPlatform {
94
+ * "app": {
95
+ * "android": {
96
+ * "osVer": "5.0",
97
+ * "uniVer": "√",
98
+ * "unixVer": "x"
99
+ * },
100
+ * "ios": {
101
+ * "osVer": "12.0",
102
+ * "uniVer": "√",
103
+ * "unixVer": "x"
104
+ * },
105
+ * "harmony": {
106
+ * "osVer": "3.0",
107
+ * "uniVer": "4.26",
108
+ * "unixVer": "x"
109
+ * }
110
+ * },
111
+ * "web": {
112
+ * "uniVer": "x",
113
+ * "unixVer": "x"
114
+ * }
115
+ * }
116
+ * @uniVersion 2.0.3
117
+ * @uniVueVersion 2,3 //支持的vue版本
118
+ */
119
+ shareWithSystem(options: ShareWithSystemOptions): void,
120
+ }
@@ -4,10 +4,17 @@ export type SetTabBarBadgeSuccessCallback = (
4
4
  ) => void
5
5
  /**
6
6
  * 错误码
7
- * - 100: TabBar 不存在
8
- * - 200: 参数错误
9
7
  */
10
- export type SetTabBarErrorCode = 100 | 200
8
+ export type SetTabBarErrorCode =
9
+ /**
10
+ * TabBar 不存在
11
+ */
12
+ 100 |
13
+ /**
14
+ * 参数错误
15
+ */
16
+ 200;
17
+
11
18
  export interface SetTabBarFail extends IUniError {
12
19
  errCode: SetTabBarErrorCode
13
20
  }
@@ -229,12 +236,25 @@ export type SetTabBarStyleOptions = {
229
236
  backgroundImage?: string
230
237
  /**
231
238
  * 背景图平铺方式
232
- * - repeat: 背景图片在垂直方向和水平方向平铺
233
- * - repeat-x: 背景图片在水平方向平铺,垂直方向拉伸
234
- * - repeat-y: 背景图片在垂直方向平铺,水平方向拉伸
235
- * - no-repeat: 背景图片在垂直方向和水平方向都拉伸
236
239
  */
237
- backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
240
+ backgroundRepeat?:
241
+ /**
242
+ * 背景图片在垂直方向和水平方向平铺
243
+ */
244
+ 'repeat' |
245
+ /**
246
+ * 背景图片在水平方向平铺,垂直方向拉伸
247
+ */
248
+ 'repeat-x' |
249
+ /**
250
+ * 背景图片在垂直方向平铺,水平方向拉伸
251
+ */
252
+ 'repeat-y' |
253
+ /**
254
+ * 背景图片在垂直方向和水平方向都拉伸
255
+ */
256
+ 'no-repeat'
257
+
238
258
  /**
239
259
  * tabbar上边框的颜色(优先级高于 borderStyle)
240
260
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle