@jiaozhiye/qm-design-react 1.4.0-beta.2 → 1.4.0-beta.21

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 (73) hide show
  1. package/lib/_utils/types.d.ts +7 -1
  2. package/lib/_utils/util.d.ts +0 -1
  3. package/lib/anchor/src/anchor-nav.d.ts +1 -1
  4. package/lib/anchor/src/anchor.d.ts +3 -1
  5. package/lib/anchor/style/index.less +61 -21
  6. package/lib/antd/compact.less +11 -0
  7. package/lib/antd/index.less +11 -1
  8. package/lib/button/src/button.d.ts +6 -5
  9. package/lib/collapse/src/collapse.d.ts +1 -0
  10. package/lib/countup/style/index.less +22 -22
  11. package/lib/divider/style/index.less +54 -54
  12. package/lib/drawer/style/index.less +2 -2
  13. package/lib/form/src/context.d.ts +4 -1
  14. package/lib/form/src/form-cascader.d.ts +1 -1
  15. package/lib/form/src/form-checkbox-group.d.ts +1 -1
  16. package/lib/form/src/form-multiple-tree-table-helper.d.ts +2 -2
  17. package/lib/form/src/form-radio.d.ts +1 -1
  18. package/lib/form/src/form-select.d.ts +1 -1
  19. package/lib/form/src/form-tree-select.d.ts +1 -1
  20. package/lib/form/src/form.d.ts +14 -14
  21. package/lib/form/src/types.d.ts +25 -15
  22. package/lib/form/src/utils.d.ts +7 -3
  23. package/lib/form/style/index.less +19 -8
  24. package/lib/hooks/useDebounce.d.ts +3 -0
  25. package/lib/index.esm.js +2 -2
  26. package/lib/index.full.js +1 -1
  27. package/lib/index.js +2 -2
  28. package/lib/locale/index.js +5 -5
  29. package/lib/locale/lang/en.d.ts +4 -0
  30. package/lib/locale/lang/en.js +6 -2
  31. package/lib/locale/lang/zh-cn.d.ts +4 -0
  32. package/lib/locale/lang/zh-cn.js +6 -2
  33. package/lib/modal/style/index.less +2 -2
  34. package/lib/print/src/LodopFuncs.d.ts +1 -1
  35. package/lib/print/src/preview.d.ts +1 -1
  36. package/lib/print/src/print.d.ts +1 -1
  37. package/lib/print/style/index.less +175 -175
  38. package/lib/range-table-helper/style/index.less +5 -1
  39. package/lib/search-helper/style/index.less +1 -1
  40. package/lib/search-tree/src/search-tree.d.ts +6 -0
  41. package/lib/search-tree/style/index.less +14 -1
  42. package/lib/spin/style/index.less +3 -5
  43. package/lib/split/style/index.less +1 -1
  44. package/lib/style/compact.css +645 -685
  45. package/lib/style/compact.less +4 -3
  46. package/lib/style/compact.min.css +1 -1
  47. package/lib/style/index.css +109 -58
  48. package/lib/style/index.less +36 -36
  49. package/lib/style/index.min.css +1 -1
  50. package/lib/style/mixins/reset.less +1 -2
  51. package/lib/style/themes/compact.less +3 -280
  52. package/lib/style/themes/default.less +2 -1
  53. package/lib/table/src/context/index.d.ts +3 -3
  54. package/lib/table/src/edit/InputNumber.d.ts +2 -0
  55. package/lib/table/src/hooks/useImperativeMethod.d.ts +2 -1
  56. package/lib/table/src/hooks/useTableCore.d.ts +1 -0
  57. package/lib/table/src/hooks/useTableEffect.d.ts +3 -0
  58. package/lib/table/src/hooks/useTableLayout.d.ts +2 -2
  59. package/lib/table/src/table/props.d.ts +15 -9
  60. package/lib/table/src/table/types.d.ts +28 -10
  61. package/lib/table/src/utils/index.d.ts +3 -2
  62. package/lib/table/style/clipboard.less +1 -0
  63. package/lib/table/style/export.less +1 -1
  64. package/lib/table/style/fast-search.less +3 -2
  65. package/lib/table/style/size.less +1 -0
  66. package/lib/table/style/table.less +374 -374
  67. package/lib/tabs/src/tab-pane.d.ts +1 -0
  68. package/lib/tabs/src/tabs.d.ts +6 -1
  69. package/lib/tree-helper/style/index.less +1 -1
  70. package/lib/tree-table-helper/style/index.less +1 -1
  71. package/lib/upload-file/src/upload-file.d.ts +4 -9
  72. package/package.json +6 -7
  73. package/lib/form/src/form-item-layout.d.ts +0 -3
@@ -3,6 +3,7 @@ import type { TabPaneProps } from '../../antd';
3
3
  declare type IProps = TabPaneProps;
