dcp-design-react 1.11.18 → 1.11.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.
@@ -72,6 +72,10 @@ export type IViewData = Record<string, string>;
72
72
  export type IExpandData = Record<string, boolean>;
73
73
  export type IFetchFn = (params?: Record<string, unknown>) => Promise<AjaxResponse>;
74
74
  export type IFetchFnMaker = (url: string, type?: 'post' | 'get') => IFetchFn;
75
+ export type ITextValueKey = {
76
+ valueKey?: string;
77
+ textKey?: string;
78
+ };
75
79
  export type IRequest = {
76
80
  fetchApi?: IFetchFn;
77
81
  params?: IFetchParams;
@@ -217,10 +221,7 @@ export type IFormItem = {
217
221
  paginationConfig?: Pick<IPaginationConfig, 'pageSize' | 'pageSizeOptions'>;
218
222
  };
219
223
  tree?: {
220
- fetch?: IFetch & {
221
- valueKey?: string;
222
- textKey?: string;
223
- };
224
+ fetch?: IFetch & ITextValueKey;
224
225
  tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
225
226
  };
226
227
  request?: IRequest;
@@ -242,14 +243,8 @@ export type IFormItem = {
242
243
  beforeOpen?: (formData: IFormData) => void | Promise<void> | boolean;
243
244
  closed?: (rowData: Record<string, any>) => void;
244
245
  };
245
- request?: IRequest & {
246
- valueKey?: string;
247
- textKey?: string;
248
- };
249
- asyncLoad?: IRequest & {
250
- valueKey?: string;
251
- textKey?: string;
252
- };
246
+ request?: IRequest & ITextValueKey;
247
+ asyncLoad?: IRequest & ITextValueKey;
253
248
  upload?: {
254
249
  action?: string;
255
250
  headers?: IFetchHeader;
@@ -34,10 +34,7 @@ export declare const createShConfig: (data: any, fieldName: string, createFetch:
34
34
  paginationConfig?: Pick<import("../../table/src/table/types").IPaginationConfig, "pageSize" | "pageSizeOptions"> | undefined;
35
35
  } | undefined;
36
36
  tree?: {
37
- fetch?: (import("../../table/src/table/types").IFetch & {
38
- valueKey?: string | undefined;
39
- textKey?: string | undefined;
40
- }) | undefined;
37
+ fetch?: (import("../../table/src/table/types").IFetch & import("./types").ITextValueKey) | undefined;
41
38
  tableParamsMap?: Record<string, string> | (() => Record<string, string>) | undefined;
42
39
  } | undefined;
43
40
  request?: import("./types").IRequest | undefined;