@dcloudio/uni-app-x 0.7.58 → 0.7.59

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 (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -557,7 +557,7 @@ export interface Uni {
557
557
  * "osVer": "5.0",
558
558
  * "uniVer": "√",
559
559
  * "uniUtsPlugin": "x",
560
- * "unixVer": "x",
560
+ * "unixVer": "4.64",
561
561
  * "unixUtsPlugin": "x"
562
562
  * },
563
563
  * "ios": {
@@ -0,0 +1,36 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ Share as ShareOrigin,
4
+ ShareMiniProgramShareType as ShareMiniProgramShareTypeOrigin,
5
+ ShareMiniProgramShareOptions as ShareMiniProgramShareOptionsOrigin,
6
+ ShareSuccess as ShareSuccessOrigin,
7
+ ShareSuccessCallback as ShareSuccessCallbackOrigin,
8
+ ShareFail as ShareFailOrigin,
9
+ ShareFailCallback as ShareFailCallbackOrigin,
10
+ ShareComplete as ShareCompleteOrigin,
11
+ ShareCompleteCallback as ShareCompleteCallbackOrigin,
12
+ ShareProvider as ShareProviderOrigin,
13
+ ShareType as ShareTypeOrigin,
14
+ ShareScene as ShareSceneOrigin,
15
+ ShareOptions as ShareOptionsOrigin,
16
+ UniShareProvider as UniShareProviderOrigin,
17
+ Uni as UniOrigin
18
+ } from './interface'
19
+
20
+ declare global {
21
+ type Share = ShareOrigin
22
+ type ShareMiniProgramShareType = ShareMiniProgramShareTypeOrigin
23
+ type ShareMiniProgramShareOptions = ShareMiniProgramShareOptionsOrigin
24
+ type ShareSuccess = ShareSuccessOrigin
25
+ type ShareSuccessCallback = ShareSuccessCallbackOrigin
26
+ type ShareFail = ShareFailOrigin
27
+ type ShareFailCallback = ShareFailCallbackOrigin
28
+ type ShareComplete = ShareCompleteOrigin
29
+ type ShareCompleteCallback = ShareCompleteCallbackOrigin
30
+ type ShareProvider = ShareProviderOrigin
31
+ type ShareType = ShareTypeOrigin
32
+ type ShareScene = ShareSceneOrigin
33
+ type ShareOptions = ShareOptionsOrigin
34
+ type UniShareProvider = UniShareProviderOrigin
35
+ interface Uni extends UniOrigin { }
36
+ }
@@ -0,0 +1,17 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ Share,
4
+ ShareMiniProgramShareType,
5
+ ShareMiniProgramShareOptions,
6
+ ShareSuccess,
7
+ ShareSuccessCallback,
8
+ ShareFail,
9
+ ShareFailCallback,
10
+ ShareComplete,
11
+ ShareCompleteCallback,
12
+ ShareProvider,
13
+ ShareType,
14
+ ShareScene,
15
+ ShareOptions,
16
+ UniShareProvider,
17
+ } from './interface'
@@ -0,0 +1,180 @@
1
+ export interface Uni {
2
+ /**
3
+ * 分享
4
+ *
5
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/share.html
6
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/share.html
7
+ * @uniPlatform {
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "x",
11
+ * "uniVer": "x",
12
+ * "unixVer": "x"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "x",
16
+ * "uniVer": "x",
17
+ * "unixVer": "x"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "5.0.0",
21
+ * "uniVer": "√",
22
+ * "unixVer": "4.66"
23
+ * }
24
+ * },
25
+ * "web": {
26
+ * "uniVer": "x",
27
+ * "unixVer": "x"
28
+ * }
29
+ * }
30
+ */
31
+ share: Share;
32
+ }
33
+
34
+ export type Share = (options: ShareOptions) => void;
35
+ export type ShareMiniProgramShareType =
36
+ /**
37
+ * 正式版
38
+ */
39
+ 0 |
40
+ /**
41
+ * 测试版
42
+ */
43
+ 1 |
44
+ /**
45
+ * 体验版
46
+ */
47
+ 2
48
+ export type ShareMiniProgramShareOptions = {
49
+ /**
50
+ * 微信小程序原始id
51
+ */
52
+ id?: string | null,
53
+ /**
54
+ * 点击链接进入的页面
55
+ */
56
+ path?: string | null,
57
+ /**
58
+ * 微信小程序版本类型,默认为0。
59
+ * @defaultValue 0
60
+ */
61
+ type?: ShareMiniProgramShareType | null,
62
+ /**
63
+ * 兼容低版本的网页链接
64
+ */
65
+ webUrl?: string | null
66
+ };
67
+ export type ShareSuccess = {};
68
+ export type ShareSuccessCallback = (result: ShareSuccess) => void;
69
+ export type ShareFail = UniError;
70
+ export type ShareFailCallback = (result: ShareFail) => void;
71
+ export type ShareComplete = any;
72
+ export type ShareCompleteCallback = (result: ShareComplete) => void;
73
+ export type ShareProvider = 'weixin'
74
+ export type ShareType =
75
+ /**
76
+ * 图文
77
+ */
78
+ 0 |
79
+ /**
80
+ * 纯文字
81
+ */
82
+ 1 |
83
+ /**
84
+ * 纯图片
85
+ */
86
+ 2 |
87
+ /**
88
+ * 音乐
89
+ */
90
+ 3 |
91
+ /**
92
+ * 视频
93
+ */
94
+ 4 |
95
+ /**
96
+ * 小程序
97
+ */
98
+ 5;
99
+ export type ShareScene =
100
+ /**
101
+ * 分享到聊天界面
102
+ */
103
+ 'WXSceneSession' |
104
+ /**
105
+ * 分享到朋友圈
106
+ */
107
+ 'WXSceneTimeline' |
108
+ /**
109
+ * 分享微信收藏
110
+ */
111
+ 'WXSceneFavorite';
112
+ export type ShareOptions = {
113
+ /**
114
+ * 分享服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
115
+ * - sinaweibo: 新浪微博分享
116
+ * - qq: 分享到QQ好友
117
+ * - weixin: 分享微信消息、朋友圈及微信小程序
118
+ */
119
+ provider?: ShareProvider | null,
120
+ /**
121
+ * 分享类型。默认图文0
122
+ * @defaultValue 0
123
+ */
124
+ type?: ShareType | null,
125
+ /**
126
+ * 标题
127
+ */
128
+ title?: string | null,
129
+ /**
130
+ * 场景
131
+ */
132
+ scene?: ShareScene | null,
133
+ /**
134
+ * 摘要
135
+ */
136
+ summary?: string | null,
137
+ /**
138
+ * 跳转链接
139
+ */
140
+ href?: string | null,
141
+ /**
142
+ * 图片地址
143
+ */
144
+ imageUrl?: string | null,
145
+ /**
146
+ * 音视频地址
147
+ */
148
+ mediaUrl?: string | null,
149
+ /**
150
+ * 分享小程序
151
+ */
152
+ miniProgram?: ShareMiniProgramShareOptions | null,
153
+ /**
154
+ * 是否启用拉起客服功能(目前仅支持微信)
155
+ */
156
+ openCustomerServiceChat?: boolean | null,
157
+ /**
158
+ * 客服ID(目前仅支持微信)
159
+ */
160
+ corpid?: string | null,
161
+ /**
162
+ * 客服的页面路径(目前仅支持微信)
163
+ */
164
+ customerUrl?: string | null,
165
+ /**
166
+ * 接口调用成功的回调函数
167
+ */
168
+ success?: ShareSuccessCallback | null,
169
+ /**
170
+ * 接口调用失败的回调函数
171
+ */
172
+ fail?: ShareFailCallback | null,
173
+ /**
174
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
175
+ */
176
+ complete?: ShareCompleteCallback | null
177
+ };
178
+ export interface UniShareProvider extends UniProvider {
179
+ share(options: ShareOptions): void;
180
+ }
@@ -0,0 +1,8 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ UniShareWeixinProvider as UniShareWeixinProviderOrigin,
4
+ } from './interface'
5
+
6
+ declare global {
7
+ type UniShareWeixinProvider = UniShareWeixinProviderOrigin
8
+ }
@@ -0,0 +1,4 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ UniShareWeixinProvider,
4
+ } from './interface'
@@ -0,0 +1 @@
1
+ export interface UniShareWeixinProvider extends UniShareProvider { }
@@ -16,8 +16,8 @@ export type ConnectEventSourceOptions = {
16
16
  "osVer": "12.0",
17
17
  "uniVer": "x",
18
18
  "uniUtsPlugin": "x",
19
- "unixVer": "x",
20
- "unixUtsPlugin": "x"
19
+ "unixVer": "4.63",
20
+ "unixUtsPlugin": "4.63"
21
21
  },
