@jiaozhiye/qm-design-react 1.0.0-beta.4 → 1.0.0-beta.40

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.
Files changed (86) hide show
  1. package/lib/_utils/dom.d.ts +8 -1
  2. package/lib/_utils/util.d.ts +1 -1
  3. package/lib/anchor/src/anchor-item.d.ts +1 -1
  4. package/lib/anchor/src/anchor-nav.d.ts +1 -1
  5. package/lib/anchor/src/anchor.d.ts +5 -3
  6. package/lib/anchor/style/index.less +61 -60
  7. package/lib/antd/DatePicker.d.ts +3 -1
  8. package/lib/antd/dayjs.d.ts +1 -0
  9. package/lib/antd/index.d.ts +1 -0
  10. package/lib/button/src/button.d.ts +2 -2
  11. package/lib/config-provider/context.d.ts +3 -2
  12. package/lib/config-provider/src/config-provider.d.ts +1 -0
  13. package/lib/countup/src/countup.d.ts +2 -2
  14. package/lib/cropper/src/cropper.d.ts +1 -1
  15. package/lib/divider/src/divider.d.ts +3 -2
  16. package/lib/download/src/download.d.ts +8 -5
  17. package/lib/drawer/src/drawer.d.ts +14 -6
  18. package/lib/drawer/style/index.less +3 -2
  19. package/lib/empty/src/empty.d.ts +2 -2
  20. package/lib/form/src/fields-filter.d.ts +1 -1
  21. package/lib/form/src/form-cascader.d.ts +1 -1
  22. package/lib/form/src/form-input-number.d.ts +1 -0
  23. package/lib/form/src/form-input.d.ts +12 -0
  24. package/lib/form/src/form-multiple-search-helper.d.ts +10 -0
  25. package/lib/form/src/form-multiple-tree-table-helper.d.ts +10 -0
  26. package/lib/form/src/form-tree-table-helper.d.ts +10 -0
  27. package/lib/form/src/form.d.ts +10 -3
  28. package/lib/form/src/types.d.ts +21 -12
  29. package/lib/form/src/utils.d.ts +4 -0
  30. package/lib/form/style/index.less +34 -11
  31. package/lib/index.d.ts +5 -0
  32. package/lib/index.esm.js +32553 -16
  33. package/lib/index.full.js +1 -1
  34. package/lib/index.js +32870 -16
  35. package/lib/locale/lang/en.d.ts +16 -0
  36. package/lib/locale/lang/en.js +21 -5
  37. package/lib/locale/lang/zh-cn.d.ts +16 -0
  38. package/lib/locale/lang/zh-cn.js +21 -5
  39. package/lib/modal/src/modal.d.ts +22 -5
  40. package/lib/modal/style/index.less +16 -13
  41. package/lib/print/index.d.ts +3 -0
  42. package/lib/print/src/LodopFuncs.d.ts +1 -0
  43. package/lib/print/src/config.d.ts +6 -0
  44. package/lib/print/src/container.d.ts +14 -0
  45. package/lib/print/src/context.d.ts +6 -0
  46. package/lib/print/src/preview.d.ts +61 -0
  47. package/lib/print/src/print.d.ts +37 -0
  48. package/lib/print/src/setting.d.ts +49 -0
  49. package/lib/print/src/utils.d.ts +5 -0
  50. package/lib/print/style/index.less +175 -0
  51. package/lib/search-helper/src/search-helper.d.ts +1 -0
  52. package/lib/space/src/space.d.ts +2 -2
  53. package/lib/split/src/split-pane.d.ts +3 -1
  54. package/lib/split/src/split.d.ts +3 -1
  55. package/lib/style/index.css +1 -1
  56. package/lib/style/index.less +3 -1
  57. package/lib/table/src/config/index.d.ts +1 -1
  58. package/lib/table/src/context/index.d.ts +7 -1
  59. package/lib/table/src/expandable/index.d.ts +1 -0
  60. package/lib/table/src/fast-search/index.d.ts +3 -0
  61. package/lib/table/src/fast-search/setting.d.ts +6 -0
  62. package/lib/table/src/filter-sql/index.d.ts +1 -1
  63. package/lib/table/src/hooks/useTableCore.d.ts +4 -2
  64. package/lib/table/src/hooks/useTableEffect.d.ts +1 -1
  65. package/lib/table/src/hooks/useTableLayout.d.ts +6 -1
  66. package/lib/table/src/hooks/useTableMemo.d.ts +1 -0
  67. package/lib/table/src/hooks/useTableRef.d.ts +3 -0
  68. package/lib/table/src/table/props.d.ts +10 -7
  69. package/lib/table/src/table/types.d.ts +9 -9
  70. package/lib/table/src/utils/index.d.ts +2 -0
  71. package/lib/table/style/body.less +22 -3
  72. package/lib/table/style/export.less +1 -1
  73. package/lib/table/style/fast-search.less +109 -0
  74. package/lib/table/style/index.less +2 -1
  75. package/lib/table/style/toper.less +6 -3
  76. package/lib/tabs/src/tabs.d.ts +1 -4
  77. package/lib/tabs/style/index.less +25 -22
  78. package/lib/tinymce/src/index.d.ts +2 -2
  79. package/lib/tree-table-helper/index.d.ts +3 -0
  80. package/lib/tree-table-helper/src/tree-table-helper.d.ts +28 -0
  81. package/lib/tree-table-helper/style/index.less +17 -0
  82. package/lib/upload-file/src/upload-file.d.ts +10 -2
  83. package/lib/upload-img/src/cropper-preview.d.ts +3 -1
  84. package/lib/upload-img/src/upload-img.d.ts +2 -0
  85. package/package.json +13 -11
  86. package/lib/form/src/china-data.d.ts +0 -4577
