linkmore-design 1.0.51 → 1.0.55

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 (325) hide show
  1. package/dist/{Notification → Affix}/demos/basic.d.ts +0 -0
  2. package/dist/Affix/index.d.ts +54 -0
  3. package/dist/{Notification → Affix}/style/index.d.ts +0 -0
  4. package/dist/Affix/utils.d.ts +15 -0
  5. package/dist/Alert/ErrorBoundary.d.ts +22 -0
  6. package/dist/{Notification/demos/button.d.ts → Alert/demos/basic.d.ts} +0 -0
  7. package/dist/{Notification/demos/icon.d.ts → Alert/demos/visible.d.ts} +0 -0
  8. package/dist/Alert/index.d.ts +41 -0
  9. package/dist/Alert/style/index.d.ts +1 -0
  10. package/dist/Button/style/index.d.ts +1 -1
  11. package/dist/CardTable/fns/index.d.ts +3 -3
  12. package/dist/CardTable/{toolbar → pager}/TablePagination.d.ts +0 -0
  13. package/dist/CardTable/pager/index.d.ts +3 -0
  14. package/dist/IconFont/index.d.ts +1 -1
  15. package/dist/LmEditTable/style/index.d.ts +1 -1
  16. package/dist/LmFilter/LmFilter.d.ts +3 -0
  17. package/dist/LmFilter/baseFilter/fuzzySearch.d.ts +4 -0
  18. package/dist/LmFilter/baseFilter/index.d.ts +3 -0
  19. package/dist/LmFilter/clearFilter/index.d.ts +3 -0
  20. package/dist/LmFilter/complexFilter/index.d.ts +2 -0
  21. package/dist/LmFilter/components/CascaderFilter.d.ts +5 -0
  22. package/dist/LmFilter/components/CheckboxFilter.d.ts +5 -0
  23. package/dist/LmFilter/components/DateFilter.d.ts +5 -0
  24. package/dist/LmFilter/components/DropdownFIlter.d.ts +3 -0
  25. package/dist/LmFilter/components/EmptyFilter.d.ts +2 -0
  26. package/dist/LmFilter/components/InputFilter.d.ts +4 -0
  27. package/dist/LmFilter/components/InputSearchClose.d.ts +3 -0
  28. package/dist/LmFilter/components/SelectFilter.d.ts +5 -0
  29. package/dist/LmFilter/components/index.d.ts +3 -0
  30. package/dist/LmFilter/customFilter/index.d.ts +2 -0
  31. package/dist/LmFilter/demos/basic.d.ts +2 -0
  32. package/dist/LmFilter/filterFns/index.d.ts +12 -0
  33. package/dist/LmFilter/hooks/index.d.ts +1 -0
  34. package/dist/LmFilter/hooks/useDelayedFn.d.ts +2 -0
  35. package/dist/LmFilter/index.d.ts +2 -0
  36. package/dist/LmFilter/style/index.d.ts +1 -0
  37. package/dist/LmFilter/utils.d.ts +9 -0
  38. package/dist/LmFilter/wrapper/Filter.d.ts +3 -0
  39. package/dist/LmFilter/wrapper/FilterContainer.d.ts +3 -0
  40. package/dist/LmFilter/wrapper/FilterRoot.d.ts +3 -0
  41. package/dist/LmFilter/wrapper/FilterWrapper.d.ts +3 -0
  42. package/dist/QuickMenu/demos/basic.d.ts +2 -0
  43. package/dist/QuickMenu/index.d.ts +14 -0
  44. package/dist/QuickMenu/style/index.d.ts +1 -0
  45. package/dist/Tag/demos/ExigencyTag.d.ts +2 -0
  46. package/dist/Tag/index.d.ts +4 -0
  47. package/dist/Upload/demos/picture-little.d.ts +3 -0
  48. package/dist/Upload/index.d.ts +5 -1
  49. package/dist/_util/domTarget.d.ts +7 -0
  50. package/dist/_util/getDataOrAriaProps.d.ts +1 -0
  51. package/dist/_util/reactNode.d.ts +7 -0
  52. package/dist/_util/throttleByAnimationFrame.d.ts +8 -0
  53. package/dist/index.d.ts +2 -1
  54. package/dist/index.umd.js +3453 -317
  55. package/dist/index.umd.min.js +6 -6
  56. package/dist/message/hooks/useMessage.d.ts +7 -0
  57. package/dist/message/index.d.ts +63 -4
  58. package/dist/notification/demos/basic.d.ts +2 -0
  59. package/dist/notification/demos/button.d.ts +2 -0
  60. package/dist/notification/demos/icon.d.ts +2 -0
  61. package/dist/notification/hooks/useNotification.d.ts +7 -0
  62. package/dist/notification/index.d.ts +54 -0
  63. package/dist/notification/style/index.d.ts +1 -0
  64. package/es/Affix/index.d.ts +54 -0
  65. package/es/Affix/index.js +326 -0
  66. package/{lib/Notification → es/Affix}/style/index.css +0 -3
  67. package/es/{Notification → Affix}/style/index.d.ts +0 -0
  68. package/es/{Notification → Affix}/style/index.js +0 -0
  69. package/es/Affix/utils.d.ts +15 -0
  70. package/es/Affix/utils.js +83 -0
  71. package/es/Alert/ErrorBoundary.d.ts +22 -0
  72. package/es/Alert/ErrorBoundary.js +65 -0
  73. package/es/Alert/index.d.ts +41 -0
  74. package/es/Alert/index.js +192 -0
  75. package/es/Alert/style/index.css +531 -0
  76. package/{lib/Notification → es/Alert}/style/index.d.ts +0 -0
  77. package/es/Alert/style/index.js +1 -0
  78. package/es/Button/style/{style.css → index.css} +0 -0
  79. package/es/Button/style/index.d.ts +1 -1
  80. package/es/Button/style/index.js +1 -1
  81. package/es/ButtonTags/style/{style.css → index.css} +0 -0
  82. package/es/ButtonTags/style/index.js +1 -1
  83. package/es/CardTable/card/PictureTextColumn.js +8 -6
  84. package/es/CardTable/card/PictureTextRow.js +1 -1
  85. package/es/CardTable/fns/index.js +38 -8
  86. package/es/CardTable/{toolbar → pager}/TablePagination.js +0 -0
  87. package/es/CardTable/pager/index.js +48 -0
  88. package/{lib/CardTable/style/style.css → es/CardTable/style/index.css} +2 -2
  89. package/es/CardTable/style/index.js +1 -1
  90. package/es/CardTable/table/TableRoot.js +20 -18
  91. package/es/CardTable/table/TableWrapper.js +4 -0
  92. package/es/CardTable/toolbar/ToolBarBottom.js +8 -27
  93. package/es/Checkbox/style/{style.css → index.css} +0 -0
  94. package/es/Checkbox/style/index.js +1 -1
  95. package/es/CkFilter/style/{style.css → index.css} +0 -0
  96. package/es/CkFilter/style/index.js +1 -1
  97. package/es/CustomerService/style/{style.css → index.css} +0 -0
  98. package/es/CustomerService/style/index.js +1 -1
  99. package/es/Descriptions/style/index.css +10 -8
  100. package/es/EditTable/style/{style.css → index.css} +0 -0
  101. package/es/EditTable/style/index.js +1 -1
  102. package/es/EnlargeImg/style/{style.css → index.css} +0 -0
  103. package/es/EnlargeImg/style/index.js +1 -1
  104. package/es/Filter/style/{style.css → index.css} +0 -0
  105. package/es/Filter/style/index.js +1 -1
  106. package/es/IconFont/index.js +3 -2
  107. package/es/IconSelect/style/{style.css → index.css} +0 -0
  108. package/es/IconSelect/style/index.js +1 -1
  109. package/es/Input/style/{style.css → index.css} +0 -0
  110. package/es/Input/style/index.js +1 -1
  111. package/es/LeftTable/style/{style.css → index.css} +0 -0
  112. package/es/LeftTable/style/index.js +1 -1
  113. package/es/LmEditTable/style/{style.css → index.css} +0 -0
  114. package/es/LmEditTable/style/index.d.ts +1 -1
  115. package/es/LmEditTable/style/index.js +1 -1
  116. package/es/LmFilter/LmFilter.js +27 -0
  117. package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
  118. package/es/LmFilter/baseFilter/index.js +34 -0
  119. package/es/LmFilter/clearFilter/index.js +35 -0
  120. package/es/LmFilter/complexFilter/index.js +17 -0
  121. package/es/LmFilter/components/CascaderFilter.js +159 -0
  122. package/es/LmFilter/components/CheckboxFilter.js +197 -0
  123. package/es/LmFilter/components/DateFilter.js +139 -0
  124. package/es/LmFilter/components/DropdownFIlter.js +230 -0
  125. package/es/LmFilter/components/EmptyFilter.js +27 -0
  126. package/es/LmFilter/components/InputFilter.js +52 -0
  127. package/es/LmFilter/components/InputSearchClose.js +74 -0
  128. package/es/LmFilter/components/SelectFilter.js +113 -0
  129. package/es/LmFilter/components/index.js +140 -0
  130. package/es/LmFilter/customFilter/index.js +17 -0
  131. package/es/LmFilter/filterFns/index.js +54 -0
  132. package/es/LmFilter/hooks/index.js +18 -0
  133. package/es/LmFilter/hooks/useDelayedFn.js +29 -0
  134. package/es/LmFilter/icon_placeholder.png +0 -0
  135. package/es/LmFilter/index.js +16 -0
  136. package/es/LmFilter/style/index.js +3 -0
  137. package/es/LmFilter/style/style.css +205 -0
  138. package/es/LmFilter/utils.js +71 -0
  139. package/es/LmFilter/wrapper/Filter.js +33 -0
  140. package/es/LmFilter/wrapper/FilterContainer.js +29 -0
  141. package/es/LmFilter/wrapper/FilterRoot.js +120 -0
  142. package/es/LmFilter/wrapper/FilterWrapper.js +25 -0
  143. package/es/LmTable/style/{style.css → index.css} +0 -0
  144. package/es/LmTable/style/index.js +1 -1
  145. package/es/OldModal/style/{style.css → index.css} +0 -0
  146. package/es/OldModal/style/index.js +1 -1
  147. package/es/PopTable/style/{style.css → index.css} +0 -0
  148. package/es/PopTable/style/index.js +1 -1
  149. package/es/ProTable/style/{style.css → index.css} +0 -0
  150. package/es/ProTable/style/index.js +1 -1
  151. package/es/QuickMenu/index.d.ts +14 -0
  152. package/es/QuickMenu/index.js +169 -0
  153. package/es/QuickMenu/style/index.css +560 -0
  154. package/es/QuickMenu/style/index.d.ts +1 -0
  155. package/es/QuickMenu/style/index.js +1 -0
  156. package/es/Radio/style/{style.css → index.css} +0 -0
  157. package/es/Radio/style/index.js +1 -1
  158. package/es/TableRender/style/{style.css → index.css} +0 -0
  159. package/es/TableRender/style/index.js +1 -1
  160. package/es/Tag/index.d.ts +4 -0
  161. package/es/Tag/index.js +48 -2
  162. package/es/Tag/style/index.css +4 -1
  163. package/es/Upload/index.d.ts +5 -1
  164. package/es/Upload/index.js +7 -2
  165. package/es/Upload/style/index.css +35 -0
  166. package/es/UploadOss/style/{style.css → index.css} +0 -0
  167. package/es/UploadOss/style/index.js +1 -1
  168. package/es/VirtualList/style/{style.css → index.css} +0 -0
  169. package/es/VirtualList/style/index.js +1 -1
  170. package/es/_util/domTarget.d.ts +7 -0
  171. package/es/_util/domTarget.js +20 -0
  172. package/es/_util/getDataOrAriaProps.d.ts +1 -0
  173. package/es/_util/getDataOrAriaProps.js +9 -0
  174. package/es/_util/reactNode.d.ts +7 -0
  175. package/es/_util/reactNode.js +10 -0
  176. package/es/_util/throttleByAnimationFrame.d.ts +8 -0
  177. package/es/_util/throttleByAnimationFrame.js +58 -0
  178. package/es/index.d.ts +2 -1
  179. package/es/index.js +3 -2
  180. package/es/message/hooks/useMessage.d.ts +7 -0
  181. package/es/message/hooks/useMessage.js +83 -0
  182. package/es/message/index.d.ts +63 -4
  183. package/es/message/index.js +241 -12
  184. package/es/message/style/index.css +28 -1
  185. package/es/notification/hooks/useNotification.d.ts +7 -0
  186. package/es/notification/hooks/useNotification.js +54 -0
  187. package/es/notification/index.d.ts +54 -0
  188. package/es/notification/index.js +342 -0
  189. package/es/notification/style/index.css +546 -0
  190. package/es/notification/style/index.d.ts +1 -0
  191. package/es/notification/style/index.js +1 -0
  192. package/lib/Affix/index.d.ts +54 -0
  193. package/lib/Affix/index.js +349 -0
  194. package/{es/Notification → lib/Affix}/style/index.css +0 -3
  195. package/lib/Affix/style/index.d.ts +1 -0
  196. package/lib/{Notification → Affix}/style/index.js +0 -0
  197. package/lib/Affix/utils.d.ts +15 -0
  198. package/lib/Affix/utils.js +104 -0
  199. package/lib/Alert/ErrorBoundary.d.ts +22 -0
  200. package/lib/Alert/ErrorBoundary.js +79 -0
  201. package/lib/Alert/index.d.ts +41 -0
  202. package/lib/Alert/index.js +215 -0
  203. package/lib/Alert/style/index.css +531 -0
  204. package/lib/Alert/style/index.d.ts +1 -0
  205. package/lib/Alert/style/index.js +3 -0
  206. package/lib/Button/style/{style.css → index.css} +0 -0
  207. package/lib/Button/style/index.d.ts +1 -1
  208. package/lib/Button/style/index.js +1 -1
  209. package/lib/ButtonTags/style/{style.css → index.css} +0 -0
  210. package/lib/ButtonTags/style/index.js +1 -1
  211. package/lib/CardTable/card/PictureTextColumn.js +8 -6
  212. package/lib/CardTable/card/PictureTextRow.js +1 -1
  213. package/lib/CardTable/fns/index.js +38 -8
  214. package/lib/CardTable/{toolbar → pager}/TablePagination.js +0 -0
  215. package/lib/CardTable/pager/index.js +48 -0
  216. package/{es/CardTable/style/style.css → lib/CardTable/style/index.css} +2 -2
  217. package/lib/CardTable/style/index.js +1 -1
  218. package/lib/CardTable/table/TableRoot.js +20 -18
  219. package/lib/CardTable/table/TableWrapper.js +4 -0
  220. package/lib/CardTable/toolbar/ToolBarBottom.js +8 -27
  221. package/lib/Checkbox/style/{style.css → index.css} +0 -0
  222. package/lib/Checkbox/style/index.js +1 -1
  223. package/lib/CkFilter/style/{style.css → index.css} +0 -0
  224. package/lib/CkFilter/style/index.js +1 -1
  225. package/lib/CustomerService/style/{style.css → index.css} +0 -0
  226. package/lib/CustomerService/style/index.js +1 -1
  227. package/lib/Descriptions/style/index.css +10 -8
  228. package/lib/EditTable/style/{style.css → index.css} +0 -0
  229. package/lib/EditTable/style/index.js +1 -1
  230. package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
  231. package/lib/EnlargeImg/style/index.js +1 -1
  232. package/lib/Filter/style/{style.css → index.css} +0 -0
  233. package/lib/Filter/style/index.js +1 -1
  234. package/lib/IconFont/index.js +3 -2
  235. package/lib/IconSelect/style/{style.css → index.css} +0 -0
  236. package/lib/IconSelect/style/index.js +1 -1
  237. package/lib/Input/style/{style.css → index.css} +0 -0
  238. package/lib/Input/style/index.js +1 -1
  239. package/lib/LeftTable/style/{style.css → index.css} +0 -0
  240. package/lib/LeftTable/style/index.js +1 -1
  241. package/lib/LmEditTable/style/{style.css → index.css} +0 -0
  242. package/lib/LmEditTable/style/index.d.ts +1 -1
  243. package/lib/LmEditTable/style/index.js +1 -1
  244. package/lib/LmFilter/LmFilter.js +27 -0
  245. package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
  246. package/lib/LmFilter/baseFilter/index.js +34 -0
  247. package/lib/LmFilter/clearFilter/index.js +35 -0
  248. package/lib/LmFilter/complexFilter/index.js +17 -0
  249. package/lib/LmFilter/components/CascaderFilter.js +159 -0
  250. package/lib/LmFilter/components/CheckboxFilter.js +197 -0
  251. package/lib/LmFilter/components/DateFilter.js +139 -0
  252. package/lib/LmFilter/components/DropdownFIlter.js +230 -0
  253. package/lib/LmFilter/components/EmptyFilter.js +27 -0
  254. package/lib/LmFilter/components/InputFilter.js +52 -0
  255. package/lib/LmFilter/components/InputSearchClose.js +74 -0
  256. package/lib/LmFilter/components/SelectFilter.js +113 -0
  257. package/lib/LmFilter/components/index.js +140 -0
  258. package/lib/LmFilter/customFilter/index.js +17 -0
  259. package/lib/LmFilter/filterFns/index.js +54 -0
  260. package/lib/LmFilter/hooks/index.js +18 -0
  261. package/lib/LmFilter/hooks/useDelayedFn.js +29 -0
  262. package/lib/LmFilter/icon_placeholder.png +0 -0
  263. package/lib/LmFilter/index.js +16 -0
  264. package/lib/LmFilter/style/index.js +3 -0
  265. package/lib/LmFilter/style/style.css +205 -0
  266. package/lib/LmFilter/utils.js +71 -0
  267. package/lib/LmFilter/wrapper/Filter.js +33 -0
  268. package/lib/LmFilter/wrapper/FilterContainer.js +29 -0
  269. package/lib/LmFilter/wrapper/FilterRoot.js +120 -0
  270. package/lib/LmFilter/wrapper/FilterWrapper.js +25 -0
  271. package/lib/LmTable/style/{style.css → index.css} +0 -0
  272. package/lib/LmTable/style/index.js +1 -1
  273. package/lib/OldModal/style/{style.css → index.css} +0 -0
  274. package/lib/OldModal/style/index.js +1 -1
  275. package/lib/PopTable/style/{style.css → index.css} +0 -0
  276. package/lib/PopTable/style/index.js +1 -1
  277. package/lib/ProTable/style/{style.css → index.css} +0 -0
  278. package/lib/ProTable/style/index.js +1 -1
  279. package/lib/QuickMenu/index.d.ts +14 -0
  280. package/lib/QuickMenu/index.js +187 -0
  281. package/lib/QuickMenu/style/index.css +560 -0
  282. package/lib/QuickMenu/style/index.d.ts +1 -0
  283. package/lib/QuickMenu/style/index.js +3 -0
  284. package/lib/Radio/style/{style.css → index.css} +0 -0
  285. package/lib/Radio/style/index.js +1 -1
  286. package/lib/TableRender/style/{style.css → index.css} +0 -0
  287. package/lib/TableRender/style/index.js +1 -1
  288. package/lib/Tag/index.d.ts +4 -0
  289. package/lib/Tag/index.js +48 -1
  290. package/lib/Tag/style/index.css +4 -1
  291. package/lib/Upload/index.d.ts +5 -1
  292. package/lib/Upload/index.js +8 -2
  293. package/lib/Upload/style/index.css +35 -0
  294. package/lib/UploadOss/style/{style.css → index.css} +0 -0
  295. package/lib/UploadOss/style/index.js +1 -1
  296. package/lib/VirtualList/style/{style.css → index.css} +0 -0
  297. package/lib/VirtualList/style/index.js +1 -1
  298. package/lib/_util/domTarget.d.ts +7 -0
  299. package/lib/_util/domTarget.js +31 -0
  300. package/lib/_util/getDataOrAriaProps.d.ts +1 -0
  301. package/lib/_util/getDataOrAriaProps.js +16 -0
  302. package/lib/_util/reactNode.d.ts +7 -0
  303. package/lib/_util/reactNode.js +24 -0
  304. package/lib/_util/throttleByAnimationFrame.d.ts +8 -0
  305. package/lib/_util/throttleByAnimationFrame.js +72 -0
  306. package/lib/index.d.ts +2 -1
  307. package/lib/index.js +11 -3
  308. package/lib/message/hooks/useMessage.d.ts +7 -0
  309. package/lib/message/hooks/useMessage.js +101 -0
  310. package/lib/message/index.d.ts +63 -4
  311. package/lib/message/index.js +262 -16
  312. package/lib/message/style/index.css +28 -1
  313. package/lib/notification/hooks/useNotification.d.ts +7 -0
  314. package/lib/notification/hooks/useNotification.js +69 -0
  315. package/lib/notification/index.d.ts +54 -0
  316. package/lib/notification/index.js +365 -0
  317. package/lib/notification/style/index.css +546 -0
  318. package/lib/notification/style/index.d.ts +1 -0
  319. package/lib/notification/style/index.js +3 -0
  320. package/package.json +5 -2
  321. package/dist/Notification/index.d.ts +0 -7
  322. package/es/Notification/index.d.ts +0 -7
  323. package/es/Notification/index.js +0 -10
  324. package/lib/Notification/index.d.ts +0 -7
  325. package/lib/Notification/index.js +0 -23
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _TablePagination = _interopRequireDefault(require("./TablePagination"));
13
+
14
+ var CardTablePager = /*#__PURE__*/_react.default.memo(function (_ref) {
15
+ var table = _ref.table;
16
+ var pagination = table.pagination,
17
+ pagerConfig = table.pagerConfig; // left || right:插槽
18
+
19
+ var left = pagerConfig.left,
20
+ right = pagerConfig.right; // 底部工具栏左侧插槽: 默认空 div 标签占位
21
+
22
+ var LeftSlot = function LeftSlot() {
23
+ if (!left) {
24
+ return /*#__PURE__*/_react.default.createElement("div", null);
25
+ }
26
+
27
+ ;
28
+ return typeof left === 'function' ? left(table) : left;
29
+ }; // 底部工具栏右侧插槽
30
+
31
+
32
+ var RighSlot = function RighSlot() {
33
+ if (!right) {
34
+ return pagination ? /*#__PURE__*/_react.default.createElement(_TablePagination.default, {
35
+ table: table
36
+ }) : null;
37
+ }
38
+
39
+ return typeof right === 'function' ? right(table, _TablePagination.default) : right;
40
+ };
41
+
42
+ return /*#__PURE__*/_react.default.createElement("div", {
43
+ className: "lm_card_table_pager"
44
+ }, /*#__PURE__*/_react.default.createElement(LeftSlot, null), /*#__PURE__*/_react.default.createElement(RighSlot, null));
45
+ });
46
+
47
+ var _default = CardTablePager;
48
+ exports.default = _default;
@@ -24,12 +24,12 @@
24
24
  .lm_card_table_wrapper .lm_card_table_container .lm_card_table .lm_card_table_body .lm_card_table_body_row .lm_card_table_body_cell.cell_checked {
25
25
  border-color: var(--primary-color);
26
26
  }
