@jiaozhiye/qm-design-react 1.3.0-beta.42 → 1.3.0-beta.44
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/form.d.ts +2 -0
- package/lib/form/src/types.d.ts +2 -0
- package/lib/form/src/utils.d.ts +5 -2
- package/lib/form/style/index.less +5 -2
- package/lib/index.esm.js +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/style/index.css +9 -0
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +2 -1
- package/lib/table/style/tollbox.less +11 -0
- package/package.json +4 -4
package/lib/form/src/form.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
37
37
|
authCode: import("prop-types").Requireable<string>;
|
|
38
38
|
defaultRows: import("prop-types").Requireable<number>;
|
|
39
39
|
searchButtonCols: import("prop-types").Requireable<number>;
|
|
40
|
+
scrollToFirstError: import("prop-types").Requireable<boolean>;
|
|
40
41
|
authConfig: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
41
42
|
fetch: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
42
43
|
api: import("prop-types").Validator<(...args: any[]) => any>;
|
|
@@ -178,6 +179,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
178
179
|
}) => void;
|
|
179
180
|
set_fields_other(values: IFormData): void;
|
|
180
181
|
get_fields_other(fields?: string[]): IFormData;
|
|
182
|
+
scrollToField: (fieldName?: string) => void;
|
|
181
183
|
SET_FIELDS_VALUE(values: IFormData): void;
|
|
182
184
|
GET_FIELDS_VALUE(fields?: string[]): IFormData;
|
|
183
185
|
GET_FORM_DATA(): Promise<[any, any]>;
|
package/lib/form/src/types.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export declare type IFormProps = {
|
|
|
254
254
|
authCode?: string;
|
|
255
255
|
defaultRows?: number;
|
|
256
256
|
searchButtonCols?: number;
|
|
257
|
+
scrollToFirstError?: boolean;
|
|
257
258
|
authConfig?: IAuthConfig;
|
|
258
259
|
isAutoFocus?: boolean;
|
|
259
260
|
isCollapse?: boolean;
|
|
@@ -287,6 +288,7 @@ export declare const propTypes: {
|
|
|
287
288
|
authCode: PropTypes.Requireable<string>;
|
|
288
289
|
defaultRows: PropTypes.Requireable<number>;
|
|
289
290
|
searchButtonCols: PropTypes.Requireable<number>;
|
|
291
|
+
scrollToFirstError: PropTypes.Requireable<boolean>;
|
|
290
292
|
authConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
291
293
|
fetch: PropTypes.Requireable<PropTypes.InferProps<{
|
|
292
294
|
api: PropTypes.Validator<(...args: any[]) => any>;
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import dayjs, { Dayjs } from 'dayjs';
|
|
2
2
|
import type { IDict } from '../../_utils/types';
|
|
3
|
-
import type { IFormItem, IFetchFnMaker } from './types';
|
|
3
|
+
import type { IFormItem, IFetchFnMaker, IRecord } from './types';
|
|
4
4
|
export declare const getDate: (dateString: string | undefined, format: string) => dayjs.Dayjs | null;
|
|
5
5
|
export declare const formatDate: (date: Dayjs | null, format: string) => string;
|
|
6
6
|
export declare const isEmptyValue: (value: unknown) => boolean;
|
|
7
|
+
export declare const getSplitValue: (data: IRecord, path: string) => any;
|
|
8
|
+
export declare const setEchoRecord: (row: IRecord, alias: any, echoAlias: any) => void;
|
|
9
|
+
export declare const setEchoExtras: (row: IRecord, extras: any, echoExtras: any) => void;
|
|
7
10
|
export declare const deepMapList: (list: any[], valueKey: string, textKey: string) => IDict[];
|
|
8
11
|
export declare const deepFind: (arr: any[], mark: string) => any;
|
|
9
12
|
export declare const deepFindValues: <T>(arr: T[], str: string, depth?: number) => T[];
|
|
@@ -20,7 +23,7 @@ export declare const createShConfig: (data: any, fieldName: string, createFetch:
|
|
|
20
23
|
table?: {
|
|
21
24
|
fetch?: import("../../table/src/table/types").IFetch | undefined;
|
|
22
25
|
columns?: import("../..").QmTableColumn[] | undefined;
|
|
23
|
-
rowKey?: string | number | ((row:
|
|
26
|
+
rowKey?: string | number | ((row: IRecord, index: number) => string | number) | undefined;
|
|
24
27
|
webPagination?: boolean | undefined;
|
|
25
28
|
} | undefined;
|
|
26
29
|
tree?: {
|
|
@@ -42,8 +42,11 @@
|
|
|
42
42
|
line-height: 1;
|
|
43
43
|
}
|
|
44
44
|
// search
|
|
45
|
-
.ant-input-search
|
|
46
|
-
|
|
45
|
+
.ant-input-search {
|
|
46
|
+
width: calc(100% + 1px);
|
|
47
|
+
& > .ant-input-group > .ant-input-group-addon {
|
|
48
|
+
line-height: 1;
|
|
49
|
+
}
|
|
47
50
|
}
|
|
48
51
|
// textarea
|
|
49
52
|
.ant-input-textarea-show-count {
|