@jiaozhiye/qm-design-react 1.6.1 → 1.6.3

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 (139) hide show
  1. package/lib/_utils/resize-event.d.ts +2 -2
  2. package/lib/_utils/types.d.ts +15 -15
  3. package/lib/anchor/src/anchor-item.d.ts +3 -3
  4. package/lib/anchor/src/anchor-nav.d.ts +2 -2
  5. package/lib/anchor/src/anchor.d.ts +5 -5
  6. package/lib/antd/TimePicker.d.ts +1 -1
  7. package/lib/button/src/button.d.ts +4 -4
  8. package/lib/collapse/src/collapse.d.ts +2 -2
  9. package/lib/config-provider/context.d.ts +1 -1
  10. package/lib/config-provider/src/config-provider.d.ts +4 -4
  11. package/lib/copy-to-clipboard/src/copy-to-clipboard.d.ts +2 -2
  12. package/lib/countup/src/countup.d.ts +3 -3
  13. package/lib/cropper/src/cropper.d.ts +4 -4
  14. package/lib/divider/src/divider.d.ts +4 -4
  15. package/lib/download/src/download.d.ts +9 -9
  16. package/lib/drawer/src/drawer.d.ts +6 -6
  17. package/lib/empty/src/empty.d.ts +3 -3
  18. package/lib/form/src/context.d.ts +1 -1
  19. package/lib/form/src/fields-filter.d.ts +4 -4
  20. package/lib/form/src/form-cascader.d.ts +3 -3
  21. package/lib/form/src/form-checkbox-group.d.ts +3 -3
  22. package/lib/form/src/form-checkbox.d.ts +2 -2
  23. package/lib/form/src/form-city-select.d.ts +2 -2
  24. package/lib/form/src/form-date.d.ts +2 -2
  25. package/lib/form/src/form-divider.d.ts +2 -2
  26. package/lib/form/src/form-immediate.d.ts +3 -3
  27. package/lib/form/src/form-input-number.d.ts +2 -2
  28. package/lib/form/src/form-input.d.ts +2 -2
  29. package/lib/form/src/form-item-view.d.ts +1 -1
  30. package/lib/form/src/form-multiple-search-helper.d.ts +3 -3
  31. package/lib/form/src/form-multiple-tree-table-helper.d.ts +3 -3
  32. package/lib/form/src/form-radio.d.ts +3 -3
  33. package/lib/form/src/form-range-date.d.ts +2 -2
  34. package/lib/form/src/form-range-input-number.d.ts +2 -2
  35. package/lib/form/src/form-range-input.d.ts +2 -2
  36. package/lib/form/src/form-range-search-helper.d.ts +3 -3
  37. package/lib/form/src/form-range-time.d.ts +2 -2
  38. package/lib/form/src/form-rate.d.ts +2 -2
  39. package/lib/form/src/form-region-select.d.ts +2 -2
  40. package/lib/form/src/form-search-helper.d.ts +3 -3
  41. package/lib/form/src/form-select.d.ts +3 -3
  42. package/lib/form/src/form-switch.d.ts +2 -2
  43. package/lib/form/src/form-text-area.d.ts +2 -2
  44. package/lib/form/src/form-time.d.ts +2 -2
  45. package/lib/form/src/form-tinymce.d.ts +2 -2
  46. package/lib/form/src/form-tree-select.d.ts +3 -3
  47. package/lib/form/src/form-tree-table-helper.d.ts +3 -3
  48. package/lib/form/src/form-upload-file.d.ts +2 -2
  49. package/lib/form/src/form-upload-img.d.ts +2 -2
  50. package/lib/form/src/form.d.ts +14 -13
  51. package/lib/form/src/types.d.ts +28 -25
  52. package/lib/form/style/index.less +1 -1
  53. package/lib/hooks/useDebounce.d.ts +1 -1
  54. package/lib/index.esm.js +2 -2
  55. package/lib/index.full.js +1 -1
  56. package/lib/index.js +2 -2
  57. package/lib/locale/index.d.ts +2 -2
  58. package/lib/locale/index.js +5 -5
  59. package/lib/modal/src/modal.d.ts +6 -6
  60. package/lib/print/src/container.d.ts +2 -2
  61. package/lib/print/src/context.d.ts +1 -1
  62. package/lib/print/src/preview.d.ts +3 -3
  63. package/lib/print/src/print.d.ts +6 -6
  64. package/lib/print/src/setting.d.ts +3 -3
  65. package/lib/range-table-helper/src/range-table-helper.d.ts +3 -3
  66. package/lib/search-helper/src/search-helper.d.ts +3 -3
  67. package/lib/search-tree/src/search-tree.d.ts +3 -3
  68. package/lib/space/src/space.d.ts +3 -3
  69. package/lib/spin/src/spin.d.ts +4 -4
  70. package/lib/split/src/context.d.ts +1 -1
  71. package/lib/split/src/resize-bar.d.ts +1 -1
  72. package/lib/split/src/split-pane.d.ts +2 -2
  73. package/lib/split/src/split.d.ts +2 -2
  74. package/lib/style/index.css +2 -2
  75. package/lib/style/index.min.css +1 -1
  76. package/lib/table/src/alert/index.d.ts +1 -1
  77. package/lib/table/src/body/index.d.ts +1 -1
  78. package/lib/table/src/body/useMergeCell.d.ts +2 -1
  79. package/lib/table/src/clipboard/index.d.ts +1 -1
  80. package/lib/table/src/clipboard/setting.d.ts +1 -1
  81. package/lib/table/src/column-filter/index.d.ts +1 -1
  82. package/lib/table/src/context/index.d.ts +1 -1
  83. package/lib/table/src/edit/InputNumber.d.ts +1 -1
  84. package/lib/table/src/edit/index.d.ts +1 -1
  85. package/lib/table/src/expandable/all.d.ts +1 -1
  86. package/lib/table/src/expandable/index.d.ts +1 -1
  87. package/lib/table/src/export/define.d.ts +1 -1
  88. package/lib/table/src/export/index.d.ts +2 -2
  89. package/lib/table/src/export/setting.d.ts +1 -1
  90. package/lib/table/src/export/useExport.d.ts +2 -2
  91. package/lib/table/src/fast-search/index.d.ts +1 -1
  92. package/lib/table/src/fast-search/setting.d.ts +1 -1
  93. package/lib/table/src/filter/index.d.ts +1 -1
  94. package/lib/table/src/footer/index.d.ts +1 -1
  95. package/lib/table/src/full-screen/index.d.ts +1 -1
  96. package/lib/table/src/group-summary/index.d.ts +1 -1
  97. package/lib/table/src/group-summary/result.d.ts +1 -1
  98. package/lib/table/src/group-summary/setting.d.ts +1 -1
  99. package/lib/table/src/header/index.d.ts +1 -1
  100. package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -1
  101. package/lib/table/src/hooks/useTableCore.d.ts +1 -1
  102. package/lib/table/src/hooks/useTableEffect.d.ts +1 -1
  103. package/lib/table/src/hooks/useTableLayout.d.ts +1 -1
  104. package/lib/table/src/hooks/useTableMemo.d.ts +1 -1
  105. package/lib/table/src/hooks/useTableRef.d.ts +2 -2
  106. package/lib/table/src/hooks/useTableState.d.ts +1 -1
  107. package/lib/table/src/import/SelectFile.d.ts +1 -1
  108. package/lib/table/src/import/index.d.ts +1 -1
  109. package/lib/table/src/import/setting.d.ts +1 -1
  110. package/lib/table/src/manager/index.d.ts +1 -1
  111. package/lib/table/src/pager/index.d.ts +1 -1
  112. package/lib/table/src/print/index.d.ts +1 -1
  113. package/lib/table/src/reload/index.d.ts +1 -1
  114. package/lib/table/src/resizable/index.d.ts +1 -1
  115. package/lib/table/src/select-collection/index.d.ts +1 -1
  116. package/lib/table/src/select-collection/result.d.ts +1 -1
  117. package/lib/table/src/selection/all.d.ts +1 -1
  118. package/lib/table/src/selection/index.d.ts +1 -1
  119. package/lib/table/src/store/index.d.ts +2 -2
  120. package/lib/table/src/super-search/index.d.ts +1 -1
  121. package/lib/table/src/super-search/result.d.ts +1 -1
  122. package/lib/table/src/table/index.d.ts +1 -1
  123. package/lib/table/src/table/props.d.ts +5 -5
  124. package/lib/table/src/table/types.d.ts +45 -45
  125. package/lib/table/src/toolbox/index.d.ts +1 -1
  126. package/lib/tabs/src/tab-pane.d.ts +4 -4
  127. package/lib/tabs/src/tabs.d.ts +3 -3
  128. package/lib/tinymce/src/Events.d.ts +2 -2
  129. package/lib/tinymce/src/ScriptLoader.d.ts +1 -1
  130. package/lib/tinymce/src/Utils.d.ts +1 -1
  131. package/lib/tinymce/src/components/Editor.d.ts +1 -1
  132. package/lib/tinymce/src/components/EditorPropTypes.d.ts +2 -2
  133. package/lib/tinymce/src/index.d.ts +3 -3
  134. package/lib/tree-helper/src/tree-helper.d.ts +2 -2
  135. package/lib/tree-table-helper/src/tree-table-helper.d.ts +3 -3
  136. package/lib/upload-file/src/upload-file.d.ts +5 -5
  137. package/lib/upload-img/src/cropper-preview.d.ts +4 -4
  138. package/lib/upload-img/src/upload-img.d.ts +5 -5
  139. package/package.json +19 -19
