zf-dbs 0.1.20 → 0.1.22
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/dist/chunks/{BpV-I7S3.mjs → I5OO2p9h.mjs} +1069 -1066
- package/dist/components/zf-app.mjs +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { PropType as PropType_2 } from 'vue';
|
|
|
12
12
|
import { PublicProps } from 'vue';
|
|
13
13
|
import { Ref as Ref_2 } from 'vue';
|
|
14
14
|
import { RequestInstance } from 'zf-utilz';
|
|
15
|
-
import { RequestResult } from 'zf-utilz';
|
|
16
15
|
import { ShallowRef } from 'vue';
|
|
17
16
|
import { UnwrapNestedRefs } from 'vue';
|
|
18
17
|
|
|
@@ -119,10 +118,14 @@ declare type DefineAppConfigOptions = Partial<AppConfig>;
|
|
|
119
118
|
|
|
120
119
|
export { defineRequest }
|
|
121
120
|
|
|
122
|
-
declare type DefineService = <Params =
|
|
121
|
+
declare type DefineService = <Params = EmptyParamsType, Result = EmptyResultType>(handle: ServiceHandle<Params, Result>) => ServiceHandle<Params, Result>;
|
|
123
122
|
|
|
124
123
|
export declare const defineService: DefineService;
|
|
125
124
|
|
|
125
|
+
declare type EmptyParamsType = undefined;
|
|
126
|
+
|
|
127
|
+
declare type EmptyResultType = any;
|
|
128
|
+
|
|
126
129
|
/**
|
|
127
130
|
* 使用配置
|
|
128
131
|
*/
|
|
@@ -154,11 +157,11 @@ declare class Polling<T = any> {
|
|
|
154
157
|
|
|
155
158
|
export declare const request: RequestInstance;
|
|
156
159
|
|
|
157
|
-
declare type
|
|
160
|
+
declare type ServiceHandle<Params, Result> = EmptyParamsType extends Params ? ServiceHandleNoParams<Result> : ServiceHandleHasParams<Params, Result>;
|
|
158
161
|
|
|
159
|
-
declare type
|
|
162
|
+
declare type ServiceHandleHasParams<Params, Result> = (params: Params, config?: Record<string, any>) => Promise<Result>;
|
|
160
163
|
|
|
161
|
-
declare type
|
|
164
|
+
declare type ServiceHandleNoParams<Result> = (params?: any, config?: Record<string, any>) => Promise<Result>;
|
|
162
165
|
|
|
163
166
|
export declare class Ue extends EventListener_2 {
|
|
164
167
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as c, a as i, g as a,
|
|
2
|
-
import { z as H, d as $,
|
|
1
|
+
import { u as c, a as i, g as a, m as p, t as f, _ as g } from "./chunks/I5OO2p9h.mjs";
|
|
2
|
+
import { z as H, d as $, b as J } from "./chunks/I5OO2p9h.mjs";
|
|
3
3
|
import { _ as d } from "./chunks/CRrp0zFe.mjs";
|
|
4
4
|
import { _ as h } from "./chunks/BHHE86vT.mjs";
|
|
5
5
|
import { z as R } from "./chunks/BHHE86vT.mjs";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "zf-dbs",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.22",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"qs": "^6.12.1",
|
|
38
38
|
"vue": "^3.4.23",
|
|
39
39
|
"vue-router": "^4.3.2",
|
|
40
|
-
"zf-utilz": "^0.1.
|
|
40
|
+
"zf-utilz": "^0.1.26"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.12.7",
|