22
22
  "harmony": {
23
23
  "osVer": "x",
@@ -21,9 +21,9 @@ export interface Uni {
21
21
  "unixUtsPlugin": "4.18"
22
22
  },
23
23
  "harmony": {
24
- "osVer": "x",
25
- "uniVer": "x",
26
- "unixVer": "x"
24
+ "osVer": "5.0.0",
25
+ "uniVer": "4.65",
26
+ "unixVer": "4.65"
27
27
  }
28
28
  },
29
29
  "mp": {
@@ -104,9 +104,9 @@ export interface Uni {
104
104
  "unixUtsPlugin": "4.18"
105
105
  },
106
106
  "harmony": {
107
- "osVer": "x",
108
- "uniVer": "x",
109
- "unixVer": "x"
107
+ "osVer": "5.0.0",
108
+ "uniVer": "4.65",
109
+ "unixVer": "4.65"
110
110
  }
111
111
  },
112
112
  "mp": {
@@ -185,9 +185,9 @@ export interface Uni {
185
185
  "unixUtsPlugin": "4.18"
186
186
  },
187
187
  "harmony": {
188
- "osVer": "x",
189
- "uniVer": "x",
190
- "unixVer": "x"
188
+ "osVer": "5.0.0",
189
+ "uniVer": "4.65",
190
+ "unixVer": "4.65"
191
191
  }
192
192
  },
