@dcloudio/uni-app-x 0.7.33 → 0.7.35
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 +147 -145
- package/types/page.d.ts +7 -7
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -1024,6 +1024,153 @@ declare global {
|
|
|
1024
1024
|
*/
|
|
1025
1025
|
isEntryPage: boolean;
|
|
1026
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
|
+
}
|
|
1027
1174
|
}
|
|
1028
1175
|
|
|
1029
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>
|
|
@@ -1034,148 +1181,3 @@ declare module '@vue/runtime-core' {
|
|
|
1034
1181
|
}
|
|
1035
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>
|
|
1036
1183
|
}
|
|
1037
|
-
|
|
1038
|
-
export interface UniApp {
|
|
1039
|
-
/**
|
|
1040
|
-
* App vue 实例对象
|
|
1041
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1042
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1043
|
-
* @uniPlatform {
|
|
1044
|
-
* "app": {
|
|
1045
|
-
* "android": {
|
|
1046
|
-
* "osVer": "5.0",
|
|
1047
|
-
* "uniVer": "x",
|
|
1048
|
-
* "unixVer": "4.31"
|
|
1049
|
-
* },
|
|
1050
|
-
* "ios": {
|
|
1051
|
-
* "osVer": "x",
|
|
1052
|
-
* "uniVer": "x",
|
|
1053
|
-
* "unixVer": "4.31"
|
|
1054
|
-
* },
|
|
1055
|
-
* "harmony": {
|
|
1056
|
-
* "osVer": "x",
|
|
1057
|
-
* "uniVer": "x",
|
|
1058
|
-
* "unixVer": "x"
|
|
1059
|
-
* }
|
|
1060
|
-
* },
|
|
1061
|
-
* "mp": {
|
|
1062
|
-
* "weixin": {
|
|
1063
|
-
* "hostVer": "√",
|
|
1064
|
-
* "uniVer": "x",
|
|
1065
|
-
* "unixVer": "x"
|
|
1066
|
-
* },
|
|
1067
|
-
* },
|
|
1068
|
-
* "web": {
|
|
1069
|
-
* "uniVer": "x",
|
|
1070
|
-
* "unixVer": "4.31"
|
|
1071
|
-
* }
|
|
1072
|
-
* }
|
|
1073
|
-
*/
|
|
1074
|
-
$vm: ComponentPublicInstance,
|
|
1075
|
-
/**
|
|
1076
|
-
* App vue 实例对象
|
|
1077
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1078
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1079
|
-
* @uniPlatform {
|
|
1080
|
-
* "app": {
|
|
1081
|
-
* "android": {
|
|
1082
|
-
* "osVer": "5.0",
|
|
1083
|
-
* "uniVer": "x",
|
|
1084
|
-
* "unixVer": "4.31"
|
|
1085
|
-
* },
|
|
1086
|
-
* "ios": {
|
|
1087
|
-
* "osVer": "x",
|
|
1088
|
-
* "uniVer": "x",
|
|
1089
|
-
* "unixVer": "4.31"
|
|
1090
|
-
* },
|
|
1091
|
-
* "harmony": {
|
|
1092
|
-
* "osVer": "x",
|
|
1093
|
-
* "uniVer": "x",
|
|
1094
|
-
* "unixVer": "x"
|
|
1095
|
-
* }
|
|
1096
|
-
* },
|
|
1097
|
-
* "mp": {
|
|
1098
|
-
* "weixin": {
|
|
1099
|
-
* "hostVer": "√",
|
|
1100
|
-
* "uniVer": "x",
|
|
1101
|
-
* "unixVer": "x"
|
|
1102
|
-
* },
|
|
1103
|
-
* },
|
|
1104
|
-
* "web": {
|
|
1105
|
-
* "uniVer": "x",
|
|
1106
|
-
* "unixVer": "4.31"
|
|
1107
|
-
* }
|
|
1108
|
-
* }
|
|
1109
|
-
*/
|
|
1110
|
-
vm: ComponentPublicInstance,
|
|
1111
|
-
/**
|
|
1112
|
-
* 全局对象
|
|
1113
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1114
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
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": "4.31"
|
|
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": "4.31"
|
|
1143
|
-
* }
|
|
1144
|
-
* }
|
|
1145
|
-
*/
|
|
1146
|
-
globalData: GlobalData,
|
|
1147
|
-
/**
|
|
1148
|
-
* 获取 Android 应用 Application 上下文
|
|
1149
|
-
* @uniPlatform {
|
|
1150
|
-
* "app": {
|
|
1151
|
-
* "android": {
|
|
1152
|
-
* "osVer": "5.0",
|
|
1153
|
-
* "uniVer": "x",
|
|
1154
|
-
* "unixVer": "4.31"
|
|
1155
|
-
* },
|
|
1156
|
-
* "ios": {
|
|
1157
|
-
* "osVer": "x",
|
|
1158
|
-
* "uniVer": "x",
|
|
1159
|
-
* "unixVer": "x"
|
|
1160
|
-
* },
|
|
1161
|
-
* "harmony": {
|
|
1162
|
-
* "osVer": "x",
|
|
1163
|
-
* "uniVer": "x",
|
|
1164
|
-
* "unixVer": "x"
|
|
1165
|
-
* }
|
|
1166
|
-
* },
|
|
1167
|
-
* "mp": {
|
|
1168
|
-
* "weixin": {
|
|
1169
|
-
* "hostVer": "√",
|
|
1170
|
-
* "uniVer": "x",
|
|
1171
|
-
* "unixVer": "x"
|
|
1172
|
-
* },
|
|
1173
|
-
* },
|
|
1174
|
-
* "web": {
|
|
1175
|
-
* "uniVer": "x",
|
|
1176
|
-
* "unixVer": "x"
|
|
1177
|
-
* }
|
|
1178
|
-
* }
|
|
1179
|
-
*/
|
|
1180
|
-
getAndroidApplication(): Application
|
|
1181
|
-
}
|
package/types/page.d.ts
CHANGED
|
@@ -1798,12 +1798,12 @@ export interface UniPage {
|
|
|
1798
1798
|
* "android": {
|
|
1799
1799
|
* "osVer": "5.0",
|
|
1800
1800
|
* "uniVer": "x",
|
|
1801
|
-
* "unixVer": "4.
|
|
1801
|
+
* "unixVer": "4.13"
|
|
1802
1802
|
* },
|
|
1803
1803
|
* "ios": {
|
|
1804
1804
|
* "osVer": "x",
|
|
1805
1805
|
* "uniVer": "x",
|
|
1806
|
-
* "unixVer": "4.
|
|
1806
|
+
* "unixVer": "4.13"
|
|
1807
1807
|
* },
|
|
1808
1808
|
* "harmony": {
|
|
1809
1809
|
* "osVer": "x",
|
|
@@ -1820,7 +1820,7 @@ export interface UniPage {
|
|
|
1820
1820
|
* },
|
|
1821
1821
|
* "web": {
|
|
1822
1822
|
* "uniVer": "x",
|
|
1823
|
-
* "unixVer": "4.
|
|
1823
|
+
* "unixVer": "4.13"
|
|
1824
1824
|
* }
|
|
1825
1825
|
* }
|
|
1826
1826
|
*/
|
|
@@ -1834,12 +1834,12 @@ export interface UniPage {
|
|
|
1834
1834
|
* "android": {
|
|
1835
1835
|
* "osVer": "5.0",
|
|
1836
1836
|
* "uniVer": "x",
|
|
1837
|
-
* "unixVer": "4.
|
|
1837
|
+
* "unixVer": "4.31"
|
|
1838
1838
|
* },
|
|
1839
1839
|
* "ios": {
|
|
1840
1840
|
* "osVer": "x",
|
|
1841
1841
|
* "uniVer": "x",
|
|
1842
|
-
* "unixVer": "4.
|
|
1842
|
+
* "unixVer": "4.31",
|
|
1843
1843
|
* "unixUtsPlugin": "4.31"
|
|
1844
1844
|
* },
|
|
1845
1845
|
* "harmony": {
|
|
@@ -1857,7 +1857,7 @@ export interface UniPage {
|
|
|
1857
1857
|
* },
|
|
1858
1858
|
* "web": {
|
|
1859
1859
|
* "uniVer": "x",
|
|
1860
|
-
* "unixVer": "4.
|
|
1860
|
+
* "unixVer": "4.31"
|
|
1861
1861
|
* }
|
|
1862
1862
|
* }
|
|
1863
1863
|
*/
|
|
@@ -1972,7 +1972,7 @@ export interface UniPage {
|
|
|
1972
1972
|
* }
|
|
1973
1973
|
* }
|
|
1974
1974
|
*/
|
|
1975
|
-
getDialogPages():
|
|
1975
|
+
getDialogPages(): UniPage[]
|
|
1976
1976
|
/**
|
|
1977
1977
|
* 返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\
|
|
1978
1978
|
* 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
|