@jiaozhiye/qm-design-react 1.0.0-beta.2 → 1.0.0-beta.20

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 (58) 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 +1 -1
  6. package/lib/countup/src/countup.d.ts +1 -1
  7. package/lib/cropper/src/cropper.d.ts +1 -1
  8. package/lib/divider/src/divider.d.ts +1 -1
  9. package/lib/download/src/download.d.ts +1 -1
  10. package/lib/drawer/src/drawer.d.ts +1 -1
  11. package/lib/drawer/style/index.less +79 -77
  12. package/lib/empty/src/empty.d.ts +1 -1
  13. package/lib/form/src/form-cascader.d.ts +1 -1
  14. package/lib/form/src/form-input-number.d.ts +1 -0
  15. package/lib/form/src/form-input.d.ts +12 -0
  16. package/lib/form/src/form-multiple-search-helper.d.ts +10 -0
  17. package/lib/form/src/form.d.ts +6 -2
  18. package/lib/form/src/types.d.ts +17 -12
  19. package/lib/form/src/utils.d.ts +3 -0
  20. package/lib/form/style/index.less +28 -9
  21. package/lib/index.d.ts +2 -0
  22. package/lib/index.esm.js +30137 -16
  23. package/lib/index.full.js +1 -1
  24. package/lib/index.js +30451 -16
  25. package/lib/modal/src/modal.d.ts +2 -1
  26. package/lib/modal/style/index.less +90 -89
  27. package/lib/print/index.d.ts +3 -0
  28. package/lib/print/src/LodopFuncs.d.ts +1 -0
  29. package/lib/print/src/config.d.ts +6 -0
  30. package/lib/print/src/container.d.ts +14 -0
  31. package/lib/print/src/context.d.ts +6 -0
  32. package/lib/print/src/preview.d.ts +61 -0
  33. package/lib/print/src/print.d.ts +37 -0
  34. package/lib/print/src/setting.d.ts +49 -0
  35. package/lib/print/src/utils.d.ts +5 -0
  36. package/lib/print/style/index.less +175 -0
  37. package/lib/search-helper/src/search-helper.d.ts +1 -0
  38. package/lib/space/src/space.d.ts +1 -1
  39. package/lib/style/index.css +1 -1
  40. package/lib/style/index.less +2 -1
  41. package/lib/table/src/config/index.d.ts +1 -1
  42. package/lib/table/src/context/index.d.ts +2 -1
  43. package/lib/table/src/expandable/index.d.ts +1 -0
  44. package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -0
  45. package/lib/table/src/hooks/useTableCore.d.ts +1 -0
  46. package/lib/table/src/hooks/useTableEffect.d.ts +2 -0
  47. package/lib/table/src/hooks/useTableMemo.d.ts +1 -2
  48. package/lib/table/src/table/props.d.ts +8 -6
  49. package/lib/table/src/table/types.d.ts +5 -6
  50. package/lib/table/style/body.less +12 -3
  51. package/lib/table/style/export.less +1 -1
  52. package/lib/table/style/toper.less +6 -3
  53. package/lib/tinymce/src/index.d.ts +1 -1
  54. package/lib/upload-file/src/upload-file.d.ts +10 -2
  55. package/lib/upload-img/src/cropper-preview.d.ts +2 -0
  56. package/lib/upload-img/src/upload-img.d.ts +2 -0
  57. package/package.json +9 -7
  58. 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;
@@ -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;
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import type { AnyFunction, AnyObject } 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
  };
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ComponentSize } from '../../_utils/types';
3
+ import type { ComponentSize } from '../../_utils/types';
4
4
  import type { DrawerProps } from '../../antd';