193
193
  "mp": {
@@ -277,9 +277,9 @@ export interface Uni {
277
277
  "unixUtsPlugin": "4.18"
278
278
  },
279
279
  "harmony": {
280
- "osVer": "x",
281
- "uniVer": "x",
282
- "unixVer": "x"
280
+ "osVer": "5.0.0",
281
+ "uniVer": "4.65",
282
+ "unixVer": "4.65"
283
283
  }
284
284
  },
285
285
  "mp": {
@@ -360,9 +360,9 @@ export interface Uni {
360
360
  "unixUtsPlugin": "4.18"
361
361
  },
362
362
  "harmony": {
363
- "osVer": "x",
364
- "uniVer": "x",
365
- "unixVer": "x"
363
+ "osVer": "5.0.0",
364
+ "uniVer": "4.65",
365
+ "unixVer": "4.65"
366
366
  }
367
367
  },
368
368
  "web": {
@@ -394,9 +394,9 @@ export interface Uni {
394
394
  * "unixVer": "x"
395
395
  * },
396
396
  * "harmony": {
397
- * "osVer": "x",
398
- * "uniVer": "x",
399
- * "unixVer": "x"
397
+ "osVer": "5.0.0",
398
+ "uniVer": "4.65",
399
+ "unixVer": "4.65"
400
400
  * }
401
401
  * },