@@ -1,4 +1,4 @@
1
- import { CSSProperties, Nullable } from './types';
1
+ import type { CSSProperties, Nullable } from './types';
2
2
  export declare const on: (element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject) => void;
3
3
  export declare const off: (element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject) => void;
4
4
  export declare const once: (el: HTMLElement, event: string, fn: EventListener) => void;
@@ -66,3 +66,10 @@ export declare const getParentNode: (el: HTMLElement, selector: string) => Nulla
66
66
  * @returns boolean
67
67
  */
68
68
  export declare const contains: (el: HTMLElement, container: HTMLElement) => boolean;
69
+ /**
70
+ * @description 滚动到指定位置,动画效果
71
+ * @param {HTMLNode} el 带滚动条元素
72
+ * @param {number} t 滚动条上边距
73
+ * @returns
74
+ */
75
+ export declare const scrollToY: (el: HTMLElement, t: number) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { isNumber, isString, isUndefined, isFunction, isArray, isPlainObject as isObject, debounce, throttle, get } from 'lodash-es';
3
- import { AnyFunction, AnyObject } from './types';
3
+ import type { AnyFunction, AnyObject } from './types';
4
4
  export { isNumber, isString, isArray, isUndefined, isFunction, isObject, debounce, throttle, get };
5
5
  export declare const isIE: () => boolean;
6
6
  export declare const isEdge: () => boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { CSSProperties } from '../../_utils/types';
