@jiaozhiye/qm-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.
- package/lib/form/src/types.d.ts +7 -12
- package/lib/form/src/utils.d.ts +1 -4
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/locale/lang/en.js +2 -1
- package/lib/locale/lang/zh-cn.d.ts +1 -0
- package/lib/locale/lang/zh-cn.js +2 -1
- package/lib/pivot-grid/src/grid-layout/Context.d.ts +10 -2
- package/lib/pivot-grid/src/grid-layout/LeftPanel.d.ts +1 -0
- package/lib/pivot-grid/src/grid-layout/MainPanel.d.ts +1 -0
- package/lib/pivot-grid/src/main/Context.d.ts +1 -1
- package/lib/pivot-grid/src/utils/index.d.ts +1 -1
- package/lib/pivot-grid/style/grid-layout.less +93 -5
- package/lib/pivot-grid/style/main.less +1 -1
- package/lib/print/src/setting.d.ts +5 -4
- package/lib/search-tree/style/index.less +35 -34
- package/lib/style/index.css +75 -8
- package/lib/style/index.min.css +1 -1
- package/lib/table/style/table.less +375 -375
- package/lib/transition/src/tools.d.ts +2 -2
- package/package.json +2 -2
- package/lib/pivot-grid/src/grid-layout/GroupCard.d.ts +0 -11
package/lib/form/src/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -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;
|