@dcloudio/uni-app-x 0.7.40 → 0.7.41
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 +151 -147
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -720,6 +720,156 @@ type EditorCreateVueAppComponentX<D extends OptionsData = OptionsData, C extends
|
|
|
720
720
|
|
|
721
721
|
type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
|
|
722
722
|
|
|
723
|
+
export interface UniApp {
|
|
724
|
+
/**
|
|
725
|
+
* App vue 实例对象
|
|
726
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
727
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
728
|
+
* @uniPlatform {
|
|
729
|
+
* "app": {
|
|
730
|
+
* "android": {
|
|
731
|
+
* "osVer": "5.0",
|
|
732
|
+
* "uniVer": "x",
|
|
733
|
+
* "unixVer": "4.31"
|
|
734
|
+
* },
|
|
735
|
+
* "ios": {
|
|
736
|
+
* "osVer": "x",
|
|
737
|
+
* "uniVer": "x",
|
|
738
|
+
* "unixVer": "4.31"
|
|
739
|
+
* },
|
|
740
|
+
* "harmony": {
|
|
741
|
+
* "osVer": "x",
|
|
742
|
+
* "uniVer": "x",
|
|
743
|
+
* "unixVer": "x"
|
|
744
|
+
* }
|
|
745
|
+
* },
|
|
746
|
+
* "mp": {
|
|
747
|
+
* "weixin": {
|
|
748
|
+
* "hostVer": "√",
|
|
749
|
+
* "uniVer": "x",
|
|
750
|
+
* "unixVer": "x"
|
|
751
|
+
* },
|
|
752
|
+
* },
|
|
753
|
+
* "web": {
|
|
754
|
+
* "uniVer": "x",
|
|
755
|
+
* "unixVer": "4.31"
|
|
756
|
+
* }
|
|
757
|
+
* }
|
|
758
|
+
*/
|
|
759
|
+
vm: ComponentPublicInstance,
|
|
760
|
+
/**
|
|
761
|
+
* App vue 实例对象
|
|
762
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
763
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
764
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
765
|
+
* @uniPlatform {
|
|
766
|
+
* "app": {
|
|
767
|
+
* "android": {
|
|
768
|
+
* "osVer": "5.0",
|
|
769
|
+
* "uniVer": "x",
|
|
770
|
+
* "unixVer": "4.31"
|
|
771
|
+
* },
|
|
772
|
+
* "ios": {
|
|
773
|
+
* "osVer": "x",
|
|
774
|
+
* "uniVer": "x",
|
|
775
|
+
* "unixVer": "4.31"
|
|
776
|
+
* },
|
|
777
|
+
* "harmony": {
|
|
778
|
+
* "osVer": "x",
|
|
779
|
+
* "uniVer": "x",
|
|
780
|
+
* "unixVer": "x"
|
|
781
|
+
* }
|
|
782
|
+
* },
|
|
783
|
+
* "mp": {
|
|
784
|
+
* "weixin": {
|
|
785
|
+
* "hostVer": "√",
|
|
786
|
+
* "uniVer": "x",
|
|
787
|
+
* "unixVer": "x"
|
|
788
|
+
* },
|
|
789
|
+
* },
|
|
790
|
+
* "web": {
|
|
791
|
+
* "uniVer": "x",
|
|
792
|
+
* "unixVer": "4.31"
|
|
793
|
+
* }
|
|
794
|
+
* }
|
|
795
|
+
*/
|
|
796
|
+
$vm: ComponentPublicInstance,
|
|
797
|
+
/**
|
|
798
|
+
* 全局对象
|
|
799
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
800
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
801
|
+
* @uniPlatform {
|
|
802
|
+
* "app": {
|
|
803
|
+
* "android": {
|
|
804
|
+
* "osVer": "5.0",
|
|
805
|
+
* "uniVer": "x",
|
|
806
|
+
* "unixVer": "4.31"
|
|
807
|
+
* },
|
|
808
|
+
* "ios": {
|
|
809
|
+
* "osVer": "x",
|
|
810
|
+
* "uniVer": "x",
|
|
811
|
+
* "unixVer": "4.31"
|
|
812
|
+
* },
|
|
813
|
+
* "harmony": {
|
|
814
|
+
* "osVer": "x",
|
|
815
|
+
* "uniVer": "x",
|
|
816
|
+
* "unixVer": "x"
|
|
817
|
+
* }
|
|
818
|
+
* },
|
|
819
|
+
* "mp": {
|
|
820
|
+
* "weixin": {
|
|
821
|
+
* "hostVer": "√",
|
|
822
|
+
* "uniVer": "x",
|
|
823
|
+
* "unixVer": "x"
|
|
824
|
+
* },
|
|
825
|
+
* },
|
|
826
|
+
* "web": {
|
|
827
|
+
* "uniVer": "x",
|
|
828
|
+
* "unixVer": "4.31"
|
|
829
|
+
* }
|
|
830
|
+
* }
|
|
831
|
+
*/
|
|
832
|
+
globalData: GlobalData,
|
|
833
|
+
/**
|
|
834
|
+
* 获取 Android 应用 Application 上下文
|
|
835
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
836
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
837
|
+
* @uniPlatform {
|
|
838
|
+
* "app": {
|
|
839
|
+
* "android": {
|
|
840
|
+
* "osVer": "5.0",
|
|
841
|
+
* "uniVer": "x",
|
|
842
|
+
* "unixVer": "4.31"
|
|
843
|
+
* },
|
|
844
|
+
* "ios": {
|
|
845
|
+
* "osVer": "x",
|
|
846
|
+
* "uniVer": "x",
|
|
847
|
+
* "unixVer": "x"
|
|
848
|
+
* },
|
|
849
|
+
* "harmony": {
|
|
850
|
+
* "osVer": "x",
|
|
851
|
+
* "uniVer": "x",
|
|
852
|
+
* "unixVer": "x"
|
|
853
|
+
* }
|
|
854
|
+
* },
|
|
855
|
+
* "mp": {
|
|
856
|
+
* "weixin": {
|
|
857
|
+
* "hostVer": "√",
|
|
858
|
+
* "uniVer": "x",
|
|
859
|
+
* "unixVer": "x"
|
|
860
|
+
* },
|
|
861
|
+
* },
|
|
862
|
+
* "web": {
|
|
863
|
+
* "uniVer": "x",
|
|
864
|
+
* "unixVer": "x"
|
|
865
|
+
* }
|
|
866
|
+
* }
|
|
867
|
+
*/
|
|
868
|
+
getAndroidApplication(): Application
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
type UniAppOrigin = UniApp
|
|
872
|
+
|
|
723
873
|
declare global {
|
|
724
874
|
export interface AppCreateVueAppComponentDefault {}
|
|
725
875
|
/**
|
|
@@ -1027,153 +1177,7 @@ declare global {
|
|
|
1027
1177
|
isEntryPage: boolean;
|
|
1028
1178
|
}
|
|
1029
1179
|
|
|
1030
|
-
|
|
1031
|
-
/**
|
|
1032
|
-
* App vue 实例对象
|
|
1033
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1034
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1035
|
-
* @uniPlatform {
|
|
1036
|
-
* "app": {
|
|
1037
|
-
* "android": {
|
|
1038
|
-
* "osVer": "5.0",
|
|
1039
|
-
* "uniVer": "x",
|
|
1040
|
-
* "unixVer": "4.31"
|
|
1041
|
-
* },
|
|
1042
|
-
* "ios": {
|
|
1043
|
-
* "osVer": "x",
|
|
1044
|
-
* "uniVer": "x",
|
|
1045
|
-
* "unixVer": "4.31"
|
|
1046
|
-
* },
|
|
1047
|
-
* "harmony": {
|
|
1048
|
-
* "osVer": "x",
|
|
1049
|
-
* "uniVer": "x",
|
|
1050
|
-
* "unixVer": "x"
|
|
1051
|
-
* }
|
|
1052
|
-
* },
|
|
1053
|
-
* "mp": {
|
|
1054
|
-
* "weixin": {
|
|
1055
|
-
* "hostVer": "√",
|
|
1056
|
-
* "uniVer": "x",
|
|
1057
|
-
* "unixVer": "x"
|
|
1058
|
-
* },
|
|
1059
|
-
* },
|
|
1060
|
-
* "web": {
|
|
1061
|
-
* "uniVer": "x",
|
|
1062
|
-
* "unixVer": "4.31"
|
|
1063
|
-
* }
|
|
1064
|
-
* }
|
|
1065
|
-
*/
|
|
1066
|
-
vm: ComponentPublicInstance,
|
|
1067
|
-
/**
|
|
1068
|
-
* App vue 实例对象
|
|
1069
|
-
* @deprecated 已废弃,仅为了向下兼容保留
|
|
1070
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1071
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
|
|
1072
|
-
* @uniPlatform {
|
|
1073
|
-
* "app": {
|
|
1074
|
-
* "android": {
|
|
1075
|
-
* "osVer": "5.0",
|
|
1076
|
-
* "uniVer": "x",
|
|
1077
|
-
* "unixVer": "4.31"
|
|
1078
|
-
* },
|
|
1079
|
-
* "ios": {
|
|
1080
|
-
* "osVer": "x",
|
|
1081
|
-
* "uniVer": "x",
|
|
1082
|
-
* "unixVer": "4.31"
|
|
1083
|
-
* },
|
|
1084
|
-
* "harmony": {
|
|
1085
|
-
* "osVer": "x",
|
|
1086
|
-
* "uniVer": "x",
|
|
1087
|
-
* "unixVer": "x"
|
|
1088
|
-
* }
|
|
1089
|
-
* },
|
|
1090
|
-
* "mp": {
|
|
1091
|
-
* "weixin": {
|
|
1092
|
-
* "hostVer": "√",
|
|
1093
|
-
* "uniVer": "x",
|
|
1094
|
-
* "unixVer": "x"
|
|
1095
|
-
* },
|
|
1096
|
-
* },
|
|
1097
|
-
* "web": {
|
|
1098
|
-
* "uniVer": "x",
|
|
1099
|
-
* "unixVer": "4.31"
|
|
1100
|
-
* }
|
|
1101
|
-
* }
|
|
1102
|
-
*/
|
|
1103
|
-
$vm: ComponentPublicInstance,
|
|
1104
|
-
/**
|
|
1105
|
-
* 全局对象
|
|
1106
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
1107
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
1108
|
-
* @uniPlatform {
|
|
1109
|
-
* "app": {
|
|
1110
|
-
* "android": {
|
|
1111
|
-
* "osVer": "5.0",
|
|
1112
|
-
* "uniVer": "x",
|
|
1113
|
-
* "unixVer": "4.31"
|
|
1114
|
-
* },
|
|
1115
|
-
* "ios": {
|
|
1116
|
-
* "osVer": "x",
|
|
1117
|
-
* "uniVer": "x",
|
|
1118
|
-
* "unixVer": "4.31"
|
|
1119
|
-
* },
|
|
1120
|
-
* "harmony": {
|
|
1121
|
-
* "osVer": "x",
|
|
1122
|
-
* "uniVer": "x",
|
|
1123
|
-
* "unixVer": "x"
|
|
1124
|
-
* }
|
|
1125
|
-
* },
|
|
1126
|
-
* "mp": {
|
|
1127
|
-
* "weixin": {
|
|
1128
|
-
* "hostVer": "√",
|
|
1129
|
-
* "uniVer": "x",
|
|
1130
|
-
* "unixVer": "x"
|
|
1131
|
-
* },
|
|
1132
|
-
* },
|
|
1133
|
-
* "web": {
|
|
1134
|
-
* "uniVer": "x",
|
|
1135
|
-
* "unixVer": "4.31"
|
|
1136
|
-
* }
|
|
1137
|
-
* }
|
|
1138
|
-
*/
|
|
1139
|
-
globalData: GlobalData,
|
|
1140
|
-
/**
|
|
1141
|
-
* 获取 Android 应用 Application 上下文
|
|
1142
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
1143
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
|
|
1144
|
-
* @uniPlatform {
|
|
1145
|
-
* "app": {
|
|
1146
|
-
* "android": {
|
|
1147
|
-
* "osVer": "5.0",
|
|
1148
|
-
* "uniVer": "x",
|
|
1149
|
-
* "unixVer": "4.31"
|
|
1150
|
-
* },
|
|
1151
|
-
* "ios": {
|
|
1152
|
-
* "osVer": "x",
|
|
1153
|
-
* "uniVer": "x",
|
|
1154
|
-
* "unixVer": "x"
|
|
1155
|
-
* },
|
|
1156
|
-
* "harmony": {
|
|
1157
|
-
* "osVer": "x",
|
|
1158
|
-
* "uniVer": "x",
|
|
1159
|
-
* "unixVer": "x"
|
|
1160
|
-
* }
|
|
1161
|
-
* },
|
|
1162
|
-
* "mp": {
|
|
1163
|
-
* "weixin": {
|
|
1164
|
-
* "hostVer": "√",
|
|
1165
|
-
* "uniVer": "x",
|
|
1166
|
-
* "unixVer": "x"
|
|
1167
|
-
* },
|
|
1168
|
-
* },
|
|
1169
|
-
* "web": {
|
|
1170
|
-
* "uniVer": "x",
|
|
1171
|
-
* "unixVer": "x"
|
|
1172
|
-
* }
|
|
1173
|
-
* }
|
|
1174
|
-
*/
|
|
1175
|
-
getAndroidApplication(): Application
|
|
1176
|
-
}
|
|
1180
|
+
type UniApp = UniAppOrigin
|
|
1177
1181
|
}
|
|
1178
1182
|
|
|
1179
1183
|
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>
|