2
+ import type { CSSProperties } from '../../_utils/types';
3
3
  declare type IProps = {
4
4
  label: string;
5
5
  showDivider?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { AnyFunction } from '../../_utils/types';
2
+ import type { AnyFunction } from '../../_utils/types';
3
3
  declare type IProps = {
4
4
  activeKey: number;
5
5
  labels: string[];
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ComponentSize, CSSProperties } from '../../_utils/types';
3
+ import type { ComponentSize, CSSProperties } from '../../_utils/types';
4
4
  declare type ILabelItem = {
5
5
  id: string;
6
6
  label: string;
@@ -34,8 +34,9 @@ declare class QmAnchor extends Component<IProps, IState> {
34
34
  static defaultProps: {
35
35
  labelWidth: number;
36
36
  };
37
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
37
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
38
38
  private currentState;
39
+ private itemsTotal;
39
40
  private timer;
40
41
  private scrollEvent;
41
42
  private scrollRef;
@@ -46,7 +47,8 @@ declare class QmAnchor extends Component<IProps, IState> {
46
47
  createDistances(): number[];
47
48
  findCurrentIndex(t: number): number;
48
49
  onScrollHandle: (ev: MouseEvent) => void;
49
- onTabClickHandle: (index: number, ev: MouseEvent) => void;
50
+ onTabClickHandle: (index: number) => void;
51
+ SCROLL_TO_ITEM: (index: number) => void;
50
52
  render(): React.ReactElement;
51
53
  }
52
54
  export default QmAnchor;
@@ -1,60 +1,61 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-anchor: ~'@{qm-prefix}-anchor';
10
-
11
- .@{prefix-anchor} {
12
- .reset-component;
13
- display: flex;
14
- flex-direction: row;
15
- &__label {
16
- width: 90px;
17
- }
18
- &-nav {
19
- height: 100%;
20
- margin-right: @--margin-md;
21
- border-right: 1px solid @--border-color-base;
22
- &__item {
23
- display: flex;
24
- align-items: center;
25
- justify-content: flex-end;
26
- height: @--height-md;
27
- padding-right: @--padding-md;
28
- position: relative;
29
- cursor: pointer;
30
- &.actived {
31
- color: @--primary-color;
32
- &::after {
33
- content: '';
34
- position: absolute;
35
- right: -2px;
36
- top: 0;
37
- width: 2px;
38
- height: 100%;
39
- background-color: @--primary-color;
40
- }
41
- }
42
- span {
43
- .text-overflow-cut();
44
- display: block;
45
- text-align: right;
46
- }
47
- }
48
- }
49
- &__container {
50
- flex: 1;
51
- overflow-x: hidden !important;
52
- overflow-y: auto;
53
- }
54
- // ------ size ------
55
- // 40 32 24
56
- &--lg {
57
- }
58
- &--sm {
59
- }
60
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-31 22:38:07
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-anchor: ~'@{qm-prefix}-anchor';
10
+
11
+ .@{prefix-anchor} {
12
+ .reset-component;
13
+ display: flex;
14
+ flex-direction: row;
15
+ &__label {
16
+ width: 80px;
17
+ }
18
+ &-nav {
19
+ height: 100%;
20
+ margin-right: @--margin-md;
21
+ border-right: 1px solid @--border-color-base;
22
+ &__item {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: flex-end;
26
+ height: @--height-md;
27
+ padding-right: @--padding-md;
28
+ position: relative;
29
+ cursor: pointer;
30
+ &.actived {
31
+ color: @--primary-color;
32
+ &::after {
33
+ content: '';
34
+ position: absolute;
35
+ right: -2px;
36
+ top: 0;
37
+ width: 2px;
38
+ height: 100%;
39
+ background-color: @--primary-color;
40
+ }
41
+ }
42
+ span {
43
+ .text-overflow-cut();
44
+ display: block;
45
+ text-align: right;
46
+ }
47
+ }
48
+ }
49
+ &__container {
50
+ flex: 1;
51
+ width: 0;
52
+ padding-right: 5px;
53
+ overflow-y: auto;
54
+ }
55
+ // ------ size ------
56
+ // 40 32 24
57
+ &--lg {
58
+ }
59
+ &--sm {
60
+ }
61
+ }
@@ -1,6 +1,8 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import 'antd/es/date-picker/style/index';
3
- declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, unknown> & {
3
+ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
4
+ status?: "" | "error" | "warning" | undefined;
5
+ }, unknown> & {
4
6
  WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
5
7
  MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
6
8
  YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import './dayjs';
1
2
  export type { AffixProps } from 'antd';
2
3
  export { Affix } from 'antd';
3
4
  export type { AnchorProps, AnchorLinkProps } from 'antd';
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import type { ButtonProps } from '../../antd';
4
4
  declare type IProps = ButtonProps & {
5
- click?: () => Promise<void>;
5
+ click?: () => Promise<void> | void;
6
6
  confirm?: {
7
7
  title?: string;
8
8
  onConfirm?: () => void;
@@ -22,7 +22,7 @@ declare class QmButton extends Component<IProps, IState> {
22
22
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
23
23
  }>>;
24
24
  };
25
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
25
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
26
26
  state: IState;
27
27
  clickHandle: () => Promise<void>;
28
28
  render(): React.ReactElement;
@@ -3,7 +3,8 @@ import { Locale, ComponentSize } from '../_utils/types';
3
3
  export declare type IConfig = {
4
4
  locale: Locale;
5
5
  size: ComponentSize;
6
- global: Record<string, any>;
6
+ theme?: string;
7
+ global?: Record<string, any>;
7
8
  };
8
- declare const ConfigContext: import("react").Context<IConfig | undefined>;
9
+ declare const ConfigContext: import("react").Context<IConfig>;
9
10
  export default ConfigContext;
@@ -21,6 +21,7 @@ declare class QmConfigProvider extends Component<IProps, IState> {
21
21
  static defaultProps: {
22
22
  locale: string;
23
23
  size: string;
24
+ global: {};
24
25
  };
25
26
  constructor(props: IProps);
26
27
  static getDerivedStateFromProps(nextProps: IProps, prevState: IState): {
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import { CountUpProps } from 'react-countup/build/CountUp';
3
- import { ComponentSize, CSSProperties } from '../../_utils/types';
3
+ import type { ComponentSize, CSSProperties } from '../../_utils/types';
4
4
  declare type IProps = CountUpProps & {
5
5
  size?: ComponentSize;
6
6
  className?: string;
@@ -11,7 +11,7 @@ declare class QmCountup extends Component<IProps> {
11
11
  static defaultProps: {
12
12
  duration: number;
13
13
  };
14
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
14
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
15
15
  render(): React.ReactElement;
16
16
  }
17
17
  export default QmCountup;
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { CSSProperties, AnyObject, AnyFunction } from '../../_utils/types';
2
+ import type { CSSProperties, AnyObject, AnyFunction } from '../../_utils/types';
3
3
  declare type IProps = {
4
4
  src: string;
5
5
  alt?: string;
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ComponentSize, CSSProperties, JSXElement } from '../../_utils/types';
3
+ import type { ComponentSize, CSSProperties, JSXElement } from '../../_utils/types';
4
4
  declare type IProps = {
5
5
  label: string;
6
6
  size?: ComponentSize;
@@ -8,6 +8,7 @@ declare type IProps = {
8
8
  collapse?: boolean;
9
9
  className?: string;
10
10
  style?: CSSProperties;
11
+ id?: string;
11
12
  onCollapseChange?: (collapse: boolean) => void;
12
13
  };
13
14
  export declare type QmDividerProps = IProps;
@@ -18,7 +19,7 @@ declare class QmDivider extends Component<IProps> {
18
19
  extra: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
19
20
  collapse: PropTypes.Requireable<boolean>;
20
21
  };
21
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
22
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
22
23
  clickHandle: () => void;
23
24
  render(): React.ReactElement;
24
25
  }
@@ -1,23 +1,24 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import type { AnyObject, AjaxResponse, ComponentSize } from '../../_utils/types';
3
4
  import type { ButtonProps } from '../../antd';
4
- import { AnyFunction, AnyObject } from '../../_utils/types';
5
5
  declare type HttpRequestHeader = {
6
6
  [key: string]: string;
7
7
  };
8
8
  declare type ActionConfig = {
9
- api: AnyFunction<Promise<any>>;
9
+ api: (params?: Record<string, unknown>) => Promise<AjaxResponse>;
10
10
  params?: AnyObject<unknown>;
11
11
  };
12
12
  declare type IProps = Omit<ButtonProps, 'prefixCls' | 'ghost' | 'danger' | 'block'> & {
13
13
  action: string | ActionConfig;
14
14
  fileName?: string;
15
+ size?: ComponentSize;
15
16
  headers?: HttpRequestHeader;
16
17
  withCredentials?: boolean;
17
18
  params?: AnyObject<unknown>;
18
- beforeDownload?: AnyFunction<boolean>;
19
- onSuccess: AnyFunction<void>;
20
- onError: AnyFunction<void>;
19
+ beforeDownload?: (action: string) => boolean;
20
+ onSuccess?: () => void;
21
+ onError?: (error: AnyObject<unknown>) => void;
21
22
  };
22
23
  declare type IState = {
23
24
  loading: boolean;
@@ -29,6 +30,7 @@ declare class QmDownload extends Component<IProps, IState> {
29
30
  api: PropTypes.Validator<(...args: any[]) => any>;
30
31
  params: PropTypes.Requireable<object>;
31
32
  }>>;
33
+ size: (props: any, propName: any, componentName: any) => void;
32
34
  fileName: PropTypes.Requireable<string>;
33
35
  headers: PropTypes.Requireable<object>;
34
36
  withCredentials: PropTypes.Requireable<boolean>;
@@ -42,6 +44,7 @@ declare class QmDownload extends Component<IProps, IState> {
42
44
  children: string;
43
45
  withCredentials: boolean;
44
46
  };
47
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
45
48
  state: IState;
46
49
  getActionUrl(): Promise<string>;
47
50
  downloadFile(url: string): Promise<void>;
@@ -1,18 +1,22 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ComponentSize } from '../../_utils/types';
3
+ import type { ComponentSize, Nullable } from '../../_utils/types';
4
4
  import type { DrawerProps } from '../../antd';
5
+ declare type EventType = React.MouseEvent<HTMLElement>;
5
6
  declare type IProps = DrawerProps & {
6
7
  size?: ComponentSize;
7
8
  loading?: boolean;
9
+ onClose?: (e: EventType) => void;
10
+ onClosed?: () => void;
8
11
  };
9
12
  declare type IState = {
10
13
  fullscreen: boolean;
11
14
  spinning: boolean;
15
+ sloading: boolean;
12
16
  };
13
17
  export declare type QmDrawerProps = IProps;
14
18
  declare class QmDrawer extends Component<IProps, IState> {
15
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
19
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
16
20
  static propTypes: {
17
21
  size: (props: any, propName: any, componentName: any) => void;
18
22
  spinning: PropTypes.Requireable<boolean>;
@@ -20,14 +24,18 @@ declare class QmDrawer extends Component<IProps, IState> {
20
24
  static defaultProps: {
21
25
  width: string;
22
26
  destroyOnClose: boolean;
23
- maskClosable: boolean;
24
27
  };
25
- state: IState;
28
+ titleRef: React.RefObject<HTMLSpanElement>;
29
+ $drawer: Nullable<HTMLElement>;
26
30
  private opened;
27
- componentDidUpdate(prevProps: IProps): void;
31
+ state: IState;
32
+ componentWillUnmount(): void;
33
+ componentDidUpdate(prevProps: IProps, prevState: IState): void;
28
34
  afterVisibleChange: (visible: boolean) => void;
29
- toggleHandle: (ev: any) => void;
35
+ toggleHandle: () => void;
30
36
  renderTitle(): JSX.Element;
37
+ START_LOADING: () => void;
38
+ STOP_LOADING: () => void;
31
39
  render(): React.ReactElement;
32
40
  }
33
41
  export default QmDrawer;
@@ -33,9 +33,10 @@
33
33
  }
34
34
  }
35
35
  .ant-drawer-close {
36
- top: auto;
36
+ position: absolute;
37
+ right: -8px;
37
38
  font-size: 17px;
38
- padding: @--padding-md 15px @--padding-md 5px;
39
+ padding: @--padding-md;
39
40
  }
40
41
  }
41
42
  .ant-drawer-body {
@@ -1,12 +1,12 @@
1
1
  import React, { Component } from 'react';
2
- import { ComponentSize } from '../../_utils/types';
2
+ import type { ComponentSize } from '../../_utils/types';
3
3
  import type { EmptyProps } from '../../antd';
4
4
  declare type IProps = EmptyProps & {
5
5
  size?: ComponentSize;
6
6
  };
7
7
  export declare type QmEmptyProps = IProps;
8
8
  declare class QmEmpty extends Component<IProps> {
9
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
9
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
10
10
  static propTypes: {
11
11
  size: (props: any, propName: any, componentName: any) => void;
12
12
  };
@@ -9,7 +9,7 @@ declare type IState = {
9
9
  visible: boolean;
10
10
  };
11
11
  declare class FieldsFilter extends Component<IProps, IState> {
12
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
12
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
13
13
  private linkRef;
14
14
  state: IState;
15
15
  get formUniqueKey(): string;
@@ -14,7 +14,7 @@ declare class FormCascader extends Component<IProps, IState> {
14
14
  state: IState;
15
15
  componentDidMount(): void;
16
16
  componentDidUpdate(prevProps: IProps): void;
17
- createViewText(val: string | undefined, items: IDict[]): string;
17
+ createViewText(val: string | string[], items: IDict[]): string;
18
18
  getItemList(): Promise<void>;
19
19
  render(): React.ReactElement;
20
20
  }
@@ -5,6 +5,7 @@ declare type IProps = {
5
5
  };
6
6
  declare class FormInputNumber extends Component<IProps> {
7
7
  static contextType: React.Context<import("./context").IFormContext | undefined>;
8
+ focus: () => void;
8
9
  render(): React.ReactElement;
9
10
  }
10
11
  export default FormInputNumber;
@@ -3,8 +3,20 @@ 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
+ onChange?: (value: T) => void;
9
+ onValuesChange: (value: T) => void;
10
+ };
11
+ declare class VInput extends Component<IInputProps> {
12
+ static contextType: React.Context<import("./context").IFormContext | undefined>;
13
+ triggerChange: (value: string) => void;
14
+ render(): JSX.Element;
15
+ }
6
16
  declare class FormInput extends Component<IProps> {
7
17
  static contextType: React.Context<import("./context").IFormContext | undefined>;
18
+ inputRef: React.RefObject<VInput>;
19
+ focus: () => void;
8
20
  render(): React.ReactElement;
9
21
  }
10
22
  export default FormInput;
@@ -0,0 +1,10 @@
1
+ import React, { Component } from 'react';
2
+ import type { IFormItem } from './types';
3
+ declare type IProps = {
4
+ option: IFormItem;
5
+ };
6
+ declare class FormMultipleSearchHelper extends Component<IProps> {
7
+ static contextType: React.Context<import("./context").IFormContext | undefined>;
8
+ render(): React.ReactElement;
9
+ }
10
+ export default FormMultipleSearchHelper;
@@ -0,0 +1,10 @@
1
+ import React, { Component } from 'react';
2
+ import type { IFormItem } from './types';
3
+ declare type IProps = {
4
+ option: IFormItem;
5
+ };
6
+ declare class FormMultipleTreeHelper extends Component<IProps> {
7
+ static contextType: React.Context<import("./context").IFormContext | undefined>;
8
+ render(): React.ReactElement;
9
+ }
10
+ export default FormMultipleTreeHelper;
@@ -0,0 +1,10 @@
1
+ import React, { Component } from 'react';
2
+ import type { IFormItem } from './types';
3
+ declare type IProps = {
4
+ option: IFormItem;
5
+ };
6
+ declare class FormTreeTableHelper extends Component<IProps> {
7
+ static contextType: React.Context<import("./context").IFormContext | undefined>;
8
+ render(): React.ReactElement;
9
+ }
10
+ export default FormTreeTableHelper;
@@ -2,7 +2,7 @@
2
2
  import React, { Component } from 'react';
3
3
  import { IFieldData } from './types';
4
4
  import type { IFormProps, IFormData, IFormItem, IExtraData, IViewData, IExpandData } from './types';
5
- import { JSXElement, ValueOf } from '../../_utils/types';
5
+ import type { JSXElement, ValueOf } from '../../_utils/types';
6
6
  import type { FormProps } from '../../antd';
7
7
  declare type IProps = FormProps & IFormProps;
8
8
  declare type IState = {
@@ -16,7 +16,7 @@ declare type IState = {
16
16
  };
17
17
  export declare type QmFormProps = IProps;
18
18
  declare class QmForm extends Component<IProps, IState> {
19
- static contextType: React.Context<import("../../config-provider/context").IConfig | undefined>;
19
+ static contextType: React.Context<import("../../config-provider/context").IConfig>;
20
20
  static propTypes: {
21
21
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
22
22
  type: import("prop-types").Validator<string>;
@@ -26,6 +26,7 @@ declare class QmForm extends Component<IProps, IState> {
26
26
  initialExtras: import("prop-types").Requireable<object>;
27
27
  size: (props: any, propName: any, componentName: any) => void;
28
28
  cols: import("prop-types").Requireable<number>;
29
+ customClass: import("prop-types").Requireable<string>;
29
30
  labelWidth: import("prop-types").Requireable<string | number>;
30
31
  labelAlign: import("prop-types").Requireable<string>;
31
32
  formType: import("prop-types").Requireable<string>;
@@ -59,7 +60,6 @@ declare class QmForm extends Component<IProps, IState> {
59
60
  defaultRows: number;
60
61
  isAutoFocus: boolean;
61
62
  isCollapse: boolean;
62
- isFieldsDefine: boolean;
63
63
  isSearchBtn: boolean;
64
64
  onValuesChange: () => void;
65
65
  onFieldsChange: () => void;
@@ -111,11 +111,16 @@ declare class QmForm extends Component<IProps, IState> {
111
111
  type: any;
112
112
  fieldName: any;
113
113
  }): boolean;
114
+ formatFormValue: (values: IFormData) => IFormData;
115
+ getFormAuth(): Promise<void>;
114
116
  INPUT(option: IFormItem): JSXElement;
115
117
  RANGE_INPUT(option: IFormItem): JSXElement;
116
118
  INPUT_NUMBER(option: IFormItem): JSXElement;
117
119
  RANGE_INPUT_NUMBER(option: IFormItem): JSXElement;
118
120
  SEARCH_HELPER(option: IFormItem): JSXElement;
121
+ MULTIPLE_SEARCH_HELPER(option: IFormItem): JSXElement;
122
+ TREE_TABLE_HELPER(option: IFormItem): JSXElement;
123
+ MULTIPLE_TREE_TABLE_HELPER(option: IFormItem): JSXElement;
119
124
  CHECKBOX(option: IFormItem): JSXElement;
120
125
  MULTIPLE_CHECKBOX(option: IFormItem): JSXElement;
121
126
  RADIO(option: IFormItem): JSXElement;
@@ -132,6 +137,7 @@ declare class QmForm extends Component<IProps, IState> {
132
137
  TREE_SELECT(option: IFormItem): JSXElement;
133
138
  MULTIPLE_TREE_SELECT(option: IFormItem): JSXElement;
134
139
  CASCADER(option: IFormItem): JSXElement;
140
+ MULTIPLE_CASCADER(option: IFormItem): JSXElement;
135
141
  CITY_SELECT(option: IFormItem): JSXElement;
136
142
  REGION_SELECT(option: IFormItem): JSXElement;
137
143
  UPLOAD_FILE(option: IFormItem): JSXElement;
@@ -146,6 +152,7 @@ declare class QmForm extends Component<IProps, IState> {
146
152
  createFormLayout(): (JSX.Element | null)[];
147
153
  createSearchButtonLayout(lastCols?: number): JSX.Element | null;
148
154
  createFormButtonLayout(): JSX.Element | null;
155
+ createFieldsDefine: () => JSX.Element;
149
156
  setExpandHandle: (collapse: boolean) => void;
150
157
  valuesChangeHandle: (changedValues: IFormData, allValues: IFormData) => void;
151
158
  fieldsChangeHandle: (changedFields: IFieldData[], allFields: IFieldData[]) => void;