402
402
  * "mp": {
@@ -448,6 +448,7 @@ export interface Uni {
448
448
  * }
449
449
  */
450
450
  onHostThemeChange(callback: OnHostThemeChangeCallback): number;
451
+
451
452
  /**
452
453
  * 取消监听宿主题状态变化。
453
454
  * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offhostthemechange
@@ -465,9 +466,9 @@ export interface Uni {
465
466
  * "unixVer": "x"
466
467
  * },
467
468
  * "harmony": {
468
- * "osVer": "x",
469
- * "uniVer": "x",
470
- * "unixVer": "x"
469
+ "osVer": "5.0.0",
470
+ "uniVer": "4.65",
471
+ "unixVer": "4.65"
471
472
  * }
472
473
  * },
473
474
  * "mp": {
@@ -520,7 +521,6 @@ export interface Uni {
520
521
  */
521
522
  offHostThemeChange(id: number): void;
522
523
 
523
-
524
524
  /**
525
525
  * 监听系统主题状态变化。
526
526
  * @deprecated 已废弃,在web、小程序上推荐使用 onHostThemeChange
@@ -539,9 +539,9 @@ export interface Uni {
539
539
  * "unixVer": "x"
540
540
  * },
541
541
  * "harmony": {
542
- * "osVer": "x",
543
- * "uniVer": "x",
544
- * "unixVer": "x"
542
+ * "osVer": "5.0.0",
543
+ * "uniVer": "4.65",
544
+ * "unixVer": "4.65"
545
545
  * }
546
546
  * },
547
547
  * "mp": {
@@ -594,6 +594,7 @@ export interface Uni {
594
594
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html
595
595
  */
596
596
  onThemeChange(callback: OnThemeChangeCallback): void;
597
+
597
598
  /**
598
599
  * 取消监听系统主题状态变化。
599
600
  * @deprecated 已废弃,在web、小程序上推荐使用 offHostThemeChange
@@ -612,9 +613,9 @@ export interface Uni {
612
613
  * "unixVer": "x"
613
614
  * },
614
615
  * "harmony": {
615
- * "osVer": "x",
616
- * "uniVer": "x",
617
- * "unixVer": "x"
616
+ * "osVer": "5.0.0",
617
+ * "uniVer": "4.65",
618
+ * "unixVer": "4.65"
618
619
  * }
619
620
  * },
620
621
  * "mp": {
@@ -688,9 +689,9 @@ export interface Uni {
688
689
  "unixUtsPlugin": "4.18"
689
690
  },
690
691
  "harmony": {
691
- "osVer": "x",
692
- "uniVer": "x",
693
- "unixVer": "x"
692
+ "osVer": "5.0.0",
693
+ "uniVer": "4.65",
694
+ "unixVer": "4.65"
694
695
  }
695
696
  },
696
697
  "web": {
@@ -720,9 +721,9 @@ export type OsThemeChangeResult = {
720
721
  "unixUtsPlugin": "4.18"
721
722
  },
722
723
  "harmony": {
723
- "osVer": "x",
724
- "uniVer": "x",
725
- "unixVer": "x"
724
+ "osVer": "5.0.0",
725
+ "uniVer": "4.65",
726
+ "unixVer": "4.65"
726
727
  }
727
728
  },
728
729
  "web": {
@@ -731,7 +732,16 @@ export type OsThemeChangeResult = {
731
732
  }
732
733
  }
733
734
  */
734
- osTheme: string
735
+ osTheme:
736
+ /**
737
+ * 亮色模式
738
+ */
739
+ 'light' |
740
+ /**
741
+ * 深色模式
742
+ */
743
+ 'dark'
744
+
735
745
  }
736
746
 
737
747
  /**
@@ -753,9 +763,9 @@ export type OsThemeChangeResult = {
753
763
  "unixUtsPlugin": "4.18"
754
764
  },
755
765
  "harmony": {
756
- "osVer": "x",
757
- "uniVer": "x",
758
- "unixVer": "x"
766
+ "osVer": "5.0.0",
767
+ "uniVer": "4.65",
768
+ "unixVer": "4.65"
759
769
  }
760
770
  },
761
771
  "web": {
@@ -785,9 +795,9 @@ export type AppThemeChangeResult = {
785
795
  "unixUtsPlugin": "4.18"
786
796
  },
787
797
  "harmony": {
788
- "osVer": "x",
789
- "uniVer": "x",
790
- "unixVer": "x"
798
+ "osVer": "5.0.0",
799
+ "uniVer": "4.65",
800
+ "unixVer": "4.65"
791
801
  }
792
802
  },
793
803
  "web": {
@@ -796,7 +806,16 @@ export type AppThemeChangeResult = {
796
806
  }
797
807
  }
798
808
  */
799
- appTheme: string
809
+ appTheme:
810
+ /**
811
+ * 亮色模式
812
+ */
813
+ 'light' |
814
+ /**
815
+ * 深色模式
816
+ */
817
+ 'dark'
818
+
800
819
  }
801
820
 
802
821
  /*
@@ -841,9 +860,9 @@ export type SetAppThemeCompleteCallback = (result: any) => void;
841
860
  "unixUtsPlugin": "4.18"
842
861
  },
843
862
  "harmony": {
844
- "osVer": "x",
845
- "uniVer": "x",
846
- "unixVer": "x"
863
+ "osVer": "5.0.0",
864
+ "uniVer": "4.65",
865
+ "unixVer": "4.65"
847
866
  }
848
867
  },
849
868
  "web": {
@@ -873,9 +892,9 @@ export type SetAppThemeOptions = {
873
892
  "unixUtsPlugin": "4.18"
874
893
  },
875
894
  "harmony": {
876
- "osVer": "x",
877
- "uniVer": "x",
878
- "unixVer": "x"
895
+ "osVer": "5.0.0",
896
+ "uniVer": "4.65",
897
+ "unixVer": "4.65"
879
898
  }
880
899
  },
881
900
  "web": {
@@ -884,7 +903,19 @@ export type SetAppThemeOptions = {
884
903
  }
885
904
  }
886
905
  */