27
- .lm_card_table_wrapper .lm_card_table_toolbar_bottom {
27
+ .lm_card_table_wrapper .lm_card_table_pager {
28
28
  display: flex;
29
29
  align-items: center;
30
30
  justify-content: space-between;
31
31
  }
32
- .lm_card_table_wrapper .lm_card_table_toolbar_bottom .lm_card_table_pagination {
32
+ .lm_card_table_wrapper .lm_card_table_pager .lm_card_table_pagination {
33
33
  display: flex;
34
34
  align-items: center;
35
35
  height: 48px;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  exports.default = void 0;
11
11
 
12
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
13
 
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+
16
16
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
17
17
 
18
18
  var _react = _interopRequireWildcard(require("react"));
@@ -21,7 +21,8 @@ var _TableWrapper = _interopRequireDefault(require("./TableWrapper"));
21
21
 
22
22
  var _fns = _interopRequireDefault(require("../fns"));
23
23
 
24
- var _excluded = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig"];
24
+ var _excluded = ["checkKeys", "trigger", "checkMethod"],
25
+ _excluded2 = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig", "pagerConfig", "toolbarConfig"];
25
26
 
26
27
  var reducer = function reducer(state, action) {
27
28
  var page = action.page,
@@ -70,6 +71,9 @@ var getInitialState = function getInitialState(props) {
70
71
  checkKeys = _props$checkboxConfig2 === void 0 ? [] : _props$checkboxConfig2,
71
72
  _props$checkboxConfig3 = _props$checkboxConfig.trigger,
72
73
  trigger = _props$checkboxConfig3 === void 0 ? 'default' : _props$checkboxConfig3,
74
+ _props$checkboxConfig4 = _props$checkboxConfig.checkMethod,
75
+ checkMethod = _props$checkboxConfig4 === void 0 ? true : _props$checkboxConfig4,
76
+ resetCheckCOnfig = (0, _objectWithoutProperties2.default)(_props$checkboxConfig, _excluded),
73
77
  _props$dataSource = props.dataSource,
74
78
  dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
75
79
  cellKey = props.cellKey;
@@ -78,11 +82,12 @@ var getInitialState = function getInitialState(props) {
78
82
  }) || [];
79
83
  return {
80
84
  // 复选框的配置
81
- checkboxConfig: {
85
+ checkboxConfig: (0, _objectSpread2.default)({
82
86
  checkKeys: checkKeys,
83
87
  checkValues: checkValues,
84
- trigger: trigger
85
- },
88
+ trigger: trigger,
89
+ checkMethod: checkMethod
90
+ }, resetCheckCOnfig),
86
91
  // 分页的配置
87
92
  page: {
88
93
  pageIndex: 1,
@@ -114,18 +119,17 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
114
119
  var _useState = (0, _react.useState)(false),
115
120
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
116
121
  isFullScreen = _useState2[0],
117
- setIsFullScreen = _useState2[1];
122
+ setIsFullScreen = _useState2[1]; // 配置对象收集
118
123
 
119
- var _state$checkboxConfig = state.checkboxConfig,
120
- checkKeys = _state$checkboxConfig.checkKeys,
121
- checkValues = _state$checkboxConfig.checkValues; // 配置对象收集
122
124
 
123
125
  var configProps = (0, _react.useMemo)(function () {
124
126
  var rowConfig = props.rowConfig,
125
127
  cellConfig = props.cellConfig,
126
128
  defaultConfig = props.defaultConfig,
127
129
  checkboxConfig = props.checkboxConfig,
128
- resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
130
+ pagerConfig = props.pagerConfig,
131
+ toolbarConfig = props.toolbarConfig,
132
+ resetProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
129
133
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
130
134
  rowConfig: (0, _objectSpread2.default)({
131
135
  // 行配置
@@ -137,22 +141,20 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
137
141
  height: 282
138
142
  }, cellConfig),
139
143
  checkboxConfig: (0, _objectSpread2.default)({}, checkboxConfig),
140
- toolbarConfig: {
141
- pager: {},
142
- toolbarBottom: {}
143
- },
144
+ pagerConfig: (0, _objectSpread2.default)({}, pagerConfig),
145
+ toolbarConfig: (0, _objectSpread2.default)({}, toolbarConfig),
144
146
  defaultConfig: defaultConfig
145
147
  });
146
148
  }, [props]); // 方法收集
147
149
 
148
- var EventProps = (0, _react.useMemo)(function () {
150
+ var eventProps = (0, _react.useMemo)(function () {
149
151
  return (0, _fns.default)({
150
152
  state: state,
151
153
  dispatch: dispatch,
152
154
  props: props
153
155
  });
154
156
  }, [state, dispatch, props]);
155
- var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps), EventProps), {}, {
157
+ var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps), eventProps), {}, {
156
158
  state: state,
157
159
  dispatch: dispatch
158
160
  }); // 向外暴露出的方法
@@ -162,7 +164,7 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
162
164
  getCheckboxRecords: function getCheckboxRecords() {
163
165
  return state.checkboxConfig.checkValues;
164
166
  }
165
- }, EventProps);
167
+ }, eventProps);
166
168
  });