4
4
  export declare type QmTabPaneProps = IProps;
5
5
  declare class QmTabPane extends Component<IProps> {
6
+ static displayName: string;
6
7
  render(): JSX.Element;
7
8
  }
8
9
  export default QmTabPane;
@@ -1,6 +1,11 @@
1
1
  import React, { Component } from 'react';
2
+ import type { IAuth } from '../../_utils/types';
2
3
  import type { TabsProps } from '../../antd';
3
- declare type IProps = TabsProps;
4
+ declare type IProps = TabsProps & {
5
+ authConfig?: {
6
+ fieldList?: IAuth[];
7
+ };
8
+ };
4
9
  export declare type QmTabsProps = IProps;
5
10
  declare class QmTabs extends Component<IProps> {
6
11
  static TabPane: React.ClassicComponentClass<import("rc-tabs/lib/TabPanelList/TabPane").TabPaneProps>;
@@ -9,7 +9,7 @@
9
9
  @prefix-tree-helper: ~'@{qm-prefix}-tree-helper';
10
10
 
11
11
  .@{prefix-tree-helper}--wrapper {
12
- .reset-component();
12
+ .reset-container();
13
13
  height: 100%;
14
14
  .ant-tree {
15
15
  .filter-node {
@@ -9,7 +9,7 @@
9
9
  @prefix-tree-table-helper: ~'@{qm-prefix}-tree-table-helper';
10
10
 
11
11
  .@{prefix-tree-table-helper}--wrapper {
12
- .reset-component();
12
+ .reset-container();
13
13
  height: 100%;
14
14
  .split-pane {
15
15
  overflow: hidden;
@@ -1,18 +1,14 @@
1
- import React, { Component } from 'react';
2
- import type { UploadProps } from '../../antd';
1
+ import { Component } from 'react';
2
+ import type { UploadProps, ButtonProps } from '../../antd';
3
3
  declare type IProps = UploadProps & {
4
4
  fileTypes?: string[];
5
5
  fileSize?: number;
6
6
  button?: {
7
7
  text?: string;
8
- icon?: React.ReactNode;
9
- };
10
- };
11
- declare type IState = {
12
- loading: boolean;
8
+ } & ButtonProps;
13
9
  };
14
10
  export declare type QmUploadFileProps = IProps;
15
- declare class QmUploadFile extends Component<IProps, IState> {
11
+ declare class QmUploadFile extends Component<IProps> {
16
12
  static defaultProps: {
17
13
  name: string;
18
14
  multiple: boolean;
@@ -21,7 +17,6 @@ declare class QmUploadFile extends Component<IProps, IState> {
21
17
  downloadIcon: JSX.Element;
22
18
  };
23
19
  };
24
- state: IState;
25
20
  beforeUpload: (file: any, fileList: any) => Promise<any>;
26
21
  downloadFile(url: string, fileName?: string): Promise<void>;
27
22
  render(): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.4.0-beta.2",
3
+ "version": "1.4.0-beta.21",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",
@@ -56,7 +56,7 @@
56
56
  "axios": "^0.27.2",
57
57
  "big.js": "^6.2.1",
58
58
  "china-area-data": "^5.0.1",
59
- "classnames": "^2.3.1",
59
+ "classnames": "^2.3.2",
60
60
  "copy-to-clipboard": "^3.3.2",
61
61
  "cropperjs": "^1.5.12",
62
62
  "dayjs": "1.x",
@@ -66,12 +66,12 @@
66
66
  "memoize-one": "^6.0.0",
67
67
  "omit.js": "^2.0.2",
68
68
  "prop-types": "^15.8.0",
69
- "react-countup": "^6.1.0",
69
+ "react-countup": "^6.4.0",
70
70
  "react-draggable": "^4.4.5",
71
- "react-sortablejs": "^6.0.0",
71
+ "react-sortablejs": "^6.1.4",
72
72
  "resize-observer-polyfill": "^1.5.1",
73
73
  "scroll-into-view-if-needed": "^2.2.28",
74
- "sortablejs": "^1.14.0"
74
+ "sortablejs": "^1.15.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/cli": "^7.18.6",
@@ -125,11 +125,10 @@
125
125
  "rollup": "^2.79.0",
126
126
  "rollup-plugin-terser": "^7.0.2",
127
127
  "style-loader": "^3.3.0",
128
- "style-resources-loader": "^1.5.0",
129
128
  "ts-loader": "^9.3.0",
130
129
  "typescript": "^4.7.4",
131
130
  "webpack": "^5.75.0",
132
- "webpack-cli": "^4.10.0",
131
+ "webpack-cli": "^5.0.0",
133
132
  "webpack-dev-server": "^4.11.0",
134
133
  "webpack-node-externals": "^3.0.0"
135
134
  },
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const FormItemLayout: React.FC<any>;
3
- export default FormItemLayout;