@kengic/vue 0.30.1-beta.77 → 0.30.1-beta.78

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.
@@ -1,5 +1,6 @@
1
1
  import { IKgEventListener } from '@kengic/core.core';
2
2
  import { Ref } from 'vue';
3
+ import { IRequestConfig } from '../../service';
3
4
  import { KgAny } from '../../type';
4
5
  import { IKgTableRow } from '../KgTable';
5
6
  /**
@@ -63,6 +64,7 @@ export declare type IKgSubmit$EventListenerParameter$onBeforeRequest = {
63
64
  * 请求参数.
64
65
  */
65
66
  params: Ref<Record<string, any>>;
67
+ requestConfig: IRequestConfig;
66
68
  /** @deprecated */
67
69
  row: IKgTableRow | null;
68
70
  /** @deprecated */
@@ -17,7 +17,7 @@ declare function kgConfigHttpClient(httpClient: IHttpClient | null): void;
17
17
  * 获取 httpClient 实例.
18
18
  */
19
19
  declare function httpClient(): IHttpClient;
20
- interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
20
+ interface IRequestConfig<P = Record<string, any>, D = Record<string, any>> extends AxiosRequestConfig<D> {
21
21
  params?: P;
22
22
  }
23
23
  interface IRequestOption {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.30.1-beta.77",
3
+ "version": "0.30.1-beta.78",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build--development": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",