@dcloudio/uni-app-x 0.7.59 → 0.7.60

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 (149) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -8
  3. package/types/native/IUniElement.d.ts +0 -2
  4. package/types/native/UniFormControl.d.ts +1 -1
  5. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  6. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  7. package/types/native/WebViewStyles.d.ts +1 -1
  8. package/types/native/global.d.ts +2 -0
  9. package/types/page.d.ts +134 -22
  10. package/types/uni/uni-camera-global.d.ts +4 -0
  11. package/types/uni/uni-camera.d.ts +10 -9
  12. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  13. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  14. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  15. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  16. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  17. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  18. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  19. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  23. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  24. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  25. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  26. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
  27. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  28. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  33. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  35. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
  37. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  39. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  40. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  41. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  42. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
  43. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
  44. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
  45. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  46. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  47. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
  48. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  49. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
  50. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  52. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  54. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  55. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
  56. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  57. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  58. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  59. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  61. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  62. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
  63. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  64. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  65. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  66. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  67. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  68. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  69. package/types/uni-cloud/interface.d.ts +13 -9
  70. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  71. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  72. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  73. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  74. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  75. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  76. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  77. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  78. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  79. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  80. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  81. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  82. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  83. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  84. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  85. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  86. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  87. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  88. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  89. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  90. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  91. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  92. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  93. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  94. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  95. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  96. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  97. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  98. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  99. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  100. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  101. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  102. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  103. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  104. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  105. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  106. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  107. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  108. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  109. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  110. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  111. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  112. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  113. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  114. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  115. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  116. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  117. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  118. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  119. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  120. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  121. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  122. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  123. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  124. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  125. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  126. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  127. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  128. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  129. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  130. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  131. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  132. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  133. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  134. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  135. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  136. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  137. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  138. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  139. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  140. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  141. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  142. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  143. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  144. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  145. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  146. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  147. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  148. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  149. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
