@dcloudio/uni-app-x 0.7.65 → 0.7.67
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/package.json +2 -1
- package/types/dom2/sharedData.d.ts +27 -15
- package/types/process.d.ts +12 -3
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +0 -173
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -4
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +0 -4
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +0 -10
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2 -4
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +1 -8
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +0 -16
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +0 -8
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +57 -2165
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +1062 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +3 -10
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +2 -4
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +0 -7
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +0 -148
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +0 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-app-x",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.67",
|
|
4
4
|
"description": "uni-app x types",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"main": "index.d.ts",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"postpublish": "npx cnpm sync @dcloudio/uni-app-x"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
+
"@dcloudio/uni-preprocess": "3.0.0-alpha-4000020240117003",
|
|
26
27
|
"delete": "^1.1.0",
|
|
27
28
|
"dotenv": "^16.3.1",
|
|
28
29
|
"fs-extra": "^11.1.1",
|
|
@@ -72,31 +72,48 @@ declare global {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
class UniSharedData {
|
|
75
|
+
/**
|
|
76
|
+
* 属性变更标识
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
75
79
|
_flag0: number
|
|
76
80
|
/**
|
|
77
81
|
* ArkTS 层数据缓存,主要用于 ArkTS 层判断属性值是否有变化
|
|
82
|
+
* @internal
|
|
78
83
|
*/
|
|
79
84
|
_cacheProps: Map<string, UniSharedDataAny>
|
|
80
|
-
/**
|
|
81
|
-
* 是否已初始化完成,主要用于二次更新时触发响应式
|
|
82
|
-
*/
|
|
83
|
-
_ready: boolean
|
|
84
85
|
/**
|
|
85
86
|
* 所属页面,用于批量执行响应式变更
|
|
87
|
+
* @internal
|
|
86
88
|
*/
|
|
87
89
|
_scope: UniSharedDataPage
|
|
90
|
+
/**
|
|
91
|
+
* 是否已初始化完成,主要用于二次更新时触发响应式
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
_setReady(): void
|
|
88
95
|
/**
|
|
89
96
|
* 属性变更时收集 Jobs
|
|
97
|
+
* @internal
|
|
90
98
|
*/
|
|
91
99
|
_queueJobs: (key: string, value: UniSharedDataAny) => void
|
|
92
100
|
constructor(scope: UniSharedDataPage)
|
|
93
101
|
}
|
|
94
102
|
|
|
95
103
|
abstract class UniSharedDataComponent extends UniSharedData {
|
|
104
|
+
/**
|
|
105
|
+
* 当前页面或组件关联的 UniPage 对象
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
96
108
|
_page: UniPage
|
|
97
|
-
_reactivity: VueReactivity
|
|
98
109
|
/**
|
|
99
|
-
*
|
|
110
|
+
* 当前页面或组件的样式表
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
_styleSheet: Map<string, Map<string, Map<number, any>>>
|
|
114
|
+
/**
|
|
115
|
+
* 自定义组件需要透传的属性,需要暴露给js层设置: _set_inheritAttrs()
|
|
116
|
+
* @internal
|
|
100
117
|
*/
|
|
101
118
|
inheritAttrs: UniSharedDataJSONObject
|
|
102
119
|
constructor(scope: UniSharedDataPage)
|
|
@@ -111,22 +128,16 @@ declare global {
|
|
|
111
128
|
}
|
|
112
129
|
|
|
113
130
|
abstract class UniSharedDataPage extends UniSharedDataComponent {
|
|
114
|
-
/**
|
|
115
|
-
* ArkTS 层存储的事件映射,key 为事件 ID,value 为事件函数,用于触发事件时执行
|
|
116
|
-
*/
|
|
117
|
-
_cacheEvents: Map<number, Function>
|
|
118
131
|
/**
|
|
119
132
|
* 本次更新收集到的 Jobs,用于批量执行响应式变更
|
|
133
|
+
* @internal
|
|
120
134
|
*/
|
|
121
135
|
_jobs: Array<Array<UniSharedDataSchedulerJob[]>>
|
|
122
136
|
/**
|
|
123
137
|
* 批量执行响应式变更
|
|
138
|
+
* @internal
|
|
124
139
|
*/
|
|
125
140
|
_flushJobs: () => Promise<void> | void
|
|
126
|
-
/**
|
|
127
|
-
* c 层触发事件,调用 $cacheEvents 中存储的 ArkTS 层事件函数
|
|
128
|
-
*/
|
|
129
|
-
_dispatchEvent: (id: number, event: UniSharedDataEvent) => void
|
|
130
141
|
/**
|
|
131
142
|
* 页面渲染函数
|
|
132
143
|
* 调用页面的 _renderElement 和 _renderNativeView
|
|
@@ -135,6 +146,7 @@ declare global {
|
|
|
135
146
|
* 页面的根 NativeView,根 Dom 从哪里获取?
|
|
136
147
|
* 在 c 层实现一个简易的 UniPage?
|
|
137
148
|
* 在页面的 SharedData 类构造器里边,构建对应的 UniPage 对象?
|
|
149
|
+
* @internal
|
|
138
150
|
*/
|
|
139
151
|
_render: () => Promise<void>
|
|
140
152
|
}
|
|
@@ -192,7 +204,7 @@ declare global {
|
|
|
192
204
|
update: UniSharedDataVForUpdate[]
|
|
193
205
|
dirty: UniSharedDataVForDirty
|
|
194
206
|
create: () => T
|
|
195
|
-
constructor(scope: UniSharedDataPage
|
|
207
|
+
constructor(scope: UniSharedDataPage)
|
|
196
208
|
}
|
|
197
209
|
|
|
198
210
|
class VueReactivity { }
|
package/types/process.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare module 'process' {
|
|
2
|
+
global {
|
|
3
|
+
namespace NodeJS {
|
|
4
|
+
interface ProcessEnv {
|
|
5
|
+
NODE_ENV: 'development' | 'production'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Process {
|
|
9
|
+
env: ProcessEnv
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
var process: NodeJS.Process
|
|
4
13
|
}
|
|
5
14
|
}
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
/// <reference path='./lib/uni-share-weixin/utssdk/global.d.ts' />
|
|
68
68
|
/// <reference path='./lib/uni-share/utssdk/global.d.ts' />
|
|
69
69
|
/// <reference path='./lib/uni-shareWithSystem/utssdk/global.d.ts' />
|
|
70
|
+
/// <reference path='./lib/uni-showLoading/utssdk/global.d.ts' />
|
|
70
71
|
/// <reference path='./lib/uni-sse/utssdk/global.d.ts' />
|
|
71
72
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
72
73
|
/// <reference path='./lib/uni-tabBar/utssdk/global.d.ts' />
|
|
@@ -67,6 +67,7 @@ export * from './lib/uni-screenBrightness/utssdk'
|
|
|
67
67
|
export * from './lib/uni-share-weixin/utssdk'
|
|
68
68
|
export * from './lib/uni-share/utssdk'
|
|
69
69
|
export * from './lib/uni-shareWithSystem/utssdk'
|
|
70
|
+
export * from './lib/uni-showLoading/utssdk'
|
|
70
71
|
export * from './lib/uni-sse/utssdk'
|
|
71
72
|
export * from './lib/uni-storage/utssdk'
|
|
72
73
|
export * from './lib/uni-tabBar/utssdk'
|
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
GetFileInfoSuccessCallback as GetFileInfoSuccessCallbackOrigin,
|
|
32
32
|
GetFileInfoOptions as GetFileInfoOptionsOrigin,
|
|
33
33
|
Stats as StatsOrigin,
|
|
34
|
-
Stats as StatsOrigin,
|
|
35
34
|
FileStats as FileStatsOrigin,
|
|
36
35
|
StatSuccessResult as StatSuccessResultOrigin,
|
|
37
36
|
StatSuccessCallback as StatSuccessCallbackOrigin,
|
|
@@ -107,7 +106,6 @@ declare global {
|
|
|
107
106
|
type GetFileInfoSuccessCallback = GetFileInfoSuccessCallbackOrigin
|
|
108
107
|
type GetFileInfoOptions = GetFileInfoOptionsOrigin
|
|
109
108
|
type Stats = StatsOrigin
|
|
110
|
-
type Stats = StatsOrigin
|
|
111
109
|
type FileStats = FileStatsOrigin
|
|
112
110
|
type StatSuccessResult = StatSuccessResultOrigin
|
|
113
111
|
type StatSuccessCallback = StatSuccessCallbackOrigin
|
|
@@ -754,174 +754,7 @@ export type GetFileInfoOptions = {
|
|
|
754
754
|
complete?: FileManagerCompleteCallback | null
|
|
755
755
|
}
|
|
756
756
|
|
|
757
|
-
// #ifdef APP-IOS
|
|
758
|
-
export interface Stats extends JSExport {
|
|
759
|
-
/**
|
|
760
|
-
* 文件的类型和存取的权限,对应 POSIX stat.st_mode
|
|
761
|
-
* 注意android中,文件类型只包含是否是目录与文件,
|
|
762
|
-
* 另外在android中这里的权限指的是当前进程对文件或者文件夹是否有读,写,执行的权限,
|
|
763
|
-
* 这里没有与 POSIX stat.st_mode对应的组,其他人等相关权限的数据返回,只有所有者的相关权限
|
|
764
|
-
*/
|
|
765
|
-
mode: number;
|
|
766
|
-
/**
|
|
767
|
-
* 文件大小,单位:B,对应 POSIX stat.st_size
|
|
768
|
-
*/
|
|
769
|
-
size: number;
|
|
770
|
-
/**
|
|
771
|
-
* 文件最近一次被存取或被执行的时间,UNIX 时间戳,对应 POSIX stat.st_atime
|
|
772
|
-
* 注意:android中由于系统限制无法获取该数据
|
|
773
|
-
*/
|
|
774
|
-
lastAccessedTime: number;
|
|
775
|
-
/**
|
|
776
|
-
* 文件最后一次被修改的时间,UNIX 时间戳,对应 POSIX stat.st_mtime
|
|
777
|
-
*/
|
|
778
|
-
lastModifiedTime: number;
|
|
779
|
-
/**
|
|
780
|
-
* @internal
|
|
781
|
-
*/
|
|
782
|
-
mIsFile: boolean;
|
|
783
|
-
/**
|
|
784
|
-
* 判断当前文件是否一个目录
|
|
785
|
-
* @uniPlatform {
|
|
786
|
-
* "app": {
|
|
787
|
-
* "android": {
|
|
788
|
-
* "osVer": "5.0",
|
|
789
|
-
* "uniVer": "x",
|
|
790
|
-
* "unixVer": "4.31"
|
|
791
|
-
* },
|
|
792
|
-
* "ios": {
|
|
793
|
-
* "osVer": "12.0",
|
|
794
|
-
* "uniVer": "x",
|
|
795
|
-
* "unixVer": "4.11"
|
|
796
|
-
* },
|
|
797
|
-
* "harmony": {
|
|
798
|
-
* "osVer": "3.0",
|
|
799
|
-
* "uniVer": "4.51",
|
|
800
|
-
* "unixVer": "4.61"
|
|
801
|
-
* }
|
|
802
|
-
* },
|
|
803
|
-
* "mp": {
|
|
804
|
-
* "weixin": {
|
|
805
|
-
* "hostVer": "√",
|
|
806
|
-
* "uniVer": "√",
|
|
807
|
-
* "unixVer": "4.41"
|
|
808
|
-
* },
|
|
809
|
-
* "alipay": {
|
|
810
|
-
* "hostVer": "√",
|
|
811
|
-
* "uniVer": "√",
|
|
812
|
-
* "unixVer": "x"
|
|
813
|
-
* },
|
|
814
|
-
* "baidu": {
|
|
815
|
-
* "hostVer": "√",
|
|
816
|
-
* "uniVer": "√",
|
|
817
|
-
* "unixVer": "x"
|
|
818
|
-
* },
|
|
819
|
-
* "toutiao": {
|
|
820
|
-
* "hostVer": "√",
|
|
821
|
-
* "uniVer": "√",
|
|
822
|
-
* "unixVer": "x"
|
|
823
|
-
* },
|
|
824
|
-
* "lark": {
|
|
825
|
-
* "hostVer": "√",
|
|
826
|
-
* "uniVer": "√",
|
|
827
|
-
* "unixVer": "x"
|
|
828
|
-
* },
|
|
829
|
-
* "qq": {
|
|
830
|
-
* "hostVer": "√",
|
|
831
|
-
* "uniVer": "√",
|
|
832
|
-
* "unixVer": "x"
|
|
833
|
-
* },
|
|
834
|
-
* "kuaishou": {
|
|
835
|
-
* "hostVer": "√",
|
|
836
|
-
* "uniVer": "√",
|
|
837
|
-
* "unixVer": "x"
|
|
838
|
-
* },
|
|
839
|
-
* "jd": {
|
|
840
|
-
* "hostVer": "√",
|
|
841
|
-
* "uniVer": "√",
|
|
842
|
-
* "unixVer": "x"
|
|
843
|
-
* }
|
|
844
|
-
* },
|
|
845
|
-
* "web": {
|
|
846
|
-
* "uniVer": "x",
|
|
847
|
-
* "unixVer": "x"
|
|
848
|
-
* }
|
|
849
|
-
* }
|
|
850
|
-
*/
|
|
851
|
-
isDirectory(): boolean;
|
|
852
|
-
/**
|
|
853
|
-
* 判断当前文件是否一个普通文件
|
|
854
|
-
* @uniPlatform {
|
|
855
|
-
* "app": {
|
|
856
|
-
* "android": {
|
|
857
|
-
* "osVer": "5.0",
|
|
858
|
-
* "uniVer": "x",
|
|
859
|
-
* "unixVer": "4.31"
|
|
860
|
-
* },
|
|
861
|
-
* "ios": {
|
|
862
|
-
* "osVer": "12.0",
|
|
863
|
-
* "uniVer": "x",
|
|
864
|
-
* "unixVer": "4.11"
|
|
865
|
-
* },
|
|
866
|
-
* "harmony": {
|
|
867
|
-
* "osVer": "3.0",
|
|
868
|
-
* "uniVer": "4.51",
|
|
869
|
-
* "unixVer": "4.61"
|
|
870
|
-
* }
|
|
871
|
-
* },
|
|
872
|
-
* "mp": {
|
|
873
|
-
* "weixin": {
|
|
874
|
-
* "hostVer": "√",
|
|
875
|
-
* "uniVer": "√",
|
|
876
|
-
* "unixVer": "4.41"
|
|
877
|
-
* },
|
|
878
|
-
* "alipay": {
|
|
879
|
-
* "hostVer": "√",
|
|
880
|
-
* "uniVer": "√",
|
|
881
|
-
* "unixVer": "x"
|
|
882
|
-
* },
|
|
883
|
-
* "baidu": {
|
|
884
|
-
* "hostVer": "√",
|
|
885
|
-
* "uniVer": "√",
|
|
886
|
-
* "unixVer": "x"
|
|
887
|
-
* },
|
|
888
|
-
* "toutiao": {
|
|
889
|
-
* "hostVer": "√",
|
|
890
|
-
* "uniVer": "√",
|
|
891
|
-
* "unixVer": "x"
|
|
892
|
-
* },
|
|
893
|
-
* "lark": {
|
|
894
|
-
* "hostVer": "√",
|
|
895
|
-
* "uniVer": "√",
|
|
896
|
-
* "unixVer": "x"
|
|
897
|
-
* },
|
|
898
|
-
* "qq": {
|
|
899
|
-
* "hostVer": "√",
|
|
900
|
-
* "uniVer": "√",
|
|
901
|
-
* "unixVer": "x"
|
|
902
|
-
* },
|
|
903
|
-
* "kuaishou": {
|
|
904
|
-
* "hostVer": "√",
|
|
905
|
-
* "uniVer": "√",
|
|
906
|
-
* "unixVer": "x"
|
|
907
|
-
* },
|
|
908
|
-
* "jd": {
|
|
909
|
-
* "hostVer": "√",
|
|
910
|
-
* "uniVer": "√",
|
|
911
|
-
* "unixVer": "x"
|
|
912
|
-
* }
|
|
913
|
-
* },
|
|
914
|
-
* "web": {
|
|
915
|
-
* "uniVer": "x",
|
|
916
|
-
* "unixVer": "x"
|
|
917
|
-
* }
|
|
918
|
-
* }
|
|
919
|
-
*/
|
|
920
|
-
isFile(): boolean;
|
|
921
|
-
}
|
|
922
|
-
// #endif
|
|
923
757
|
|
|
924
|
-
// #ifndef APP-IOS
|
|
925
758
|
export interface Stats {
|
|
926
759
|
/**
|
|
927
760
|
* 文件的类型和存取的权限,对应 POSIX stat.st_mode
|
|
@@ -1086,7 +919,6 @@ export interface Stats {
|
|
|
1086
919
|
*/
|
|
1087
920
|
isFile(): boolean;
|
|
1088
921
|
}
|
|
1089
|
-
// #endif
|
|
1090
922
|
|
|
1091
923
|
export type FileStats = {
|
|
1092
924
|
/**
|
|
@@ -4967,12 +4799,7 @@ export interface FileSystemManager {
|
|
|
4967
4799
|
* }
|
|
4968
4800
|
* }
|
|
4969
4801
|
*/
|
|
4970
|
-
// #ifdef APP-IOS
|
|
4971
|
-
statSync(path : string, recursive : boolean) : Array<Map<string, any>>;
|
|
4972
|
-
// #endif
|
|
4973
|
-
// #ifndef APP-IOS
|
|
4974
4802
|
statSync(path : string, recursive : boolean) : FileStats[];
|
|
4975
|
-
// #endif
|
|
4976
4803
|
/**
|
|
4977
4804
|
* 对文件内容进行截断操作
|
|
4978
4805
|
* @uniPlatform {
|
|
@@ -980,7 +980,6 @@ export type SafeAreaInsets = {
|
|
|
980
980
|
*/
|
|
981
981
|
bottom: number
|
|
982
982
|
};
|
|
983
|
-
// #ifdef UNI-APP-X
|
|
984
983
|
export type CutoutRect = {
|
|
985
984
|
/**
|
|
986
985
|
* 挖孔、刘海区域左上角横坐标,单位为px
|
|
@@ -1267,7 +1266,6 @@ export type CutoutRect = {
|
|
|
1267
1266
|
*/
|
|
1268
1267
|
bottom: number
|
|
1269
1268
|
};
|
|
1270
|
-
// #endif
|
|
1271
1269
|
export type GetSystemInfoResult = {
|
|
1272
1270
|
/**
|
|
1273
1271
|
* 客户端基础库版本
|
|
@@ -7124,9 +7122,7 @@ export type GetWindowInfoResult = {
|
|
|
7124
7122
|
* }
|
|
7125
7123
|
* }
|
|
7126
7124
|
*/
|
|
7127
|
-
// #ifdef UNI-APP-X
|
|
7128
7125
|
cutoutArea: Array<CutoutRect> | null
|
|
7129
|
-
// #endif
|
|
7130
7126
|
};
|
|
7131
7127
|
/**
|
|
7132
7128
|
* 需要基础库: `2.12.3`
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import {
|
|
3
3
|
GetLocationFailImpl as GetLocationFailImplOrigin,
|
|
4
4
|
UniLocationProvider as UniLocationProviderOrigin,
|
|
5
|
-
UniLocationProvider as UniLocationProviderOrigin,
|
|
6
5
|
LocationErrorCode as LocationErrorCodeOrigin,
|
|
7
6
|
IGetLocationFail as IGetLocationFailOrigin,
|
|
8
7
|
GetLocationFail as GetLocationFailOrigin,
|
|
@@ -21,7 +20,6 @@ import {
|
|
|
21
20
|
OnLocationChange as OnLocationChangeOrigin,
|
|
22
21
|
OffLocationChange as OffLocationChangeOrigin,
|
|
23
22
|
OnLocationChangeErrorCallback as OnLocationChangeErrorCallbackOrigin,
|
|
24
|
-
OnLocationChangeErrorCallback as OnLocationChangeErrorCallbackOrigin,
|
|
25
23
|
OnLocationChangeError as OnLocationChangeErrorOrigin,
|
|
26
24
|
OffLocationChangeError as OffLocationChangeErrorOrigin,
|
|
27
25
|
StartLocationUpdateBackgroundSuccess as StartLocationUpdateBackgroundSuccessOrigin,
|
|
@@ -34,7 +32,6 @@ import {
|
|
|
34
32
|
declare global {
|
|
35
33
|
type GetLocationFailImpl = GetLocationFailImplOrigin
|
|
36
34
|
type UniLocationProvider = UniLocationProviderOrigin
|
|
37
|
-
type UniLocationProvider = UniLocationProviderOrigin
|
|
38
35
|
type LocationErrorCode = LocationErrorCodeOrigin
|
|
39
36
|
type IGetLocationFail = IGetLocationFailOrigin
|
|
40
37
|
type GetLocationFail = GetLocationFailOrigin
|
|
@@ -53,7 +50,6 @@ declare global {
|
|
|
53
50
|
type OnLocationChange = OnLocationChangeOrigin
|
|
54
51
|
type OffLocationChange = OffLocationChangeOrigin
|
|
55
52
|
type OnLocationChangeErrorCallback = OnLocationChangeErrorCallbackOrigin
|
|
56
|
-
type OnLocationChangeErrorCallback = OnLocationChangeErrorCallbackOrigin
|
|
57
53
|
type OnLocationChangeError = OnLocationChangeErrorOrigin
|
|
58
54
|
type OffLocationChangeError = OffLocationChangeErrorOrigin
|
|
59
55
|
type StartLocationUpdateBackgroundSuccess = StartLocationUpdateBackgroundSuccessOrigin
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
export {
|
|
3
3
|
GetLocationFailImpl,
|
|
4
4
|
UniLocationProvider,
|
|
5
|
-
UniLocationProvider,
|
|
6
5
|
LocationErrorCode,
|
|
7
6
|
IGetLocationFail,
|
|
8
7
|
GetLocationFail,
|
|
@@ -21,7 +20,6 @@ export {
|
|
|
21
20
|
OnLocationChange,
|
|
22
21
|
OffLocationChange,
|
|
23
22
|
OnLocationChangeErrorCallback,
|
|
24
|
-
OnLocationChangeErrorCallback,
|
|
25
23
|
OnLocationChangeError,
|
|
26
24
|
OffLocationChangeError,
|
|
27
25
|
StartLocationUpdateBackgroundSuccess,
|
|
@@ -2,13 +2,8 @@ import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
|
|
|
2
2
|
|
|
3
3
|
export type GetLocationFailImpl = GetLocationFailImplement
|
|
4
4
|
|
|
5
|
-
// #ifdef APP-IOS
|
|
6
|
-
export interface UniLocationProvider extends Uni, JSExport { }
|
|
7
|
-
// #endif
|
|
8
5
|
|
|
9
|
-
// #ifndef APP-IOS
|
|
10
6
|
export interface UniLocationProvider extends Uni { }
|
|
11
|
-
// #endif
|
|
12
7
|
|
|
13
8
|
export interface Uni {
|
|
14
9
|
|
|
@@ -2932,13 +2927,8 @@ export type OnLocationChangeCallback =(res:OnLocationChangeResult)=>void
|
|
|
2932
2927
|
export type OnLocationChange = (listener:OnLocationChangeCallback)=>number
|
|
2933
2928
|
export type OffLocationChange = (listener?:number|OnLocationChangeCallback|null)=>void
|
|
2934
2929
|
|
|
2935
|
-
// #ifdef APP-IOS
|
|
2936
|
-
export type OnLocationChangeErrorCallback =(res:UniError)=>void
|
|
2937
|
-
// #endif
|
|
2938
2930
|
|
|
2939
|
-
// #ifndef APP-IOS
|
|
2940
2931
|
export type OnLocationChangeErrorCallback =(listener:IGetLocationFail)=>void
|
|
2941
|
-
// #endif
|
|
2942
2932
|
|
|
2943
2933
|
export type OnLocationChangeError = (listener:OnLocationChangeErrorCallback)=>number
|
|
2944
2934
|
export type OffLocationChangeError = (listener?:number|OnLocationChangeErrorCallback|null)=>void
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
2
|
import {
|
|
3
3
|
UniLocationSystemProvider as UniLocationSystemProviderOrigin,
|
|
4
|
-
UniLocationSystemProvider as UniLocationSystemProviderOrigin,
|
|
5
4
|
} from './interface'
|
|
6
5
|
|
|
7
6
|
declare global {
|
|
8
7
|
type UniLocationSystemProvider = UniLocationSystemProviderOrigin
|
|
9
|
-
type UniLocationSystemProvider = UniLocationSystemProviderOrigin
|
|
10
8
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// #ifdef APP-IOS
|
|
2
|
-
export interface UniLocationSystemProvider extends UniLocationProvider, JSExport {
|
|
3
|
-
toJSON() : Map<String, Any>
|
|
4
|
-
}
|
|
5
|
-
// #endif
|
|
6
1
|
|
|
7
|
-
|
|
2
|
+
|
|
8
3
|
export interface UniLocationSystemProvider extends UniLocationProvider { }
|
|
9
|
-
// #endif
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
2
|
import {
|
|
3
3
|
UniLocationTencentProvider as UniLocationTencentProviderOrigin,
|
|
4
|
-
UniLocationTencentProvider as UniLocationTencentProviderOrigin,
|
|
5
4
|
} from './interface'
|
|
6
5
|
|
|
7
6
|
declare global {
|
|
8
7
|
type UniLocationTencentProvider = UniLocationTencentProviderOrigin
|
|
9
|
-
type UniLocationTencentProvider = UniLocationTencentProviderOrigin
|
|
10
8
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// #ifdef APP-IOS
|
|
2
|
-
export interface UniLocationTencentProvider extends UniLocationProvider, JSExport {
|
|
3
|
-
toJSON() : Map<String, Any>
|
|
4
|
-
}
|
|
5
|
-
// #endif
|
|
6
1
|
|
|
7
|
-
|
|
2
|
+
|
|
8
3
|
export interface UniLocationTencentProvider extends UniLocationProvider { }
|
|
9
|
-
// #endif
|
|
@@ -760,7 +760,6 @@ export type ChooseImageOptions = {
|
|
|
760
760
|
|
|
761
761
|
export type ChooseImage = (options: ChooseImageOptions) => void
|
|
762
762
|
|
|
763
|
-
// #ifndef UNI-APP-X && !APP-HARMONY
|
|
764
763
|
|
|
765
764
|
export type PreviewImageSuccess = {
|
|
766
765
|
/**
|
|
@@ -1191,7 +1190,7 @@ export type ClosePreviewImageOptions = {
|
|
|
1191
1190
|
*/
|
|
1192
1191
|
complete?: (ClosePreviewImageCompleteCallback) | null
|
|
1193
1192
|
};
|
|
1194
|
-
|
|
1193
|
+
|
|
1195
1194
|
export type GetImageInfo = (options: GetImageInfoOptions) => void;
|
|
1196
1195
|
export type GetImageInfoSuccess = {
|
|
1197
1196
|
/**
|
|
@@ -4971,7 +4970,6 @@ export interface Uni {
|
|
|
4971
4970
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html
|
|
4972
4971
|
*/
|
|
4973
4972
|
chooseImage(options: ChooseImageOptions): void;
|
|
4974
|
-
// #ifndef UNI-APP-X && !APP-HARMONY
|
|
4975
4973
|
/**
|
|
4976
4974
|
* 预览图片
|
|
4977
4975
|
* @description 预览图片
|
|
@@ -5143,7 +5141,7 @@ export interface Uni {
|
|
|
5143
5141
|
}
|
|
5144
5142
|
*/
|
|
5145
5143
|
closePreviewImage(options: ClosePreviewImageOptions): void;
|
|
5146
|
-
|
|
5144
|
+
|
|
5147
5145
|
/**
|
|
5148
5146
|
* 获取图片信息
|
|
5149
5147
|
* @description 获取图片信息
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import {
|
|
3
3
|
RequestPaymentFailImpl as RequestPaymentFailImplOrigin,
|
|
4
4
|
UniPaymentProvider as UniPaymentProviderOrigin,
|
|
5
|
-
UniPaymentProvider as UniPaymentProviderOrigin,
|
|
6
5
|
RequestPaymentErrorCode as RequestPaymentErrorCodeOrigin,
|
|
7
6
|
RequestPayment as RequestPaymentOrigin,
|
|
8
7
|
RequestPaymentSuccess as RequestPaymentSuccessOrigin,
|
|
@@ -19,7 +18,6 @@ import {
|
|
|
19
18
|
declare global {
|
|
20
19
|
type RequestPaymentFailImpl = RequestPaymentFailImplOrigin
|
|
21
20
|
type UniPaymentProvider = UniPaymentProviderOrigin
|
|
22
|
-
type UniPaymentProvider = UniPaymentProviderOrigin
|
|
23
21
|
type RequestPaymentErrorCode = RequestPaymentErrorCodeOrigin
|
|
24
22
|
type RequestPayment = RequestPaymentOrigin
|
|
25
23
|
type RequestPaymentSuccess = RequestPaymentSuccessOrigin
|
|
@@ -2,15 +2,10 @@ import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierro
|
|
|
2
2
|
|
|
3
3
|
export type RequestPaymentFailImpl = RequestPaymentFailImplement
|
|
4
4
|
|
|
5
|
-
// #ifdef APP-IOS
|
|
6
|
-
export interface UniPaymentProvider extends Uni, JSExport { }
|
|
7
|
-
// #endif
|
|
8
5
|
|
|
9
|
-
// #ifndef APP-IOS
|
|
10
6
|
export interface UniPaymentProvider extends UniProvider {
|
|
11
7
|
requestPayment(options : RequestPaymentOptions) : void;
|
|
12
8
|
}
|
|
13
|
-
// #endif
|
|
14
9
|
|
|
15
10
|
export interface Uni {
|
|
16
11
|
/**
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
2
|
import {
|
|
3
3
|
UniPaymentAlipayProvider as UniPaymentAlipayProviderOrigin,
|
|
4
|
-
UniPaymentAlipayProvider as UniPaymentAlipayProviderOrigin,
|
|
5
4
|
} from './interface'
|
|
6
5
|
|
|
7
6
|
declare global {
|
|
8
7
|
type UniPaymentAlipayProvider = UniPaymentAlipayProviderOrigin
|
|
9
|
-
type UniPaymentAlipayProvider = UniPaymentAlipayProviderOrigin
|
|
10
8
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
2
|
import {
|
|
3
3
|
UniPaymentWxpayProvider as UniPaymentWxpayProviderOrigin,
|
|
4
|
-
UniPaymentWxpayProvider as UniPaymentWxpayProviderOrigin,
|
|
5
4
|
} from './interface'
|
|
6
5
|
|
|
7
6
|
declare global {
|
|
8
7
|
type UniPaymentWxpayProvider = UniPaymentWxpayProviderOrigin
|
|
9
|
-
type UniPaymentWxpayProvider = UniPaymentWxpayProviderOrigin
|
|
10
8
|
}
|