linkmore-design 1.0.68 → 1.0.69

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 (276) hide show
  1. package/README.md +11 -7
  2. package/dist/Approval/demos/basic.d.ts +1 -0
  3. package/dist/LmFilter/components/InputFilter.d.ts +2 -2
  4. package/dist/LmFilter/filterFns/index.d.ts +1 -1
  5. package/dist/LmFilter/localization.d.ts +1 -0
  6. package/dist/LmFilter/utils.d.ts +1 -1
  7. package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
  8. package/dist/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  9. package/dist/LmUpload/UploadList/ItemText.d.ts +2 -1
  10. package/dist/LmUpload/UploadList/RenderItem.d.ts +1 -5
  11. package/dist/LmUpload/demos/card.d.ts +2 -0
  12. package/dist/LmUpload/demos/picture.d.ts +2 -0
  13. package/dist/LmUpload/fns/index.d.ts +2 -0
  14. package/dist/LmUpload/utils.d.ts +1 -0
  15. package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  16. package/dist/index.umd.js +1 -1
  17. package/dist/index.umd.min.js +1 -1
  18. package/es/Affix/style/index.css +6 -0
  19. package/es/Alert/style/index.css +6 -0
  20. package/es/Approval/index.js +4 -4
  21. package/es/Approval/style/index.css +18 -4
  22. package/es/AutoComplete/style/index.css +6 -0
  23. package/es/Avatar/style/index.css +6 -0
  24. package/es/Breadcrumb/style/index.css +6 -0
  25. package/es/ButtonTags/style/index.css +6 -0
  26. package/es/Calendar/style/index.css +6 -0
  27. package/es/Card/style/index.css +6 -0
  28. package/es/CardTable/fns/index.js +5 -8
  29. package/es/CardTable/table/TableRoot.js +2 -1
  30. package/es/Carousel/style/index.css +6 -0
  31. package/es/Cascader/style/index.css +6 -0
  32. package/es/CkFilter/complexFilter/drawer.js +1 -4
  33. package/es/CkFilter/complexFilter/saveModal.js +5 -7
  34. package/es/CkFilter/components/CustomModal.js +2 -3
  35. package/es/CkFilter/components/filterTypes.js +1 -3
  36. package/es/CkFilter/components/modal.js +2 -5
  37. package/es/CkFilter/components/modalBack.js +2 -3
  38. package/es/CkFilter/customFilter/drawer.js +6 -11
  39. package/es/CkFilter/style/index.css +6 -0
  40. package/es/Col/style/index.css +6 -0
  41. package/es/Collapse/style/index.css +6 -0
  42. package/es/Comment/style/index.css +6 -0
  43. package/es/CustomTableOption/style/index.css +6 -0
  44. package/es/CustomerService/style/index.css +6 -0
  45. package/es/DatePicker/style/index.css +6 -0
  46. package/es/Descriptions/style/index.css +6 -0
  47. package/es/Drawer/style/index.css +6 -0
  48. package/es/Dropdown/style/index.css +6 -0
  49. package/es/EditTable/style/index.css +6 -0
  50. package/es/Empty/style/index.css +6 -0
  51. package/es/Filter/baseFilter/Popover.js +0 -1
  52. package/es/Filter/baseFilter/ToggleFilter.js +0 -1
  53. package/es/Filter/edit/editFilter.js +2 -6
  54. package/es/Filter/remember.js +0 -1
  55. package/es/Filter/style/index.css +6 -0
  56. package/es/Form/style/index.css +6 -0
  57. package/es/Grid/style/index.css +6 -0
  58. package/es/Icon/style/index.css +6 -0
  59. package/es/IconFont/font/iconfont.js +1 -1
  60. package/es/Image/style/index.css +6 -0
  61. package/es/Input/style/index.css +6 -0
  62. package/es/InputNumber/style/index.css +6 -0
  63. package/es/Layout/style/index.css +6 -0
  64. package/es/LeftTable/style/index.css +6 -0
  65. package/es/List/style/index.css +6 -0
  66. package/es/LmEditTable/style/index.css +6 -0
  67. package/es/LmFilter/complexFilter/drawer.js +2 -7
  68. package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
  69. package/es/LmFilter/components/CascaderFilter.js +0 -1
  70. package/es/LmFilter/components/DropdownFIlter.js +17 -19
  71. package/es/LmFilter/components/InputFilter.js +1 -2
  72. package/es/LmFilter/components/SelectFilter.js +2 -2
  73. package/es/LmFilter/components/index.js +1 -1
  74. package/es/LmFilter/customFilter/drawer.js +7 -25
  75. package/es/LmFilter/customFilter/saveModal.js +2 -3
  76. package/es/LmFilter/customFilter/valueDrawer.js +2 -5
  77. package/es/LmFilter/filterFns/index.js +3 -5
  78. package/es/LmFilter/localization.d.ts +1 -0
  79. package/es/LmFilter/localization.js +2 -1
  80. package/es/LmFilter/utils.js +39 -22
  81. package/es/LmFilter/wrapper/FilterRoot.js +0 -2
  82. package/es/LmSelect/style/index.css +6 -0
  83. package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
  84. package/es/LmSelect/useCheckboxOptions.js +4 -3
  85. package/es/LmTable/Table.js +0 -1
  86. package/es/LmTable/autosize.js +0 -3
  87. package/es/LmTable/style/index.css +6 -0
  88. package/es/LmUpload/LmUpload.js +44 -21
  89. package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  90. package/es/LmUpload/UploadList/ItemPicture.js +14 -8
  91. package/es/LmUpload/UploadList/ItemPictureCard.js +18 -9
  92. package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
  93. package/es/LmUpload/UploadList/ItemText.js +12 -7
  94. package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
  95. package/es/LmUpload/UploadList/RenderItem.js +3 -3
  96. package/es/LmUpload/UploadList/index.js +9 -4
  97. package/es/LmUpload/body/Progress.js +2 -2
  98. package/es/LmUpload/body/UploadCore.js +10 -5
  99. package/es/LmUpload/body/UploadPicture.js +4 -4
  100. package/es/LmUpload/fns/index.d.ts +2 -0
  101. package/es/LmUpload/fns/index.js +61 -16
  102. package/es/LmUpload/utils.d.ts +1 -0
  103. package/es/LmUpload/utils.js +14 -1
  104. package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  105. package/es/LmUpload/wrapper/UploadContainer.js +19 -3
  106. package/es/LmUpload/wrapper/UploadRoot.js +30 -3
  107. package/es/LmUpload/wrapper/UploadWrapper.js +4 -8
  108. package/es/LmUpload/wrapper/reducer.js +2 -1
  109. package/es/Mentions/style/index.css +6 -0
  110. package/es/Menu/style/index.css +6 -0
  111. package/es/Modal/style/index.css +6 -0
  112. package/es/PageHeader/style/index.css +6 -0
  113. package/es/Pagination/style/index.css +6 -0
  114. package/es/PopTable/style/index.css +6 -0
  115. package/es/Popconfirm/style/index.css +6 -0
  116. package/es/Popover/style/index.css +6 -0
  117. package/es/ProTable/Table.js +0 -1
  118. package/es/ProTable/autosize.js +0 -3
  119. package/es/ProTable/style/index.css +6 -0
  120. package/es/Progress/style/index.css +6 -0
  121. package/es/QuickMenu/style/index.css +6 -0
  122. package/es/Rate/style/index.css +6 -0
  123. package/es/Row/style/index.css +6 -0
  124. package/es/Segmented/style/index.css +6 -0
  125. package/es/Select/style/index.css +6 -0
  126. package/es/Slider/style/index.css +6 -0
  127. package/es/Space/style/index.css +6 -0
  128. package/es/Spin/style/index.css +6 -0
  129. package/es/Statistic/style/index.css +6 -0
  130. package/es/Steps/style/index.css +6 -0
  131. package/es/Switch/style/index.css +6 -0
  132. package/es/Table/style/index.css +6 -0
  133. package/es/Tabs/style/index.css +6 -0
  134. package/es/Tag/style/index.css +6 -0
  135. package/es/TimePicker/style/index.css +6 -0
  136. package/es/Timeline/style/index.css +6 -0
  137. package/es/Tooltip/style/index.css +6 -0
  138. package/es/Transfer/style/index.css +6 -0
  139. package/es/Tree/style/index.css +6 -0
  140. package/es/TreeSelect/style/index.css +6 -0
  141. package/es/Typography/style/index.css +6 -0
  142. package/es/Upload/style/index.css +6 -0
  143. package/es/message/style/index.css +6 -0
  144. package/es/notification/style/index.css +6 -0
  145. package/es/styles/main.css +6 -0
  146. package/es/styles/resetAntd.css +3 -0
  147. package/lib/Affix/style/index.css +6 -0
  148. package/lib/Alert/style/index.css +6 -0
  149. package/lib/Approval/index.js +4 -4
  150. package/lib/Approval/style/index.css +18 -4
  151. package/lib/AutoComplete/style/index.css +6 -0
  152. package/lib/Avatar/style/index.css +6 -0
  153. package/lib/Breadcrumb/style/index.css +6 -0
  154. package/lib/ButtonTags/style/index.css +6 -0
  155. package/lib/Calendar/style/index.css +6 -0
  156. package/lib/Card/style/index.css +6 -0
  157. package/lib/CardTable/fns/index.js +5 -8
  158. package/lib/CardTable/table/TableRoot.js +2 -1
  159. package/lib/Carousel/style/index.css +6 -0
  160. package/lib/Cascader/style/index.css +6 -0
  161. package/lib/CkFilter/complexFilter/drawer.js +1 -4
  162. package/lib/CkFilter/complexFilter/saveModal.js +5 -7
  163. package/lib/CkFilter/components/CustomModal.js +2 -3
  164. package/lib/CkFilter/components/filterTypes.js +1 -3
  165. package/lib/CkFilter/components/modal.js +2 -5
  166. package/lib/CkFilter/components/modalBack.js +2 -3
  167. package/lib/CkFilter/customFilter/drawer.js +6 -11
  168. package/lib/CkFilter/style/index.css +6 -0
  169. package/lib/Col/style/index.css +6 -0
  170. package/lib/Collapse/style/index.css +6 -0
  171. package/lib/Comment/style/index.css +6 -0
  172. package/lib/CustomTableOption/style/index.css +6 -0
  173. package/lib/CustomerService/style/index.css +6 -0
  174. package/lib/DatePicker/style/index.css +6 -0
  175. package/lib/Descriptions/style/index.css +6 -0
  176. package/lib/Drawer/style/index.css +6 -0
  177. package/lib/Dropdown/style/index.css +6 -0
  178. package/lib/EditTable/style/index.css +6 -0
  179. package/lib/Empty/style/index.css +6 -0
  180. package/lib/Filter/baseFilter/Popover.js +0 -1
  181. package/lib/Filter/baseFilter/ToggleFilter.js +0 -1
  182. package/lib/Filter/edit/editFilter.js +2 -6
  183. package/lib/Filter/remember.js +0 -1
  184. package/lib/Filter/style/index.css +6 -0
  185. package/lib/Form/style/index.css +6 -0
  186. package/lib/Grid/style/index.css +6 -0
  187. package/lib/Icon/style/index.css +6 -0
  188. package/lib/IconFont/font/iconfont.js +1 -1
  189. package/lib/Image/style/index.css +6 -0
  190. package/lib/Input/style/index.css +6 -0
  191. package/lib/InputNumber/style/index.css +6 -0
  192. package/lib/Layout/style/index.css +6 -0
  193. package/lib/LeftTable/style/index.css +6 -0
  194. package/lib/List/style/index.css +6 -0
  195. package/lib/LmEditTable/style/index.css +6 -0
  196. package/lib/LmFilter/complexFilter/drawer.js +2 -7
  197. package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
  198. package/lib/LmFilter/components/CascaderFilter.js +0 -1
  199. package/lib/LmFilter/components/DropdownFIlter.js +17 -19
  200. package/lib/LmFilter/components/InputFilter.js +1 -2
  201. package/lib/LmFilter/components/SelectFilter.js +2 -2
  202. package/lib/LmFilter/components/index.js +1 -1
  203. package/lib/LmFilter/customFilter/drawer.js +7 -25
  204. package/lib/LmFilter/customFilter/saveModal.js +2 -3
  205. package/lib/LmFilter/customFilter/valueDrawer.js +2 -5
  206. package/lib/LmFilter/filterFns/index.js +3 -5
  207. package/lib/LmFilter/localization.d.ts +1 -0
  208. package/lib/LmFilter/localization.js +4 -2
  209. package/lib/LmFilter/utils.js +39 -22
  210. package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
  211. package/lib/LmSelect/style/index.css +6 -0
  212. package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
  213. package/lib/LmSelect/useCheckboxOptions.js +7 -5
  214. package/lib/LmTable/Table.js +0 -1
  215. package/lib/LmTable/autosize.js +0 -3
  216. package/lib/LmTable/style/index.css +6 -0
  217. package/lib/LmUpload/LmUpload.js +43 -21
  218. package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  219. package/lib/LmUpload/UploadList/ItemPicture.js +14 -8
  220. package/lib/LmUpload/UploadList/ItemPictureCard.js +18 -9
  221. package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
  222. package/lib/LmUpload/UploadList/ItemText.js +12 -7
  223. package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
  224. package/lib/LmUpload/UploadList/RenderItem.js +3 -3
  225. package/lib/LmUpload/UploadList/index.js +9 -4
  226. package/lib/LmUpload/body/Progress.js +2 -2
  227. package/lib/LmUpload/body/UploadCore.js +15 -8
  228. package/lib/LmUpload/body/UploadPicture.js +4 -4
  229. package/lib/LmUpload/fns/index.d.ts +2 -0
  230. package/lib/LmUpload/fns/index.js +61 -16
  231. package/lib/LmUpload/utils.d.ts +1 -0
  232. package/lib/LmUpload/utils.js +16 -1
  233. package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  234. package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
  235. package/lib/LmUpload/wrapper/UploadRoot.js +30 -3
  236. package/lib/LmUpload/wrapper/UploadWrapper.js +5 -12
  237. package/lib/LmUpload/wrapper/reducer.js +2 -1
  238. package/lib/Mentions/style/index.css +6 -0
  239. package/lib/Menu/style/index.css +6 -0
  240. package/lib/Modal/style/index.css +6 -0
  241. package/lib/PageHeader/style/index.css +6 -0
  242. package/lib/Pagination/style/index.css +6 -0
  243. package/lib/PopTable/style/index.css +6 -0
  244. package/lib/Popconfirm/style/index.css +6 -0
  245. package/lib/Popover/style/index.css +6 -0
  246. package/lib/ProTable/Table.js +0 -1
  247. package/lib/ProTable/autosize.js +0 -3
  248. package/lib/ProTable/style/index.css +6 -0
  249. package/lib/Progress/style/index.css +6 -0
  250. package/lib/QuickMenu/style/index.css +6 -0
  251. package/lib/Rate/style/index.css +6 -0
  252. package/lib/Row/style/index.css +6 -0
  253. package/lib/Segmented/style/index.css +6 -0
  254. package/lib/Select/style/index.css +6 -0
  255. package/lib/Slider/style/index.css +6 -0
  256. package/lib/Space/style/index.css +6 -0
  257. package/lib/Spin/style/index.css +6 -0
  258. package/lib/Statistic/style/index.css +6 -0
  259. package/lib/Steps/style/index.css +6 -0
  260. package/lib/Switch/style/index.css +6 -0
  261. package/lib/Table/style/index.css +6 -0
  262. package/lib/Tabs/style/index.css +6 -0
  263. package/lib/Tag/style/index.css +6 -0
  264. package/lib/TimePicker/style/index.css +6 -0
  265. package/lib/Timeline/style/index.css +6 -0
  266. package/lib/Tooltip/style/index.css +6 -0
  267. package/lib/Transfer/style/index.css +6 -0
  268. package/lib/Tree/style/index.css +6 -0
  269. package/lib/TreeSelect/style/index.css +6 -0
  270. package/lib/Typography/style/index.css +6 -0
  271. package/lib/Upload/style/index.css +6 -0
  272. package/lib/message/style/index.css +6 -0
  273. package/lib/notification/style/index.css +6 -0
  274. package/lib/styles/main.css +6 -0
  275. package/lib/styles/resetAntd.css +3 -0
  276. package/package.json +2 -1
