@jiaozhiye/qm-design-react 1.11.18 → 1.11.20

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;
@@ -215,12 +219,10 @@ export type IFormItem = {
215
219
  rowKey?: ((row: IRecord, index: number) => IRowKey) | IRowKey;
216
220
  webPagination?: boolean;
217
221
  paginationConfig?: Pick<IPaginationConfig, 'pageSize' | 'pageSizeOptions'>;
222
+ topBarExtra?: React.ReactNode;
218
223
  };
219
224
  tree?: {
220
- fetch?: IFetch & {
221
- valueKey?: string;
222
- textKey?: string;
223
- };
225
+ fetch?: IFetch & ITextValueKey;
224
226
  tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
225
227
  };
226
228
  request?: IRequest;
@@ -242,14 +244,8 @@ export type IFormItem = {
242
244
  beforeOpen?: (formData: IFormData) => void | Promise<void> | boolean;
243
245
  closed?: (rowData: Record<string, any>) => void;
244
246
  };
245
- request?: IRequest & {
246
- valueKey?: string;
247
- textKey?: string;
248
- };
249
- asyncLoad?: IRequest & {
250
- valueKey?: string;
251
- textKey?: string;
252
- };
247
+ request?: IRequest & ITextValueKey;
248
+ asyncLoad?: IRequest & ITextValueKey;
253
249
  upload?: {
254
250
  action?: string;
255
251
  headers?: IFetchHeader;
@@ -32,12 +32,10 @@ export declare const createShConfig: (data: any, fieldName: string, createFetch:
32
32
  rowKey?: string | number | ((row: IRecord, index: number) => string | number) | undefined;
33
33
  webPagination?: boolean | undefined;
34
34
  paginationConfig?: Pick<import("../../table/src/table/types").IPaginationConfig, "pageSize" | "pageSizeOptions"> | undefined;
35
+ topBarExtra?: import("react").ReactNode;
35
36
  } | undefined;
36
37
  tree?: {
37
- fetch?: (import("../../table/src/table/types").IFetch & {
38
- valueKey?: string | undefined;
39
- textKey?: string | undefined;
40
- }) | undefined;
38
+ fetch?: (import("../../table/src/table/types").IFetch & import("./types").ITextValueKey) | undefined;
41
39
  tableParamsMap?: Record<string, string> | (() => Record<string, string>) | undefined;
42
40
  } | undefined;
43
41
  request?: import("./types").IRequest | undefined;