887
- theme: 'light' | 'dark' | 'auto'
906
+ theme:
907
+ /**
908
+ * 亮色模式
909
+ */
910
+ 'light' |
911
+ /**
912
+ * 深色模式
913
+ */
914
+ 'dark' |
915
+ /**
916
+ * 跟随系统模式
917
+ */
918
+ 'auto'
888
919
 
889
920
  /**
890
921
  * 接口调用成功的回调函数
@@ -907,9 +938,9 @@ export type SetAppThemeOptions = {
907
938
  "unixUtsPlugin": "4.18"
908
939
  },
909
940
  "harmony": {
910
- "osVer": "x",
911
- "uniVer": "x",
912
- "unixVer": "x"
941
+ "osVer": "5.0.0",
942
+ "uniVer": "4.65",
943
+ "unixVer": "4.65"
913
944
  }
914
945
  },
915
946
  "web": {
@@ -941,9 +972,9 @@ export type SetAppThemeOptions = {
941
972
  "unixUtsPlugin": "4.18"
942
973
  },
943
974
  "harmony": {
944
- "osVer": "x",
945
- "uniVer": "x",
946
- "unixVer": "x"
975
+ "osVer": "5.0.0",
976
+ "uniVer": "4.65",
977
+ "unixVer": "4.65"
947
978
  }
948
979
  },
949
980
  "web": {
@@ -975,9 +1006,9 @@ export type SetAppThemeOptions = {
975
1006
  "unixUtsPlugin": "4.18"
976
1007
  },
977
1008
  "harmony": {
978
- "osVer": "x",
979
- "uniVer": "x",
980
- "unixVer": "x"
1009
+ "osVer": "5.0.0",
1010
+ "uniVer": "4.65",
1011
+ "unixVer": "4.65"
981
1012
  }
982
1013
  },
983
1014
  "web": {
@@ -1011,9 +1042,9 @@ export type SetAppThemeOptions = {
1011
1042
  "unixUtsPlugin": "4.18"
1012
1043
  },
1013
1044
  "harmony": {
1014
- "osVer": "x",
1015
- "uniVer": "x",
1016
- "unixVer": "x"
1045
+ "osVer": "5.0.0",
1046
+ "uniVer": "4.65",
1047
+ "unixVer": "4.65"
1017
1048
  }
1018
1049
  },
1019
1050
  "web": {
@@ -1022,8 +1053,18 @@ export type SetAppThemeOptions = {
1022
1053
  }
1023
1054
  }
1024
1055
  */
1025
- export type AppThemeErrorCode = 702001 | 2002000;
1056
+ export type AppThemeErrorCode =
1057
+ /**
1058
+ * 参数错误
1059
+ */
1060
+ 702001 |
1061
+ /**
1062
+ * 未知错误
1063
+ */
1064
+ 2002000;
1065
+
1026
1066
  export type AppThemeFail = IAppThemeFail;
1067
+
1027
1068
  /**
1028
1069
  * @uniPlatform
1029
1070
  {
@@ -1043,9 +1084,9 @@ export type AppThemeFail = IAppThemeFail;
1043
1084
  "unixUtsPlugin": "4.18"
1044
1085
  },
1045
1086
  "harmony": {
1046
- "osVer": "x",
1047
- "uniVer": "x",
1048
- "unixVer": "x"
1087
+ "osVer": "5.0.0",
1088
+ "uniVer": "4.65",
1089
+ "unixVer": "4.65"
1049
1090
  }
1050
1091
  },
1051
1092
  "web": {
@@ -1062,8 +1103,17 @@ export type OnHostThemeChangeCallbackResult = {
1062
1103
  /**
1063
1104
  * 主题名称
1064
1105
  */
1065
- hostTheme: 'dark' | 'light'
1106
+ hostTheme:
1107
+ /**
1108
+ * 亮色模式
1109
+ */
1110
+ 'light' |
1111
+ /**
1112
+ * 深色模式
1113
+ */
1114
+ 'dark'
1066
1115
  };
1116
+
1067
1117
  export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1068
1118
 
1069
1119
 
@@ -1115,6 +1165,15 @@ export type OnThemeChangeCallbackResult = {
1115
1165
  * }
1116
1166
  * }
1117
1167
  */
1118
- theme: 'dark' | 'light'
1168
+ theme:
1169
+ /**
1170
+ * 亮色模式
1171
+ */
1172
+ 'light' |
1173
+ /**
1174
+ * 深色模式
1175
+ */
1176
+ 'dark'
1119
1177
  };
1178
+
1120
1179
  export type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;