@dcloudio/uni-app-x 0.7.12 → 0.7.13

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 (215) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +843 -843
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/DOMRect.d.ts +56 -56
  11. package/types/native/DrawableContext.d.ts +162 -162
  12. package/types/native/INavigationBar.d.ts +22 -22
  13. package/types/native/IUniElement.d.ts +760 -760
  14. package/types/native/IUniError.d.ts +20 -20
  15. package/types/native/IUniForm.d.ts +9 -9
  16. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  17. package/types/native/NodeData.d.ts +22 -22
  18. package/types/native/PageNode.d.ts +6 -6
  19. package/types/native/SnapshotOptions.d.ts +63 -63
  20. package/types/native/SourceError.d.ts +46 -46
  21. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  22. package/types/native/UniAggregateError.d.ts +19 -19
  23. package/types/native/UniApp.d.ts +79 -79
  24. package/types/native/UniCallbackWrapper.d.ts +7 -7
  25. package/types/native/UniCustomEvent.d.ts +24 -24
  26. package/types/native/UniDocument.d.ts +83 -83
  27. package/types/native/UniElement.d.ts +74 -74
  28. package/types/native/UniError.d.ts +70 -70
  29. package/types/native/UniEvent.d.ts +62 -62
  30. package/types/native/UniFormControl.d.ts +8 -8
  31. package/types/native/UniFormControlElement.d.ts +14 -14
  32. package/types/native/UniImageErrorEvent.d.ts +33 -33
  33. package/types/native/UniImageLoadEvent.d.ts +37 -37
  34. package/types/native/UniInputBlurEvent.d.ts +36 -36
  35. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  36. package/types/native/UniInputEvent.d.ts +38 -38
  37. package/types/native/UniInputFocusEvent.d.ts +53 -48
  38. package/types/native/UniNativePage.d.ts +219 -181
  39. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  40. package/types/native/UniPageEvent.d.ts +10 -10
  41. package/types/native/UniPageManager.d.ts +17 -17
  42. package/types/native/UniPageScrollEvent.d.ts +13 -13
  43. package/types/native/UniPointerEvent.d.ts +74 -74
  44. package/types/native/UniRefresherEvent.d.ts +18 -18
  45. package/types/native/UniResizeEvent.d.ts +34 -34
  46. package/types/native/UniResizeObserver.d.ts +184 -0
  47. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  48. package/types/native/UniScrollEvent.d.ts +42 -42
  49. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  50. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  51. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  52. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  53. package/types/native/UniSwiperAnimationFinishEvent.d.ts +22 -22
  54. package/types/native/UniSwiperChangeEvent.d.ts +22 -22
  55. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  56. package/types/native/UniTabTapEvent.d.ts +18 -18
  57. package/types/native/UniTabsElement.d.ts +59 -59
  58. package/types/native/UniTextElement.d.ts +34 -34
  59. package/types/native/UniTextareaFocusEvent.d.ts +54 -49
  60. package/types/native/UniTouchEvent.d.ts +64 -64
  61. package/types/native/UniVideoElement.d.ts +70 -70
  62. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  63. package/types/native/UniWebViewElement.d.ts +10 -10
  64. package/types/native/UniWebViewErrorEvent.d.ts +59 -47
  65. package/types/native/UniWebViewLoadEvent.d.ts +41 -36
  66. package/types/native/UniWebViewLoadingEvent.d.ts +41 -36
  67. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  68. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  69. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  70. package/types/native/WebViewStyles.d.ts +20 -20
  71. package/types/native/global.d.ts +530 -519
  72. package/types/native/index.d.ts +66 -65
  73. package/types/native-global/index.d.ts +1 -1
  74. package/types/page.d.ts +1593 -1593
  75. package/types/process.d.ts +5 -5
  76. package/types/uni/base/index.d.ts +3 -3
  77. package/types/uni/env/index.d.ts +64 -64
  78. package/types/uni/global.d.ts +5 -5
  79. package/types/uni/index.d.ts +2 -2
  80. package/types/uni/uts-plugin-api/global.d.ts +35 -35
  81. package/types/uni/uts-plugin-api/index.d.ts +35 -35
  82. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  83. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  84. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +43 -43
  85. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  86. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  87. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +412 -412
  88. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  90. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +129 -129
  91. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  92. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  93. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +277 -277
  94. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  95. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  96. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +82 -82
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +136 -66
  98. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +67 -32
  99. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1784 -450
  100. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  102. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  103. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  104. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +113 -109
  105. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  106. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  107. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +398 -350
  108. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  109. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  110. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  111. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  112. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +73 -73
  113. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  114. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  115. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +39 -39
  116. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +20 -20
  117. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +9 -9
  118. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +151 -151
  119. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +24 -24
  120. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +11 -11
  121. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  122. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  123. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +157 -157
  124. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +24 -24
  125. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +11 -11
  126. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +84 -88
  127. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  128. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  129. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  132. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  133. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  134. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  135. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  136. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +152 -152
  137. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  138. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  139. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +557 -557
  140. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +158 -158
  141. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +78 -78
  142. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +926 -906
  143. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +44 -44
  144. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +21 -21
  145. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +794 -794
  146. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +78 -78
  147. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +38 -38
  148. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +4 -3
  149. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  150. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  151. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +30 -13
  152. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  153. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  154. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +24 -24
  155. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +11 -11
  156. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +143 -143
  157. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -30
  158. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -14
  159. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +2 -1
  160. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +74 -74
  161. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +36 -36
  162. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +26 -26
  163. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +12 -12
  164. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +174 -174
  165. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  166. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  167. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2020 -2020
  168. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  169. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  170. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +33 -33
  171. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  172. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  173. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +531 -531
  174. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +132 -132
  175. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +65 -65
  176. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +926 -926
  177. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  178. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  179. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +52 -52
  180. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  181. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  182. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  183. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  184. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +132 -132
  185. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  186. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  187. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +141 -141
  188. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +56 -56
  189. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +27 -27
  190. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  191. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  192. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +203 -203
  193. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  194. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  195. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  196. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  197. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +404 -404
  198. package/types/uni-cloud/index.d.ts +59 -59
  199. package/types/uni-cloud/interface.d.ts +848 -801
  200. package/types/uni-cloud/unicloud-db/index.d.ts +81 -0
  201. package/types/uni-cloud/unicloud-db/index.ts +313 -313
  202. package/types/uni-global/index.d.ts +1 -1
  203. package/types/vue/CheckboxGroupChangeEvent.d.ts +36 -36
  204. package/types/vue/LifeCycle.d.ts +55 -55
  205. package/types/vue/PickerViewChangeEvent.d.ts +36 -36
  206. package/types/vue/ProgressActiveendEvent.d.ts +30 -30
  207. package/types/vue/RadioGroupChangeEvent.d.ts +36 -36
  208. package/types/vue/SliderChangeEvent.d.ts +32 -32
  209. package/types/vue/SwitchChangeEvent.d.ts +30 -30
  210. package/types/vue/UniCanvasElement.d.ts +270 -270
  211. package/types/vue/UniCloudDBElement.d.ts +215 -215
  212. package/types/vue/UniFormElement.d.ts +51 -51
  213. package/types/vue/UniNavigatorElement.d.ts +7 -7
  214. package/types/vue/index.d.ts +11 -11
  215. package/uts-plugin.d.ts +27 -26
