linkmore-design 1.1.33 → 1.1.35

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 (98) hide show
  1. package/CHANGELOG.md +1237 -1237
  2. package/LICENSE +21 -21
  3. package/README.md +84 -84
  4. package/dist/CardTable/LmCardTable.d.ts +1 -1
  5. package/dist/CardTable/table/TableRoot.d.ts +1 -1
  6. package/dist/LmEditTable/components/DraggableContainer.d.ts +3 -1
  7. package/dist/LmEditTable/components/index.d.ts +3 -1
  8. package/dist/LmEditTable/rowSort/DndContainerRow.d.ts +3 -1
  9. package/dist/LmFilter/wrapper/FilterRoot.d.ts +1 -1
  10. package/dist/LmTable/Table.d.ts +1 -1
  11. package/dist/LmTable/context.d.ts +1 -1
  12. package/dist/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  13. package/dist/index.umd.js +8567 -24960
  14. package/dist/index.umd.min.js +22 -42
  15. package/dist/variables.css +178 -178
  16. package/es/ButtonTags/ButtonTags.js +5 -5
  17. package/es/CardTable/hooks/usePagination.js +4 -4
  18. package/es/Col/README.md.old +22 -22
  19. package/es/CropImg/utils.js +7 -7
  20. package/es/CropImg/wrapper/Container.js +3 -3
  21. package/es/CustomerService/README.md.old +15 -15
  22. package/es/EditTable/EditTable.js +8 -8
  23. package/es/EditTable/README.md.old +66 -66
  24. package/es/EnlargeImg/README.md.old +21 -21
  25. package/es/Filter/README.md.old +144 -144
  26. package/es/Filter/baseFilter/index.js +3 -3
  27. package/es/Filter/edit/editFilter.js +4 -4
  28. package/es/Filter/index.js +6 -6
  29. package/es/IconFont/font/iconfont.css +1831 -1831
  30. package/es/IconSelect/iconJson.json +2935 -2935
  31. package/es/LmEditTable/EditTable.js +15 -13
  32. package/es/LmEditTable/components/DraggableContainer.d.ts +3 -1
  33. package/es/LmEditTable/components/DraggableContainer.js +6 -2
  34. package/es/LmEditTable/components/index.d.ts +3 -1
  35. package/es/LmEditTable/rowSort/DndContainerRow.d.ts +3 -1
  36. package/es/LmEditTable/rowSort/DndContainerRow.js +49 -14
  37. package/es/LmFilter/complexFilter/valueDrawer.js +6 -6
  38. package/es/LmFilter/components/DropdownFIlter.js +8 -8
  39. package/es/LmFilter/components/index.js +3 -3
  40. package/es/LmFilter/customFilter/drawer.js +3 -3
  41. package/es/LmFilter/customFilter/saveModal.js +3 -3
  42. package/es/LmFilter/customFilter/valueDrawer.js +6 -6
  43. package/es/LmFilter/utils.js +5 -5
  44. package/es/LmTable/Table.js +5 -5
  45. package/es/LmTable/detectElementResize.js +11 -11
  46. package/es/LmTable/util.js +60 -60
  47. package/es/LmUpload/UploadList/index.js +1 -1
  48. package/es/LmUpload/components/Preview.js +1 -1
  49. package/es/LmUpload/fns/index.js +48 -29
  50. package/es/Result/index.d.ts +4 -4
  51. package/es/Row/README.md.old +22 -22
  52. package/es/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  53. package/es/message/index.d.ts +5 -5
  54. package/es/notification/index.js +3 -3
  55. package/es/services/newRequest.js +3 -3
  56. package/es/styles/variables.css +178 -178
  57. package/lib/ButtonTags/ButtonTags.js +5 -5
  58. package/lib/CardTable/hooks/usePagination.js +4 -4
  59. package/lib/Col/README.md.old +22 -22
  60. package/lib/CropImg/utils.js +7 -7
  61. package/lib/CropImg/wrapper/Container.js +3 -3
  62. package/lib/CustomerService/README.md.old +15 -15
  63. package/lib/EditTable/EditTable.js +8 -8
  64. package/lib/EditTable/README.md.old +66 -66
  65. package/lib/EnlargeImg/README.md.old +21 -21
  66. package/lib/Filter/README.md.old +144 -144
  67. package/lib/Filter/baseFilter/index.js +3 -3
  68. package/lib/Filter/edit/editFilter.js +4 -4
  69. package/lib/Filter/index.js +6 -6
  70. package/lib/IconFont/font/iconfont.css +1831 -1831
  71. package/lib/IconSelect/iconJson.json +2935 -2935
  72. package/lib/LmEditTable/EditTable.js +15 -13
  73. package/lib/LmEditTable/components/DraggableContainer.d.ts +3 -1
  74. package/lib/LmEditTable/components/DraggableContainer.js +6 -2
  75. package/lib/LmEditTable/components/index.d.ts +3 -1
  76. package/lib/LmEditTable/rowSort/DndContainerRow.d.ts +3 -1
  77. package/lib/LmEditTable/rowSort/DndContainerRow.js +49 -12
  78. package/lib/LmFilter/complexFilter/valueDrawer.js +6 -6
  79. package/lib/LmFilter/components/DropdownFIlter.js +8 -8
  80. package/lib/LmFilter/components/index.js +3 -3
  81. package/lib/LmFilter/customFilter/drawer.js +3 -3
  82. package/lib/LmFilter/customFilter/saveModal.js +3 -3
  83. package/lib/LmFilter/customFilter/valueDrawer.js +6 -6
  84. package/lib/LmFilter/utils.js +5 -5
  85. package/lib/LmTable/Table.js +5 -5
  86. package/lib/LmTable/detectElementResize.js +11 -11
  87. package/lib/LmTable/util.js +60 -60
  88. package/lib/LmUpload/UploadList/index.js +1 -1
  89. package/lib/LmUpload/components/Preview.js +1 -1
  90. package/lib/LmUpload/fns/index.js +47 -28
  91. package/lib/Result/index.d.ts +4 -4
  92. package/lib/Row/README.md.old +22 -22
  93. package/lib/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  94. package/lib/message/index.d.ts +5 -5
  95. package/lib/notification/index.js +3 -3
  96. package/lib/services/newRequest.js +3 -3
  97. package/lib/styles/variables.css +178 -178
  98. package/package.json +146 -146
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 nowThen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 nowThen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- ### 技术栈
2
-
3
- 涉及的技术栈均采用当前最新的版本和语法:
4
-
5
- - 🌈 提炼自企业级中后台产品的交互语言和视觉风格。
6
- - 📦 开箱即用的高质量 React 组件。
7
- - ⚙️ 全链路开发和设计工具体系。
8
- - 🎨 深入每个细节的主题定制能力。
9
-
10
- ### 目录结构
11
-
12
- ```
13
- ├── build // webpack配置
14
- │   ├── webpack.common.js // webpack通用配置
15
- │   ├── webpack.dev.js // webpack开发环境配置
16
- │   └── webpack.prod.js // webpack生产环境配置
17
- ├── dist // 打包输出目录
18
- ├── lib // 打包输出目录
19
- ├── es // 打包输出目录
20
- ├── src // 组件目录
21
- │   └── index.js // 项目汇总文件
22
- ├── .babelrc // babel配置
23
- ├── .fatherrc // 打包配置
24
- ├── .editorconfig // 项目格式配置
25
- ├── .eslintrc.js // ESLint配置
26
- ├── .gitignore // git 忽略配置
27
- ├── .postcssrc.js // postcss配置
28
- ├── package.json // 依赖包配置
29
- └── README.md // 项目说明
30
- ```
31
-
32
- ## CLI 构建命令
33
-
34
- ### 📦 安装
35
-
36
- ```bash
37
- yarn add linkmore-design --save
38
- or
39
- npm install linkmore-design --save
40
- ```
41
-
42
- ### 组件调试
43
-
44
- ```bash
45
- npm run dumi
46
- ```
47
- ### 组件文档生成
48
-
49
- ```bash
50
- npm run dumi:build
51
- ```
52
-
53
- ### 组件目录
54
- 如果要新建组件: 通过 npm run create 来创建新组件
55
-
56
- ```
57
- ├── style // 样式目录
58
- │   ├──index.js // 负责引入其他样式
59
- │   ├── index.less // 主要样式
60
- │   └── other.less // 其他样式(例如组件子组件样式)
61
- ├── index.js // 组件
62
- ├── demos // 组件调试demo(在README.md中引入)
63
- │   ├── basic.js // 基本使用
64
- │   ├── other1.js // 其他方式使用1
65
- │   ├── other2.js // 其他方式使用2
66
- ├── README.md // 组件使用文档
67
- ```
68
- ### md文档书写规范
69
-
70
- ### 🔨 示例
71
-
72
- ```bash
73
- import { Button, Input } from 'linkmore-design'
74
- const App = () => (
75
- <>
76
- <Input></Input>
77
- <Button />
78
- </>
79
- );
80
- ```
81
-
82
- ### 组件问题
83
- 钉钉 call 乔克&零榆&古月
84
-
1
+ ### 技术栈
2
+
3
+ 涉及的技术栈均采用当前最新的版本和语法:
4
+
5
+ - 🌈 提炼自企业级中后台产品的交互语言和视觉风格。
6
+ - 📦 开箱即用的高质量 React 组件。
7
+ - ⚙️ 全链路开发和设计工具体系。
8
+ - 🎨 深入每个细节的主题定制能力。
9
+
10
+ ### 目录结构
11
+
12
+ ```
13
+ ├── build // webpack配置
14
+ │   ├── webpack.common.js // webpack通用配置
15
+ │   ├── webpack.dev.js // webpack开发环境配置
16
+ │   └── webpack.prod.js // webpack生产环境配置
17
+ ├── dist // 打包输出目录
18
+ ├── lib // 打包输出目录
19
+ ├── es // 打包输出目录
20
+ ├── src // 组件目录
21
+ │   └── index.js // 项目汇总文件
22
+ ├── .babelrc // babel配置
23
+ ├── .fatherrc // 打包配置
24
+ ├── .editorconfig // 项目格式配置
25
+ ├── .eslintrc.js // ESLint配置
26
+ ├── .gitignore // git 忽略配置
27
+ ├── .postcssrc.js // postcss配置
28
+ ├── package.json // 依赖包配置
29
+ └── README.md // 项目说明
30
+ ```
31
+
32
+ ## CLI 构建命令
33
+
34
+ ### 📦 安装
35
+
36
+ ```bash
37
+ yarn add linkmore-design --save
38
+ or
39
+ npm install linkmore-design --save
40
+ ```
41
+
42
+ ### 组件调试
43
+
44
+ ```bash
45
+ npm run dumi
46
+ ```
47
+ ### 组件文档生成
48
+
49
+ ```bash
50
+ npm run dumi:build
51
+ ```
52
+
53
+ ### 组件目录
54
+ 如果要新建组件: 通过 npm run create 来创建新组件
55
+
56
+ ```
57
+ ├── style // 样式目录
58
+ │   ├──index.js // 负责引入其他样式
59
+ │   ├── index.less // 主要样式
60
+ │   └── other.less // 其他样式(例如组件子组件样式)
61
+ ├── index.js // 组件
62
+ ├── demos // 组件调试demo(在README.md中引入)
63
+ │   ├── basic.js // 基本使用
64
+ │   ├── other1.js // 其他方式使用1
65
+ │   ├── other2.js // 其他方式使用2
66
+ ├── README.md // 组件使用文档
67
+ ```
68
+ ### md文档书写规范
69
+
70
+ ### 🔨 示例
71
+
72
+ ```bash
73
+ import { Button, Input } from 'linkmore-design'
74
+ const App = () => (
75
+ <>
76
+ <Input></Input>
77
+ <Button />
78
+ </>
79
+ );
80
+ ```
81
+
82
+ ### 组件问题
83
+ 钉钉 call 乔克&零榆&古月
84
+
85
85
  如果您有新组件或发现了任何bug,可以飞书找到我们,或者向我们的仓库提Pr,万分感谢!!!
