@jiaozhiye/qm-design-react 1.2.0-beta.10 → 1.2.0-beta.13
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 +11 -11
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style/index.css +8 -0
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/context/index.d.ts +1 -0
- package/lib/table/src/hooks/useTableRef.d.ts +3 -0
- package/lib/table/style/table.less +7 -0
- package/package.json +1 -1
package/lib/form/src/types.d.ts
CHANGED
|
@@ -63,6 +63,12 @@ export declare type IExtraData = Record<string, string>;
|
|
|
63
63
|
export declare type IViewData = Record<string, string>;
|
|
64
64
|
export declare type IExpandData = Record<string, boolean>;
|
|
65
65
|
export declare type IFetchFn = (params?: Record<string, unknown>) => Promise<AjaxResponse>;
|
|
66
|
+
export declare type IRequest = {
|
|
67
|
+
fetchApi?: IFetchFn;
|
|
68
|
+
params?: IFetchParams;
|
|
69
|
+
formatter?: (params: IFetchParams) => IFetchParams;
|
|
70
|
+
dataKey?: string;
|
|
71
|
+
};
|
|
66
72
|
export declare type IAuthConfig = {
|
|
67
73
|
fetch: {
|
|
68
74
|
api: IFetchFn;
|
|
@@ -135,6 +141,8 @@ export declare type IFormItem = {
|
|
|
135
141
|
hideHeader?: boolean;
|
|
136
142
|
onlySelect?: boolean;
|
|
137
143
|
columns?: IColumn[];
|
|
144
|
+
fieldsDefine?: IFieldsDefine;
|
|
145
|
+
echoRequest?: IRequest;
|
|
138
146
|
fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
|
|
139
147
|
extraAliasMap?: (() => Record<string, string>) | Record<string, string>;
|
|
140
148
|
multiple?: boolean;
|
|
@@ -162,12 +170,8 @@ export declare type IFormItem = {
|
|
|
162
170
|
fetch?: IFetch;
|
|
163
171
|
tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
|
|
164
172
|
};
|
|
165
|
-
request?:
|
|
166
|
-
|
|
167
|
-
params?: IFetchParams;
|
|
168
|
-
formatter?: (params: IFetchParams) => IFetchParams;
|
|
169
|
-
dataKey?: string;
|
|
170
|
-
};
|
|
173
|
+
request?: IRequest;
|
|
174
|
+
echoRequest?: IRequest;
|
|
171
175
|
width?: number | string;
|
|
172
176
|
initialValue?: IFormData;
|
|
173
177
|
onlySelect?: boolean;
|
|
@@ -178,11 +182,7 @@ export declare type IFormItem = {
|
|
|
178
182
|
beforeOpen?: (formData: IFormData) => void | Promise<void> | boolean;
|
|
179
183
|
closed?: (rowData: Record<string, any>) => void;
|
|
180
184
|
};
|
|
181
|
-
request?: {
|
|
182
|
-
fetchApi?: IFetchFn;
|
|
183
|
-
params?: IFetchParams;
|
|
184
|
-
formatter?: (params: IFetchParams) => IFetchParams;
|
|
185
|
-
dataKey?: string;
|
|
185
|
+
request?: IRequest & {
|
|
186
186
|
valueKey?: string;
|
|
187
187
|
textKey?: string;
|
|
188
188
|
};
|