@jiaozhiye/qm-design-react 1.2.0-beta.7 → 1.3.0-beta.1
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/_utils/util.d.ts +1 -1
- package/lib/anchor/src/anchor-item.d.ts +1 -1
- package/lib/anchor/src/anchor-nav.d.ts +1 -1
- package/lib/anchor/src/anchor.d.ts +1 -1
- package/lib/button/src/button.d.ts +1 -1
- package/lib/collapse/src/collapse.d.ts +2 -0
- package/lib/config-provider/src/config-provider.d.ts +2 -1
- package/lib/countup/src/countup.d.ts +1 -1
- package/lib/cropper/src/cropper.d.ts +2 -2
- package/lib/divider/src/divider.d.ts +1 -1
- package/lib/download/src/download.d.ts +1 -1
- package/lib/drawer/src/drawer.d.ts +2 -1
- package/lib/empty/src/empty.d.ts +1 -1
- package/lib/form/src/fields-filter.d.ts +2 -2
- package/lib/form/src/form-cascader.d.ts +2 -3
- package/lib/form/src/form-checkbox-group.d.ts +1 -1
- package/lib/form/src/form-checkbox.d.ts +1 -1
- package/lib/form/src/form-city-select.d.ts +1 -1
- package/lib/form/src/form-date.d.ts +1 -1
- package/lib/form/src/form-divider.d.ts +1 -1
- package/lib/form/src/form-immediate.d.ts +12 -2
- package/lib/form/src/form-input-number.d.ts +1 -1
- package/lib/form/src/form-input.d.ts +1 -14
- package/lib/form/src/form-multiple-search-helper.d.ts +12 -2
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +12 -2
- package/lib/form/src/form-radio.d.ts +2 -2
- package/lib/form/src/form-range-date.d.ts +1 -1
- package/lib/form/src/form-range-input-number.d.ts +1 -1
- package/lib/form/src/form-range-input.d.ts +1 -1
- package/lib/form/src/form-range-search-helper.d.ts +20 -0
- package/lib/form/src/form-range-time.d.ts +1 -1
- package/lib/form/src/form-rate.d.ts +1 -1
- package/lib/form/src/form-region-select.d.ts +1 -1
- package/lib/form/src/form-search-helper.d.ts +12 -2
- package/lib/form/src/form-select.d.ts +2 -3
- package/lib/form/src/form-switch.d.ts +1 -1
- package/lib/form/src/form-text-area.d.ts +1 -1
- package/lib/form/src/form-time.d.ts +1 -1
- package/lib/form/src/form-tinymce.d.ts +1 -1
- package/lib/form/src/form-tree-select.d.ts +2 -5
- package/lib/form/src/form-tree-table-helper.d.ts +12 -2
- package/lib/form/src/form-upload-file.d.ts +2 -2
- package/lib/form/src/form-upload-img.d.ts +2 -2
- package/lib/form/src/form.d.ts +4 -1
- package/lib/form/src/types.d.ts +37 -14
- package/lib/form/src/utils.d.ts +37 -1
- package/lib/form/style/index.less +17 -4
- package/lib/index.d.ts +4 -2
- package/lib/index.esm.js +3 -16
- package/lib/index.full.js +1 -1
- package/lib/index.js +3 -16
- package/lib/locale/index.js +13 -14
- package/lib/locale/lang/en.d.ts +3 -0
- package/lib/locale/lang/en.js +4 -1
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/locale/lang/zh-cn.js +4 -1
- package/lib/modal/src/modal.d.ts +2 -1
- package/lib/print/src/preview.d.ts +1 -1
- package/lib/print/src/print.d.ts +1 -1
- package/lib/print/src/setting.d.ts +1 -1
- package/lib/range-table-helper/index.d.ts +3 -0
- package/lib/range-table-helper/src/range-table-helper.d.ts +22 -0
- package/lib/range-table-helper/style/index.less +14 -0
- package/lib/search-helper/src/search-helper.d.ts +1 -4
- package/lib/space/src/space.d.ts +1 -1
- package/lib/spin/src/spin.d.ts +2 -2
- package/lib/style/index.css +423 -450
- package/lib/style/index.less +2 -1
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/context/index.d.ts +1 -0
- package/lib/table/src/export/setting.d.ts +7 -1
- package/lib/table/src/hooks/useTableRef.d.ts +3 -0
- package/lib/table/src/table/props.d.ts +3 -0
- package/lib/table/src/table/types.d.ts +7 -1
- package/lib/table/style/expandable.less +10 -1
- package/lib/table/style/header.less +4 -4
- package/lib/table/style/pager.less +7 -1
- package/lib/table/style/table.less +7 -0
- package/lib/tabs/src/tab-pane.d.ts +2 -2
- package/lib/tabs/src/tabs.d.ts +1 -1
- package/lib/tinymce/src/index.d.ts +1 -1
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +1 -4
- package/lib/tree-table-helper/style/index.less +2 -2
- package/lib/upload-file/src/upload-file.d.ts +2 -2
- package/lib/upload-img/src/cropper-preview.d.ts +1 -1
- package/lib/upload-img/src/upload-img.d.ts +2 -2
- package/package.json +19 -19
package/lib/_utils/util.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const camelize: (input: string) => string;
|
|
|
19
19
|
export declare const isEmpty: (val: any) => boolean;
|
|
20
20
|
export declare const isValid: (val: string) => boolean;
|
|
21
21
|
export declare const getValueByPath: (obj: AnyObject<any>, paths?: string) => unknown;
|
|
22
|
-
export declare const deepClone: (target:
|
|
22
|
+
export declare const deepClone: <T extends object>(target: T, map?: WeakMap<object, any>) => T;
|
|
23
23
|
export declare const getParserWidth: (val: number | string) => string;
|
|
24
24
|
export declare const flatJson: <T extends Record<string, any>>(jsonObject: T) => T;
|
|
25
25
|
export declare const getAuthValue: (code: string) => Record<string, any> | undefined;
|
|
@@ -51,6 +51,6 @@ declare class QmAnchor extends Component<IProps, IState> {
|
|
|
51
51
|
onScrollHandle: (ev: MouseEvent) => void;
|
|
52
52
|
onTabClickHandle: (index: number) => void;
|
|
53
53
|
SCROLL_TO_ITEM: (index: number) => void;
|
|
54
|
-
render():
|
|
54
|
+
render(): JSX.Element;
|
|
55
55
|
}
|
|
56
56
|
export default QmAnchor;
|
|
@@ -26,6 +26,6 @@ declare class QmButton extends Component<IProps, IState> {
|
|
|
26
26
|
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
27
27
|
state: IState;
|
|
28
28
|
clickHandle: () => Promise<void>;
|
|
29
|
-
render():
|
|
29
|
+
render(): JSX.Element | null;
|
|
30
30
|
}
|
|
31
31
|
export default QmButton;
|
|
@@ -6,6 +6,7 @@ declare type IProps = {
|
|
|
6
6
|
size: IConfig['size'];
|
|
7
7
|
theme?: string;
|
|
8
8
|
global?: IConfig['global'];
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
};
|
|
10
11
|
declare type IState = {
|
|
11
12
|
value: IConfig;
|
|
@@ -30,6 +31,6 @@ declare class QmConfigProvider extends Component<IProps, IState> {
|
|
|
30
31
|
size: import("../../_utils/types").ComponentSize;
|
|
31
32
|
};
|
|
32
33
|
} | null;
|
|
33
|
-
render():
|
|
34
|
+
render(): JSX.Element;
|
|
34
35
|
}
|
|
35
36
|
export default QmConfigProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import type { CSSProperties, AnyObject, AnyFunction } from '../../_utils/types';
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
src: string;
|
|
@@ -208,6 +208,6 @@ declare class QmCropper extends Component<IProps> {
|
|
|
208
208
|
* @returns {Object} this
|
|
209
209
|
*/
|
|
210
210
|
setDragMode(mode: any): any;
|
|
211
|
-
render():
|
|
211
|
+
render(): JSX.Element;
|
|
212
212
|
}
|
|
213
213
|
export default QmCropper;
|
|
@@ -22,6 +22,6 @@ declare class QmDivider extends Component<IProps> {
|
|
|
22
22
|
};
|
|
23
23
|
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
24
24
|
clickHandle: () => void;
|
|
25
|
-
render():
|
|
25
|
+
render(): JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export default QmDivider;
|
|
@@ -49,6 +49,6 @@ declare class QmDownload extends Component<IProps, IState> {
|
|
|
49
49
|
getActionUrl(): Promise<string>;
|
|
50
50
|
downloadFile(url: string): Promise<void>;
|
|
51
51
|
downloadHandle: () => Promise<void>;
|
|
52
|
-
render():
|
|
52
|
+
render(): JSX.Element;
|
|
53
53
|
}
|
|
54
54
|
export default QmDownload;
|
|
@@ -9,6 +9,7 @@ declare type IProps = Omit<DrawerProps, 'size'> & {
|
|
|
9
9
|
showFullScreen?: boolean;
|
|
10
10
|
onClose?: (e: EventType) => void;
|
|
11
11
|
onClosed?: () => void;
|
|
12
|
+
onFullChange?: (value: boolean) => void;
|
|
12
13
|
};
|
|
13
14
|
declare type IState = {
|
|
14
15
|
fullscreen: boolean;
|
|
@@ -39,6 +40,6 @@ declare class QmDrawer extends Component<IProps, IState> {
|
|
|
39
40
|
renderTitle(): JSX.Element;
|
|
40
41
|
START_LOADING: () => void;
|
|
41
42
|
STOP_LOADING: () => void;
|
|
42
|
-
render():
|
|
43
|
+
render(): JSX.Element;
|
|
43
44
|
}
|
|
44
45
|
export default QmDrawer;
|
package/lib/empty/src/empty.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare class FieldsFilter extends Component<IProps, IState> {
|
|
|
13
13
|
private linkRef;
|
|
14
14
|
state: IState;
|
|
15
15
|
get formUniqueKey(): string;
|
|
16
|
-
|
|
16
|
+
constructor(props: IProps);
|
|
17
17
|
getTableFieldsConfig(key: string): Promise<unknown[] | void>;
|
|
18
18
|
saveTableColumnsConfig(key: string, value: Partial<IFormItem>[]): Promise<void>;
|
|
19
19
|
getLocalFields(): Array<IFormItem> | void;
|
|
@@ -21,6 +21,6 @@ declare class FieldsFilter extends Component<IProps, IState> {
|
|
|
21
21
|
initLocalfields(): void;
|
|
22
22
|
changeHandle(items: IFormItem[]): void;
|
|
23
23
|
popup(): JSX.Element;
|
|
24
|
-
render():
|
|
24
|
+
render(): JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
export default FieldsFilter;
|
|
@@ -15,8 +15,7 @@ declare class FormCascader extends Component<IProps, IState> {
|
|
|
15
15
|
componentDidMount(): void;
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
17
|
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
render(): React.ReactElement;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): JSX.Element;
|
|
21
20
|
}
|
|
22
21
|
export default FormCascader;
|
|
@@ -14,6 +14,6 @@ declare class FormCheckboxGroup extends Component<IProps, IState> {
|
|
|
14
14
|
componentWillUnmount(): void;
|
|
15
15
|
componentDidUpdate(prevProps: IProps): void;
|
|
16
16
|
getItemList(): Promise<void>;
|
|
17
|
-
render():
|
|
17
|
+
render(): JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default FormCheckboxGroup;
|
|
@@ -3,8 +3,18 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormImmediate extends Component<IProps, IState> {
|
|
7
10
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
9
19
|
}
|
|
10
20
|
export default FormImmediate;
|
|
@@ -6,6 +6,6 @@ declare type IProps = {
|
|
|
6
6
|
declare class FormInputNumber extends Component<IProps> {
|
|
7
7
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
8
|
focus: () => void;
|
|
9
|
-
render():
|
|
9
|
+
render(): JSX.Element;
|
|
10
10
|
}
|
|
11
11
|
export default FormInputNumber;
|
|
@@ -3,22 +3,9 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare type IInputProps<T = string> = IProps & {
|
|
7
|
-
value?: T;
|
|
8
|
-
onBlur?: (value: T) => void;
|
|
9
|
-
onChange?: (value: T) => void;
|
|
10
|
-
onValuesChange: (value: T) => void;
|
|
11
|
-
};
|
|
12
|
-
declare class VInput extends Component<IInputProps> {
|
|
13
|
-
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
14
|
-
triggerChange: (value: string) => void;
|
|
15
|
-
triggerBlur: (value: string) => void;
|
|
16
|
-
render(): React.ReactElement;
|
|
17
|
-
}
|
|
18
6
|
declare class FormInput extends Component<IProps> {
|
|
19
7
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
20
|
-
inputRef: React.RefObject<VInput>;
|
|
21
8
|
focus: () => void;
|
|
22
|
-
render():
|
|
9
|
+
render(): JSX.Element;
|
|
23
10
|
}
|
|
24
11
|
export default FormInput;
|
|
@@ -3,8 +3,18 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormMultipleSearchHelper extends Component<IProps, IState> {
|
|
7
10
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
9
19
|
}
|
|
10
20
|
export default FormMultipleSearchHelper;
|
|
@@ -3,8 +3,18 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormMultipleTreeHelper extends Component<IProps, IState> {
|
|
7
10
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
9
19
|
}
|
|
10
20
|
export default FormMultipleTreeHelper;
|
|
@@ -13,7 +13,7 @@ declare class FormRadio extends Component<IProps, IState> {
|
|
|
13
13
|
componentDidMount(): void;
|
|
14
14
|
componentWillUnmount(): void;
|
|
15
15
|
componentDidUpdate(prevProps: IProps): void;
|
|
16
|
-
getItemList()
|
|
17
|
-
render():
|
|
16
|
+
getItemList: () => Promise<void>;
|
|
17
|
+
render(): JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default FormRadio;
|
|
@@ -5,6 +5,6 @@ declare type IProps = {
|
|
|
5
5
|
};
|
|
6
6
|
declare class FormRangeInputNumber extends Component<IProps> {
|
|
7
7
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
render():
|
|
8
|
+
render(): JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export default FormRangeInputNumber;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
declare type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormRangeSearchHelper extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default FormRangeSearchHelper;
|
|
@@ -5,6 +5,6 @@ declare type IProps = {
|
|
|
5
5
|
};
|
|
6
6
|
declare class FormRegionSelect extends Component<IProps> {
|
|
7
7
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
render():
|
|
8
|
+
render(): JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export default FormRegionSelect;
|
|
@@ -3,8 +3,18 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormSearchHelper extends Component<IProps, IState> {
|
|
7
10
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
9
19
|
}
|
|
10
20
|
export default FormSearchHelper;
|
|
@@ -15,8 +15,7 @@ declare class FormSelect extends Component<IProps, IState> {
|
|
|
15
15
|
componentDidMount(): void;
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
17
|
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
render(): React.ReactElement;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): JSX.Element;
|
|
21
20
|
}
|
|
22
21
|
export default FormSelect;
|
|
@@ -15,10 +15,7 @@ declare class FormTreeSelect extends Component<IProps, IState> {
|
|
|
15
15
|
componentDidMount(): void;
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
17
|
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
getItemList(): Promise<void>;
|
|
21
|
-
createTreeNode(items: IDict[]): JSX.Element[];
|
|
22
|
-
render(): React.ReactElement;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): JSX.Element;
|
|
23
20
|
}
|
|
24
21
|
export default FormTreeSelect;
|
|
@@ -3,8 +3,18 @@ import type { IFormItem } from './types';
|
|
|
3
3
|
declare type IProps = {
|
|
4
4
|
option: IFormItem;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
6
|
+
declare type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormTreeTableHelper extends Component<IProps, IState> {
|
|
7
10
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
-
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
9
19
|
}
|
|
10
20
|
export default FormTreeTableHelper;
|
|
@@ -9,10 +9,10 @@ export interface UploadFile {
|
|
|
9
9
|
fileName?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
thumbUrl?: string;
|
|
12
|
-
status?: 'error' | 'success' | 'done' | 'uploading'
|
|
12
|
+
status?: 'error' | 'success' | 'done' | 'uploading';
|
|
13
13
|
}
|
|
14
14
|
declare class FormUploadFile extends Component<IProps> {
|
|
15
15
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
16
|
-
render():
|
|
16
|
+
render(): JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export default FormUploadFile;
|
|
@@ -9,10 +9,10 @@ export interface UploadFile {
|
|
|
9
9
|
fileName?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
thumbUrl?: string;
|
|
12
|
-
status?: 'error' | 'success' | 'done' | 'uploading'
|
|
12
|
+
status?: 'error' | 'success' | 'done' | 'uploading';
|
|
13
13
|
}
|
|
14
14
|
declare class FormUploadImg extends Component<IProps> {
|
|
15
15
|
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
16
|
-
render():
|
|
16
|
+
render(): JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export default FormUploadImg;
|
package/lib/form/src/form.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
31
31
|
customClass: import("prop-types").Requireable<string>;
|
|
32
32
|
labelWidth: import("prop-types").Requireable<string | number>;
|
|
33
33
|
labelAlign: import("prop-types").Requireable<string>;
|
|
34
|
+
labelWrap: import("prop-types").Requireable<boolean>;
|
|
34
35
|
formType: import("prop-types").Requireable<string>;
|
|
35
36
|
uniqueKey: import("prop-types").Requireable<string>;
|
|
36
37
|
authCode: import("prop-types").Requireable<string>;
|
|
@@ -131,6 +132,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
131
132
|
MULTIPLE_SEARCH_HELPER(option: IFormItem): JSXElement;
|
|
132
133
|
TREE_TABLE_HELPER(option: IFormItem): JSXElement;
|
|
133
134
|
MULTIPLE_TREE_TABLE_HELPER(option: IFormItem): JSXElement;
|
|
135
|
+
RANGE_SEARCH_HELPER(option: IFormItem): JSXElement;
|
|
134
136
|
CHECKBOX(option: IFormItem): JSXElement;
|
|
135
137
|
MULTIPLE_CHECKBOX(option: IFormItem): JSXElement;
|
|
136
138
|
RATE(option: IFormItem): JSXElement;
|
|
@@ -158,6 +160,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
158
160
|
renderFormItemExtra(option: IFormItem['extra'] & {
|
|
159
161
|
fieldName: string;
|
|
160
162
|
}): JSX.Element;
|
|
163
|
+
renderFormItemButton(fieldName: string, buttonAfter: IFormItem['buttonAfter']): JSXElement;
|
|
161
164
|
renderFormItem(option: IFormItem): JSX.Element | null;
|
|
162
165
|
createFormItem(item: IFormItem): JSXElement;
|
|
163
166
|
createFormLayout(): (JSX.Element | null)[];
|
|
@@ -182,6 +185,6 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
182
185
|
GET_FIELDS_TOUCHED(fields?: string[]): boolean;
|
|
183
186
|
SUBMIT_FORM(): void;
|
|
184
187
|
RESET_FORM(): void;
|
|
185
|
-
render():
|
|
188
|
+
render(): JSX.Element;
|
|
186
189
|
}
|
|
187
190
|
export default QmForm;
|