package/README.md CHANGED
@@ -34,7 +34,9 @@
34
34
  ### 📦 安装
35
35
 
36
36
  ```bash
37
- npm install git+http://git.codefr.com/UFX/UFX.SCM.linkDesign.git --save
37
+ yarn add linkmore-design --save
38
+ or
39
+ npm install linkmore-design --save
38
40
  ```
39
41
 
40
42
  ### 组件调试
@@ -48,7 +50,8 @@ npm install git+http://git.codefr.com/UFX/UFX.SCM.linkDesign.git --save
48
50
  npm run dumi:build
49
51
  ```
50
52
 
51
- ### 组件目录(后续通过脚手架创建)
53
+ ### 组件目录
54
+ 如果要新建组件: 通过 npm run create 来创建新组件
52
55
 
53
56
  ```
54
57
  ├── style // 样式目录
@@ -64,18 +67,19 @@ npm install git+http://git.codefr.com/UFX/UFX.SCM.linkDesign.git --save
64
67
  ```
65
68
  ### md文档书写规范
66
69
 
67
- 加紧输出当中
68
70
  ### 🔨 示例
69
71
 
70
72
  ```bash
71
- import { ProTable, Filter } from 'linkDesign'
73
+ import { Button, Input } from 'linkmore-design'
72
74
  const App = () => (
73
75
  <>
74
- <Filter>PRESS ME</Filter>
75
- <ProTable />
76
+ <Input></Input>
77
+ <Button />
76
78
  </>
77
79
  );
