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 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
@@ -147,6 +147,7 @@ export {
147
147
  U as defineService,
148
148
  E as getAppConfig,
149
149
  a as getAppInfo,
150
+ r as notify,
150
151
  P as request,
151
152
  S as ue,
152
153
  c as useAppConfig,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "zf-dbs",
3
3
  "type": "module",
4
4
  "description": "",
5
- "version": "0.1.17",
5
+ "version": "0.1.19",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",