@@ -1,4 +1,4 @@
1
- declare var _default: React.ForwardRefExoticComponent<Pick<{
1
+ declare const _default: React.ForwardRefExoticComponent<Pick<{
2
2
  [x: string]: any;
3
3
  cellKey?: string;
4
4
  type?: string;
@@ -1,3 +1,3 @@
1
- declare var _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
1
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
2
2
  export default _default;
3
3
  import React from "react";
@@ -1,4 +1,4 @@
1
- declare const DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, ...props }: {
1
+ declare const DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, tableHeight, columns, ...props }: {
2
2
  [x: string]: any;
3
3
  keys: any;
4
4
  onSortEnd: any;
@@ -6,5 +6,7 @@ declare const DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options,
6
6
  rowKey: any;
7
7
  options: any;
8
8
  tableWidth: any;
9
+ tableHeight: any;
10
+ columns: any;
9
11
  }) => JSX.Element;
10
12
  export default DraggableContainer;
@@ -4,7 +4,7 @@ import QuickOpetate from './QuickOpetate';
4
4
  import CustomizeRenderEmpty from './customRenderEmpty';
5
5
  export { DraggableContainer, BottomOpetateComponent, QuickOpetate, CustomizeRenderEmpty };
6
6
  declare const _default: {
7
- DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, ...props }: {
7
+ DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, tableHeight, columns, ...props }: {
8
8
  [x: string]: any;
9
9
  keys: any;
10
10
  onSortEnd: any;
@@ -12,6 +12,8 @@ declare const _default: {
12
12
  rowKey: any;
13
13
  options: any;
14
14
  tableWidth: any;
15
+ tableHeight: any;
16
+ columns: any;
15
17
  }) => JSX.Element;
