@moluoxixi/ajax-package 0.0.32 → 0.0.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/README.md +1016 -0
- package/es/BaseHttpClient.d.ts +111 -0
- package/es/SystemErrorDialog.d.ts +4 -0
- package/es/_types/api.d.ts +115 -2
- package/es/_types/emits.d.ts +7 -0
- package/es/_types/props.d.ts +18 -2
- package/es/_utils/messageWrapper.d.ts +4 -0
- package/es/_utils/notificationWrapper.d.ts +4 -0
- package/es/_utils/systemErrorInfo.d.ts +21 -0
- package/es/class.d.ts +179 -6
- package/es/index.mjs +5154 -63
- package/es/netseriver.d.ts +14 -0
- package/package.json +2 -2
package/es/netseriver.d.ts
CHANGED
|
@@ -5,8 +5,22 @@ declare global {
|
|
|
5
5
|
$http?: vueHttpServiceType;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* 创建 HTTP 服务实例
|
|
10
|
+
* @param options - API 配置对象
|
|
11
|
+
* @returns BaseApi 实例
|
|
12
|
+
*/
|
|
8
13
|
declare function createHttpService(options?: BaseApiConfig): BaseApi;
|
|
14
|
+
/**
|
|
15
|
+
* Vue Axios 插件,用于在 Vue 应用中全局注册 HTTP 服务
|
|
16
|
+
* 提供 this.$http、inject('$http') 和 window.$http 三种使用方式
|
|
17
|
+
*/
|
|
9
18
|
declare const VueAxiosPlugin: vueAxiosPluginType;
|
|
19
|
+
/**
|
|
20
|
+
* 获取 HTTP 服务实例,与 createHttpService 功能相同
|
|
21
|
+
* @param options - API 配置对象
|
|
22
|
+
* @returns BaseApi 实例
|
|
23
|
+
*/
|
|
10
24
|
declare function getHttpService(options?: BaseApiConfig): BaseApi;
|
|
11
25
|
export default VueAxiosPlugin;
|
|
12
26
|
export { createHttpService, getHttpService };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moluoxixi/ajax-package",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"description": "AjaxPackage 组件",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.scss"
|
|
8
8
|
],
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"vue": "3.5.
|
|
10
|
+
"vue": "3.5.18"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {},
|
|
13
13
|
"publishConfig": {
|