@dcloudio/uni-app-x 0.7.47 → 0.7.48
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 +1 -1
- package/types/app.d.ts +160 -4
- package/types/native/IUniElement.d.ts +1248 -3
- package/types/native/UniAnimation.d.ts +22 -22
- package/types/native/UniElement.d.ts +6 -2
- package/types/native/UniFormControlElement.d.ts +1 -0
- package/types/{UniPage.d.ts → native/UniPage.d.ts} +9 -8
- package/types/page.d.ts +91 -94
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +46 -2
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +142 -0
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1667 -1665
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +143 -1
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +190 -0
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +615 -0
- package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -0
- package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/interface.d.ts +221 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +38 -38
- package/types/uni/uts-plugin-component/global.d.ts +1 -0
- package/types/uni/uts-plugin-component/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +221 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +38 -11
- package/uts-plugin.d.ts +2 -0
- package/types/native/global.d.ts +0 -646
|
@@ -4551,7 +4551,149 @@ export type GetSystemInfoResult = {
|
|
|
4551
4551
|
* }
|
|
4552
4552
|
* }
|
|
4553
4553
|
*/
|
|
4554
|
-
|
|
4554
|
+
osAndroidAPILevel?: number | null,
|
|
4555
|
+
/**
|
|
4556
|
+
* 鸿蒙系统软件API版本
|
|
4557
|
+
*
|
|
4558
|
+
* @uniPlatform
|
|
4559
|
+
* {
|
|
4560
|
+
* "app": {
|
|
4561
|
+
* "android": {
|
|
4562
|
+
* "osVer": "5.0",
|
|
4563
|
+
* "uniVer": "√",
|
|
4564
|
+
* "unixVer": "√"
|
|
4565
|
+
* },
|
|
4566
|
+
* "ios": {
|
|
4567
|
+
* "osVer": "x",
|
|
4568
|
+
* "uniVer": "x",
|
|
4569
|
+
* "unixVer": "x"
|
|
4570
|
+
* },
|
|
4571
|
+
* "harmony": {
|
|
4572
|
+
* "osVer": "√",
|
|
4573
|
+
* "uniVer": "4.61",
|
|
4574
|
+
* "unixVer": "4.61"
|
|
4575
|
+
* }
|
|
4576
|
+
* },
|
|
4577
|
+
* "mp": {
|
|
4578
|
+
* "weixin": {
|
|
4579
|
+
* "hostVer": "√",
|
|
4580
|
+
* "uniVer": "x",
|
|
4581
|
+
* "unixVer": "x"
|
|
4582
|
+
* },
|
|
4583
|
+
* "alipay": {
|
|
4584
|
+
* "hostVer": "√",
|
|
4585
|
+
* "uniVer": "x",
|
|
4586
|
+
* "unixVer": "x"
|
|
4587
|
+
* },
|
|
4588
|
+
* "baidu": {
|
|
4589
|
+
* "hostVer": "√",
|
|
4590
|
+
* "uniVer": "x",
|
|
4591
|
+
* "unixVer": "x"
|
|
4592
|
+
* },
|
|
4593
|
+
* "toutiao": {
|
|
4594
|
+
* "hostVer": "√",
|
|
4595
|
+
* "uniVer": "x",
|
|
4596
|
+
* "unixVer": "x"
|
|
4597
|
+
* },
|
|
4598
|
+
* "lark": {
|
|
4599
|
+
* "hostVer": "√",
|
|
4600
|
+
* "uniVer": "x",
|
|
4601
|
+
* "unixVer": "x"
|
|
4602
|
+
* },
|
|
4603
|
+
* "qq": {
|
|
4604
|
+
* "hostVer": "√",
|
|
4605
|
+
* "uniVer": "x",
|
|
4606
|
+
* "unixVer": "x"
|
|
4607
|
+
* },
|
|
4608
|
+
* "kuaishou": {
|
|
4609
|
+
* "hostVer": "√",
|
|
4610
|
+
* "uniVer": "x",
|
|
4611
|
+
* "unixVer": "x"
|
|
4612
|
+
* },
|
|
4613
|
+
* "jd": {
|
|
4614
|
+
* "hostVer": "√",
|
|
4615
|
+
* "uniVer": "x",
|
|
4616
|
+
* "unixVer": "x"
|
|
4617
|
+
* }
|
|
4618
|
+
* },
|
|
4619
|
+
* "web": {
|
|
4620
|
+
* "uniVer": "x",
|
|
4621
|
+
* "unixVer": "x"
|
|
4622
|
+
* }
|
|
4623
|
+
* }
|
|
4624
|
+
*/
|
|
4625
|
+
osHarmonySDKAPIVersion?: number | null,
|
|
4626
|
+
/**
|
|
4627
|
+
* 产品版本,关于本机信息内的软件版本
|
|
4628
|
+
*
|
|
4629
|
+
* @uniPlatform
|
|
4630
|
+
* {
|
|
4631
|
+
* "app": {
|
|
4632
|
+
* "android": {
|
|
4633
|
+
* "osVer": "5.0",
|
|
4634
|
+
* "uniVer": "√",
|
|
4635
|
+
* "unixVer": "√"
|
|
4636
|
+
* },
|
|
4637
|
+
* "ios": {
|
|
4638
|
+
* "osVer": "x",
|
|
4639
|
+
* "uniVer": "x",
|
|
4640
|
+
* "unixVer": "x"
|
|
4641
|
+
* },
|
|
4642
|
+
* "harmony": {
|
|
4643
|
+
* "osVer": "√",
|
|
4644
|
+
* "uniVer": "4.61",
|
|
4645
|
+
* "unixVer": "4.61"
|
|
4646
|
+
* }
|
|
4647
|
+
* },
|
|
4648
|
+
* "mp": {
|
|
4649
|
+
* "weixin": {
|
|
4650
|
+
* "hostVer": "√",
|
|
4651
|
+
* "uniVer": "x",
|
|
4652
|
+
* "unixVer": "x"
|
|
4653
|
+
* },
|
|
4654
|
+
* "alipay": {
|
|
4655
|
+
* "hostVer": "√",
|
|
4656
|
+
* "uniVer": "x",
|
|
4657
|
+
* "unixVer": "x"
|
|
4658
|
+
* },
|
|
4659
|
+
* "baidu": {
|
|
4660
|
+
* "hostVer": "√",
|
|
4661
|
+
* "uniVer": "x",
|
|
4662
|
+
* "unixVer": "x"
|
|
4663
|
+
* },
|
|
4664
|
+
* "toutiao": {
|
|
4665
|
+
* "hostVer": "√",
|
|
4666
|
+
* "uniVer": "x",
|
|
4667
|
+
* "unixVer": "x"
|
|
4668
|
+
* },
|
|
4669
|
+
* "lark": {
|
|
4670
|
+
* "hostVer": "√",
|
|
4671
|
+
* "uniVer": "x",
|
|
4672
|
+
* "unixVer": "x"
|
|
4673
|
+
* },
|
|
4674
|
+
* "qq": {
|
|
4675
|
+
* "hostVer": "√",
|
|
4676
|
+
* "uniVer": "x",
|
|
4677
|
+
* "unixVer": "x"
|
|
4678
|
+
* },
|
|
4679
|
+
* "kuaishou": {
|
|
4680
|
+
* "hostVer": "√",
|
|
4681
|
+
* "uniVer": "x",
|
|
4682
|
+
* "unixVer": "x"
|
|
4683
|
+
* },
|
|
4684
|
+
* "jd": {
|
|
4685
|
+
* "hostVer": "√",
|
|
4686
|
+
* "uniVer": "x",
|
|
4687
|
+
* "unixVer": "x"
|
|
4688
|
+
* }
|
|
4689
|
+
* },
|
|
4690
|
+
* "web": {
|
|
4691
|
+
* "uniVer": "x",
|
|
4692
|
+
* "unixVer": "x"
|
|
4693
|
+
* }
|
|
4694
|
+
* }
|
|
4695
|
+
*/
|
|
4696
|
+
osHarmonyDisplayVersion?: string | null,
|
|
4555
4697
|
/**
|
|
4556
4698
|
* 当前App的主题
|
|
4557
4699
|
*
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniShowModalResult as UniShowModalResultOrigin,
|
|
4
|
+
UniShowModalErrorCode as UniShowModalErrorCodeOrigin,
|
|
5
|
+
UniShowModalFail as UniShowModalFailOrigin,
|
|
6
|
+
ShowModalOptions2 as ShowModalOptions2Origin,
|
|
7
|
+
ShowModal2 as ShowModal2Origin,
|
|
8
|
+
Uni as UniOrigin
|
|
9
|
+
} from './interface'
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
type UniShowModalResult = UniShowModalResultOrigin
|
|
13
|
+
type UniShowModalErrorCode = UniShowModalErrorCodeOrigin
|
|
14
|
+
type UniShowModalFail = UniShowModalFailOrigin
|
|
15
|
+
type ShowModalOptions2 = ShowModalOptions2Origin
|
|
16
|
+
type ShowModal2 = ShowModal2Origin
|
|
17
|
+
interface Uni extends UniOrigin { }
|
|
18
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
|
|
2
|
+
export type UniShowModalResult = {
|
|
3
|
+
/**
|
|
4
|
+
* editable 为 true 时,用户输入的文本
|
|
5
|
+
*/
|
|
6
|
+
content?: string|null
|
|
7
|
+
/**
|
|
8
|
+
* 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)
|
|
9
|
+
*/
|
|
10
|
+
cancel: boolean
|
|
11
|
+
/**
|
|
12
|
+
* 为 true 时,表示用户点击了确定按钮
|
|
13
|
+
*/
|
|
14
|
+
confirm: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type UniShowModalErrorCode = 4
|
|
18
|
+
|
|
19
|
+
export interface UniShowModalFail extends IUniError {
|
|
20
|
+
errCode: UniShowModalErrorCode
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class UniShowModalFailImpl extends UniError implements UniShowModalFail {
|
|
24
|
+
override errCode: UniShowModalErrorCode
|
|
25
|
+
constructor(errMsg: string = 'showModal:fail cancel', errCode: UniShowModalErrorCode = 4) {
|
|
26
|
+
super()
|
|
27
|
+
this.errMsg = errMsg
|
|
28
|
+
this.errCode = errCode
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
type UniShowModalFailCallback = (result: UniShowModalFail) => void
|
|
34
|
+
|
|
35
|
+
type UniShowModalSuccessCallback = (result: UniShowModalResult) => void
|
|
36
|
+
|
|
37
|
+
type UniShowModalCompleteCallback = (result: any) => void
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
export type ShowModalOptions2 = {
|
|
41
|
+
/**
|
|
42
|
+
* 提示的标题
|
|
43
|
+
*/
|
|
44
|
+
title?: string | null,
|
|
45
|
+
/**
|
|
46
|
+
* 提示的内容
|
|
47
|
+
*/
|
|
48
|
+
content?: string | null,
|
|
49
|
+
/**
|
|
50
|
+
* @default true
|
|
51
|
+
* 是否显示取消按钮,默认为 true
|
|
52
|
+
*/
|
|
53
|
+
showCancel?: boolean | null,
|
|
54
|
+
/**
|
|
55
|
+
* 取消按钮的文字,默认为"取消"
|
|
56
|
+
*/
|
|
57
|
+
cancelText?: string | null,
|
|
58
|
+
/**
|
|
59
|
+
* 取消按钮的文字颜色,默认为"#000000"
|
|
60
|
+
*/
|
|
61
|
+
cancelColor?: string.ColorString | null,
|
|
62
|
+
/**
|
|
63
|
+
* 确定按钮的文字,默认为"确定"
|
|
64
|
+
*/
|
|
65
|
+
confirmText?: string | null,
|
|
66
|
+
/**
|
|
67
|
+
* 确定按钮的文字颜色
|
|
68
|
+
*/
|
|
69
|
+
confirmColor?: string.ColorString | null,
|
|
70
|
+
/**
|
|
71
|
+
* @default false
|
|
72
|
+
* 是否显示输入框
|
|
73
|
+
*/
|
|
74
|
+
editable?: boolean | null,
|
|
75
|
+
/**
|
|
76
|
+
* 显示输入框时的提示文本
|
|
77
|
+
*/
|
|
78
|
+
placeholderText?: string | null,
|
|
79
|
+
/**
|
|
80
|
+
* 接口调用成功的回调函数
|
|
81
|
+
*/
|
|
82
|
+
success?: UniShowModalSuccessCallback | null,
|
|
83
|
+
/**
|
|
84
|
+
* 接口调用失败的回调函数
|
|
85
|
+
*/
|
|
86
|
+
fail?: UniShowModalFailCallback | null,
|
|
87
|
+
/**
|
|
88
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
89
|
+
*/
|
|
90
|
+
complete?: UniShowModalCompleteCallback | null
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type ShowModal2 = (options: ShowModalOptions2) => void;
|
|
94
|
+
|
|
95
|
+
export interface Uni {
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @description 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
|
|
99
|
+
* @example
|
|
100
|
+
```typescript
|
|
101
|
+
uni.showModal({
|
|
102
|
+
title: '提示',
|
|
103
|
+
content: '这是一个模态弹窗',
|
|
104
|
+
success: function (res) {
|
|
105
|
+
if (res.confirm) {
|
|
106
|
+
console.log('用户点击确定');
|
|
107
|
+
} else if (res.cancel) {
|
|
108
|
+
console.log('用户点击取消');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
```
|
|
113
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
114
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
115
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
116
|
+
* @uniPlatform
|
|
117
|
+
{
|
|
118
|
+
"app": {
|
|
119
|
+
"android": {
|
|
120
|
+
"osVer": "5.0",
|
|
121
|
+
"uniVer": "√",
|
|
122
|
+
"uniUtsPlugin": "x",
|
|
123
|
+
"unixVer": "3.91",
|
|
124
|
+
"unixUtsPlugin": "3.91"
|
|
125
|
+
},
|
|
126
|
+
"ios": {
|
|
127
|
+
"osVer": "12.0",
|
|
128
|
+
"uniVer": "√",
|
|
129
|
+
"uniUtsPlugin": "x",
|
|
130
|
+
"unixVer": "4.11",
|
|
131
|
+
"unixUtsPlugin": "4.11"
|
|
132
|
+
},
|
|
133
|
+
"harmony": {
|
|
134
|
+
"osVer": "3.0",
|
|
135
|
+
"uniVer": "4.23",
|
|
136
|
+
"unixVer": "4.61"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"mp": {
|
|
140
|
+
"weixin": {
|
|
141
|
+
"hostVer": "√",
|
|
142
|
+
"uniVer": "√",
|
|
143
|
+
"unixVer": "4.41"
|
|
144
|
+
},
|
|
145
|
+
"alipay": {
|
|
146
|
+
"hostVer": "√",
|
|
147
|
+
"uniVer": "√",
|
|
148
|
+
"unixVer": "x"
|
|
149
|
+
},
|
|
150
|
+
"baidu": {
|
|
151
|
+
"hostVer": "√",
|
|
152
|
+
"uniVer": "√",
|
|
153
|
+
"unixVer": "x"
|
|
154
|
+
},
|
|
155
|
+
"toutiao": {
|
|
156
|
+
"hostVer": "√",
|
|
157
|
+
"uniVer": "√",
|
|
158
|
+
"unixVer": "x"
|
|
159
|
+
},
|
|
160
|
+
"lark": {
|
|
161
|
+
"hostVer": "√",
|
|
162
|
+
"uniVer": "√",
|
|
163
|
+
"unixVer": "x"
|
|
164
|
+
},
|
|
165
|
+
"qq": {
|
|
166
|
+
"hostVer": "√",
|
|
167
|
+
"uniVer": "√",
|
|
168
|
+
"unixVer": "x"
|
|
169
|
+
},
|
|
170
|
+
"kuaishou": {
|
|
171
|
+
"hostVer": "√",
|
|
172
|
+
"uniVer": "√",
|
|
173
|
+
"unixVer": "x"
|
|
174
|
+
},
|
|
175
|
+
"jd": {
|
|
176
|
+
"hostVer": "√",
|
|
177
|
+
"uniVer": "√",
|
|
178
|
+
"unixVer": "x"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"web": {
|
|
182
|
+
"uniVer": "√",
|
|
183
|
+
"unixVer": "4.0"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
*/
|
|
187
|
+
showModal2(options: ShowModalOptions2): void,
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
RequestMerchantTransfer as RequestMerchantTransferOrigin,
|
|
4
|
+
RequestMerchantTransferOption as RequestMerchantTransferOptionOrigin,
|
|
5
|
+
RequestMerchantTransferCompleteCallback as RequestMerchantTransferCompleteCallbackOrigin,
|
|
6
|
+
RequestMerchantTransferFailCallback as RequestMerchantTransferFailCallbackOrigin,
|
|
7
|
+
RequestMerchantTransferSuccessCallback as RequestMerchantTransferSuccessCallbackOrigin,
|
|
8
|
+
RequestMerchantTransferGeneralCallbackResult as RequestMerchantTransferGeneralCallbackResultOrigin,
|
|
9
|
+
Uni as UniOrigin
|
|
10
|
+
} from './interface'
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
type RequestMerchantTransfer = RequestMerchantTransferOrigin
|
|
14
|
+
type RequestMerchantTransferOption = RequestMerchantTransferOptionOrigin
|
|
15
|
+
type RequestMerchantTransferCompleteCallback = RequestMerchantTransferCompleteCallbackOrigin
|
|
16
|
+
type RequestMerchantTransferFailCallback = RequestMerchantTransferFailCallbackOrigin
|
|
17
|
+
type RequestMerchantTransferSuccessCallback = RequestMerchantTransferSuccessCallbackOrigin
|
|
18
|
+
type RequestMerchantTransferGeneralCallbackResult = RequestMerchantTransferGeneralCallbackResultOrigin
|
|
19
|
+
interface Uni extends UniOrigin { }
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
RequestMerchantTransfer,
|
|
4
|
+
RequestMerchantTransferOption,
|
|
5
|
+
RequestMerchantTransferCompleteCallback,
|
|
6
|
+
RequestMerchantTransferFailCallback,
|
|
7
|
+
RequestMerchantTransferSuccessCallback,
|
|
8
|
+
RequestMerchantTransferGeneralCallbackResult,
|
|
9
|
+
} from './interface'
|