@@ -1,548 +0,0 @@
1
- export type CreateSelectorQuery = () => SelectorQuery
2
-
3
- export type SelectorQueryNodeInfoCallback = (result: any) => void
4
-
5
- export type NodeInfo = {
6
- /**
7
- * 节点的ID
8
- */
9
- id: string | null
10
- /**
11
- * 节点的dataset
12
- */
13
- dataset: any | null
14
- /**
15
- * 节点的左边界坐标
16
- */
17
- left: number | null
18
- /**
19
- * 节点的右边界坐标
20
- */
21
- right: number | null
22
- /**
23
- * 节点的上边界坐标
24
- */
25
- top: number | null
26
- /**
27
- * 节点的下边界坐标
28
- */
29
- bottom: number | null
30
- /**
31
- * 节点的宽度
32
- */
33
- width: number | null
34
- /**
35
- * 节点的高度
36
- */
37
- height: number | null
38
- /**
39
- * 节点的水平滚动位置
40
- */
41
- scrollLeft: number | null
42
- /**
43
- * 节点的垂直滚动位置
44
- */
45
- scrollTop: number | null
46
- /**
47
- * 节点的内容高度
48
- */
49
- scrollHeight: number | null
50
- /**
51
- * 节点的内容宽度
52
- */
53
- scrollWidth: number | null
54
- /**
55
- * 元素 UniElement
56
- */
57
- node: any | null
58
- /**
59
- * 节点对应的 Context 对象
60
- * @type MapContext | CanvasContext | VideoContext | EditorContext
61
- * @uniPlatform {
62
- * "app": {
63
- * "android": {
64
- * "osVer": "5.0",
65
- * "uniVer": "√",
66
- * "unixVer": "x"
67
- * },
68
- * "ios": {
69
- * "osVer": "10.0",
70
- * "uniVer": "√",
71
- * "unixVer": "x"
72
- * }
73
- * },
74
- * "mp": {
75
- * "weixin": {
76
- * "hostVer": "√",
77
- * "uniVer": "√",
78
- * "unixVer": "4.41"
79
- * },
80
- * "alipay": {
81
- * "hostVer": "√",
82
- * "uniVer": "√",
83
- * "unixVer": "x"
84
- * },
85
- * "baidu": {
86
- * "hostVer": "√",
87
- * "uniVer": "√",
88
- * "unixVer": "x"
89
- * },
90
- * "toutiao": {
91
- * "hostVer": "√",
92
- * "uniVer": "√",
93
- * "unixVer": "x"
94
- * },
95
- * "lark": {
96
- * "hostVer": "√",
97
- * "uniVer": "√",
98
- * "unixVer": "x"
99
- * },
100
- * "qq": {
101
- * "hostVer": "√",
102
- * "uniVer": "√",
103
- * "unixVer": "x"
104
- * },
105
- * "kuaishou": {
106
- * "hostVer": "√",
107
- * "uniVer": "√",
108
- * "unixVer": "x"
109
- * },
110
- * "jd": {
111
- * "hostVer": "√",
112
- * "uniVer": "√",
113
- * "unixVer": "x"
114
- * }
115
- * },
116
- * "web": {
117
- * "uniVer": "√",
118
- * "unixVer": "4.0"
119
- * }
120
- * }
121
- */
122
- context: any | null
123
- }
124
-
125
- export type NodeField = {
126
- /**
127
- * 是否返回节点 id
128
- * @type boolean
129
- */
130
- id?: boolean | null
131
- /**
132
- * 是否返回节点 dataset
133
- * @type boolean
134
- */
135
- dataset?: boolean | null
136
- /**
137
- * 是否返回节点布局位置(left right top bottom)
138
- * @type boolean
139
- */
140
- rect?: boolean | null
141
- /**
142
- * 是否返回节点尺寸(width height)
143
- * @type boolean
144
- */
145
- size?: boolean | null
146
- /**
147
- * 是否返回节点的 scrollLeft scrollTop,节点必须是 scroll-view 或者 viewport
148
- * @type boolean
149
- */
150
- scrollOffset?: boolean | null
151
- /**
152
- * 指定属性名列表,返回节点对应属性名的当前属性值(只能获得组件文档中标注的常规属性值,id class style 和事件绑定的属性值不可获取)
153
- */
154
- properties?: string[] | null
155
- /**
156
- * 指定样式名列表,返回节点对应样式名的当前值
157
- */
158
- computedStyle?: string[] | null
159
- /**
160
- * 是否返回节点对应的 Context 对象
161
- * @type boolean
162
- * @uniPlatform {
163
- * "app": {
164
- * "android": {
165
- * "osVer": "5.0",
166
- * "uniVer": "√",
167
- * "unixVer": "x"
168
- * },
169
- * "ios": {
170
- * "osVer": "10.0",
171
- * "uniVer": "√",
172
- * "unixVer": "x"
173
- * }
174
- * },
175
- * "mp": {
176
- * "weixin": {
177
- * "hostVer": "√",
178
- * "uniVer": "√",
179
- * "unixVer": "4.41"
180
- * },
181
- * "alipay": {
182
- * "hostVer": "√",
183
- * "uniVer": "√",
184
- * "unixVer": "x"
185
- * },
186
- * "baidu": {
187
- * "hostVer": "√",
188
- * "uniVer": "√",
189
- * "unixVer": "x"
190
- * },
191
- * "toutiao": {
192
- * "hostVer": "√",
193
- * "uniVer": "√",
194
- * "unixVer": "x"
195
- * },
196
- * "lark": {
197
- * "hostVer": "√",
198
- * "uniVer": "√",
199
- * "unixVer": "x"
200
- * },
201
- * "qq": {
202
- * "hostVer": "√",
203
- * "uniVer": "√",
204
- * "unixVer": "x"
205
- * },
206
- * "kuaishou": {
207
- * "hostVer": "√",
208
- * "uniVer": "√",
209
- * "unixVer": "x"
210
- * },
211
- * "jd": {
212
- * "hostVer": "√",
213
- * "uniVer": "√",
214
- * "unixVer": "x"
215
- * }
216
- * },
217
- * "web": {
218
- * "uniVer": "√",
219
- * "unixVer": "4.0"
220
- * }
221
- * }
222
- */
223
- context?: boolean | null
224
- /**
225
- * 是否返回节点对应的 Node 实例
226
- */
227
- node?: boolean | null;
228
- }
229
-
230
- export interface NodesRef {
231
- /**
232
- * 添加节点的布局位置的查询请求,相对于显示区域,以像素为单位
233
- */
234
- boundingClientRect(
235
- callback: SelectorQueryNodeInfoCallback | null,
236
- ): SelectorQuery
237
-
238
- boundingClientRect(): SelectorQuery
239
-
240
- /**
241
- * 添加节点的滚动位置查询请求,以像素为单位
242
- */
243
- scrollOffset(callback: SelectorQueryNodeInfoCallback): SelectorQuery
244
-
245
- /**
246
- * 获取节点的相关信息,需要获取的字段在fields中指定
247
- * @uniPlatform {
248
- * "app": {
249
- * "android": {
250
- * "osVer": "5.0",
251
- * "uniVer": "√",
252
- * "unixVer": "4.25"
253
- * },
254
- * "ios": {
255
- * "osVer": "12.0",
256
- * "uniVer": "√",
257
- * "unixVer": "4.25"
258
- * }
259
- * },
260
- * "mp": {
261
- * "weixin": {
262
- * "hostVer": "√",
263
- * "uniVer": "√",
264
- * "unixVer": "4.41"
265
- * },
266
- * "alipay": {
267
- * "hostVer": "√",
268
- * "uniVer": "√",
269
- * "unixVer": "x"
270
- * },
271
- * "baidu": {
272
- * "hostVer": "√",
273
- * "uniVer": "√",
274
- * "unixVer": "x"
275
- * },
276
- * "toutiao": {
277
- * "hostVer": "√",
278
- * "uniVer": "√",
279
- * "unixVer": "x"
280
- * },
281
- * "lark": {
282
- * "hostVer": "√",
283
- * "uniVer": "√",
284
- * "unixVer": "x"
285
- * },
286
- * "qq": {
287
- * "hostVer": "√",
288
- * "uniVer": "√",
289
- * "unixVer": "x"
290
- * },
291
- * "kuaishou": {
292
- * "hostVer": "√",
293
- * "uniVer": "√",
294
- * "unixVer": "x"
295
- * },
296
- * "jd": {
297
- * "hostVer": "√",
298
- * "uniVer": "√",
299
- * "unixVer": "x"
300
- * }
301
- * },
302
- * "web": {
303
- * "uniVer": "√",
304
- * "unixVer": "4.0"
305
- * }
306
- * }
307
- */
308
- fields(
309
- fields: NodeField,
310
- callback: SelectorQueryNodeInfoCallback | null,
311
- ): SelectorQuery
312
-
313
- /**
314
- * 添加节点的 Context 对象查询请求
315
- * @uniPlatform {
316
- * "app": {
317
- * "android": {
318
- * "osVer": "5.0",
319
- * "uniVer": "√",
320
- * "unixVer": "x"
321
- * },
322
- * "ios": {
323
- * "osVer": "10.0",
324
- * "uniVer": "√",
325
- * "unixVer": "x"
326
- * }
327
- * },
328
- * "mp": {
329
- * "weixin": {
330
- * "hostVer": "√",
331
- * "uniVer": "√",
332
- * "unixVer": "4.41"
333
- * },
334
- * "alipay": {
335
- * "hostVer": "√",
336
- * "uniVer": "√",
337
- * "unixVer": "x"
338
- * },
339
- * "baidu": {
340
- * "hostVer": "√",
341
- * "uniVer": "√",
342
- * "unixVer": "x"
343
- * },
344
- * "toutiao": {
345
- * "hostVer": "√",
346
- * "uniVer": "√",
347
- * "unixVer": "x"
348
- * },
349
- * "lark": {
350
- * "hostVer": "√",
351
- * "uniVer": "√",
352
- * "unixVer": "x"
353
- * },
354
- * "qq": {
355
- * "hostVer": "√",
356
- * "uniVer": "√",
357
- * "unixVer": "x"
358
- * },
359
- * "kuaishou": {
360
- * "hostVer": "√",
361
- * "uniVer": "√",
362
- * "unixVer": "x"
363
- * },
364
- * "jd": {
365
- * "hostVer": "√",
366
- * "uniVer": "√",
367
- * "unixVer": "x"
368
- * }
369
- * },
370
- * "web": {
371
- * "uniVer": "√",
372
- * "unixVer": "4.0"
373
- * }
374
- * }
375
- */
376
- context(callback: SelectorQueryNodeInfoCallback): SelectorQuery
377
-
378
- /**
379
- * 获取 Node 节点实例。目前支持 Canvas 的获取。
380
- * 获取节点的相关信息,需要获取的字段在fields中指定
381
- * @uniPlatform {
382
- * "app": {
383
- * "android": {
384
- * "osVer": "5.0",
385
- * "uniVer": "√",
386
- * "unixVer": "4.25"
387
- * },
388
- * "ios": {
389
- * "osVer": "12.0",
390
- * "uniVer": "√",
391
- * "unixVer": "4.25"
392
- * }
393
- * },
394
- * "mp": {
395
- * "weixin": {
396
- * "hostVer": "√",
397
- * "uniVer": "√",
398
- * "unixVer": "4.41"
399
- * },
400
- * "alipay": {
401
- * "hostVer": "√",
402
- * "uniVer": "√",
403
- * "unixVer": "x"
404
- * },
405
- * "baidu": {
406
- * "hostVer": "√",
407
- * "uniVer": "√",
408
- * "unixVer": "x"
409
- * },
410
- * "toutiao": {
411
- * "hostVer": "√",
412
- * "uniVer": "√",
413
- * "unixVer": "x"
414
- * },
415
- * "lark": {
416
- * "hostVer": "√",
417
- * "uniVer": "√",
418
- * "unixVer": "x"
419
- * },
420
- * "qq": {
421
- * "hostVer": "√",
422
- * "uniVer": "√",
423
- * "unixVer": "x"
424
- * },
425
- * "kuaishou": {
426
- * "hostVer": "√",
427
- * "uniVer": "√",
428
- * "unixVer": "x"
429
- * },
430
- * "jd": {
431
- * "hostVer": "√",
432
- * "uniVer": "√",
433
- * "unixVer": "x"
434
- * }
435
- * },
436
- * "web": {
437
- * "uniVer": "√",
438
- * "unixVer": "4.0"
439
- * }
440
- * }
441
- */
442
- node(callback: (result: any) => void): SelectorQuery
443
- }
444
-
445
- export interface SelectorQuery {
446
- /**
447
- * 将选择器的选取范围更改为自定义组件component内
448
- */
449
- in(component: any | null): SelectorQuery
450
-
451
- /**
452
- * 在当前页面下选择第一个匹配选择器selector的节点
453
- */
454
- select(selector: string): NodesRef
455
-
456
- /**
457
- * 在当前页面下选择匹配选择器selector的所有节点
458
- */
459
- selectAll(selector: string): NodesRef
460
-
461
- /**
462
- * 选择显示区域
463
- */
464
- selectViewport(): NodesRef
465
-
466
- /**
467
- * 执行所有的请求
468
- */
469
- exec(callback: (result: Array<any>) => void | null): NodesRef | null
470
-
471
- exec(): NodesRef | null
472
- }
473
-
474
- export interface Uni {
475
- /**
476
- * 返回一个SelectorQuery对象实例
477
- *
478
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/nodes-info.html
479
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/nodes-info.html
480
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/nodes-info.html#createselectorquery
481
- * @uniPlatform {
482
- * "app": {
483
- * "android": {
484
- * "osVer": "5.0",
485
- * "uniVer": "√",
486
- * "unixVer": "3.91"
487
- * },
488
- * "ios": {
489
- * "osVer": "12.0",
490
- * "uniVer": "√",
491
- * "unixVer": "4.11"
492
- * },
493
- * "harmony": {
494
- * "osVer": "3.0",
495
- * "uniVer": "4.23",
496
- * "unixVer": "4.61"
497
- * }
498
- * },
499
- * "mp": {
500
- * "weixin": {
501
- * "hostVer": "√",
502
- * "uniVer": "√",
503
- * "unixVer": "4.41"
504
- * },
505
- * "alipay": {
506
- * "hostVer": "√",
507
- * "uniVer": "√",
508
- * "unixVer": "√"
509
- * },
510
- * "baidu": {
511
- * "hostVer": "√",
512
- * "uniVer": "√",
513
- * "unixVer": "√"
514
- * },
515
- * "toutiao": {
516
- * "hostVer": "√",
517
- * "uniVer": "√",
518
- * "unixVer": "√"
519
- * },
520
- * "lark": {
521
- * "hostVer": "√",
522
- * "uniVer": "√",
523
- * "unixVer": "√"
524
- * },
525
- * "qq": {
526
- * "hostVer": "√",
527
- * "uniVer": "√",
528
- * "unixVer": "√"
529
- * },
530
- * "kuaishou": {
531
- * "hostVer": "√",
532
- * "uniVer": "√",
533
- * "unixVer": "√"
534
- * },
535
- * "jd": {
536
- * "hostVer": "√",
537
- * "uniVer": "√",
538
- * "unixVer": "√"
539
- * }
540
- * },
541
- * "web": {
542
- * "uniVer": "√",
543
- * "unixVer": "4.0"
544
- * }
545
- * }
546
- */
547
- createSelectorQuery(): SelectorQuery
548
- }
@@ -1,137 +0,0 @@
1
- export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
2
-
3
- export interface WebviewContext {
4
- /**
5
- * @description 后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果。
6
- * @uniPlatform {
7
- * "app": {
8
- * "android": {
9
- * "osVer": "5.0",
10
- * "uniVer": "x",
11
- * "unixVer": "3.9.0"
12
- * },
13
- * "ios": {
14
- * "osVer": "12.0",
15
- * "uniVer": "√",
16
- * "unixVer": "4.11"
17
- * }
18
- * }
19
- * }
20
- * @uniVueVersion 2,3
21
- */
22
- back() : void
23
-
24
- /**
25
- * @description 前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果。
26
- * @uniPlatform {
27
- * "app": {
28
- * "android": {
29
- * "osVer": "5.0",
30
- * "uniVer": "x",
31
- * "unixVer": "3.9.0"
32
- * },
33
- * "ios": {
34
- * "osVer": "12.0",
35
- * "uniVer": "√",
36
- * "unixVer": "4.11"
37
- * }
38
- * }
39
- * }
40
- * @uniVueVersion 2,3
41
- */
42
- forward() : void
43
-
44
- /**
45
- * @description 重新加载 web-view 组件当前页面。
46
- * @uniPlatform {
47
- * "app": {
48
- * "android": {
49
- * "osVer": "5.0",
50
- * "uniVer": "x",
51
- * "unixVer": "3.9.0"
52
- * },
53
- * "ios": {
54
- * "osVer": "12.0",
55
- * "uniVer": "√",
56
- * "unixVer": "4.11"
57
- * }
58
- * }
59
- * }
60
- * @uniVueVersion 2,3
61
- */
62
- reload() : void
63
-
64
- /**
65
- * @description 停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源。
66
- * @uniPlatform {
67
- * "app": {
68
- * "android": {
69
- * "osVer": "5.0",
70
- * "uniVer": "x",
71
- * "unixVer": "3.9.0"
72
- * },
73
- * "ios": {
74
- * "osVer": "12.0",
75
- * "uniVer": "√",
76
- * "unixVer": "4.11"
77
- * }
78
- * }
79
- * }
80
- * @uniVueVersion 2,3
81
- */
82
- stop() : void
83
-
84
- /**
85
- * @description 在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据
86
- * @uniPlatform {
87
- * "app": {
88
- * "android": {
89
- * "osVer": "5.0",
90
- * "uniVer": "x",
91
- * "unixVer": "3.9.0"
92
- * },
93
- * "ios": {
94
- * "osVer": "12.0",
95
- * "uniVer": "√",
96
- * "unixVer": "4.11"
97
- * }
98
- * }
99
- * }
100
- * @uniVueVersion 2,3
101
- */
102
- evalJS(js : string) : void
103
- }
104
-
105
- export interface Uni {
106
- /**
107
- * @description 创建 web-view 组件的上下文对象,用于操作 web-view 的行为。
108
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-webview-context.html
109
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-webview-context.html
110
- * @uniPlatform {
111
- * "app": {
112
- * "android": {
113
- * "osVer": "5.0",
114
- * "uniVer": "x",
115
- * "unixVer": "3.9.0"
116
- * },
117
- * "ios": {
118
- * "osVer": "12.0",
119
- * "uniVer": "√",
120
- * "unixVer": "4.11"
121
- * },
122
- * "harmony": {
123
- * "osVer": "3.0",
124
- * "uniVer": "4.28",
125
- * "unixVer": "4.61"
126
- * }
127
- * },
128
- * "web": {
129
- * "uniVer": "x",
130
- * "unixVer": "x"
131
- * }
132
- * }
133
- * @uniVueVersion 2,3
134
- * @return {WebviewContext} web-view组件上下文对象
135
- */
136
- createWebviewContext(webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null): WebviewContext | null;
137
- }