5
5
  declare type IProps = DrawerProps & {
6
6
  size?: ComponentSize;
@@ -1,77 +1,79 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-08-05 15:57:45
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-drawer: ~'@{qm-prefix}-drawer';
10
-
11
- .@{prefix-drawer} {
12
- .ant-drawer-header {
13
- display: flex;
14
- align-items: center;
15
- flex-shrink: 0;
16
- height: 44px;
17
- padding: 0 15px;
18
- border-bottom: 1px solid @--border-color-secondary;
19
- .ant-drawer-title {
20
- display: flex;
21
- flex: 1;
22
- align-items: center;
23
- justify-content: space-between;
24
- padding-right: 20px;
25
- .full-screen {
26
- padding: @--padding-md 5px @--padding-md @--padding-md;
27
- color: @--text-color-secondary;
28
- transition: all 0.3s ease;
29
- &:hover {
30
- color: @--text-color;
31
- }
32
- }
33
- }
34
- .ant-drawer-close {
35
- top: auto;
36
- font-size: 17px;
37
- padding: @--padding-md 15px @--padding-md 5px;
38
- }
39
- }
40
- .ant-drawer-body {
41
- padding: @--padding-md;
42
- }
43
- &-spin {
44
- position: absolute;
45
- top: 44px;
46
- left: 0;
47
- right: 0;
48
- bottom: 0;
49
- display: flex;
50
- flex-direction: column;
51
- justify-content: center;
52
- align-items: center;
53
- background-color: rgba(255, 255, 255, 0.65);
54
- z-index: 9999;
55
- .ant-spin-text {
56
- margin-top: 4px;
57
- }
58
- }
59
- // ------ size ------
60
- // 52 48 44
61
- &--lg {
62
- .ant-drawer-header {
63
- height: 48px;
64
- }
65
- .qm-drawer-spin {
66
- top: 48px;
67
- }
68
- }
69
- &--sm {
70
- .ant-drawer-header {
71
- height: 40px;
72
- }
73
- .qm-drawer-spin {
74
- top: 40px;
75
- }
76
- }
77
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-08-05 15:57:45
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-drawer: ~'@{qm-prefix}-drawer';
10
+
11
+ .@{prefix-drawer} {
12
+ .ant-drawer-header {
13
+ display: flex;
14
+ align-items: center;
15
+ flex-shrink: 0;
16
+ height: 44px;
17
+ padding: 0 15px;
18
+ border-bottom: 1px solid @--border-color-secondary;
19
+ .ant-drawer-title {
20
+ display: flex;
21
+ flex: 1;
22
+ align-items: center;
23
+ justify-content: space-between;
24
+ padding-right: 20px;
25
+ .full-screen {
26
+ padding: @--padding-md 5px @--padding-md @--padding-md;
27
+ color: @--text-color-secondary;
28
+ line-height: 1;
29
+ transition: all 0.3s ease;
30
+ &:hover {
31
+ color: @--text-color;
32
+ }
33
+ }
34
+ }
35
+ .ant-drawer-close {
36
+ position: absolute;
37
+ right: -8px;
38
+ font-size: 17px;
39
+ padding: @--padding-md;
40
+ }
41
+ }
42
+ .ant-drawer-body {
43
+ padding: @--padding-md;
44
+ }
45
+ &-spin {
46
+ position: absolute;
47
+ top: 44px;
48
+ left: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ display: flex;
52
+ flex-direction: column;
53
+ justify-content: center;
54
+ align-items: center;
55
+ background-color: rgba(255, 255, 255, 0.65);
56
+ z-index: 9999;
57
+ .ant-spin-text {
58
+ margin-top: 4px;
59
+ }
60
+ }
61
+ // ------ size ------
62
+ // 52 48 44
63
+ &--lg {
64
+ .ant-drawer-header {
65
+ height: 48px;
66
+ }
67
+ .qm-drawer-spin {
68
+ top: 48px;
69
+ }
70
+ }
71
+ &--sm {
72
+ .ant-drawer-header {
73
+ height: 40px;
74
+ }
75
+ .qm-drawer-spin {
76
+ top: 40px;
77
+ }
78
+ }
79
+ }
@@ -1,5 +1,5 @@
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;
@@ -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;
@@ -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 = {
@@ -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,13 @@ declare class QmForm extends Component<IProps, IState> {
111
111
  type: any;
112
112
  fieldName: any;
113
113
  }): boolean;
114
+ getFormAuth(): Promise<void>;
114
115
  INPUT(option: IFormItem): JSXElement;
115
116
  RANGE_INPUT(option: IFormItem): JSXElement;
116
117
  INPUT_NUMBER(option: IFormItem): JSXElement;
117
118
  RANGE_INPUT_NUMBER(option: IFormItem): JSXElement;
118
119
  SEARCH_HELPER(option: IFormItem): JSXElement;
120
+ MULTIPLE_SEARCH_HELPER(option: IFormItem): JSXElement;
119
121
  CHECKBOX(option: IFormItem): JSXElement;
120
122
  MULTIPLE_CHECKBOX(option: IFormItem): JSXElement;
121
123
  RADIO(option: IFormItem): JSXElement;
@@ -132,6 +134,7 @@ declare class QmForm extends Component<IProps, IState> {
132
134
  TREE_SELECT(option: IFormItem): JSXElement;
133
135
  MULTIPLE_TREE_SELECT(option: IFormItem): JSXElement;
134
136
  CASCADER(option: IFormItem): JSXElement;
137
+ MULTIPLE_CASCADER(option: IFormItem): JSXElement;
135
138
  CITY_SELECT(option: IFormItem): JSXElement;
136
139
  REGION_SELECT(option: IFormItem): JSXElement;
137
140
  UPLOAD_FILE(option: IFormItem): JSXElement;
@@ -146,6 +149,7 @@ declare class QmForm extends Component<IProps, IState> {
146
149
  createFormLayout(): (JSX.Element | null)[];
147
150
  createSearchButtonLayout(lastCols?: number): JSX.Element | null;
148
151
  createFormButtonLayout(): JSX.Element | null;
152
+ createFieldsDefine: () => JSX.Element;
149
153
  setExpandHandle: (collapse: boolean) => void;
150
154
  valuesChangeHandle: (changedValues: IFormData, allValues: IFormData) => void;
151
155
  fieldsChangeHandle: (changedFields: IFieldData[], allFields: IFieldData[]) => void;
@@ -11,9 +11,10 @@ export declare const DEFAULT_TRUE_VALUE = "1";
11
11
  export declare const DEFAULT_FALSE_VALUE = "0";
12
12
  export declare type ILabelAlign = 'left' | 'right';
13
13
  export declare type IFormType = 'default' | 'search' | 'onlyShow';
14
- export declare type IFormItemType = 'DIVIDER' | 'INPUT' | 'TEXT_AREA' | 'RANGE_INPUT' | 'INPUT_NUMBER' | 'RANGE_INPUT_NUMBER' | 'CHECKBOX' | 'MULTIPLE_CHECKBOX' | 'RADIO' | 'SWITCH' | 'DATE' | 'RANGE_DATE' | 'TIME' | 'RANGE_TIME' | 'SELECT' | 'MULTIPLE_SELECT' | 'IMMEDIATE' | 'SEARCH_HELPER' | 'TREE_SELECT' | 'MULTIPLE_TREE_SELECT' | 'CASCADER' | 'CITY_SELECT' | 'REGION_SELECT' | 'UPLOAD_FILE' | 'UPLOAD_IMG' | 'TINYMCE';
14
+ export declare type IFormItemType = 'DIVIDER' | 'INPUT' | 'TEXT_AREA' | 'RANGE_INPUT' | 'INPUT_NUMBER' | 'RANGE_INPUT_NUMBER' | 'CHECKBOX' | 'MULTIPLE_CHECKBOX' | 'RADIO' | 'SWITCH' | 'DATE' | 'RANGE_DATE' | 'TIME' | 'RANGE_TIME' | 'SELECT' | 'MULTIPLE_SELECT' | 'IMMEDIATE' | 'SEARCH_HELPER' | 'MULTIPLE_SEARCH_HELPER' | 'TREE_SELECT' | 'MULTIPLE_TREE_SELECT' | 'CASCADER' | 'MULTIPLE_CASCADER' | 'CITY_SELECT' | 'REGION_SELECT' | 'UPLOAD_FILE' | 'UPLOAD_IMG' | 'TINYMCE';
15
15
  export declare const ARRAY_TYPE: IFormItemType[];
16
16
  export declare const BUILT_IN_PLACEMENTS: BuildInPlacements;
17
+ export declare type ISecretType = 'name' | 'phone' | 'IDnumber' | 'bankCard';
17
18
  export declare type IDateType = 'date' | 'datetime' | 'exactdate' | 'week' | 'month' | 'quarter' | 'year';
18
19
  export declare enum EDateType {
19
20
  'date' = "date",
@@ -33,11 +34,7 @@ export declare enum EDateFormat {
33
34
  'quarter' = "YYYY-[Q]Q",
34
35
  'year' = "YYYY"
35
36
  }
36
- export declare enum ETimeType {
37
- 'hour' = "hour",
38
- 'hour-minute' = "hour-minute",
39
- 'hour-minute-second' = "hour-minute-second"
40
- }
37
+ export declare type ITimeType = 'hour' | 'hour-minute' | 'hour-minute-second';
41
38
  export declare enum ETimeFormat {
42
39
  'hour' = "HH",
43
40
  'hour-minute' = "HH:mm",
@@ -61,9 +58,7 @@ export declare type IAuthConfig = {
61
58
  fetch: {
62
59
  api: IFetchFn;
63
60
  params?: IFetchParams;
64
- columnDataKey?: string;
65
- exportDataKey?: string;
66
- printDataKey?: string;
61
+ dataKey?: string;
67
62
  };
68
63
  };
69
64
  export declare type IFormItem = {
@@ -91,9 +86,12 @@ export declare type IFormItem = {
91
86
  prefix?: React.ReactNode;
92
87
  suffix?: React.ReactNode;
93
88
  maxLength?: number;
89
+ toUpper?: boolean;
90
+ secretType?: ISecretType;
94
91
  step?: number;
95
92
  min?: number;
96
93
  max?: number;
94
+ controls?: boolean;
97
95
  precision?: number;
98
96
  formatter?: (value: number | string) => string;
99
97
  parser?: (value: string) => string | number;
@@ -108,23 +106,27 @@ export declare type IFormItem = {
108
106
  minDateTime?: string;
109
107
  maxDateTime?: string;
110
108
  disableds?: [boolean, boolean];
111
- timeType?: ETimeType;
109
+ timeType?: ITimeType;
112
110
  hourStep?: number;
113
111
  minuteStep?: number;
114
112
  secondStep?: number;
115
113
  filterable?: boolean;
116
114
  collapseTags?: boolean;
115
+ maxTagTextLength?: number;
117
116
  openPyt?: boolean;
117
+ hideHeader?: boolean;
118
118
  onlySelect?: boolean;
119
119
  columns?: IColumn[];
120
120
  fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
121
121
  extraAliasMap?: (() => Record<string, string>) | Record<string, string>;
122
122
  multiple?: boolean;
123
123
  maxCount?: number;
124
+ fileTypes?: string[];
125
+ fileSize?: number;
124
126
  onRemove?: (file: any) => void;
125
127
  fixedSize?: [number, number] | undefined;
126
128
  quality?: number;
127
- height?: number | string;
129
+ tinymceHeight?: number | string;
128
130
  };
129
131
  searchHelper?: {
130
132
  filters?: IFormItem[];
@@ -134,6 +136,7 @@ export declare type IFormItem = {
134
136
  rowKey?: ((row: IRecord, index: number) => IRowKey) | IRowKey;
135
137
  webPagination?: boolean;
136
138
  };
139
+ width?: number | string;
137
140
  initialValue?: IFormData;
138
141
  closeRemoteMatch?: boolean;
139
142
  fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
@@ -168,6 +171,7 @@ export declare type IFormItem = {
168
171
  fieldName: string;
169
172
  showLabel?: boolean;
170
173
  }>;
174
+ onCollapse?: (collapse: boolean) => void;
171
175
  };
172
176
  render?: (options: IFormItem, instance: any) => JSXElement;
173
177
  onChange?: (value: ValueOf<IFormData> | boolean, others?: string | Nullable<IFormData>) => void;
@@ -180,6 +184,7 @@ export declare type IFormProps = {
180
184
  initialExtras?: IExtraData;
181
185
  size?: ComponentSize;
182
186
  cols?: number;
187
+ customClass?: string;
183
188
  labelWidth?: number | string;
184
189
  labelAlign?: ILabelAlign;
185
190
  formType?: IFormType;
@@ -207,6 +212,7 @@ export declare const propTypes: {
207
212
  initialExtras: PropTypes.Requireable<object>;
208
213
  size: (props: any, propName: any, componentName: any) => void;
209
214
  cols: PropTypes.Requireable<number>;
215
+ customClass: PropTypes.Requireable<string>;
210
216
  labelWidth: PropTypes.Requireable<string | number>;
211
217
  labelAlign: PropTypes.Requireable<string>;
212
218
  formType: PropTypes.Requireable<string>;
@@ -240,7 +246,6 @@ export declare const defaultProps: {
240
246
  defaultRows: number;
241
247
  isAutoFocus: boolean;
242
248
  isCollapse: boolean;
243
- isFieldsDefine: boolean;
244
249
  isSearchBtn: boolean;
245
250
  onValuesChange: () => void;
246
251
  onFieldsChange: () => void;
@@ -5,3 +5,6 @@ export declare const deepMapList: (list: any[], valueKey: string, textKey: strin
5
5
  export declare const deepFind: (arr: any[], mark: string) => any;
6
6
  export declare const deepFindValues: <T>(arr: T[], str: string, depth?: number) => T[];
7
7
  export declare const deepGetPath: (arr: any[], value: string) => string[] | undefined;
8
+ export declare const formatNumber: (value: string | number) => string;
9
+ export declare const parserNumber: (value: string) => string;
10
+ export declare const secretFormat: (value: string | undefined, type: string) => string;
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-01-10 10:05:49
5
+ * @Last Modified time: 2022-02-28 13:36:58
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -14,12 +14,6 @@
14
14
  &.ant-form-item-with-help {
15
15
  margin-bottom: 0;
16
16
  }
17
- // label
18
- .ant-form-item-label {
19
- label[title=''] {
20
- width: 100%;
21
- }
22
- }
23
17
  // valigator
24
18
  .ant-form-item-explain {
25
19
  .text-overflow-cut();
@@ -30,6 +24,10 @@
30
24
  font-size: @--font-size-sm;
31
25
  line-height: 1;
32
26
  }
27
+ // search
28
+ .ant-input-search > .ant-input-group > .ant-input-group-addon {
29
+ line-height: 1;
30
+ }
33
31
  // textarea
34
32
  .ant-input-textarea-show-count {
35
33
  position: relative;
@@ -47,7 +45,9 @@
47
45
  transform: scale(1.2);
48
46
  }
49
47
  .extra-text {
50
- vertical-align: -0.3em;
48
+ height: 100%;
49
+ display: flex;
50
+ align-items: center;
51
51
  }
52
52
  .extra-overflow-cut {
53
53
  .text-overflow-cut();
@@ -71,12 +71,24 @@
71
71
  .site-input-right:focus {
72
72
  border-left-width: 1px;
73
73
  }
74
+ // select group
75
+ .ant-input-group > .ant-select:first-child {
76
+ z-index: 1;
77
+ .ant-select-selector {
78
+ border-top-right-radius: 0;
79
+ border-bottom-right-radius: 0;
80
+ }
81
+ }
74
82
  }
75
83
  // ------ size ------
76
84
  // 40 32 24
77
85
  &--lg {
78
86
  }
79
87
  &--sm {
88
+ .ant-form-item-label > label,
89
+ .ant-form-item-label .ant-form-item-tooltip {
90
+ font-size: @--font-size-sm;
91
+ }
80
92
  }
81
93
  }
82
94
 
@@ -234,10 +246,17 @@
234
246
  line-height: 1.75;
235
247
  .text-overflow-cut();
236
248
  .handle {
237
- margin: 0 5px;
249
+ padding: 2px;
250
+ color: @--text-color-secondary;
238
251
  cursor: s-resize;
252
+ transform: scale(0.9);
239
253
  }
240
254
  }
241
255
  }
242
256
  }
257
+ &--lg {
258
+ }
259
+ &--sm {
260
+ font-size: @--font-size-sm;
261
+ }
243
262
  }
package/lib/index.d.ts CHANGED
@@ -38,5 +38,7 @@ export type { QmTableProps, QmTableColumn } from './table';
38
38
  export { default as QmTable } from './table';
39
39
  export type { QmSearchHelperProps } from './search-helper';
40
40
  export { default as QmSearchHelper } from './search-helper';
41
+ export type { QmPrintProps } from './print';
42
+ export { default as QmPrint } from './print';
41
43
  export { default as version } from './version';
42
44
  export * from './antd';