167
169
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isFullScreen && /*#__PURE__*/_react.default.createElement(_TableWrapper.default, {
168
170
  table: table
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _TableContainer = _interopRequireDefault(require("./TableContainer"));
15
15
 
16
+ var _pager = _interopRequireDefault(require("../pager"));
17
+
16
18
  var _ToolBarBottom = _interopRequireDefault(require("../toolbar/ToolBarBottom"));
17
19
 
18
20
  // 包裹表格外围区域: 工具栏操作区域/主体区域/工具栏底部区域
@@ -27,6 +29,8 @@ var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
27
29
  }, style)
28
30
  }, /*#__PURE__*/_react.default.createElement(_TableContainer.default, {
29
31
  table: table
32
+ }), /*#__PURE__*/_react.default.createElement(_pager.default, {
33
+ table: table
30
34
  }), /*#__PURE__*/_react.default.createElement(_ToolBarBottom.default, {
31
35
  table: table
32
36
  }));
@@ -9,38 +9,19 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _TablePagination = _interopRequireDefault(require("./TablePagination"));
13
-
14
12
  var CardToolBarBottom = /*#__PURE__*/_react.default.memo(function (_ref) {
15
13
  var table = _ref.table;
16
14
  var pagination = table.pagination,
17
- _table$toolbarConfig = table.toolbarConfig,
18
- toolbarBottom = _table$toolbarConfig.toolbarBottom,
19
- pager = _table$toolbarConfig.pager; // toolbarBottom与pager一致: 用于插槽
20
-
21
- var _ref2 = toolbarBottom || pager,
22
- left = _ref2.left,
23
- right = _ref2.right;
24
-
25
- var LeftSlot = function LeftSlot() {
26
- return left;
27
- };
28
-
29
- var RighSlot = function RighSlot() {
30
- if (!right) {
31
- return pagination && /*#__PURE__*/_react.default.createElement(_TablePagination.default, {
32
- table: table
33
- });
34
- }
15
+ toolbarBottom = table.toolbarConfig.toolbarBottom;
35
16
 
36
- if (right) {
37
- typeof right === 'function' ? right(_TablePagination.default) : right;
38
- }
39
- };
17
+ if (!toolbarBottom) {
18
+ return null;
19
+ }
40
20
 
41
- return /*#__PURE__*/_react.default.createElement("div", {
42
- className: "lm_card_table_toolbar_bottom"
43
- }, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement(RighSlot, null));
21
+ return typeof toolbarBottom === 'function' ? toolbarBottom(table) : toolbarBottom // <div className='lm_card_table_toolbar_bottom'>
22
+ // <ToolbarBottomSlot />
23
+ // </div>
24
+ ;
44
25
  });
