zf-dbs 0.1.17 → 0.1.19
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/index.d.ts +11 -26
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { AxiosRequestConfig } from 'axios';
|
|
3
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
3
|
import { ComputedRef as ComputedRef_2 } from 'vue';
|
|
5
4
|
import { DefineComponent } from 'vue';
|
|
6
5
|
import { defineRequest } from 'zf-utilz';
|
|
7
6
|
import { DefineRequestOptions } from 'zf-utilz';
|
|
8
7
|
import { EventListener as EventListener_2 } from 'zf-utilz';
|
|
8
|
+
import { NotificationHandle } from 'element-plus';
|
|
9
|
+
import { NotificationOptions as NotificationOptions_2 } from 'element-plus';
|
|
10
|
+
import { NotificationOptionsTyped } from 'element-plus';
|
|
9
11
|
import { PropType as PropType_2 } from 'vue';
|
|
10
12
|
import { PublicProps } from 'vue';
|
|
11
13
|
import { Ref as Ref_2 } from 'vue';
|
|
12
|
-
import { RequestError } from 'zf-utilz';
|
|
13
14
|
import { RequestInstance } from 'zf-utilz';
|
|
14
15
|
import { RequestResult } from 'zf-utilz';
|
|
15
16
|
import { ShallowRef } from 'vue';
|
|
@@ -125,33 +126,17 @@ export declare const defineService: DefineService;
|
|
|
125
126
|
/**
|
|
126
127
|
* 使用配置
|
|
127
128
|
*/
|
|
128
|
-
export declare function getAppConfig():
|
|
129
|
-
appTitle: string;
|
|
130
|
-
appHeight: number;
|
|
131
|
-
appWidth: number;
|
|
132
|
-
appWidths: number[];
|
|
133
|
-
useScale: boolean;
|
|
134
|
-
useStretch: boolean;
|
|
135
|
-
useUE: boolean;
|
|
136
|
-
sign?: string | undefined;
|
|
137
|
-
pollingInterval: number;
|
|
138
|
-
request: {
|
|
139
|
-
baseURL: string;
|
|
140
|
-
formatCodeKey?: string | undefined;
|
|
141
|
-
formatMessageKey?: string | undefined;
|
|
142
|
-
formatDataKey?: string | undefined;
|
|
143
|
-
checkSuccessCode?: string | number | (string | number)[] | ((code: string | number) => boolean) | undefined;
|
|
144
|
-
errorAuthCode?: string | number | (string | number)[] | undefined;
|
|
145
|
-
errorAuthHandle?: ((error: RequestError) => void) | undefined;
|
|
146
|
-
errorMessageTranslation?: Record<string, string> | undefined;
|
|
147
|
-
errorHandle?: ((code: string | number | undefined, message: string, error: RequestError) => void) | undefined;
|
|
148
|
-
handleToken?: ((config: AxiosRequestConfig<any>, storageToken: any) => void) | undefined;
|
|
149
|
-
showErrorMessage?: boolean | undefined;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
129
|
+
export declare function getAppConfig(): AppConfig;
|
|
152
130
|
|
|
153
131
|
export declare function getAppInfo(): AppInfo;
|
|
154
132
|
|
|
133
|
+
export declare const notify: ((options: Partial<NotificationOptions_2>) => NotificationHandle) & {
|
|
134
|
+
success(options: Partial<NotificationOptionsTyped>): NotificationHandle;
|
|
135
|
+
info(options: Partial<NotificationOptionsTyped>): NotificationHandle;
|
|
136
|
+
warning(options: Partial<NotificationOptionsTyped>): NotificationHandle;
|
|
137
|
+
error(options: Partial<NotificationOptionsTyped>): NotificationHandle;
|
|
138
|
+
};
|
|
139
|
+
|
|
155
140
|
declare class Polling<T = any> {
|
|
156
141
|
private _value?;
|
|
157
142
|
get value(): T | undefined;
|
package/dist/index.mjs
CHANGED