@@ -1,8 +1,8 @@
1
1
  import 'dayjs/locale/zh-cn';
2
- export declare type TranslatePair = {
2
+ export type TranslatePair = {
3
3
  [key: string]: string | string[] | TranslatePair;
4
4
  };
5
- export declare type Language = {
5
+ export type Language = {
6
6
  name: string;
7
7
  qm: TranslatePair;
8
8
  };
@@ -1,8 +1,8 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-02-08 16:48:18
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-08-14 13:42:21
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-02-08 16:48:18
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-08-14 13:42:21
6
6
  */
7
7
  import dayjs from 'dayjs';
8
8
  import defaultLang from './lang/zh-cn';
@@ -2,8 +2,8 @@ import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import type { ComponentSize } from '../../_utils/types';
4
4
  import type { ModalProps } from '../../antd';
5
- declare type EventType = React.MouseEvent<HTMLElement>;
6
- declare type IProps = ModalProps & {
5
+ type EventType = React.MouseEvent<HTMLElement>;
6
+ type IProps = ModalProps & {
7
7
  size?: ComponentSize;
8
8
  height?: number | string;
9
9
  loading?: boolean;
@@ -14,7 +14,7 @@ declare type IProps = ModalProps & {
14
14
  onClosed?: () => void;
15
15
  onFullChange?: (value: boolean) => void;
16
16
  };
17
- declare type IState = {
17
+ type IState = {
18
18
  fullscreen: boolean;
19
19
  spinning: boolean;
20
20
  sloading: boolean;
@@ -30,7 +30,7 @@ declare type IState = {
30
30
  y: number;
31
31
  };
32
32
  };
33
- export declare type QmModalProps = IProps;
33
+ export type QmModalProps = IProps;
34
34
  declare class QmModal extends Component<IProps, IState> {
35
35
  static contextType: React.Context<import("../../config-provider/context").IConfig>;
36
36
  static propTypes: {
@@ -59,9 +59,9 @@ declare class QmModal extends Component<IProps, IState> {
59
59
  onStart: (ev: any, uiData: any) => void;
60
60
  toggleHandle: (ev: any) => void;
61
61
  afterVisibleChange: () => void;
62
- renderTitle(): JSX.Element;
62
+ renderTitle(): React.JSX.Element;
63
63
  START_LOADING: () => void;
64
64
  STOP_LOADING: () => void;
65
- render(): JSX.Element;
65
+ render(): React.JSX.Element;
66
66
  }
67
67
  export default QmModal;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- declare type IProps = {
2
+ type IProps = {
3
3
  templateRender?: () => React.Component;
4
4
  directPrint?: boolean;
5
5
  };
6
- declare type ContainerRef = {
6
+ type ContainerRef = {
7
7
  createPreviewDom: () => void;
8
8
  createExportHtml: () => void;
9
9
  createPrintHtml: (pageNumber?: number) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type IPreviewContext = {
2
+ export type IPreviewContext = {
3
3
  $$preview: any;
4
4
  };
5
5
  declare const PreviewContext: import("react").Context<IPreviewContext | undefined>;
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import type { IDict } from '../../_utils/types';
3
- declare type IProps = {
3
+ type IProps = {
4
4
  templateRender?: () => React.Component;
5
5
  uniqueKey?: string;
6
6
  defaultConfig?: Record<string, any>;
@@ -8,7 +8,7 @@ declare type IProps = {
8
8
  closeAfterPrint?: boolean;
9
9
  onClose?: () => void;
10
10
  };
11
- declare type IState = {
11
+ type IState = {
12
12
  visible: boolean;
13
13
  form: {
14
14
  printerName: number;
@@ -56,6 +56,6 @@ declare class Preview extends Component<IProps, IState> {
56
56
  createStyle: () => string;
57
57
  doPrint: (__html__: any) => void;
58
58
  doExport: (__html__: any) => void;
59
- render(): JSX.Element;
59
+ render(): React.JSX.Element;
60
60
  }
61
61
  export default Preview;
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import type { ComponentSize } from '../../_utils/types';
4
4
  import type { ButtonProps } from '../../antd';
5
- declare type IProps = ButtonProps & {
5
+ type IProps = ButtonProps & {
6
6
  size?: ComponentSize;
7
7
  templateRender?: () => React.Component;
8
8
  uniqueKey?: string;
@@ -11,11 +11,11 @@ declare type IProps = ButtonProps & {
11
11
  closeAfterPrint?: boolean;
12
12
  click?: () => void;
13
13
  };
14
- declare type IState = {
14
+ type IState = {
15
15
  visible: boolean;
16
16
  loading: boolean;
17
17
  };
18
- export declare type QmPrintProps = IProps;
18
+ export type QmPrintProps = IProps;
19
19
  declare class QmPrint extends Component<IProps, IState> {
20
20
  static propTypes: {
21
21
  size: (props: any, propName: any, componentName: any) => void;
@@ -24,14 +24,14 @@ declare class QmPrint extends Component<IProps, IState> {
24
24
  static defaultProps: {
25
25
  preview: boolean;
26
26
  type: string;
27
- icon: JSX.Element;
27
+ icon: React.JSX.Element;
28
28
  };
29
29
  static contextType: React.Context<import("../../config-provider/context").IConfig>;
30
30
  previewRef: React.RefObject<any>;
31
31
  state: IState;
32
32
  clickHandle: () => Promise<void>;
33
- createRender: () => JSX.Element | null;
33
+ createRender: () => React.JSX.Element | null;
34
34
  DO_PRINT: () => Promise<void>;
35
- render(): JSX.Element;
35
+ render(): React.JSX.Element;
36
36
  }
37
37
  export default QmPrint;
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import { QmForm, QmFormItem } from '../../index';
3
- declare type IProps = {
3
+ type IProps = {
4
4
  setting: {
5
5
  distance: {
6
6
  left: number;
@@ -17,7 +17,7 @@ declare type IProps = {
17
17
  onChange: (data: IProps['setting']) => void;
18
18
  onClose: () => void;
19
19
  };
20
- declare type IState = {
20
+ type IState = {
21
21
  formList: QmFormItem[];
22
22
  };
23
23
  declare class Setting extends Component<IProps, IState> {
@@ -44,6 +44,6 @@ declare class Setting extends Component<IProps, IState> {
44
44
  state: IState;
45
45
  confirmHandle: () => Promise<void>;
46
46
  cancelHandle: () => void;
47
- render(): JSX.Element;
47
+ render(): React.JSX.Element;
48
48
  }
49
49
  export default Setting;
@@ -2,13 +2,13 @@ import React from 'react';
2
2
  import type { IFormItem, IFormData } from '../../form/src/types';
3
3
  import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
4
4
  import type { ComponentSize } from '../../_utils/types';
5
- declare type ITableConfig = {
5
+ type ITableConfig = {
6
6
  fetch?: IFetch;
7
7
  columns?: IColumn[];
8
8
  rowKey?: ((row: IRecord, index: number) => IRowKey) | IRowKey;
9
9
  webPagination?: boolean;
10
10
  };
11
- declare type IProps = {
11
+ type IProps = {
12
12
  size?: ComponentSize;
13
13
  uniqueKey?: string;
14
14
  initialValue?: IFormData;
@@ -17,6 +17,6 @@ declare type IProps = {
17
17
  table?: ITableConfig;
18
18
  onClose: (data: IRecord[] | null) => void;
19
19
  };
20
- export declare type QmRangeTableHelperProps = IProps;
20
+ export type QmRangeTableHelperProps = IProps;
21
21
  declare const RangeTableHelper: React.FC<IProps>;
22
22
  export default RangeTableHelper;
@@ -2,13 +2,13 @@ import React from 'react';
2
2
  import type { IFormItem, IFormData } from '../../form/src/types';
3
3
  import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
4
4
  import type { ComponentSize } from '../../_utils/types';
5
- declare type ITableConfig = {
5
+ type ITableConfig = {
6
6
  fetch?: IFetch;
7
7
  columns?: IColumn[];
8
8
  rowKey?: ((row: IRecord, index: number) => IRowKey) | IRowKey;
9
9
  webPagination?: boolean;
10
10
  };
11
- declare type IProps = {
11
+ type IProps = {
12
12
  size?: ComponentSize;
13
13
  uniqueKey?: string;
14
14
  initialValue?: IFormData;
@@ -19,6 +19,6 @@ declare type IProps = {
19
19
  table?: ITableConfig;
20
20
  onClose: (data: IRecord | null, keys?: IRowKey[]) => void;
21
21
  };
22
- export declare type QmSearchHelperProps = IProps;
22
+ export type QmSearchHelperProps = IProps;
23
23
  declare const SearchHelper: React.FC<IProps>;
24
24
  export default SearchHelper;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ComponentSize } from '../../_utils/types';
3
3
  import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
4
4
  import type { TreeProps } from '../../antd';
5
- declare type IProps = TreeProps & {
5
+ type IProps = TreeProps & {
6
6
  size?: ComponentSize;
7
7
  filterable?: boolean;
8
8
  multiple?: boolean;
@@ -25,12 +25,12 @@ declare type IProps = TreeProps & {
25
25
  onCheckChange?: (records: IRecord[] | IRecord) => void;
26
26
  onDragChange?: (info: any, data: IRecord) => void;
27
27
  };
28
- declare type SearchTreeRef = {
28
+ type SearchTreeRef = {
29
29
  INSERT_RECORD: (parentKey: React.Key, record: IRecord) => void;
30
30
  REMOVE_RECORD: (key: React.Key) => void;
31
31
  UPDATE_RECORD: (key: React.Key, record: IRecord) => void;
32
32
  };
33
- export declare type QmSearchTreeProps = IProps;
33
+ export type QmSearchTreeProps = IProps;
34
34
  declare const SearchTree: React.ForwardRefExoticComponent<TreeProps<import("rc-tree/lib/interface").DataNode> & {
35
35
  size?: ComponentSize | undefined;
36
36
  filterable?: boolean | undefined;
@@ -1,12 +1,12 @@
1
1
  import React, { Component } from 'react';
2
2
  import type { ComponentSize } from '../../_utils/types';
3
3
  import type { SpaceProps } from '../../antd';
4
- declare type IProps = Omit<SpaceProps, 'size'> & {
4
+ type IProps = Omit<SpaceProps, 'size'> & {
5
5
  size?: ComponentSize | number;
6
6
  };
7
- export declare type QmSpaceProps = IProps;
7
+ export type QmSpaceProps = IProps;
8
8
  declare class QmSpace extends Component<IProps> {
9
9
  static contextType: React.Context<import("../../config-provider/context").IConfig>;
10
- render(): JSX.Element;
10
+ render(): React.JSX.Element;
11
11
  }
12
12
  export default QmSpace;
@@ -1,14 +1,14 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import type { SpinProps } from '../../antd';
3
- declare type IProps = SpinProps & {
3
+ type IProps = SpinProps & {
4
4
  fullHeight?: boolean;
5
5
  };
6
- export declare type QmSpinProps = IProps;
6
+ export type QmSpinProps = IProps;
7
7
  declare class QmSpin extends Component<IProps> {
8
8
  static defaultProps: {
9
9
  tip: string;
10
10
  fullHeight: boolean;
11
11
  };
12
- render(): JSX.Element;
12
+ render(): React.JSX.Element;
13
13
  }
14
14
  export default QmSpin;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type ISplitContext = {
2
+ export type ISplitContext = {
3
3
  splitRef: React.RefObject<HTMLDivElement>;
4
4
  direction: 'horizontal' | 'vertical';
5
5
  dragging: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type IProps = {
2
+ type IProps = {
3
3
  minValues: number[];
4
4
  onDragChange: (value: boolean) => void;
5
5
  onDragging: (value: number) => void;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type IProps = {
2
+ type IProps = {
3
3
  min?: number | string;
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
6
  };
7
- export declare type QmSplitPaneProps = IProps;
7
+ export type QmSplitPaneProps = IProps;
8
8
  declare const QmSplitPane: React.ForwardRefExoticComponent<IProps & {
9
9
  offset?: string | undefined;
10
10
  } & React.RefAttributes<any>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { QmSplitPaneProps } from './split-pane';
3
- declare type IProps = {
3
+ type IProps = {
4
4
  direction?: 'horizontal' | 'vertical';
5
5
  defaultValue?: number | string;
6
6
  uniqueKey?: string;
@@ -11,7 +11,7 @@ declare type IProps = {
11
11
  onDragEnd?: (offset: number) => void;
12
12
  children?: React.ReactNode;
13
13
  };
14
- export declare type QmSplitProps = IProps;
14
+ export type QmSplitProps = IProps;
15
15
  declare const QmSplit: React.FC<IProps> & {
16
16
  Pane: React.FunctionComponent<QmSplitPaneProps>;
17
17
  };
@@ -28316,10 +28316,10 @@ table {
28316
28316
  border-top-right-radius: 0;
28317
28317
  border-bottom-right-radius: 0;
28318
28318
  }
28319
- .qm-form .ant-form-item .ant-select-multiple .ant-select-selection-overflow-item-rest {
28319
+ .qm-form .ant-form-item .ant-select-multiple:not(.ant-select-disabled) .ant-select-selection-overflow-item-rest {
28320
28320
  cursor: pointer;
28321
28321
  }
28322
- .qm-form .ant-form-item .ant-select-multiple .ant-select-selection-overflow-item-rest * {
28322
+ .qm-form .ant-form-item .ant-select-multiple:not(.ant-select-disabled) .ant-select-selection-overflow-item-rest * {
28323
28323
  pointer-events: none;
28324
28324
  }
28325
28325
  .qm-form--sm .ant-form-item {