45
26
 
46
27
  var _default = CardToolBarBottom;
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -508,29 +508,31 @@ html {
508
508
  margin-bottom: 8px;
509
509
  }
510
510
  .lm_descriptions .ant-descriptions-header .ant-descriptions-title {
511
+ color: var(--color-85);
512
+ font-size: 14px;
511
513
  /* 正文/苹方 14px Medium */
512
514
  font-family: PingFangSC-Medium;
513
- font-size: 14px;
514
515
  line-height: 22px;
515
516
  letter-spacing: 0px;
516
- color: var(--color-85);
517
517
  }
518
518
  .lm_descriptions .ant-descriptions-item {
519
+ padding-right: 24px;
519
520
  padding-bottom: 8px;
520
521
  }
521
522
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
522
- font-family: PingFangSC-Regular;
523
+ color: var(--color-85);
523
524
  font-size: 12px;
525
+ font-family: PingFangSC-Regular;
524
526
  line-height: 20px;
525
- color: var(--color-85);
526
527
  }
527
528
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-label,
528
529
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-content {
529
- font-family: PingFangSC-Regular;
530
+ color: var(--color-85);
530
531
  font-size: 12px;
532
+ font-family: PingFangSC-Regular;
531
533
  line-height: 20px;
532
- color: var(--color-85);
533
534
  }
