@dcloudio/uni-app-x 0.7.32 → 0.7.34
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 +182 -146
- package/types/native/CSSStyleDeclaration.d.ts +72 -0
- package/types/native/DOMRect.d.ts +180 -0
- package/types/native/DrawableContext.d.ts +471 -4
- package/types/native/SnapshotOptions.d.ts +0 -1
- package/types/native/UniEvent.d.ts +23 -1
- package/types/page.d.ts +99 -84
- 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-crash/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
- package/types/uni-cloud/interface.d.ts +1 -1
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -724,8 +724,42 @@ declare global {
|
|
|
724
724
|
/**
|
|
725
725
|
* `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
|
|
726
726
|
* @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
|
|
727
|
+
* @uniPlatform {
|
|
728
|
+
* "app": {
|
|
729
|
+
* "android": {
|
|
730
|
+
* "osVer": "5.0",
|
|
731
|
+
* "uniVer": "√",
|
|
732
|
+
* "unixVer": "√"
|
|
733
|
+
* },
|
|
734
|
+
* "ios": {
|
|
735
|
+
* "osVer": "12.0",
|
|
736
|
+
* "uniVer": "√",
|
|
737
|
+
* "unixVer": "√"
|
|
738
|
+
* },
|
|
739
|
+
* "harmony": {
|
|
740
|
+
* "osVer": "3.0",
|
|
741
|
+
* "uniVer": "4.23",
|
|
742
|
+
* "unixVer": "x"
|
|
743
|
+
* }
|
|
744
|
+
* },
|
|
745
|
+
* "mp": {
|
|
746
|
+
* "weixin": {
|
|
747
|
+
* "hostVer": "√",
|
|
748
|
+
* "uniVer": "√",
|
|
749
|
+
* "unixVer": "√"
|
|
750
|
+
* },
|
|
751
|
+
* },
|
|
752
|
+
* "web": {
|
|
753
|
+
* "uniVer": "√",
|
|
754
|
+
* "unixVer": "4.0"
|
|
755
|
+
* }
|
|
756
|
+
* }
|
|
727
757
|
*/
|
|
728
|
-
function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>():
|
|
758
|
+
function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): UniApp & {
|
|
759
|
+
globalData: AppInstance<T>['globalData']
|
|
760
|
+
vm: AppInstance<T>
|
|
761
|
+
$vm: AppInstance<T>
|
|
762
|
+
}
|
|
729
763
|
|
|
730
764
|
interface OnLaunchOptions {
|
|
731
765
|
/**
|
|
@@ -990,6 +1024,153 @@ declare global {
|
|
|
990
1024
|
*/
|
|
991
1025
|
isEntryPage: boolean;
|
|
992
1026
|
}
|
|
1027
|
+
|
|
1028
|
+
export interface UniApp {
|
|
1029
|
+
/**
|
|
1030
|
+
* App vue 实例对象
|
|
1031
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1032
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1033
|
+
* @uniPlatform {
|
|
1034
|
+
* "app": {
|
|
1035
|
+
* "android": {
|
|
1036
|
+
* "osVer": "5.0",
|
|
1037
|
+
* "uniVer": "x",
|
|
1038
|
+
* "unixVer": "4.31"
|
|
1039
|
+
* },
|
|
1040
|
+
* "ios": {
|
|
1041
|
+
* "osVer": "x",
|
|
1042
|
+
* "uniVer": "x",
|
|
1043
|
+
* "unixVer": "4.31"
|
|
1044
|
+
* },
|
|
1045
|
+
* "harmony": {
|
|
1046
|
+
* "osVer": "x",
|
|
1047
|
+
* "uniVer": "x",
|
|
1048
|
+
* "unixVer": "x"
|
|
1049
|
+
* }
|
|
1050
|
+
* },
|
|
1051
|
+
* "mp": {
|
|
1052
|
+
* "weixin": {
|
|
1053
|
+
* "hostVer": "√",
|
|
1054
|
+
* "uniVer": "x",
|
|
1055
|
+
* "unixVer": "x"
|
|
1056
|
+
* },
|
|
1057
|
+
* },
|
|
1058
|
+
* "web": {
|
|
1059
|
+
* "uniVer": "x",
|
|
1060
|
+
* "unixVer": "4.31"
|
|
1061
|
+
* }
|
|
1062
|
+
* }
|
|
1063
|
+
*/
|
|
1064
|
+
$vm: ComponentPublicInstance,
|
|
1065
|
+
/**
|
|
1066
|
+
* App vue 实例对象
|
|
1067
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1068
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1069
|
+
* @uniPlatform {
|
|
1070
|
+
* "app": {
|
|
1071
|
+
* "android": {
|
|
1072
|
+
* "osVer": "5.0",
|
|
1073
|
+
* "uniVer": "x",
|
|
1074
|
+
* "unixVer": "4.31"
|
|
1075
|
+
* },
|
|
1076
|
+
* "ios": {
|
|
1077
|
+
* "osVer": "x",
|
|
1078
|
+
* "uniVer": "x",
|
|
1079
|
+
* "unixVer": "4.31"
|
|
1080
|
+
* },
|
|
1081
|
+
* "harmony": {
|
|
1082
|
+
* "osVer": "x",
|
|
1083
|
+
* "uniVer": "x",
|
|
1084
|
+
* "unixVer": "x"
|
|
1085
|
+
* }
|
|
1086
|
+
* },
|
|
1087
|
+
* "mp": {
|
|
1088
|
+
* "weixin": {
|
|
1089
|
+
* "hostVer": "√",
|
|
1090
|
+
* "uniVer": "x",
|
|
1091
|
+
* "unixVer": "x"
|
|
1092
|
+
* },
|
|
1093
|
+
* },
|
|
1094
|
+
* "web": {
|
|
1095
|
+
* "uniVer": "x",
|
|
1096
|
+
* "unixVer": "4.31"
|
|
1097
|
+
* }
|
|
1098
|
+
* }
|
|
1099
|
+
*/
|
|
1100
|
+
vm: ComponentPublicInstance,
|
|
1101
|
+
/**
|
|
1102
|
+
* 全局对象
|
|
1103
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
1104
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
1105
|
+
* @uniPlatform {
|
|
1106
|
+
* "app": {
|
|
1107
|
+
* "android": {
|
|
1108
|
+
* "osVer": "5.0",
|
|
1109
|
+
* "uniVer": "x",
|
|
1110
|
+
* "unixVer": "4.31"
|
|
1111
|
+
* },
|
|
1112
|
+
* "ios": {
|
|
1113
|
+
* "osVer": "x",
|
|
1114
|
+
* "uniVer": "x",
|
|
1115
|
+
* "unixVer": "4.31"
|
|
1116
|
+
* },
|
|
1117
|
+
* "harmony": {
|
|
1118
|
+
* "osVer": "x",
|
|
1119
|
+
* "uniVer": "x",
|
|
1120
|
+
* "unixVer": "x"
|
|
1121
|
+
* }
|
|
1122
|
+
* },
|
|
1123
|
+
* "mp": {
|
|
1124
|
+
* "weixin": {
|
|
1125
|
+
* "hostVer": "√",
|
|
1126
|
+
* "uniVer": "x",
|
|
1127
|
+
* "unixVer": "x"
|
|
1128
|
+
* },
|
|
1129
|
+
* },
|
|
1130
|
+
* "web": {
|
|
1131
|
+
* "uniVer": "x",
|
|
1132
|
+
* "unixVer": "4.31"
|
|
1133
|
+
* }
|
|
1134
|
+
* }
|
|
1135
|
+
*/
|
|
1136
|
+
globalData: GlobalData,
|
|
1137
|
+
/**
|
|
1138
|
+
* 获取 Android 应用 Application 上下文
|
|
1139
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
1140
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
1141
|
+
* @uniPlatform {
|
|
1142
|
+
* "app": {
|
|
1143
|
+
* "android": {
|
|
1144
|
+
* "osVer": "5.0",
|
|
1145
|
+
* "uniVer": "x",
|
|
1146
|
+
* "unixVer": "4.31"
|
|
1147
|
+
* },
|
|
1148
|
+
* "ios": {
|
|
1149
|
+
* "osVer": "x",
|
|
1150
|
+
* "uniVer": "x",
|
|
1151
|
+
* "unixVer": "x"
|
|
1152
|
+
* },
|
|
1153
|
+
* "harmony": {
|
|
1154
|
+
* "osVer": "x",
|
|
1155
|
+
* "uniVer": "x",
|
|
1156
|
+
* "unixVer": "x"
|
|
1157
|
+
* }
|
|
1158
|
+
* },
|
|
1159
|
+
* "mp": {
|
|
1160
|
+
* "weixin": {
|
|
1161
|
+
* "hostVer": "√",
|
|
1162
|
+
* "uniVer": "x",
|
|
1163
|
+
* "unixVer": "x"
|
|
1164
|
+
* },
|
|
1165
|
+
* },
|
|
1166
|
+
* "web": {
|
|
1167
|
+
* "uniVer": "x",
|
|
1168
|
+
* "unixVer": "x"
|
|
1169
|
+
* }
|
|
1170
|
+
* }
|
|
1171
|
+
*/
|
|
1172
|
+
getAndroidApplication(): Application
|
|
1173
|
+
}
|
|
993
1174
|
}
|
|
994
1175
|
|
|
995
1176
|
type DefineAppX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = DefineApp<D, C, M, I, II> & UniAppOptions<G>
|
|
@@ -1000,148 +1181,3 @@ declare module '@vue/runtime-core' {
|
|
|
1000
1181
|
}
|
|
1001
1182
|
export function defineApp<D extends OptionsData = OptionsData, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, I extends ComponentInjectOptions = {}, II extends string = string, G extends GlobalData = GlobalData>(options: DefineAppX<D, C, M, I, II, G>): EditorCreateVueAppComponentX<D, C, M, I, II, G>
|
|
1002
1183
|
}
|
|
1003
|
-
|
|
1004
|
-
export interface UniApp {
|
|
1005
|
-
/**
|
|
1006
|
-
* App vue 实例对象
|
|
1007
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1008
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1009
|
-
* @uniPlatform {
|
|
1010
|
-
* "app": {
|
|
1011
|
-
* "android": {
|
|
1012
|
-
* "osVer": "5.0",
|
|
1013
|
-
* "uniVer": "x",
|
|
1014
|
-
* "unixVer": "4.31"
|
|
1015
|
-
* },
|
|
1016
|
-
* "ios": {
|
|
1017
|
-
* "osVer": "x",
|
|
1018
|
-
* "uniVer": "x",
|
|
1019
|
-
* "unixVer": "4.31"
|
|
1020
|
-
* },
|
|
1021
|
-
* "harmony": {
|
|
1022
|
-
* "osVer": "x",
|
|
1023
|
-
* "uniVer": "x",
|
|
1024
|
-
* "unixVer": "x"
|
|
1025
|
-
* }
|
|
1026
|
-
* },
|
|
1027
|
-
* "mp": {
|
|
1028
|
-
* "weixin": {
|
|
1029
|
-
* "hostVer": "√",
|
|
1030
|
-
* "uniVer": "x",
|
|
1031
|
-
* "unixVer": "x"
|
|
1032
|
-
* },
|
|
1033
|
-
* },
|
|
1034
|
-
* "web": {
|
|
1035
|
-
* "uniVer": "x",
|
|
1036
|
-
* "unixVer": "4.31"
|
|
1037
|
-
* }
|
|
1038
|
-
* }
|
|
1039
|
-
*/
|
|
1040
|
-
$vm: ComponentPublicInstance,
|
|
1041
|
-
/**
|
|
1042
|
-
* App vue 实例对象
|
|
1043
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1044
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1045
|
-
* @uniPlatform {
|
|
1046
|
-
* "app": {
|
|
1047
|
-
* "android": {
|
|
1048
|
-
* "osVer": "5.0",
|
|
1049
|
-
* "uniVer": "x",
|
|
1050
|
-
* "unixVer": "4.31"
|
|
1051
|
-
* },
|
|
1052
|
-
* "ios": {
|
|
1053
|
-
* "osVer": "x",
|
|
1054
|
-
* "uniVer": "x",
|
|
1055
|
-
* "unixVer": "4.31"
|
|
1056
|
-
* },
|
|
1057
|
-
* "harmony": {
|
|
1058
|
-
* "osVer": "x",
|
|
1059
|
-
* "uniVer": "x",
|
|
1060
|
-
* "unixVer": "x"
|
|
1061
|
-
* }
|
|
1062
|
-
* },
|
|
1063
|
-
* "mp": {
|
|
1064
|
-
* "weixin": {
|
|
1065
|
-
* "hostVer": "√",
|
|
1066
|
-
* "uniVer": "x",
|
|
1067
|
-
* "unixVer": "x"
|
|
1068
|
-
* },
|
|
1069
|
-
* },
|
|
1070
|
-
* "web": {
|
|
1071
|
-
* "uniVer": "x",
|
|
1072
|
-
* "unixVer": "4.31"
|
|
1073
|
-
* }
|
|
1074
|
-
* }
|
|
1075
|
-
*/
|
|
1076
|
-
vm: ComponentPublicInstance,
|
|
1077
|
-
/**
|
|
1078
|
-
* 全局对象
|
|
1079
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1080
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1081
|
-
* @uniPlatform {
|
|
1082
|
-
* "app": {
|
|
1083
|
-
* "android": {
|
|
1084
|
-
* "osVer": "5.0",
|
|
1085
|
-
* "uniVer": "x",
|
|
1086
|
-
* "unixVer": "4.31"
|
|
1087
|
-
* },
|
|
1088
|
-
* "ios": {
|
|
1089
|
-
* "osVer": "x",
|
|
1090
|
-
* "uniVer": "x",
|
|
1091
|
-
* "unixVer": "4.31"
|
|
1092
|
-
* },
|
|
1093
|
-
* "harmony": {
|
|
1094
|
-
* "osVer": "x",
|
|
1095
|
-
* "uniVer": "x",
|
|
1096
|
-
* "unixVer": "x"
|
|
1097
|
-
* }
|
|
1098
|
-
* },
|
|
1099
|
-
* "mp": {
|
|
1100
|
-
* "weixin": {
|
|
1101
|
-
* "hostVer": "√",
|
|
1102
|
-
* "uniVer": "x",
|
|
1103
|
-
* "unixVer": "x"
|
|
1104
|
-
* },
|
|
1105
|
-
* },
|
|
1106
|
-
* "web": {
|
|
1107
|
-
* "uniVer": "x",
|
|
1108
|
-
* "unixVer": "4.31"
|
|
1109
|
-
* }
|
|
1110
|
-
* }
|
|
1111
|
-
*/
|
|
1112
|
-
globalData: GlobalData,
|
|
1113
|
-
/**
|
|
1114
|
-
* 获取 Android 应用 Application 上下文
|
|
1115
|
-
* @uniPlatform {
|
|
1116
|
-
* "app": {
|
|
1117
|
-
* "android": {
|
|
1118
|
-
* "osVer": "5.0",
|
|
1119
|
-
* "uniVer": "x",
|
|
1120
|
-
* "unixVer": "4.31"
|
|
1121
|
-
* },
|
|
1122
|
-
* "ios": {
|
|
1123
|
-
* "osVer": "x",
|
|
1124
|
-
* "uniVer": "x",
|
|
1125
|
-
* "unixVer": "x"
|
|
1126
|
-
* },
|
|
1127
|
-
* "harmony": {
|
|
1128
|
-
* "osVer": "x",
|
|
1129
|
-
* "uniVer": "x",
|
|
1130
|
-
* "unixVer": "x"
|
|
1131
|
-
* }
|
|
1132
|
-
* },
|
|
1133
|
-
* "mp": {
|
|
1134
|
-
* "weixin": {
|
|
1135
|
-
* "hostVer": "√",
|
|
1136
|
-
* "uniVer": "x",
|
|
1137
|
-
* "unixVer": "x"
|
|
1138
|
-
* },
|
|
1139
|
-
* },
|
|
1140
|
-
* "web": {
|
|
1141
|
-
* "uniVer": "x",
|
|
1142
|
-
* "unixVer": "x"
|
|
1143
|
-
* }
|
|
1144
|
-
* }
|
|
1145
|
-
*/
|
|
1146
|
-
getAndroidApplication(): Application
|
|
1147
|
-
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CSSStyleDeclaration表示一个CSS 声明块对象,它是一个 CSS 属性键值对的集合,暴露样式信息和各种与样式相关的方法和属性。
|
|
3
3
|
* @package io.dcloud.uniapp.runtime
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "3.9"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.11"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* "web": {
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.0"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
4
22
|
*/
|
|
5
23
|
export class CSSStyleDeclaration {
|
|
6
24
|
|
|
@@ -8,18 +26,72 @@ export class CSSStyleDeclaration {
|
|
|
8
26
|
* 对CSS指定样式设置一个新值,如有此样式已存在则更新。
|
|
9
27
|
* @param name CSS样式名称
|
|
10
28
|
* @param value 要设置的新CSS样式值
|
|
29
|
+
* @uniPlatform {
|
|
30
|
+
* "app": {
|
|
31
|
+
* "android": {
|
|
32
|
+
* "osVer": "5.0",
|
|
33
|
+
* "uniVer": "x",
|
|
34
|
+
* "unixVer": "3.9"
|
|
35
|
+
* },
|
|
36
|
+
* "ios": {
|
|
37
|
+
* "osVer": "12.0",
|
|
38
|
+
* "uniVer": "x",
|
|
39
|
+
* "unixVer": "4.11"
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* "web": {
|
|
43
|
+
* "uniVer": "x",
|
|
44
|
+
* "unixVer": "4.0"
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
11
47
|
*/
|
|
12
48
|
setProperty(name: string | string.cssPropertyString, value: any | null): void
|
|
13
49
|
|
|
14
50
|
/**
|
|
15
51
|
* 获取CSS指定的样式值,如果指定的样式不存在则返回null。
|
|
16
52
|
* @param property 要获取的CSS样式名称
|
|
53
|
+
* @uniPlatform {
|
|
54
|
+
* "app": {
|
|
55
|
+
* "android": {
|
|
56
|
+
* "osVer": "5.0",
|
|
57
|
+
* "uniVer": "x",
|
|
58
|
+
* "unixVer": "3.9"
|
|
59
|
+
* },
|
|
60
|
+
* "ios": {
|
|
61
|
+
* "osVer": "12.0",
|
|
62
|
+
* "uniVer": "x",
|
|
63
|
+
* "unixVer": "4.11"
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* "web": {
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "4.0"
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
17
71
|
*/
|
|
18
72
|
getPropertyValue(property: string | string.cssPropertyString): any | null
|
|
19
73
|
|
|
20
74
|
/**
|
|
21
75
|
* 删除CSS指定的样式值
|
|
22
76
|
* @param property 要删除的CSS样式名称
|
|
77
|
+
* @uniPlatform {
|
|
78
|
+
* "app": {
|
|
79
|
+
* "android": {
|
|
80
|
+
* "osVer": "5.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "3.9"
|
|
83
|
+
* },
|
|
84
|
+
* "ios": {
|
|
85
|
+
* "osVer": "12.0",
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "4.11"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* "web": {
|
|
91
|
+
* "uniVer": "x",
|
|
92
|
+
* "unixVer": "4.0"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
23
95
|
*/
|
|
24
96
|
removeProperty(property: string | string.cssPropertyString): any | null
|
|
25
97
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 一个 DOMRect 代表一个矩形。
|
|
3
3
|
* @package io.dcloud.uniapp.runtime
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "3.9"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.11"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* "web": {
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.0"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
4
22
|
*/
|
|
5
23
|
export class DOMRect {
|
|
6
24
|
|
|
@@ -10,46 +28,208 @@ export class DOMRect {
|
|
|
10
28
|
* @param {number} [y=0] 矩形原点的y坐标
|
|
11
29
|
* @param {number} [width=0] 矩形的宽
|
|
12
30
|
* @param {number} [height=0] 矩形的高
|
|
31
|
+
* @uniPlatform {
|
|
32
|
+
* "app": {
|
|
33
|
+
* "android": {
|
|
34
|
+
* "osVer": "5.0",
|
|
35
|
+
* "uniVer": "x",
|
|
36
|
+
* "unixVer": "3.9"
|
|
37
|
+
* },
|
|
38
|
+
* "ios": {
|
|
39
|
+
* "osVer": "12.0",
|
|
40
|
+
* "uniVer": "x",
|
|
41
|
+
* "unixVer": "4.11"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* "web": {
|
|
45
|
+
* "uniVer": "x",
|
|
46
|
+
* "unixVer": "4.0"
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
13
49
|
*/
|
|
14
50
|
constructor (x?: number, y?: number, width?: number, height?: number);
|
|
15
51
|
|
|
16
52
|
/**
|
|
17
53
|
* 矩形的宽
|
|
54
|
+
* @uniPlatform {
|
|
55
|
+
* "app": {
|
|
56
|
+
* "android": {
|
|
57
|
+
* "osVer": "5.0",
|
|
58
|
+
* "uniVer": "x",
|
|
59
|
+
* "unixVer": "3.9"
|
|
60
|
+
* },
|
|
61
|
+
* "ios": {
|
|
62
|
+
* "osVer": "12.0",
|
|
63
|
+
* "uniVer": "x",
|
|
64
|
+
* "unixVer": "4.11"
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* "web": {
|
|
68
|
+
* "uniVer": "x",
|
|
69
|
+
* "unixVer": "4.0"
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
18
72
|
*/
|
|
19
73
|
width: number
|
|
20
74
|
|
|
21
75
|
/**
|
|
22
76
|
* 矩形的高
|
|
77
|
+
* @uniPlatform {
|
|
78
|
+
* "app": {
|
|
79
|
+
* "android": {
|
|
80
|
+
* "osVer": "5.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "3.9"
|
|
83
|
+
* },
|
|
84
|
+
* "ios": {
|
|
85
|
+
* "osVer": "12.0",
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "4.11"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* "web": {
|
|
91
|
+
* "uniVer": "x",
|
|
92
|
+
* "unixVer": "4.0"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
23
95
|
*/
|
|
24
96
|
height: number
|
|
25
97
|
|
|
26
98
|
/**
|
|
27
99
|
* 矩形原点的x坐标
|
|
100
|
+
* @uniPlatform {
|
|
101
|
+
* "app": {
|
|
102
|
+
* "android": {
|
|
103
|
+
* "osVer": "5.0",
|
|
104
|
+
* "uniVer": "x",
|
|
105
|
+
* "unixVer": "3.9"
|
|
106
|
+
* },
|
|
107
|
+
* "ios": {
|
|
108
|
+
* "osVer": "12.0",
|
|
109
|
+
* "uniVer": "x",
|
|
110
|
+
* "unixVer": "4.11"
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
* "web": {
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "4.0"
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
28
118
|
*/
|
|
29
119
|
x: number
|
|
30
120
|
|
|
31
121
|
/**
|
|
32
122
|
* 矩形原点的y坐标
|
|
123
|
+
* @uniPlatform {
|
|
124
|
+
* "app": {
|
|
125
|
+
* "android": {
|
|
126
|
+
* "osVer": "5.0",
|
|
127
|
+
* "uniVer": "x",
|
|
128
|
+
* "unixVer": "3.9"
|
|
129
|
+
* },
|
|
130
|
+
* "ios": {
|
|
131
|
+
* "osVer": "12.0",
|
|
132
|
+
* "uniVer": "x",
|
|
133
|
+
* "unixVer": "4.11"
|
|
134
|
+
* }
|
|
135
|
+
* }
|
|
136
|
+
* "web": {
|
|
137
|
+
* "uniVer": "x",
|
|
138
|
+
* "unixVer": "4.0"
|
|
139
|
+
* }
|
|
140
|
+
* }
|
|
33
141
|
*/
|
|
34
142
|
y: number
|
|
35
143
|
|
|
36
144
|
/**
|
|
37
145
|
* 矩形的左坐标值
|
|
146
|
+
* @uniPlatform {
|
|
147
|
+
* "app": {
|
|
148
|
+
* "android": {
|
|
149
|
+
* "osVer": "5.0",
|
|
150
|
+
* "uniVer": "x",
|
|
151
|
+
* "unixVer": "3.9"
|
|
152
|
+
* },
|
|
153
|
+
* "ios": {
|
|
154
|
+
* "osVer": "12.0",
|
|
155
|
+
* "uniVer": "x",
|
|
156
|
+
* "unixVer": "4.11"
|
|
157
|
+
* }
|
|
158
|
+
* }
|
|
159
|
+
* "web": {
|
|
160
|
+
* "uniVer": "x",
|
|
161
|
+
* "unixVer": "4.0"
|
|
162
|
+
* }
|
|
163
|
+
* }
|
|
38
164
|
*/
|
|
39
165
|
left: number
|
|
40
166
|
|
|
41
167
|
/**
|
|
42
168
|
* 矩形的右坐标值
|
|
169
|
+
* @uniPlatform {
|
|
170
|
+
* "app": {
|
|
171
|
+
* "android": {
|
|
172
|
+
* "osVer": "5.0",
|
|
173
|
+
* "uniVer": "x",
|
|
174
|
+
* "unixVer": "3.9"
|
|
175
|
+
* },
|
|
176
|
+
* "ios": {
|
|
177
|
+
* "osVer": "12.0",
|
|
178
|
+
* "uniVer": "x",
|
|
179
|
+
* "unixVer": "4.11"
|
|
180
|
+
* }
|
|
181
|
+
* }
|
|
182
|
+
* "web": {
|
|
183
|
+
* "uniVer": "x",
|
|
184
|
+
* "unixVer": "4.0"
|
|
185
|
+
* }
|
|
186
|
+
* }
|
|
43
187
|
*/
|
|
44
188
|
right: number
|
|
45
189
|
|
|
46
190
|
/**
|
|
47
191
|
* 矩形的顶坐标值
|
|
192
|
+
* @uniPlatform {
|
|
193
|
+
* "app": {
|
|
194
|
+
* "android": {
|
|
195
|
+
* "osVer": "5.0",
|
|
196
|
+
* "uniVer": "x",
|
|
197
|
+
* "unixVer": "3.9"
|
|
198
|
+
* },
|
|
199
|
+
* "ios": {
|
|
200
|
+
* "osVer": "12.0",
|
|
201
|
+
* "uniVer": "x",
|
|
202
|
+
* "unixVer": "4.11"
|
|
203
|
+
* }
|
|
204
|
+
* }
|
|
205
|
+
* "web": {
|
|
206
|
+
* "uniVer": "x",
|
|
207
|
+
* "unixVer": "4.0"
|
|
208
|
+
* }
|
|
209
|
+
* }
|
|
48
210
|
*/
|
|
49
211
|
top: number;
|
|
50
212
|
|
|
51
213
|
/**
|
|
52
214
|
* 矩形的底坐标值
|
|
215
|
+
* @uniPlatform {
|
|
216
|
+
* "app": {
|
|
217
|
+
* "android": {
|
|
218
|
+
* "osVer": "5.0",
|
|
219
|
+
* "uniVer": "x",
|
|
220
|
+
* "unixVer": "3.9"
|
|
221
|
+
* },
|
|
222
|
+
* "ios": {
|
|
223
|
+
* "osVer": "12.0",
|
|
224
|
+
* "uniVer": "x",
|
|
225
|
+
* "unixVer": "4.11"
|
|
226
|
+
* }
|
|
227
|
+
* }
|
|
228
|
+
* "web": {
|
|
229
|
+
* "uniVer": "x",
|
|
230
|
+
* "unixVer": "4.0"
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
53
233
|
*/
|
|
54
234
|
bottom: number
|
|
55
235
|
|