78
80
  ```
79
81
 
80
82
  ### 组件问题
81
- 钉钉 call 红丸&零榆
83
+ 钉钉 call 乔克&零榆&古月
84
+
85
+ 如果您有新组件或发现了任何bug,可以飞书找到我们,或者向我们的仓库提Pr,万分感谢!!!
@@ -1,2 +1,3 @@
1
+ import './style.less';
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,4 +1,4 @@
1
- export function InputFilter({ instance }: {
1
+ export default InputFilter;
2
+ declare function InputFilter({ instance }: {
2
3
  instance: any;
3
4
  }): JSX.Element;
4
- export default InputFilter;
@@ -11,7 +11,7 @@ declare function useCoreOptions({ state, dispatch, props }: {
11
11
  props: any;
12
12
  }): {
13
13
  CoreMethods: {
14
- onQuery: ({ basicFilter, complexFilter, customFilter, basicQuery, type }?: any) => void;
14
+ onQuery: ({ basicFilter, complexFilter, customFilter, basicQuery, type, }?: any) => void;
15
15
  setCustomFilter: (val: any) => void;
16
16
  };
17
17
  RefMethods: {
@@ -12,3 +12,4 @@ export declare const DefaultLocalization: {
12
12
  }[];
13
13
  };
14
14
  };
15
+ export default DefaultLocalization;
@@ -6,6 +6,6 @@ export function getRanges(): {
6
6
  近一月: string[];
7
7
  近一年: string[];
8
8
  };
9
- export function getFlatItem(filterValues: any, originArr: any, type?: string): any[];
9
+ export function getFlatItem(getItem: any, checkedValue: any, type?: string): any[];
10
10
  export function getFilterShow(basicFilter: any, dataSource: any): {};
11
11
  export function getFilterShowQuery(basicQuery: any, dataSource: any): any[];
@@ -2,3 +2,4 @@ export declare const useCheckboxOptions: (options: any, { value, onChange }: {
2
2
  value?: any[];
3
3
  onChange: any;
4
4
  }, filter?: string) => JSX.Element;
5
+ export default useCheckboxOptions;
@@ -1,4 +1,5 @@
1
- declare const PictureItem: ({ file }: {
1
+ declare const PictureItem: ({ file, instance }: {
2
2
  file: any;
3
+ instance: any;
3
4
  }) => JSX.Element;
4
5
  export default PictureItem;
@@ -1,4 +1,5 @@
1
- declare const TextItem: ({ file }: {
1
+ declare const TextItem: ({ file, instance }: {
2
2
  file: any;
3
+ instance: any;
3
4
  }) => JSX.Element;
4
5
  export default TextItem;
@@ -1,6 +1,2 @@
1
- export interface RenderCellProps<T = any> {
2
- type?: string;
3
- instance: any;
4
- }
5
- declare const RenderCell: (props: RenderCellProps) => any;
1
+ declare const RenderCell: (props: any) => any;
6
2
  export default RenderCell;
@@ -0,0 +1,2 @@
1
+ export default Basic;
2
+ declare function Basic(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default Basic;
2
+ declare function Basic(): JSX.Element;
@@ -8,6 +8,8 @@ declare const useCoreOptions: ({ state, dispatch, props }: {
8
8
  getUploadStatus: () => {
9
9
  uploading: boolean;
10
10
  };
11
+ remove: (file: any) => Promise<void>;
12
+ preview: (file: any) => void;
11
13
  };
12
14
  RefMethods: {
13
15
  getState: () => any;
@@ -1,3 +1,4 @@
1
+ export declare function getIsHas(val: any): boolean;
1
2
  export declare function isClassComponent(component: any): any;
2
3
  export declare function isExoticComponent(component: any): boolean;
3
4
  export declare function isReactComponent(component: any): any;
@@ -1,4 +1,5 @@
1
- declare const LmUploadContainer: ({ instance }: {
1
+ import * as React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ instance }: {
2
3
  instance: any;
3
- }) => JSX.Element;
4
- export default LmUploadContainer;
4
+ }) => any>;
5
+ export default _default;
package/dist/index.umd.js CHANGED
@@ -84652,7 +84652,7 @@
84652
84652
 
84653
84653
  var renderOptions = React.useMemo(function () {
84654
84654
  return options.filter(function (v) {
84655
- return onStringSearch(filter, v.label);
84655
+ return !v.disabled && onStringSearch(filter, v.label);
84656
84656
  });
84657
84657
  }, [options, filter]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
84658
84658