@@ -1,350 +1,398 @@
1
- export type GetAppBaseInfoOptions = {
2
- /**
3
- * @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
4
- */
5
- filter: Array<string>
6
- };
7
-
8
- export type GetAppBaseInfoResult = {
9
- /**
10
- * manifest.json 中应用appid,即DCloud appid。
11
- */
12
- appId?: string,
13
- /**
14
- * `manifest.json` 中应用名称。
15
- */
16
- appName?: string,
17
- /**
18
- * `manifest.json` 中应用版本名称。
19
- */
20
- appVersion?: string,
21
- /**
22
- * `manifest.json` 中应用版本名号。
23
- */
24
- appVersionCode?: string,
25
- /**
26
- * 应用设置的语言en、zh-Hans、zh-Hant、fr、es
27
- */
28
- appLanguage?: string,
29
- /**
30
- * 应用设置的语言
31
- */
32
- language?: string,
33
- /**
34
- * 引擎版本号。已废弃,仅为了向下兼容保留
35
- * @deprecated 已废弃,仅为了向下兼容保留
36
- */
37
- version?: string,
38
- /**
39
- * 应用资源(wgt)的版本名称。
40
- *
41
- * @uniPlatform
42
- * {
43
- * "app": {
44
- * "android": {
45
- * "osVer": "5.0",
46
- * "uniVer": "√",
47
- * "unixVer": "x"
48
- * },
49
- * "ios": {
50
- * "osVer": "12.0",
51
- * "uniVer": "√",
52
- * "unixVer": "x"
53
- * }
54
- * }
55
- * }
56
- */
57
- appWgtVersion?: string,
58
- /**
59
- * 小程序宿主语言
60
- *
61
- * @uniPlatform
62
- * {
63
- * "app": {
64
- * "android": {
65
- * "osVer": "5.0",
66
- * "uniVer": "√",
67
- * "unixVer": "x"
68
- * },
69
- * "ios": {
70
- * "osVer": "12.0",
71
- * "uniVer": "",
72
- * "unixVer": "x"
73
- * }
74
- * }
75
- * }
76
- */
77
- hostLanguage?: string,
78
- /**
79
- * App、小程序宿主版本。
80
- *
81
- * @uniPlatform
82
- * {
83
- * "app": {
84
- * "android": {
85
- * "osVer": "5.0",
86
- * "uniVer": "√",
87
- * "unixVer": "x"
88
- * },
89
- * "ios": {
90
- * "osVer": "12.0",
91
- * "uniVer": "√",
92
- * "unixVer": "x"
93
- * }
94
- * }
95
- * }
96
- */
97
- hostVersion?: string,
98
- /**
99
- * 小程序宿主名称
100
- *
101
- * @uniPlatform
102
- * {
103
- * "app": {
104
- * "android": {
105
- * "osVer": "5.0",
106
- * "uniVer": "√",
107
- * "unixVer": "x"
108
- * },
109
- * "ios": {
110
- * "osVer": "12.0",
111
- * "uniVer": "√",
112
- * "unixVer": "x"
113
- * }
114
- * }
115
- * }
116
- */
117
- hostName?: string,
118
- /**
119
- * 小程序宿主包名
120
- *
121
- * @uniPlatform
122
- * {
123
- * "app": {
124
- * "android": {
125
- * "osVer": "5.0",
126
- * "uniVer": "√",
127
- * "unixVer": "x"
128
- * },
129
- * "ios": {
130
- * "osVer": "12.0",
131
- * "uniVer": "√",
132
- * "unixVer": "x"
133
- * }
134
- * }
135
- * }
136
- */
137
- hostPackageName?: string,
138
- /**
139
- * uni小程序SDK版本、小程序客户端基础库版本
140
- *
141
- * @uniPlatform
142
- * {
143
- * "app": {
144
- * "android": {
145
- * "osVer": "5.0",
146
- * "uniVer": "",
147
- * "unixVer": "x"
148
- * },
149
- * "ios": {
150
- * "osVer": "12.0",
151
- * "uniVer": "√",
152
- * "unixVer": "x"
153
- * }
154
- * }
155
- * }
156
- */
157
- hostSDKVersion?: string,
158
- /**
159
- * 系统当前主题,取值为light或dark。微信小程序全局配置"darkmode":true时才能获取,否则为 undefined (不支持小游戏)
160
- *
161
- * @uniPlatform
162
- * {
163
- * "app": {
164
- * "android": {
165
- * "osVer": "5.0",
166
- * "uniVer": "√",
167
- * "unixVer": "x"
168
- * },
169
- * "ios": {
170
- * "osVer": "12.0",
171
- * "uniVer": "√",
172
- * "unixVer": "x"
173
- * }
174
- * }
175
- * }
176
- */
177
- hostTheme?: string,
178
- /**
179
- * 是否uni-app x
180
- */
181
- isUniAppX ?: boolean,
182
-
183
- /**
184
- * uni 编译器版本
185
- * @deprecated 已废弃,仅为了向下兼容保留
186
- */
187
- uniCompileVersion ?: string,
188
- /**
189
- * uni 编译器版本
190
- *
191
- * @uniPlatform
192
- * {
193
- * "app": {
194
- * "android": {
195
- * "osVer": "5.0",
196
- * "uniVer": "x",
197
- * "unixVer": "4.0"
198
- * },
199
- * "ios": {
200
- * "osVer": "12.0",
201
- * "uniVer": "x",
202
- * "unixVer": "x"
203
- * }
204
- * }
205
- * }
206
- */
207
- uniCompilerVersion ?: string,
208
- /**
209
- * uni-app 运行平台。
210
- */
211
- uniPlatform ?: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei',
212
- /**
213
- * uni 运行时版本
214
- */
215
- uniRuntimeVersion ?: string,
216
- /**
217
- * uni 编译器版本号
218
- * @deprecated 已废弃,仅为了向下兼容保留
219
- */
220
- uniCompileVersionCode?: number,
221
- /**
222
- * uni 编译器版本号
223
- *
224
- * @uniPlatform
225
- * {
226
- * "app": {
227
- * "android": {
228
- * "osVer": "5.0",
229
- * "uniVer": "x",
230
- * "unixVer": "4.0"
231
- * },
232
- * "ios": {
233
- * "osVer": "12.0",
234
- * "uniVer": "x",
235
- * "unixVer": "x"
236
- * }
237
- * }
238
- * }
239
- */
240
- uniCompilerVersionCode?: number,
241
- /**
242
- * uni 运行时版本号
243
- */
244
- uniRuntimeVersionCode?: number,
245
- /**
246
- * Android的包名
247
- *
248
- * @uniPlatform
249
- * {
250
- * "app": {
251
- * "android": {
252
- * "osVer": "5.0",
253
- * "uniVer": "x",
254
- * "unixVer": "3.97"
255
- * },
256
- * "ios": {
257
- * "osVer": "x",
258
- * "uniVer": "x",
259
- * "unixVer": "x"
260
- * }
261
- * }
262
- * }
263
- */
264
- packageName?: string,
265
- /**
266
- * iOS的bundleId
267
- *
268
- * @uniPlatform
269
- * {
270
- * "app": {
271
- * "android": {
272
- * "osVer": "x",
273
- * "uniVer": "x",
274
- * "unixVer": "x"
275
- * },
276
- * "ios": {
277
- * "osVer": "12.0",
278
- * "uniVer": "x",
279
- * "unixVer": "4.11"
280
- * }
281
- * }
282
- * }
283
- * @autodoc false
284
- */
285
- bundleId?: string,
286
- /**
287
- * Android: 应用签名证书的SHA1值(全部为小写,中间不包含“:”)。 为了保证应用的安全性,请使用自己生成的证书(不要使用公共测试证书)。
288
- * iOS: 应用签名证书中绑定的Bundle ID(AppleID)的md5值(全部为小写)。
289
- *
290
- * @uniPlatform
291
- * {
292
- * "app": {
293
- * "android": {
294
- * "osVer": "5.0",
295
- * "uniVer": "x",
296
- * "unixVer": "3.97"
297
- * },
298
- * "ios": {
299
- * "osVer": "12.0",
300
- * "uniVer": "x",
301
- * "unixVer": "4.11"
302
- * }
303
- * }
304
- * }
305
- */
306
- signature?: string,
307
- }
308
-
309
- /**
310
- * @param{GetAppBaseInfoOptions} [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
311
- */
312
- export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
313
-
314
-
315
- export interface Uni {
316
- /**
317
- * GetAppBaseInfo(Object object)
318
- * @description
319
- * 获取app基本信息
320
- * @param {GetAppBaseInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
321
- * @return {object}
322
- * @tutorial https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
323
- * @uniPlatform
324
- * {
325
- * "app": {
326
- * "android": {
327
- * "osVer": "5.0",
328
- * "uniVer": "√",
329
- * "unixVer": "3.9+"
330
- * },
331
- * "ios": {
332
- * "osVer": "12.0",
333
- * "uniVer": "√",
334
- * "unixVer": "4.11"
335
- * }
336
- * },
337
- * "web": {
338
- * "uniVer": "",
339
- * "unixVer": "4.0"
340
- * }
341
- * }
342
- * @example
343
- ```typescript
344
- uni.getAppBaseInfo({
345
- filter:[]
346
- })
347
- ```
348
- */
349
- getAppBaseInfo(options?: GetAppBaseInfoOptions | null): GetAppBaseInfoResult;
350
- }
1
+ export type GetAppBaseInfoOptions = {
2
+ /**
3
+ * @description 过滤字段的字符串数组,假如要获取指定字段,传入此数组。
4
+ */
5
+ filter: Array<string>
6
+ };
7
+
8
+ export type GetAppBaseInfoResult = {
9
+ /**
10
+ * manifest.json 中应用appid,即DCloud appid。
11
+ */
12
+ appId?: string,
13
+ /**
14
+ * `manifest.json` 中应用名称。
15
+ */
16
+ appName?: string,
17
+ /**
18
+ * `manifest.json` 中应用版本名称。
19
+ */
20
+ appVersion?: string,
21
+ /**
22
+ * `manifest.json` 中应用版本名号。
23
+ */
24
+ appVersionCode?: string,
25
+ /**
26
+ * 应用设置的语言en、zh-Hans、zh-Hant、fr、es
27
+ */
28
+ appLanguage?: string,
29
+ /**
30
+ * 应用设置的语言
31
+ */
32
+ language?: string,
33
+ /**
34
+ * 引擎版本号。已废弃,仅为了向下兼容保留
35
+ * @deprecated 已废弃,仅为了向下兼容保留
36
+ */
37
+ version?: string,
38
+ /**
39
+ * 应用资源(wgt)的版本名称。
40
+ *
41
+ * @uniPlatform
42
+ * {
43
+ * "app": {
44
+ * "android": {
45
+ * "osVer": "5.0",
46
+ * "uniVer": "√",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "ios": {
50
+ * "osVer": "12.0",
51
+ * "uniVer": "√",
52
+ * "unixVer": "x"
53
+ * }
54
+ * },
55
+ * "web": {
56
+ * "uniVer": "x",
57
+ * "unixVer": "x"
58
+ * }
59
+ * }
60
+ */
61
+ appWgtVersion?: string,
62
+ /**
63
+ * 小程序宿主语言
64
+ *
65
+ * @uniPlatform
66
+ * {
67
+ * "app": {
68
+ * "android": {
69
+ * "osVer": "5.0",
70
+ * "uniVer": "",
71
+ * "unixVer": "x"
72
+ * },
73
+ * "ios": {
74
+ * "osVer": "12.0",
75
+ * "uniVer": "√",
76
+ * "unixVer": "x"
77
+ * }
78
+ * },
79
+ * "web": {
80
+ * "uniVer": "x",
81
+ * "unixVer": "x"
82
+ * }
83
+ * }
84
+ */
85
+ hostLanguage?: string,
86
+ /**
87
+ * App、小程序宿主版本。
88
+ *
89
+ * @uniPlatform
90
+ * {
91
+ * "app": {
92
+ * "android": {
93
+ * "osVer": "5.0",
94
+ * "uniVer": "√",
95
+ * "unixVer": "x"
96
+ * },
97
+ * "ios": {
98
+ * "osVer": "12.0",
99
+ * "uniVer": "√",
100
+ * "unixVer": "x"
101
+ * }
102
+ * },
103
+ * "web": {
104
+ * "uniVer": "x",
105
+ * "unixVer": "x"
106
+ * }
107
+ * }
108
+ */
109
+ hostVersion?: string,
110
+ /**
111
+ * 小程序宿主名称
112
+ *
113
+ * @uniPlatform
114
+ * {
115
+ * "app": {
116
+ * "android": {
117
+ * "osVer": "5.0",
118
+ * "uniVer": "√",
119
+ * "unixVer": "x"
120
+ * },
121
+ * "ios": {
122
+ * "osVer": "12.0",
123
+ * "uniVer": "√",
124
+ * "unixVer": "x"
125
+ * }
126
+ * },
127
+ * "web": {
128
+ * "uniVer": "x",
129
+ * "unixVer": "x"
130
+ * }
131
+ * }
132
+ */
133
+ hostName?: string,
134
+ /**
135
+ * 小程序宿主包名
136
+ *
137
+ * @uniPlatform
138
+ * {
139
+ * "app": {
140
+ * "android": {
141
+ * "osVer": "5.0",
142
+ * "uniVer": "√",
143
+ * "unixVer": "x"
144
+ * },
145
+ * "ios": {
146
+ * "osVer": "12.0",
147
+ * "uniVer": "",
148
+ * "unixVer": "x"
149
+ * }
150
+ * },
151
+ * "web": {
152
+ * "uniVer": "x",
153
+ * "unixVer": "x"
154
+ * }
155
+ * }
156
+ */
157
+ hostPackageName?: string,
158
+ /**
159
+ * uni小程序SDK版本、小程序客户端基础库版本
160
+ *
161
+ * @uniPlatform
162
+ * {
163
+ * "app": {
164
+ * "android": {
165
+ * "osVer": "5.0",
166
+ * "uniVer": "√",
167
+ * "unixVer": "x"
168
+ * },
169
+ * "ios": {
170
+ * "osVer": "12.0",
171
+ * "uniVer": "√",
172
+ * "unixVer": "x"
173
+ * }
174
+ * },
175
+ * "web": {
176
+ * "uniVer": "x",
177
+ * "unixVer": "x"
178
+ * }
179
+ * }
180
+ */
181
+ hostSDKVersion?: string,
182
+ /**
183
+ * 系统当前主题,取值为light或dark。微信小程序全局配置"darkmode":true时才能获取,否则为 undefined (不支持小游戏)
184
+ *
185
+ * @uniPlatform
186
+ * {
187
+ * "app": {
188
+ * "android": {
189
+ * "osVer": "5.0",
190
+ * "uniVer": "√",
191
+ * "unixVer": "x"
192
+ * },
193
+ * "ios": {
194
+ * "osVer": "12.0",
195
+ * "uniVer": "",
196
+ * "unixVer": "x"
197
+ * }
198
+ * },
199
+ * "web": {
200
+ * "uniVer": "x",
201
+ * "unixVer": "x"
202
+ * }
203
+ * }
204
+ */
205
+ hostTheme?: string,
206
+ /**
207
+ * 是否uni-app x
208
+ */
209
+ isUniAppX ?: boolean,
210
+
211
+ /**
212
+ * uni 编译器版本
213
+ * @deprecated 已废弃,仅为了向下兼容保留
214
+ */
215
+ uniCompileVersion ?: string,
216
+ /**
217
+ * uni 编译器版本
218
+ *
219
+ * @uniPlatform
220
+ * {
221
+ * "app": {
222
+ * "android": {
223
+ * "osVer": "5.0",
224
+ * "uniVer": "x",
225
+ * "unixVer": "4.0"
226
+ * },
227
+ * "ios": {
228
+ * "osVer": "12.0",
229
+ * "uniVer": "x",
230
+ * "unixVer": "4.11"
231
+ * }
232
+ * },
233
+ * "web": {
234
+ * "uniVer": "",
235
+ * "unixVer": "4.0"
236
+ * }
237
+ * }
238
+ */
239
+ uniCompilerVersion ?: string,
240
+ /**
241
+ * uni-app 运行平台。
242
+ */
243
+ uniPlatform ?: 'app' | 'web' | 'mp-weixin' | 'mp-alipay' | 'mp-baidu' | 'mp-toutiao' | 'mp-lark' | 'mp-qq' | 'mp-kuaishou' | 'mp-jd' | 'mp-360' | 'quickapp-webview' | 'quickapp-webview-union' | 'quickapp-webview-huawei',
244
+ /**
245
+ * uni 运行时版本
246
+ */
247
+ uniRuntimeVersion ?: string,
248
+ /**
249
+ * uni 编译器版本号
250
+ * @deprecated 已废弃,仅为了向下兼容保留
251
+ */
252
+ uniCompileVersionCode?: number,
253
+ /**
254
+ * uni 编译器版本号
255
+ *
256
+ * @uniPlatform
257
+ * {
258
+ * "app": {
259
+ * "android": {
260
+ * "osVer": "5.0",
261
+ * "uniVer": "x",
262
+ * "unixVer": "4.0"
263
+ * },
264
+ * "ios": {
265
+ * "osVer": "12.0",
266
+ * "uniVer": "x",
267
+ * "unixVer": "4.11"
268
+ * }
269
+ * },
270
+ * "web": {
271
+ * "uniVer": "√",
272
+ * "unixVer": "4.0"
273
+ * }
274
+ * }
275
+ */
276
+ uniCompilerVersionCode?: number,
277
+ /**
278
+ * uni 运行时版本号
279
+ */
280
+ uniRuntimeVersionCode?: number,
281
+ /**
282
+ * Android的包名
283
+ *
284
+ * @uniPlatform
285
+ * {
286
+ * "app": {
287
+ * "android": {
288
+ * "osVer": "5.0",
289
+ * "uniVer": "x",
290
+ * "unixVer": "3.97"
291
+ * },
292
+ * "ios": {
293
+ * "osVer": "x",
294
+ * "uniVer": "x",
295
+ * "unixVer": "x"
296
+ * }
297
+ * },
298
+ * "web": {
299
+ * "uniVer": "x",
300
+ * "unixVer": "x"
301
+ * }
302
+ * }
303
+ */
304
+ packageName?: string,
305
+ /**
306
+ * iOS的bundleId
307
+ *
308
+ * @uniPlatform
309
+ * {
310
+ * "app": {
311
+ * "android": {
312
+ * "osVer": "x",
313
+ * "uniVer": "x",
314
+ * "unixVer": "x"
315
+ * },
316
+ * "ios": {
317
+ * "osVer": "12.0",
318
+ * "uniVer": "x",
319
+ * "unixVer": "4.11"
320
+ * }
321
+ * },
322
+ * "web": {
323
+ * "uniVer": "x",
324
+ * "unixVer": "x"
325
+ * }
326
+ * }
327
+ * @autodoc false
328
+ */
329
+ bundleId?: string,
330
+ /**
331
+ * Android: 应用签名证书的SHA1值(全部为小写,中间不包含“:”)。 为了保证应用的安全性,请使用自己生成的证书(不要使用公共测试证书)。
332
+ * iOS: 应用签名证书中绑定的Bundle ID(AppleID)的md5值(全部为小写)。
333
+ *
334
+ * @uniPlatform
335
+ * {
336
+ * "app": {
337
+ * "android": {
338
+ * "osVer": "5.0",
339
+ * "uniVer": "x",
340
+ * "unixVer": "3.97"
341
+ * },
342
+ * "ios": {
343
+ * "osVer": "12.0",
344
+ * "uniVer": "x",
345
+ * "unixVer": "4.11"
346
+ * }
347
+ * },
348
+ * "web": {
349
+ * "uniVer": "x",
350
+ * "unixVer": "x"
351
+ * }
352
+ * }
353
+ */
354
+ signature?: string,
355
+ }
356
+
357
+ /**
358
+ * @param{GetAppBaseInfoOptions} [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
359
+ */
360
+ export type GetAppBaseInfo = (options?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
361
+
362
+
363
+ export interface Uni {
364
+ /**
365
+ * GetAppBaseInfo(Object object)
366
+ * @description
367
+ * 获取app基本信息
368
+ * @param {GetAppBaseInfoOptions} options [options=包含所有字段的过滤对象] 过滤的字段对象, 不传参数默认为获取全部字段。
369
+ * @return {object}
370
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/getAppBaseInfo.html
371
+ * @uniPlatform
372
+ * {
373
+ * "app": {
374
+ * "android": {
375
+ * "osVer": "5.0",
376
+ * "uniVer": "√",
377
+ * "unixVer": "3.9+"
378
+ * },
379
+ * "ios": {
380
+ * "osVer": "12.0",
381
+ * "uniVer": "√",
382
+ * "unixVer": "4.11"
383
+ * }
384
+ * },
385
+ * "web": {
386
+ * "uniVer": "√",
387
+ * "unixVer": "4.0"
388
+ * }
389
+ * }
390
+ * @example
391
+ ```typescript
392
+ uni.getAppBaseInfo({
393
+ filter:[]
394
+ })
395
+ ```
396
+ */
397
+ getAppBaseInfo(options?: GetAppBaseInfoOptions | null): GetAppBaseInfoResult;
398
+ }