@ray-js/api 0.5.8-beta-1 → 0.5.10
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.
- package/@types/BaseKit.d.ts +88 -1008
- package/@types/DeviceKit.d.ts +152 -1488
- package/@types/MiniKit.d.ts +26 -381
- package/@types/{BizKit.d.ts → TYKit.d.ts} +41 -104
- package/@types/all-kits.d.ts +1 -1
- package/lib/{BaseKit-3.0.0.d.ts → BaseKit-2.3.11.d.ts} +2 -18
- package/lib/{BaseKit-3.0.0.js → BaseKit-2.3.11.js} +2 -18
- package/lib/{DeviceKit-3.0.0.d.ts → DeviceKit-2.3.3.d.ts} +18 -58
- package/lib/{DeviceKit-3.0.0.js → DeviceKit-2.3.3.js} +20 -140
- package/lib/{MiniKit-3.0.0.d.ts → MiniKit-2.4.3.d.ts} +0 -14
- package/lib/{MiniKit-3.0.0.js → MiniKit-2.4.3.js} +0 -14
- package/lib/{BizKit-3.0.1.d.ts → TYKit-2.2.6.d.ts} +1 -2
- package/lib/{BizKit-3.0.1.js → TYKit-2.2.6.js} +1 -2
- package/lib/all-kits.d.ts +5 -5
- package/lib/all-kits.js +5 -5
- package/lib/getApp/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getApp/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getBoundingClientRect/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getBoundingClientRect/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getCurrentPages/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getCurrentPages/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getElementById/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getElementById/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getI18nInfo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getI18nInfo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/hideTabBar/index.d.ts +7 -1
- package/lib/hideTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/hideTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateBack/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateBack/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/reLaunch/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/reLaunch/{index.thing.js → index.tuya.js} +0 -0
- package/lib/readFileSync/{index.native.d.ts → index.tuya.d.ts} +0 -0
- package/lib/readFileSync/{index.native.js → index.tuya.js} +0 -0
- package/lib/redirectTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/redirectTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{readFileSync/index.thing.d.ts → requestCloud/index.tuya.d.ts} +0 -0
- package/lib/requestCloud/{index.native.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.native.d.ts → setNavigationBarColor/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarColor/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.thing.d.ts → setNavigationBarTitle/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarTitle/{index.thing.js → index.tuya.js} +0 -0
- package/lib/showTabBar/index.d.ts +7 -1
- package/lib/showTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/showTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/switchTab/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/switchTab/{index.thing.js → index.tuya.js} +0 -0
- package/package.json +9 -8
- package/lib/getApp/index.native.d.ts +0 -2
- package/lib/getApp/index.native.js +0 -4
- package/lib/getCurrentPages/index.native.d.ts +0 -1
- package/lib/getCurrentPages/index.native.js +0 -5
- package/lib/getElementById/index.native.d.ts +0 -1
- package/lib/getElementById/index.native.js +0 -13
- package/lib/getI18nInfo/index.native.js +0 -9
- package/lib/hideNotification/index.native.d.ts +0 -2
- package/lib/hideNotification/index.native.js +0 -7
- package/lib/hideTabBar/index.native.d.ts +0 -2
- package/lib/hideTabBar/index.native.js +0 -2
- package/lib/navigateBack/index.native.d.ts +0 -2
- package/lib/navigateBack/index.native.js +0 -2
- package/lib/navigateTo/index.native.d.ts +0 -2
- package/lib/navigateTo/index.native.js +0 -2
- package/lib/reLaunch/index.native.d.ts +0 -2
- package/lib/reLaunch/index.native.js +0 -2
- package/lib/readFileSync/index.thing.js +0 -8
- package/lib/redirectTo/index.native.d.ts +0 -2
- package/lib/redirectTo/index.native.js +0 -2
- package/lib/requestCloud/index.thing.js +0 -8
- package/lib/setNavigationBarColor/index.native.d.ts +0 -2
- package/lib/setNavigationBarColor/index.native.js +0 -2
- package/lib/setNavigationBarColor/index.thing.d.ts +0 -1
- package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
- package/lib/setNavigationBarTitle/index.native.js +0 -2
- package/lib/setNavigationBarTitle/index.thing.d.ts +0 -1
- package/lib/showTabBar/index.native.d.ts +0 -2
- package/lib/showTabBar/index.native.js +0 -2
- package/lib/switchTab/index.native.d.ts +0 -2
- package/lib/switchTab/index.native.js +0 -2
package/@types/MiniKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* MiniKit
|
3
3
|
*
|
4
|
-
* @version
|
4
|
+
* @version 2.4.3
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -50,86 +50,6 @@ declare namespace ty {
|
|
50
50
|
}) => void
|
51
51
|
}): void
|
52
52
|
|
53
|
-
/**
|
54
|
-
* 获取权限的配置信息
|
55
|
-
*/
|
56
|
-
export function getPermissionConfig(params?: {
|
57
|
-
complete?: () => void
|
58
|
-
success?: (params: {
|
59
|
-
/** 权限相关配置信息 */
|
60
|
-
result: Record<string, any>
|
61
|
-
}) => void
|
62
|
-
fail?: (params: {
|
63
|
-
errorMsg: string
|
64
|
-
errorCode: string | number
|
65
|
-
innerError: {
|
66
|
-
errorCode: string | number
|
67
|
-
errorMsg: string
|
68
|
-
}
|
69
|
-
}) => void
|
70
|
-
}): void
|
71
|
-
|
72
|
-
/**
|
73
|
-
* 获取权限的配置信息
|
74
|
-
*/
|
75
|
-
export function getPermissionConfigSync(): {
|
76
|
-
/** 权限相关配置信息 */
|
77
|
-
result: Record<string, any>
|
78
|
-
}
|
79
|
-
|
80
|
-
/**
|
81
|
-
* 调起客户端小程序设置界面,返回用户设置的操作结果。
|
82
|
-
*/
|
83
|
-
export function openSetting(params?: {
|
84
|
-
complete?: () => void
|
85
|
-
success?: (params: {
|
86
|
-
/** 用户授权设置信息 */
|
87
|
-
scope: Record<string, boolean>
|
88
|
-
}) => void
|
89
|
-
fail?: (params: {
|
90
|
-
errorMsg: string
|
91
|
-
errorCode: string | number
|
92
|
-
innerError: {
|
93
|
-
errorCode: string | number
|
94
|
-
errorMsg: string
|
95
|
-
}
|
96
|
-
}) => void
|
97
|
-
}): void
|
98
|
-
|
99
|
-
/**
|
100
|
-
* 设置调试模式
|
101
|
-
*/
|
102
|
-
export function changeDebugMode(params: {
|
103
|
-
/** 调试模式开关 */
|
104
|
-
isEnable: boolean
|
105
|
-
complete?: () => void
|
106
|
-
success?: (params: null) => void
|
107
|
-
fail?: (params: {
|
108
|
-
errorMsg: string
|
109
|
-
errorCode: string | number
|
110
|
-
innerError: {
|
111
|
-
errorCode: string | number
|
112
|
-
errorMsg: string
|
113
|
-
}
|
114
|
-
}) => void
|
115
|
-
}): void
|
116
|
-
|
117
|
-
/**
|
118
|
-
* 打开帮助中心,默认:面板小程序会跳转到面板帮助中心,普通小程序会跳转到App帮助中心
|
119
|
-
*/
|
120
|
-
export function openHelpCenter(params?: {
|
121
|
-
complete?: () => void
|
122
|
-
success?: (params: null) => void
|
123
|
-
fail?: (params: {
|
124
|
-
errorMsg: string
|
125
|
-
errorCode: string | number
|
126
|
-
innerError: {
|
127
|
-
errorCode: string | number
|
128
|
-
errorMsg: string
|
129
|
-
}
|
130
|
-
}) => void
|
131
|
-
}): void
|
132
|
-
|
133
53
|
/**
|
134
54
|
* 显示 tabBar 某一项的右上角的红点
|
135
55
|
*/
|
@@ -138,14 +58,7 @@ declare namespace ty {
|
|
138
58
|
index: number
|
139
59
|
complete?: () => void
|
140
60
|
success?: (params: null) => void
|
141
|
-
fail?: (params: {
|
142
|
-
errorMsg: string
|
143
|
-
errorCode: string | number
|
144
|
-
innerError: {
|
145
|
-
errorCode: string | number
|
146
|
-
errorMsg: string
|
147
|
-
}
|
148
|
-
}) => void
|
61
|
+
fail?: (params: {}) => void
|
149
62
|
}): void
|
150
63
|
|
151
64
|
/**
|
@@ -156,14 +69,7 @@ declare namespace ty {
|
|
156
69
|
animation: boolean
|
157
70
|
complete?: () => void
|
158
71
|
success?: (params: null) => void
|
159
|
-
fail?: (params: {
|
160
|
-
errorMsg: string
|
161
|
-
errorCode: string | number
|
162
|
-
innerError: {
|
163
|
-
errorCode: string | number
|
164
|
-
errorMsg: string
|
165
|
-
}
|
166
|
-
}) => void
|
72
|
+
fail?: (params: {}) => void
|
167
73
|
}): void
|
168
74
|
|
169
75
|
/**
|
@@ -180,14 +86,7 @@ declare namespace ty {
|
|
180
86
|
borderStyle: string
|
181
87
|
complete?: () => void
|
182
88
|
success?: (params: null) => void
|
183
|
-
fail?: (params: {
|
184
|
-
errorMsg: string
|
185
|
-
errorCode: string | number
|
186
|
-
innerError: {
|
187
|
-
errorCode: string | number
|
188
|
-
errorMsg: string
|
189
|
-
}
|
190
|
-
}) => void
|
89
|
+
fail?: (params: {}) => void
|
191
90
|
}): void
|
192
91
|
|
193
92
|
/**
|
@@ -204,14 +103,7 @@ declare namespace ty {
|
|
204
103
|
selectedIconPath: string
|
205
104
|
complete?: () => void
|
206
105
|
success?: (params: null) => void
|
207
|
-
fail?: (params: {
|
208
|
-
errorMsg: string
|
209
|
-
errorCode: string | number
|
210
|
-
innerError: {
|
211
|
-
errorCode: string | number
|
212
|
-
errorMsg: string
|
213
|
-
}
|
214
|
-
}) => void
|
106
|
+
fail?: (params: {}) => void
|
215
107
|
}): void
|
216
108
|
|
217
109
|
/**
|
@@ -224,14 +116,7 @@ declare namespace ty {
|
|
224
116
|
text: string
|
225
117
|
complete?: () => void
|
226
118
|
success?: (params: null) => void
|
227
|
-
fail?: (params: {
|
228
|
-
errorMsg: string
|
229
|
-
errorCode: string | number
|
230
|
-
innerError: {
|
231
|
-
errorCode: string | number
|
232
|
-
errorMsg: string
|
233
|
-
}
|
234
|
-
}) => void
|
119
|
+
fail?: (params: {}) => void
|
235
120
|
}): void
|
236
121
|
|
237
122
|
/**
|
@@ -244,14 +129,7 @@ declare namespace ty {
|
|
244
129
|
text: string
|
245
130
|
complete?: () => void
|
246
131
|
success?: (params: null) => void
|
247
|
-
fail?: (params: {
|
248
|
-
errorMsg: string
|
249
|
-
errorCode: string | number
|
250
|
-
innerError: {
|
251
|
-
errorCode: string | number
|
252
|
-
errorMsg: string
|
253
|
-
}
|
254
|
-
}) => void
|
132
|
+
fail?: (params: {}) => void
|
255
133
|
}): void
|
256
134
|
|
257
135
|
/**
|
@@ -262,14 +140,7 @@ declare namespace ty {
|
|
262
140
|
index: number
|
263
141
|
complete?: () => void
|
264
142
|
success?: (params: null) => void
|
265
|
-
fail?: (params: {
|
266
|
-
errorMsg: string
|
267
|
-
errorCode: string | number
|
268
|
-
innerError: {
|
269
|
-
errorCode: string | number
|
270
|
-
errorMsg: string
|
271
|
-
}
|
272
|
-
}) => void
|
143
|
+
fail?: (params: {}) => void
|
273
144
|
}): void
|
274
145
|
|
275
146
|
/**
|
@@ -280,44 +151,7 @@ declare namespace ty {
|
|
280
151
|
animation: boolean
|
281
152
|
complete?: () => void
|
282
153
|
success?: (params: null) => void
|
283
|
-
fail?: (params: {
|
284
|
-
errorMsg: string
|
285
|
-
errorCode: string | number
|
286
|
-
innerError: {
|
287
|
-
errorCode: string | number
|
288
|
-
errorMsg: string
|
289
|
-
}
|
290
|
-
}) => void
|
291
|
-
}): void
|
292
|
-
|
293
|
-
/**
|
294
|
-
* 发起highway请求
|
295
|
-
*/
|
296
|
-
export function apiRequestByHighway(params: {
|
297
|
-
/** api 名称 */
|
298
|
-
api: string
|
299
|
-
/** data 请求入参 */
|
300
|
-
data?: Record<string, any>
|
301
|
-
/** method 请求方法 */
|
302
|
-
method?: HighwayMethod
|
303
|
-
complete?: () => void
|
304
|
-
success?: (params: {
|
305
|
-
/**
|
306
|
-
* 请求结果
|
307
|
-
* thing_data_ 出参结构体, JSON序列化
|
308
|
-
*/
|
309
|
-
thing_json_?: {}
|
310
|
-
/** 元数据 */
|
311
|
-
data: string
|
312
|
-
}) => void
|
313
|
-
fail?: (params: {
|
314
|
-
errorMsg: string
|
315
|
-
errorCode: string | number
|
316
|
-
innerError: {
|
317
|
-
errorCode: string | number
|
318
|
-
errorMsg: string
|
319
|
-
}
|
320
|
-
}) => void
|
154
|
+
fail?: (params: {}) => void
|
321
155
|
}): void
|
322
156
|
|
323
157
|
/**
|
@@ -339,7 +173,7 @@ declare namespace ty {
|
|
339
173
|
}): void
|
340
174
|
|
341
175
|
/**
|
342
|
-
*
|
176
|
+
* 退出当前小程序。必须有点击行为才能调用成功
|
343
177
|
*/
|
344
178
|
export function exitMiniProgram(params?: {
|
345
179
|
complete?: () => void
|
@@ -561,133 +395,6 @@ declare namespace ty {
|
|
561
395
|
}) => void
|
562
396
|
}): void
|
563
397
|
|
564
|
-
/**
|
565
|
-
* 隐藏右上角胶囊按钮
|
566
|
-
*/
|
567
|
-
export function hideMenuButton(params?: {
|
568
|
-
complete?: () => void
|
569
|
-
success?: (params: null) => void
|
570
|
-
fail?: (params: {
|
571
|
-
errorMsg: string
|
572
|
-
errorCode: string | number
|
573
|
-
innerError: {
|
574
|
-
errorCode: string | number
|
575
|
-
errorMsg: string
|
576
|
-
}
|
577
|
-
}) => void
|
578
|
-
}): void
|
579
|
-
|
580
|
-
/**
|
581
|
-
* 显示右上角胶囊按钮
|
582
|
-
*/
|
583
|
-
export function showMenuButton(params?: {
|
584
|
-
complete?: () => void
|
585
|
-
success?: (params: null) => void
|
586
|
-
fail?: (params: {
|
587
|
-
errorMsg: string
|
588
|
-
errorCode: string | number
|
589
|
-
innerError: {
|
590
|
-
errorCode: string | number
|
591
|
-
errorMsg: string
|
592
|
-
}
|
593
|
-
}) => void
|
594
|
-
}): void
|
595
|
-
|
596
|
-
/**
|
597
|
-
* 显示手机状态栏
|
598
|
-
*/
|
599
|
-
export function showStatusBar(params?: {
|
600
|
-
complete?: () => void
|
601
|
-
success?: (params: null) => void
|
602
|
-
fail?: (params: {
|
603
|
-
errorMsg: string
|
604
|
-
errorCode: string | number
|
605
|
-
innerError: {
|
606
|
-
errorCode: string | number
|
607
|
-
errorMsg: string
|
608
|
-
}
|
609
|
-
}) => void
|
610
|
-
}): void
|
611
|
-
|
612
|
-
/**
|
613
|
-
* 隐藏手机状态栏
|
614
|
-
*/
|
615
|
-
export function hideStatusBar(params?: {
|
616
|
-
complete?: () => void
|
617
|
-
success?: (params: null) => void
|
618
|
-
fail?: (params: {
|
619
|
-
errorMsg: string
|
620
|
-
errorCode: string | number
|
621
|
-
innerError: {
|
622
|
-
errorCode: string | number
|
623
|
-
errorMsg: string
|
624
|
-
}
|
625
|
-
}) => void
|
626
|
-
}): void
|
627
|
-
|
628
|
-
/**
|
629
|
-
* 关闭小部件
|
630
|
-
*/
|
631
|
-
export function exitMiniWidget(params?: {
|
632
|
-
complete?: () => void
|
633
|
-
success?: (params: null) => void
|
634
|
-
fail?: (params: {
|
635
|
-
errorMsg: string
|
636
|
-
errorCode: string | number
|
637
|
-
innerError: {
|
638
|
-
errorCode: string | number
|
639
|
-
errorMsg: string
|
640
|
-
}
|
641
|
-
}) => void
|
642
|
-
}): void
|
643
|
-
|
644
|
-
/**
|
645
|
-
* 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
|
646
|
-
*/
|
647
|
-
export function canOpenURL(params: {
|
648
|
-
/** 要打开的url */
|
649
|
-
url: string
|
650
|
-
complete?: () => void
|
651
|
-
success?: (params: {
|
652
|
-
/** 是否支持打开对应的url */
|
653
|
-
isCanOpen?: boolean
|
654
|
-
}) => void
|
655
|
-
fail?: (params: {
|
656
|
-
errorMsg: string
|
657
|
-
errorCode: string | number
|
658
|
-
innerError: {
|
659
|
-
errorCode: string | number
|
660
|
-
errorMsg: string
|
661
|
-
}
|
662
|
-
}) => void
|
663
|
-
}): void
|
664
|
-
|
665
|
-
/**
|
666
|
-
* 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
|
667
|
-
*/
|
668
|
-
export function canOpenURLSync(openURLBean?: OpenURLBean): {
|
669
|
-
/** 是否支持打开对应的url */
|
670
|
-
isCanOpen?: boolean
|
671
|
-
}
|
672
|
-
|
673
|
-
/**
|
674
|
-
* 打开设备上的某个应用或可以处理URL的程序。
|
675
|
-
*/
|
676
|
-
export function openURL(params: {
|
677
|
-
/** 要打开的url */
|
678
|
-
url: string
|
679
|
-
complete?: () => void
|
680
|
-
success?: (params: null) => void
|
681
|
-
fail?: (params: {
|
682
|
-
errorMsg: string
|
683
|
-
errorCode: string | number
|
684
|
-
innerError: {
|
685
|
-
errorCode: string | number
|
686
|
-
errorMsg: string
|
687
|
-
}
|
688
|
-
}) => void
|
689
|
-
}): void
|
690
|
-
|
691
398
|
/**
|
692
399
|
* 在当前页面显示导航条加载动画
|
693
400
|
*/
|
@@ -782,8 +489,8 @@ declare namespace ty {
|
|
782
489
|
export function navigateTo(params: {
|
783
490
|
/** 页面路径 */
|
784
491
|
url: string
|
785
|
-
/**
|
786
|
-
|
492
|
+
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
493
|
+
delta?: number
|
787
494
|
complete?: () => void
|
788
495
|
success?: (params: null) => void
|
789
496
|
fail?: (params: {
|
@@ -799,7 +506,9 @@ declare namespace ty {
|
|
799
506
|
/**
|
800
507
|
* 关闭当前页面,返回上一页面或多级页面
|
801
508
|
*/
|
802
|
-
export function navigateBack(params
|
509
|
+
export function navigateBack(params: {
|
510
|
+
/** 页面路径 */
|
511
|
+
url: string
|
803
512
|
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
804
513
|
delta?: number
|
805
514
|
complete?: () => void
|
@@ -820,8 +529,8 @@ declare namespace ty {
|
|
820
529
|
export function redirectTo(params: {
|
821
530
|
/** 页面路径 */
|
822
531
|
url: string
|
823
|
-
/**
|
824
|
-
|
532
|
+
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
533
|
+
delta?: number
|
825
534
|
complete?: () => void
|
826
535
|
success?: (params: null) => void
|
827
536
|
fail?: (params: {
|
@@ -840,8 +549,8 @@ declare namespace ty {
|
|
840
549
|
export function reLaunch(params: {
|
841
550
|
/** 页面路径 */
|
842
551
|
url: string
|
843
|
-
/**
|
844
|
-
|
552
|
+
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
553
|
+
delta?: number
|
845
554
|
complete?: () => void
|
846
555
|
success?: (params: null) => void
|
847
556
|
fail?: (params: {
|
@@ -860,8 +569,8 @@ declare namespace ty {
|
|
860
569
|
export function switchTab(params: {
|
861
570
|
/** 页面路径 */
|
862
571
|
url: string
|
863
|
-
/**
|
864
|
-
|
572
|
+
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
573
|
+
delta?: number
|
865
574
|
complete?: () => void
|
866
575
|
success?: (params: null) => void
|
867
576
|
fail?: (params: {
|
@@ -942,14 +651,7 @@ declare namespace ty {
|
|
942
651
|
export function startPullDownRefresh(params?: {
|
943
652
|
complete?: () => void
|
944
653
|
success?: (params: null) => void
|
945
|
-
fail?: (params: {
|
946
|
-
errorMsg: string
|
947
|
-
errorCode: string | number
|
948
|
-
innerError: {
|
949
|
-
errorCode: string | number
|
950
|
-
errorMsg: string
|
951
|
-
}
|
952
|
-
}) => void
|
654
|
+
fail?: (params: {}) => void
|
953
655
|
}): void
|
954
656
|
|
955
657
|
/**
|
@@ -958,14 +660,7 @@ declare namespace ty {
|
|
958
660
|
export function stopPullDownRefresh(params?: {
|
959
661
|
complete?: () => void
|
960
662
|
success?: (params: null) => void
|
961
|
-
fail?: (params: {
|
962
|
-
errorMsg: string
|
963
|
-
errorCode: string | number
|
964
|
-
innerError: {
|
965
|
-
errorCode: string | number
|
966
|
-
errorMsg: string
|
967
|
-
}
|
968
|
-
}) => void
|
663
|
+
fail?: (params: {}) => void
|
969
664
|
}): void
|
970
665
|
|
971
666
|
/**
|
@@ -974,7 +669,7 @@ declare namespace ty {
|
|
974
669
|
export function onNativeEvent(listener: (params: NativeUploadData) => void): void
|
975
670
|
|
976
671
|
/**
|
977
|
-
*
|
672
|
+
* 原生上报的事件
|
978
673
|
*/
|
979
674
|
export function offNativeEvent(listener: (params: NativeUploadData) => void): void
|
980
675
|
|
@@ -1016,11 +711,6 @@ declare namespace ty {
|
|
1016
711
|
title: string
|
1017
712
|
}
|
1018
713
|
|
1019
|
-
export type OpenURLBean = {
|
1020
|
-
/** 要打开的url */
|
1021
|
-
url: string
|
1022
|
-
}
|
1023
|
-
|
1024
714
|
export type NavigationBarColorAnimationInfo = {
|
1025
715
|
/** 动画变化时间,单位 ms */
|
1026
716
|
duration?: number
|
@@ -1054,41 +744,6 @@ declare namespace ty {
|
|
1054
744
|
|
1055
745
|
export type Object = {}
|
1056
746
|
|
1057
|
-
export type NativeDisabledParam = {
|
1058
|
-
/** 禁用异层渲染手势分发 */
|
1059
|
-
nativeDisabled: boolean
|
1060
|
-
/** 需要禁止或启用手势分发的页面id */
|
1061
|
-
pageId: string
|
1062
|
-
}
|
1063
|
-
|
1064
|
-
export type NativeParams = {
|
1065
|
-
/** 原生组件类型 */
|
1066
|
-
type?: number
|
1067
|
-
/** 原生组件的ApiName */
|
1068
|
-
apiName: string
|
1069
|
-
/** 异层渲染原生视图id */
|
1070
|
-
id: string
|
1071
|
-
/** 小程序页面id */
|
1072
|
-
pageId: string
|
1073
|
-
/** 参数等 */
|
1074
|
-
params: Record<string, string>
|
1075
|
-
}
|
1076
|
-
|
1077
|
-
export type PermissionConfig = {
|
1078
|
-
/** 权限相关配置信息 */
|
1079
|
-
result: Record<string, any>
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
export type AuthSetting = {
|
1083
|
-
/** 用户授权设置信息 */
|
1084
|
-
scope: Record<string, boolean>
|
1085
|
-
}
|
1086
|
-
|
1087
|
-
export type DebugModeSetting = {
|
1088
|
-
/** 调试模式开关 */
|
1089
|
-
isEnable: boolean
|
1090
|
-
}
|
1091
|
-
|
1092
747
|
export type RedDotParams = {
|
1093
748
|
/** tabBar 的哪一项,从左边算起 */
|
1094
749
|
index: number
|
@@ -1140,9 +795,9 @@ declare namespace ty {
|
|
1140
795
|
export type HighwayRequestResponse = {
|
1141
796
|
/**
|
1142
797
|
* 请求结果
|
1143
|
-
*
|
798
|
+
* ty_data_ 出参结构体, JSON序列化
|
1144
799
|
*/
|
1145
|
-
|
800
|
+
ty_json_?: {}
|
1146
801
|
/** 元数据 */
|
1147
802
|
data: string
|
1148
803
|
}
|
@@ -1200,11 +855,6 @@ declare namespace ty {
|
|
1200
855
|
pageOrientation: string
|
1201
856
|
}
|
1202
857
|
|
1203
|
-
export type CanOpenURLResultBean = {
|
1204
|
-
/** 是否支持打开对应的url */
|
1205
|
-
isCanOpen?: boolean
|
1206
|
-
}
|
1207
|
-
|
1208
858
|
export type NavigationBarLoadingParams = {
|
1209
859
|
/** 页面标题 */
|
1210
860
|
title: string
|
@@ -1222,11 +872,6 @@ declare namespace ty {
|
|
1222
872
|
export type RouteBean = {
|
1223
873
|
/** 页面路径 */
|
1224
874
|
url: string
|
1225
|
-
/** 打开方式,支持全屏full,半屏half;默认全屏full */
|
1226
|
-
type?: string
|
1227
|
-
}
|
1228
|
-
|
1229
|
-
export type BackRouteBean = {
|
1230
875
|
/** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
|
1231
876
|
delta?: number
|
1232
877
|
}
|