@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.
- package/lib/form/src/types.d.ts +8 -12
- package/lib/form/src/utils.d.ts +2 -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-helper/src/search-helper.d.ts +1 -0
- 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/src/area-select/index.d.ts +4 -1
- package/lib/table/style/table.less +375 -375
- package/lib/transition/src/tools.d.ts +2 -2
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +1 -0
- package/package.json +140 -140
- 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;
|
|
@@ -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
|
-
|
|
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;
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -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;
|