16
18
  };
17
19
  export default _default;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ children, options, move, rowKey, items, tableWidth }: {
2
+ declare const _default: React.MemoExoticComponent<({ children, options, move, rowKey, items, tableWidth, tableHeight, columns }: {
3
3
  children: any;
4
4
  options: any;
5
5
  move: any;
6
6
  rowKey: any;
7
7
  items: any;
8
8
  tableWidth: any;
9
+ tableHeight: any;
10
+ columns: any;
9
11
  }) => JSX.Element>;
10
12
  export default _default;
@@ -1,3 +1,3 @@
1
- declare var _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
1
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
2
2
  export default _default;
3
3
  import React from "react";
@@ -1,4 +1,4 @@
1
- declare var _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<React.RefAttributes<any>>>;
1
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<React.RefAttributes<any>>>;
2
2
  export default _default;
3
3
  import React from "react";
4
4
  export const Summary: typeof import("rc-table/lib/Footer/Summary").default;
@@ -1,2 +1,2 @@
1
- declare var _default: import("react").Context<any>;
1
+ declare const _default: import("react").Context<any>;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- declare const _default: (callback: () => void, conditions: any[]) => void;
2
1
  /** Similar with `useEffect` but only trigger after mounted */
2
+ declare const _default: (callback: () => void, conditions: any[]) => void;
3
3
  export default _default;