534
- .lm_descriptions_default .ant-descriptions-item[colspan='1'] .ant-descriptions-item-container {
535
- width: 376px;
535
+ .lm_descriptions_default .ant-descriptions-item[colspan='1'] {
536
+ min-width: 330px;
537
+ max-width: 376px;
536
538
  }
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -8,8 +8,9 @@ exports.default = void 0;
8
8
  var _icons = require("@ant-design/icons");
9
9
 
10
10
  var IconFont = (0, _icons.createFromIconfontCN)({
11
- // scriptUrl: '//at.alicdn.com/t/font_2966019_8aij0300kjo.js', // 在 iconfont.cn 上生成
12
- scriptUrl: require('./font/iconfont.js')
11
+ scriptUrl: '//at.alicdn.com/t/c/font_2966019_7jeb9gjjk63.js' // 在 iconfont.cn 上生成
12
+ // scriptUrl: require('./font/iconfont.js'),
13
+
13
14
  });
14
15
  var _default = IconFont;
15
16
  exports.default = _default;
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1 +1 @@
1
- import './style.less';
1
+ import './index.less';
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _FilterRoot = _interopRequireDefault(require("./wrapper/FilterRoot"));
17
+
18
+ var LmFilter = function LmFilter(props, ref) {
19
+ var defaultRef = (0, _react.useRef)(null);
20
+ return /*#__PURE__*/_react.default.createElement(_FilterRoot.default, (0, _extends2.default)({
21
+ ref: ref || defaultRef
22
+ }, props));
23
+ };
24
+
25
+ var _default = /*#__PURE__*/(0, _react.forwardRef)(LmFilter);
26
+
27
+ exports.default = _default;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _react = _interopRequireWildcard(require("react"));
13
+
14
+ var _InputSearchClose = _interopRequireDefault(require("../components/InputSearchClose"));
15
+
16
+ var FuzzySearch = function FuzzySearch(_ref) {
17
+ var instance = _ref.instance;
18
+ var inputRef = (0, _react.useRef)(null);
19
+ var state = instance.state,
20
+ setFilterValue = instance.setFilterValue,
21
+ size = instance.size,
22
+ placeholder = instance.placeholder,
23
+ searchKey = instance.searchKey; // 默认值
24
+
25
+ var defaultValue = (0, _react.useMemo)(function () {
26
+ var _state$basicFilter;
27
+
28
+ return ((_state$basicFilter = state.basicFilter) === null || _state$basicFilter === void 0 ? void 0 : _state$basicFilter[searchKey]) || '';
29
+ }, [state.basicFilter]);
30
+
31
+ var onSearch = function onSearch(val) {
32
+ setFilterValue(val, searchKey);
33
+ };
34
+
35
+ (0, _react.useEffect)(function () {
36
+ if (!defaultValue) {
37
+ inputRef.current.setValue('');
38
+ }
39
+ }, [state.basicFilter]);
40
+ return /*#__PURE__*/_react.default.createElement("div", {
41
+ className: "lm_filter_search"
42
+ }, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
43
+ ref: inputRef,
44
+ allowClear: true,
45
+ defaultValue: defaultValue,
46
+ size: size,
47
+ placeholder: placeholder,
48
+ onSearch: onSearch
49
+ }));
50
+ };
51
+
52
+ var _default = FuzzySearch;
53
+ exports.default = _default;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _fuzzySearch = _interopRequireDefault(require("./fuzzySearch"));
13
+
14
+ var _components = _interopRequireDefault(require("../components"));
15
+
16
+ // 二级过滤 => 基础过滤组件
17
+ var LmFilterBase = /*#__PURE__*/_react.default.memo(function (_ref) {
18
+ var instance = _ref.instance;
19
+ var dataSource = instance.dataSource;
20
+ return /*#__PURE__*/_react.default.createElement("div", {
21
+ className: "lm_filter_basic"
22
+ }, /*#__PURE__*/_react.default.createElement(_fuzzySearch.default, {
23
+ instance: instance
24
+ }), dataSource.map(function (v, index) {
25
+ return /*#__PURE__*/_react.default.createElement(_components.default, {
26
+ key: (v === null || v === void 0 ? void 0 : v.field) || index,
27
+ instance: instance,
28
+ item: v
29
+ });
30
+ }));
31
+ });
32
+
33
+ var _default = LmFilterBase;
34
+ exports.default = _default;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _linkmoreDesign = require("linkmore-design");
13
+
14
+ var LmFilterClear = /*#__PURE__*/_react.default.memo(function (_ref) {
15
+ var instance = _ref.instance;
16
+ var state = instance.state,
17
+ dispatch = instance.dispatch;
18
+
19
+ var handleClear = function handleClear() {
20
+ console.log('state', state);
21
+ dispatch({
22
+ type: 'reset'
23
+ });
24
+ };
25
+
26
+ return /*#__PURE__*/_react.default.createElement("div", {
27
+ className: "lm_filter_clear"
28
+ }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
29
+ type: "link",
30
+ onClick: handleClear
31
+ }, "\u4E00\u952E\u6E05\u7A7A"));
32
+ });
33
+
34
+ var _default = LmFilterClear;
35
+ exports.default = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var LmFilterComplex = function LmFilterComplex(e) {
13
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "LmFilterComplex");
14
+ };
15
+
16
+ var _default = LmFilterComplex;
17
+ exports.default = _default;