linkmore-design 1.0.30 → 1.0.33

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 (495) hide show
  1. package/dist/index.umd.js +689 -24
  2. package/dist/index.umd.min.js +5 -5
  3. package/es/Button/index.d.ts +3 -0
  4. package/es/Button/index.js +43 -0
  5. package/es/Button/style/index.d.ts +1 -0
  6. package/es/Button/style/index.js +1 -0
  7. package/es/Button/style/style.css +110 -0
  8. package/es/ButtonTags/ButtonTags.js +59 -0
  9. package/es/ButtonTags/index.js +13 -0
  10. package/es/ButtonTags/style/index.js +3 -0
  11. package/es/ButtonTags/style/style.css +577 -0
  12. package/es/Card/index.d.ts +2 -0
  13. package/es/Card/index.js +17 -0
  14. package/es/Card/style/index.css +505 -0
  15. package/es/Card/style/index.d.ts +1 -0
  16. package/es/Card/style/index.js +1 -0
  17. package/es/Checkbox/index.js +47 -0
  18. package/es/Checkbox/style/index.js +3 -0
  19. package/es/Checkbox/style/style.css +128 -0
  20. package/es/CkFilter/baseFilter/NestedFilter.js +137 -0
  21. package/es/CkFilter/baseFilter/filterMenu.js +222 -0
  22. package/es/CkFilter/baseFilter/index.js +92 -0
  23. package/es/CkFilter/baseFilter/moreFilters.js +237 -0
  24. package/es/CkFilter/complexFilter/drawer.js +379 -0
  25. package/es/CkFilter/complexFilter/index.js +69 -0
  26. package/es/CkFilter/components/CascaderFilter.js +132 -0
  27. package/es/CkFilter/components/CheckboxTags.js +53 -0
  28. package/es/CkFilter/components/Controls.js +53 -0
  29. package/es/CkFilter/components/CustomModal.js +230 -0
  30. package/es/CkFilter/components/DragBox/DndContainer.js +49 -0
  31. package/es/CkFilter/components/DragBox/index.js +63 -0
  32. package/es/CkFilter/components/DragBox/sortableBox.js +24 -0
  33. package/es/CkFilter/components/DragBox/sortableItem.js +111 -0
  34. package/es/CkFilter/components/Nested.js +90 -0
  35. package/es/CkFilter/components/filterTypes.js +815 -0
  36. package/es/CkFilter/components/modal.js +297 -0
  37. package/es/CkFilter/components/modalBack.js +261 -0
  38. package/es/CkFilter/context.js +174 -0
  39. package/es/CkFilter/customFilter/drawer.js +395 -0
  40. package/es/CkFilter/customFilter/index.js +129 -0
  41. package/es/CkFilter/customFilter/radioGroup.js +64 -0
  42. package/es/CkFilter/filter.js +153 -0
  43. package/es/CkFilter/icon_placeholder.png +0 -0
  44. package/es/CkFilter/index.js +13 -0
  45. package/es/CkFilter/style/index.js +3 -0
  46. package/es/CkFilter/style/style.css +1084 -0
  47. package/es/CkFilter/utils.js +65 -0
  48. package/es/CustomTableOption/columnsSort.d.ts +4 -0
  49. package/es/CustomTableOption/columnsSort.js +317 -0
  50. package/es/CustomTableOption/filterSort.d.ts +4 -0
  51. package/es/CustomTableOption/filterSort.js +193 -0
  52. package/es/CustomTableOption/index.d.ts +12 -0
  53. package/es/CustomTableOption/index.js +122 -0
  54. package/es/CustomTableOption/style/index.css +548 -0
  55. package/es/CustomTableOption/style/index.d.ts +1 -0
  56. package/es/CustomTableOption/style/index.js +1 -0
  57. package/es/CustomerService/assets/question01.png +0 -0
  58. package/es/CustomerService/assets/send.png +0 -0
  59. package/es/CustomerService/assets/service.png +0 -0
  60. package/es/CustomerService/assets/shuoming01.png +0 -0
  61. package/es/CustomerService/assets/shuoming02.png +0 -0
  62. package/es/CustomerService/components/question.js +120 -0
  63. package/es/CustomerService/index.js +291 -0
  64. package/es/CustomerService/style/index.js +3 -0
  65. package/es/CustomerService/style/style.css +758 -0
  66. package/es/Drawer/index.d.ts +10 -0
  67. package/es/Drawer/index.js +42 -0
  68. package/es/Drawer/style/index.css +512 -0
  69. package/es/Drawer/style/index.d.ts +1 -0
  70. package/es/Drawer/style/index.js +1 -0
  71. package/es/Dropdown/index.d.ts +14 -0
  72. package/es/Dropdown/index.js +113 -0
  73. package/es/Dropdown/style/index.css +567 -0
  74. package/es/Dropdown/style/index.d.ts +1 -0
  75. package/es/Dropdown/style/index.js +1 -0
  76. package/es/EditTable/EditTable.js +588 -0
  77. package/es/EditTable/index.js +13 -0
  78. package/es/EditTable/style/index.js +3 -0
  79. package/es/EditTable/style/style.css +521 -0
  80. package/es/Empty/index.d.ts +7 -0
  81. package/es/Empty/index.js +3 -0
  82. package/es/Empty/style/index.css +505 -0
  83. package/es/Empty/style/index.d.ts +1 -0
  84. package/es/Empty/style/index.js +1 -0
  85. package/es/EnlargeImg/index.js +109 -0
  86. package/es/EnlargeImg/style/index.js +3 -0
  87. package/es/EnlargeImg/style/style.css +4 -0
  88. package/es/Filter/Popover.js +199 -0
  89. package/es/Filter/baseFilter/Popover.js +214 -0
  90. package/es/Filter/baseFilter/ToggleFilter.js +112 -0
  91. package/es/Filter/baseFilter/index.js +100 -0
  92. package/es/Filter/complex/ComplexFilter.js +149 -0
  93. package/es/Filter/complex/ComplexItem.js +157 -0
  94. package/es/Filter/components/Checkbox.js +94 -0
  95. package/es/Filter/components/Date.js +87 -0
  96. package/es/Filter/components/Input.js +63 -0
  97. package/es/Filter/components/Select.js +89 -0
  98. package/es/Filter/components/Tree.js +64 -0
  99. package/es/Filter/components/header.js +60 -0
  100. package/es/Filter/components/index.js +47 -0
  101. package/es/Filter/context.js +15 -0
  102. package/es/Filter/edit/editFilter.js +277 -0
  103. package/es/Filter/index.js +174 -0
  104. package/es/Filter/popContext.js +15 -0
  105. package/es/Filter/remember.js +137 -0
  106. package/es/Filter/style/index.js +3 -0
  107. package/es/Filter/style/style.css +776 -0
  108. package/es/Icon/index.js +20 -0
  109. package/es/Icon/style/index.js +1 -0
  110. package/es/Icon/style/style.css +0 -0
  111. package/es/IconFont/index.js +15 -0
  112. package/es/IconFont/style/index.js +1 -0
  113. package/es/IconFont/style/style.css +0 -0
  114. package/es/IconSelect/iconJson.json +2935 -0
  115. package/es/IconSelect/index.js +115 -0
  116. package/es/IconSelect/style/index.js +3 -0
  117. package/es/IconSelect/style/style.css +25 -0
  118. package/es/Image/index.d.ts +2 -0
  119. package/es/Image/index.js +3 -0
  120. package/es/Image/style/index.css +505 -0
  121. package/es/Image/style/index.d.ts +1 -0
  122. package/es/Image/style/index.js +1 -0
  123. package/es/Input/index.js +74 -0
  124. package/es/Input/style/index.js +3 -0
  125. package/es/Input/style/style.css +738 -0
  126. package/es/InputNumber/index.d.ts +11 -0
  127. package/es/InputNumber/index.js +43 -0
  128. package/es/InputNumber/style/index.css +540 -0
  129. package/es/InputNumber/style/index.d.ts +1 -0
  130. package/es/InputNumber/style/index.js +1 -0
  131. package/es/LeftTable/assets/imgTest.jpg +0 -0
  132. package/es/LeftTable/index.js +118 -0
  133. package/es/LeftTable/style/index.js +3 -0
  134. package/es/LeftTable/style/style.css +617 -0
  135. package/es/LmTable/ImgList/body.js +111 -0
  136. package/es/LmTable/ImgList/cardCell.js +192 -0
  137. package/es/LmTable/ImgList/context.js +12 -0
  138. package/es/LmTable/ImgList/empty.js +24 -0
  139. package/es/LmTable/ImgList/footer.js +59 -0
  140. package/es/LmTable/ImgList/imgCell.js +175 -0
  141. package/es/LmTable/ImgList/imgTable.js +110 -0
  142. package/es/LmTable/ImgList/index.js +13 -0
  143. package/es/LmTable/Table.js +425 -0
  144. package/es/LmTable/VList.js +594 -0
  145. package/es/LmTable/autosize.js +170 -0
  146. package/es/LmTable/context.js +12 -0
  147. package/es/LmTable/detectElementResize.js +225 -0
  148. package/es/LmTable/index.js +19 -0
  149. package/es/LmTable/resetConfig.js +39 -0
  150. package/es/LmTable/style/index.js +3 -0
  151. package/es/LmTable/style/style.css +1377 -0
  152. package/es/LoadingPage/index.js +33 -0
  153. package/es/LoadingPage/style/index.js +1 -0
  154. package/es/LoadingPage/style/style.css +0 -0
  155. package/es/Menu/index.d.ts +7 -0
  156. package/es/Menu/index.js +3 -0
  157. package/es/Menu/style/index.css +505 -0
  158. package/es/Menu/style/index.d.ts +1 -0
  159. package/es/Menu/style/index.js +1 -0
  160. package/es/Modal/index.d.ts +12 -0
  161. package/es/Modal/index.js +94 -0
  162. package/es/Modal/style/index.css +540 -0
  163. package/es/Modal/style/index.d.ts +1 -0
  164. package/es/Modal/style/index.js +1 -0
  165. package/es/Notification/index.d.ts +7 -0
  166. package/es/Notification/index.js +10 -0
  167. package/es/Notification/style/index.css +508 -0
  168. package/es/Notification/style/index.d.ts +1 -0
  169. package/es/Notification/style/index.js +1 -0
  170. package/es/OldModal/add.js +68 -0
  171. package/es/OldModal/confirm.js +88 -0
  172. package/es/OldModal/edit.js +44 -0
  173. package/es/OldModal/exportModal.js +300 -0
  174. package/es/OldModal/index.js +24 -0
  175. package/es/OldModal/style/index.js +3 -0
  176. package/es/OldModal/style/style.css +119 -0
  177. package/es/Pagination/index.d.ts +7 -0
  178. package/es/Pagination/index.js +37 -0
  179. package/es/Pagination/style/index.css +554 -0
  180. package/es/Pagination/style/index.d.ts +1 -0
  181. package/es/Pagination/style/index.js +1 -0
  182. package/es/PopTable/BseTable.js +113 -0
  183. package/es/PopTable/index.js +151 -0
  184. package/es/PopTable/style/index.js +3 -0
  185. package/es/PopTable/style/style.css +715 -0
  186. package/es/ProTable/ImgList/body.js +111 -0
  187. package/es/ProTable/ImgList/cardCell.js +192 -0
  188. package/es/ProTable/ImgList/context.js +12 -0
  189. package/es/ProTable/ImgList/empty.js +24 -0
  190. package/es/ProTable/ImgList/footer.js +59 -0
  191. package/es/ProTable/ImgList/imgCell.js +181 -0
  192. package/es/ProTable/ImgList/imgTable.js +110 -0
  193. package/es/ProTable/ImgList/index.js +13 -0
  194. package/es/ProTable/Table.js +335 -0
  195. package/es/ProTable/VList.js +594 -0
  196. package/es/ProTable/autosize.js +170 -0
  197. package/es/ProTable/context.js +12 -0
  198. package/es/ProTable/detectElementResize.js +225 -0
  199. package/es/ProTable/index.js +19 -0
  200. package/es/ProTable/resetConfig.js +39 -0
  201. package/es/ProTable/style/index.js +3 -0
  202. package/es/ProTable/style/style.css +1079 -0
  203. package/es/Radio/index.js +50 -0
  204. package/es/Radio/style/index.js +3 -0
  205. package/es/Radio/style/style.css +138 -0
  206. package/es/Select/index.d.ts +18 -0
  207. package/es/Select/index.js +39 -0
  208. package/es/Select/style/index.css +517 -0
  209. package/es/Select/style/index.d.ts +1 -0
  210. package/es/Select/style/index.js +1 -0
  211. package/es/Space/index.d.ts +4 -0
  212. package/es/Space/index.js +3 -0
  213. package/es/Space/style/index.css +505 -0
  214. package/es/Space/style/index.d.ts +1 -0
  215. package/es/Space/style/index.js +1 -0
  216. package/es/Switch/index.d.ts +2 -0
  217. package/es/Switch/index.js +3 -0
  218. package/es/Switch/style/index.css +505 -0
  219. package/es/Switch/style/index.d.ts +1 -0
  220. package/es/Switch/style/index.js +1 -0
  221. package/es/TabBar/index.d.ts +12 -0
  222. package/es/TabBar/index.js +33 -0
  223. package/es/TabBar/style/index.d.ts +1 -0
  224. package/es/TabBar/style/index.js +1 -0
  225. package/es/TabBar/style/style.css +86 -0
  226. package/es/Table/index.d.ts +2 -0
  227. package/es/Table/index.js +3 -0
  228. package/es/Table/style/index.css +505 -0
  229. package/es/Table/style/index.d.ts +1 -0
  230. package/es/Table/style/index.js +1 -0
  231. package/es/TableRender/index.js +15 -0
  232. package/es/TableRender/state.js +72 -0
  233. package/es/TableRender/style/index.js +3 -0
  234. package/es/TableRender/style/style.css +0 -0
  235. package/es/Tabs/index.d.ts +12 -0
  236. package/es/Tabs/index.js +33 -0
  237. package/es/Tabs/style/index.css +511 -0
  238. package/es/Tabs/style/index.d.ts +1 -0
  239. package/es/Tabs/style/index.js +1 -0
  240. package/es/Tag/index.d.ts +12 -0
  241. package/es/Tag/index.js +36 -0
  242. package/es/Tag/style/index.css +566 -0
  243. package/es/Tag/style/index.d.ts +1 -0
  244. package/es/Tag/style/index.js +1 -0
  245. package/es/Tree/index.d.ts +12 -0
  246. package/es/Tree/index.js +32 -0
  247. package/es/Tree/style/index.css +517 -0
  248. package/es/Tree/style/index.d.ts +1 -0
  249. package/es/Tree/style/index.js +1 -0
  250. package/es/UploadOss/index.js +18 -0
  251. package/es/UploadOss/style/index.js +3 -0
  252. package/es/UploadOss/style/style.css +121 -0
  253. package/es/UploadOss/uploadBtn.js +141 -0
  254. package/es/UploadOss/uploadImg.js +282 -0
  255. package/es/VirtualList/index.js +84 -0
  256. package/es/VirtualList/style/index.js +3 -0
  257. package/es/VirtualList/style/style.css +0 -0
  258. package/es/index.js +343 -0
  259. package/es/message/index.d.ts +7 -0
  260. package/es/message/index.js +12 -0
  261. package/es/message/style/index.css +509 -0
  262. package/es/message/style/index.d.ts +1 -0
  263. package/es/message/style/index.js +1 -0
  264. package/es/services/newRequest.js +201 -0
  265. package/es/services/utils.js +72 -0
  266. package/es/styles/globalClass.css +63 -0
  267. package/es/styles/icon.css +15 -0
  268. package/es/styles/main.css +505 -0
  269. package/es/styles/resetAntd.css +83 -0
  270. package/es/styles/them.css +0 -0
  271. package/lib/Button/index.d.ts +3 -0
  272. package/lib/Button/index.js +56 -0
  273. package/lib/Button/style/index.d.ts +1 -0
  274. package/lib/Button/style/index.js +3 -0
  275. package/lib/Button/style/style.css +110 -0
  276. package/lib/ButtonTags/style/index.js +3 -0
  277. package/lib/ButtonTags/style/style.css +577 -0
  278. package/lib/Card/index.d.ts +2 -0
  279. package/lib/Card/index.js +29 -0
  280. package/lib/Card/style/index.css +505 -0
  281. package/lib/Card/style/index.d.ts +1 -0
  282. package/lib/Card/style/index.js +3 -0
  283. package/lib/Checkbox/style/index.js +3 -0
  284. package/lib/Checkbox/style/style.css +128 -0
  285. package/lib/CkFilter/baseFilter/NestedFilter.js +137 -0
  286. package/lib/CkFilter/baseFilter/filterMenu.js +222 -0
  287. package/lib/CkFilter/baseFilter/index.js +92 -0
  288. package/lib/CkFilter/baseFilter/moreFilters.js +237 -0
  289. package/lib/CkFilter/complexFilter/drawer.js +379 -0
  290. package/lib/CkFilter/complexFilter/index.js +69 -0
  291. package/lib/CkFilter/components/CascaderFilter.js +132 -0
  292. package/lib/CkFilter/components/CheckboxTags.js +53 -0
  293. package/lib/CkFilter/components/Controls.js +53 -0
  294. package/lib/CkFilter/components/CustomModal.js +230 -0
  295. package/lib/CkFilter/components/DragBox/DndContainer.js +49 -0
  296. package/lib/CkFilter/components/DragBox/index.js +63 -0
  297. package/lib/CkFilter/components/DragBox/sortableBox.js +24 -0
  298. package/lib/CkFilter/components/DragBox/sortableItem.js +111 -0
  299. package/lib/CkFilter/components/Nested.js +90 -0
  300. package/lib/CkFilter/components/filterTypes.js +815 -0
  301. package/lib/CkFilter/components/modal.js +297 -0
  302. package/lib/CkFilter/components/modalBack.js +261 -0
  303. package/lib/CkFilter/customFilter/drawer.js +395 -0
  304. package/lib/CkFilter/customFilter/index.js +129 -0
  305. package/lib/CkFilter/customFilter/radioGroup.js +64 -0
  306. package/lib/CkFilter/style/index.js +3 -0
  307. package/lib/CkFilter/style/style.css +1084 -0
  308. package/lib/CustomTableOption/columnsSort.d.ts +4 -0
  309. package/lib/CustomTableOption/columnsSort.js +336 -0
  310. package/lib/CustomTableOption/filterSort.d.ts +4 -0
  311. package/lib/CustomTableOption/filterSort.js +213 -0
  312. package/lib/CustomTableOption/index.d.ts +12 -0
  313. package/lib/CustomTableOption/index.js +140 -0
  314. package/lib/CustomTableOption/style/index.css +548 -0
  315. package/lib/CustomTableOption/style/index.d.ts +1 -0
  316. package/lib/CustomTableOption/style/index.js +3 -0
  317. package/lib/CustomerService/assets/question01.png +0 -0
  318. package/lib/CustomerService/assets/send.png +0 -0
  319. package/lib/CustomerService/assets/service.png +0 -0
  320. package/lib/CustomerService/assets/shuoming01.png +0 -0
  321. package/lib/CustomerService/assets/shuoming02.png +0 -0
  322. package/lib/CustomerService/components/question.js +120 -0
  323. package/lib/CustomerService/style/index.js +3 -0
  324. package/lib/CustomerService/style/style.css +758 -0
  325. package/lib/Drawer/index.d.ts +10 -0
  326. package/lib/Drawer/index.js +55 -0
  327. package/lib/Drawer/style/index.css +512 -0
  328. package/lib/Drawer/style/index.d.ts +1 -0
  329. package/lib/Drawer/style/index.js +3 -0
  330. package/lib/Dropdown/index.d.ts +14 -0
  331. package/lib/Dropdown/index.js +129 -0
  332. package/lib/Dropdown/style/index.css +567 -0
  333. package/lib/Dropdown/style/index.d.ts +1 -0
  334. package/lib/Dropdown/style/index.js +3 -0
  335. package/lib/EditTable/style/index.js +3 -0
  336. package/lib/EditTable/style/style.css +521 -0
  337. package/lib/Empty/index.d.ts +7 -0
  338. package/lib/Empty/index.js +15 -0
  339. package/lib/Empty/style/index.css +505 -0
  340. package/lib/Empty/style/index.d.ts +1 -0
  341. package/lib/Empty/style/index.js +3 -0
  342. package/lib/EnlargeImg/style/index.js +3 -0
  343. package/lib/EnlargeImg/style/style.css +4 -0
  344. package/lib/Filter/baseFilter/Popover.js +214 -0
  345. package/lib/Filter/baseFilter/ToggleFilter.js +112 -0
  346. package/lib/Filter/baseFilter/index.js +100 -0
  347. package/lib/Filter/complex/ComplexFilter.js +149 -0
  348. package/lib/Filter/complex/ComplexItem.js +157 -0
  349. package/lib/Filter/components/Checkbox.js +94 -0
  350. package/lib/Filter/components/Date.js +87 -0
  351. package/lib/Filter/components/Input.js +63 -0
  352. package/lib/Filter/components/Select.js +89 -0
  353. package/lib/Filter/components/Tree.js +64 -0
  354. package/lib/Filter/components/header.js +60 -0
  355. package/lib/Filter/components/index.js +47 -0
  356. package/lib/Filter/edit/editFilter.js +277 -0
  357. package/lib/Filter/style/index.js +3 -0
  358. package/lib/Filter/style/style.css +776 -0
  359. package/lib/Icon/style/index.js +1 -0
  360. package/lib/Icon/style/style.css +0 -0
  361. package/lib/IconFont/style/index.js +1 -0
  362. package/lib/IconFont/style/style.css +0 -0
  363. package/lib/IconSelect/style/index.js +3 -0
  364. package/lib/IconSelect/style/style.css +25 -0
  365. package/lib/Image/index.d.ts +2 -0
  366. package/lib/Image/index.js +15 -0
  367. package/lib/Image/style/index.css +505 -0
  368. package/lib/Image/style/index.d.ts +1 -0
  369. package/lib/Image/style/index.js +3 -0
  370. package/lib/Input/style/index.js +3 -0
  371. package/lib/Input/style/style.css +738 -0
  372. package/lib/InputNumber/index.d.ts +11 -0
  373. package/lib/InputNumber/index.js +56 -0
  374. package/lib/InputNumber/style/index.css +540 -0
  375. package/lib/InputNumber/style/index.d.ts +1 -0
  376. package/lib/InputNumber/style/index.js +3 -0
  377. package/lib/LeftTable/assets/imgTest.jpg +0 -0
  378. package/lib/LeftTable/style/index.js +3 -0
  379. package/lib/LeftTable/style/style.css +617 -0
  380. package/lib/LmTable/ImgList/body.js +111 -0
  381. package/lib/LmTable/ImgList/cardCell.js +192 -0
  382. package/lib/LmTable/ImgList/context.js +12 -0
  383. package/lib/LmTable/ImgList/empty.js +24 -0
  384. package/lib/LmTable/ImgList/footer.js +59 -0
  385. package/lib/LmTable/ImgList/imgCell.js +175 -0
  386. package/lib/LmTable/ImgList/imgTable.js +110 -0
  387. package/lib/LmTable/ImgList/index.js +13 -0
  388. package/lib/LmTable/Table.js +55 -20
  389. package/lib/LmTable/style/index.js +3 -0
  390. package/lib/LmTable/style/style.css +1377 -0
  391. package/lib/LoadingPage/style/index.js +1 -0
  392. package/lib/LoadingPage/style/style.css +0 -0
  393. package/lib/Menu/index.d.ts +7 -0
  394. package/lib/Menu/index.js +15 -0
  395. package/lib/Menu/style/index.css +505 -0
  396. package/lib/Menu/style/index.d.ts +1 -0
  397. package/lib/Menu/style/index.js +3 -0
  398. package/lib/Modal/index.d.ts +12 -0
  399. package/lib/Modal/index.js +108 -0
  400. package/lib/Modal/style/index.css +540 -0
  401. package/lib/Modal/style/index.d.ts +1 -0
  402. package/lib/Modal/style/index.js +3 -0
  403. package/lib/Notification/index.d.ts +7 -0
  404. package/lib/Notification/index.js +23 -0
  405. package/lib/Notification/style/index.css +508 -0
  406. package/lib/Notification/style/index.d.ts +1 -0
  407. package/lib/Notification/style/index.js +3 -0
  408. package/lib/OldModal/style/index.js +3 -0
  409. package/lib/OldModal/style/style.css +119 -0
  410. package/lib/Pagination/index.d.ts +7 -0
  411. package/lib/Pagination/index.js +50 -0
  412. package/lib/Pagination/style/index.css +554 -0
  413. package/lib/Pagination/style/index.d.ts +1 -0
  414. package/lib/Pagination/style/index.js +3 -0
  415. package/lib/PopTable/style/index.js +3 -0
  416. package/lib/PopTable/style/style.css +715 -0
  417. package/lib/ProTable/ImgList/body.js +111 -0
  418. package/lib/ProTable/ImgList/cardCell.js +192 -0
  419. package/lib/ProTable/ImgList/context.js +12 -0
  420. package/lib/ProTable/ImgList/empty.js +24 -0
  421. package/lib/ProTable/ImgList/footer.js +59 -0
  422. package/lib/ProTable/ImgList/imgCell.js +181 -0
  423. package/lib/ProTable/ImgList/imgTable.js +110 -0
  424. package/lib/ProTable/ImgList/index.js +13 -0
  425. package/lib/ProTable/style/index.js +3 -0
  426. package/lib/ProTable/style/style.css +1079 -0
  427. package/lib/Radio/index.js +50 -0
  428. package/lib/Radio/style/index.js +3 -0
  429. package/lib/Radio/style/style.css +138 -0
  430. package/lib/Select/index.d.ts +18 -0
  431. package/lib/Select/index.js +54 -0
  432. package/lib/Select/style/index.css +517 -0
  433. package/lib/Select/style/index.d.ts +1 -0
  434. package/lib/Select/style/index.js +3 -0
  435. package/lib/Space/index.d.ts +4 -0
  436. package/lib/Space/index.js +15 -0
  437. package/lib/Space/style/index.css +505 -0
  438. package/lib/Space/style/index.d.ts +1 -0
  439. package/lib/Space/style/index.js +3 -0
  440. package/lib/Switch/index.d.ts +2 -0
  441. package/lib/Switch/index.js +15 -0
  442. package/lib/Switch/style/index.css +505 -0
  443. package/lib/Switch/style/index.d.ts +1 -0
  444. package/lib/Switch/style/index.js +3 -0
  445. package/lib/TabBar/index.d.ts +12 -0
  446. package/lib/TabBar/index.js +45 -0
  447. package/lib/TabBar/style/index.d.ts +1 -0
  448. package/lib/TabBar/style/index.js +3 -0
  449. package/lib/TabBar/style/style.css +86 -0
  450. package/lib/Table/index.d.ts +2 -0
  451. package/lib/Table/index.js +15 -0
  452. package/lib/Table/style/index.css +505 -0
  453. package/lib/Table/style/index.d.ts +1 -0
  454. package/lib/Table/style/index.js +3 -0
  455. package/lib/TableRender/index.js +15 -0
  456. package/lib/TableRender/state.js +72 -0
  457. package/lib/TableRender/style/index.js +3 -0
  458. package/lib/TableRender/style/style.css +0 -0
  459. package/lib/Tabs/index.d.ts +12 -0
  460. package/lib/Tabs/index.js +46 -0
  461. package/lib/Tabs/style/index.css +511 -0
  462. package/lib/Tabs/style/index.d.ts +1 -0
  463. package/lib/Tabs/style/index.js +3 -0
  464. package/lib/Tag/index.d.ts +12 -0
  465. package/lib/Tag/index.js +52 -0
  466. package/lib/Tag/style/index.css +566 -0
  467. package/lib/Tag/style/index.d.ts +1 -0
  468. package/lib/Tag/style/index.js +3 -0
  469. package/lib/Tree/index.d.ts +12 -0
  470. package/lib/Tree/index.js +47 -0
  471. package/lib/Tree/style/index.css +517 -0
  472. package/lib/Tree/style/index.d.ts +1 -0
  473. package/lib/Tree/style/index.js +3 -0
  474. package/lib/UploadOss/index.js +18 -0
  475. package/lib/UploadOss/style/index.js +3 -0
  476. package/lib/UploadOss/style/style.css +121 -0
  477. package/lib/UploadOss/uploadBtn.js +141 -0
  478. package/lib/UploadOss/uploadImg.js +282 -0
  479. package/lib/VirtualList/index.js +84 -0
  480. package/lib/VirtualList/style/index.js +3 -0
  481. package/lib/VirtualList/style/style.css +0 -0
  482. package/lib/index.js +33 -1
  483. package/lib/message/index.d.ts +7 -0
  484. package/lib/message/index.js +24 -0
  485. package/lib/message/style/index.css +509 -0
  486. package/lib/message/style/index.d.ts +1 -0
  487. package/lib/message/style/index.js +3 -0
  488. package/lib/services/newRequest.js +201 -0
  489. package/lib/services/utils.js +72 -0
  490. package/lib/styles/globalClass.css +63 -0
  491. package/lib/styles/icon.css +15 -0
  492. package/lib/styles/main.css +505 -0
  493. package/lib/styles/resetAntd.css +83 -0
  494. package/lib/styles/them.css +0 -0
  495. package/package.json +1 -1
package/dist/index.umd.js CHANGED
@@ -74018,7 +74018,7 @@
74018
74018
  editConfig: editConfig
74019
74019
  };
74020
74020
 
74021
- var _excluded$_ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
74021
+ var _excluded$_ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck", "rowSelection", "columnsState", "tableRowType"];
74022
74022
  var Summary = ProviderWarp.Summary;
74023
74023
  var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
74024
74024
  var dataSource = props.dataSource,
@@ -74034,9 +74034,12 @@
74034
74034
  _props$virtual = props.virtual,
74035
74035
  virtual = _props$virtual === void 0 ? false : _props$virtual,
74036
74036
  customCheck = props.customCheck,
74037
+ rowSelection = props.rowSelection,
74038
+ columnsState = props.columnsState,
74039
+ _props$tableRowType = props.tableRowType,
74040
+ tableRowType = _props$tableRowType === void 0 ? 'default' : _props$tableRowType,
74037
74041
  resetProps = _objectWithoutProperties(props, _excluded$_);
74038
74042
 
74039
- console.log(virtual, '--virtual', autoSize);
74040
74043
  var _resetProps$rowKey = resetProps.rowKey,
74041
74044
  rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
74042
74045
 
@@ -74080,7 +74083,9 @@
74080
74083
  };
74081
74084
 
74082
74085
  var resetColumns = React.useCallback(function () {
74083
- return useColumns.map(function (col, index) {
74086
+ return useColumns.filter(function (item) {
74087
+ return item.show !== false;
74088
+ }).map(function (col, index) {
74084
74089
  return _objectSpread(_objectSpread({}, col), {}, {
74085
74090
  width: col.width,
74086
74091
  onHeaderCell: function onHeaderCell(column) {
@@ -74103,20 +74108,25 @@
74103
74108
  trigger = _Object$assign.trigger,
74104
74109
  highlight = _Object$assign.highlight;
74105
74110
 
74111
+ console.log(trigger, highlight, 'rowclick');
74112
+
74106
74113
  if (highlight) {
74107
74114
  setActiveKey(record[rowKey]);
74108
74115
  }
74109
74116
 
74110
74117
  if (trigger === 'row') {
74111
74118
  var selectedRows = useSelectedRows.selectedRows;
74112
- var selectedRowKeys = selectedRows.map(function (v) {
74113
- return v[rowKey];
74114
- });
74115
- var Idx = selectedRowKeys.indexOf(record[rowKey]);
74116
- Idx >= 0 ? selectedRows.splice(Idx, 1) : selectedRows.push(record);
74117
- setSelectedRows({
74118
- selectedRows: selectedRows
74119
- });
74119
+
74120
+ if (tableRowType === 'select' || tableRowType === 'default' && selectedRows.length) {
74121
+ var selectedRowKeys = selectedRows.map(function (v) {
74122
+ return v[rowKey];
74123
+ });
74124
+ var Idx = selectedRowKeys.indexOf(record[rowKey]);
74125
+ Idx >= 0 ? selectedRows.splice(Idx, 1) : selectedRows.push(record);
74126
+ setSelectedRows({
74127
+ selectedRows: selectedRows
74128
+ });
74129
+ }
74120
74130
  }
74121
74131
 
74122
74132
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(record);
@@ -74130,6 +74140,7 @@
74130
74140
 
74131
74141
 
74132
74142
  var config = React.useMemo(function () {
74143
+ console.log(resetProps, 'resetPropsresetProps');
74133
74144
  return _objectSpread({
74134
74145
  defaultSize: 'small',
74135
74146
  tableLayout: 'fixed',
@@ -74145,6 +74156,7 @@
74145
74156
  columnsState: {
74146
74157
  value: columnsStateMap,
74147
74158
  onChange: function onChange(k) {
74159
+ console.log(k, 'kkk');
74148
74160
  setColumnsStateMap(k);
74149
74161
  }
74150
74162
  },
@@ -74152,9 +74164,9 @@
74152
74164
  tableAlertRender: false,
74153
74165
  checkConfig: checkConfig,
74154
74166
  // components: vComponents,
74155
- scroll: _objectSpread({
74167
+ scroll: resetProps.autoSizer || resetProps.scroll ? _objectSpread({
74156
74168
  y: autoSize.height
74157
- }, props.scroll),
74169
+ }, resetProps.scroll) : null,
74158
74170
  pagination: !hiddenPage && _objectSpread({
74159
74171
  showSizeChanger: true,
74160
74172
  showQuickJumper: true,
@@ -74162,7 +74174,7 @@
74162
74174
  return "\u5171 ".concat(total, " \u6761");
74163
74175
  }
74164
74176
  }, pagination),
74165
- rowSelection: {
74177
+ rowSelection: rowSelection === false ? null : _objectSpread({
74166
74178
  fixed: true,
74167
74179
  type: 'checkbox',
74168
74180
  columnWidth: 36,
@@ -74175,7 +74187,7 @@
74175
74187
  });
74176
74188
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
74177
74189
  }
74178
- },
74190
+ }, rowSelection),
74179
74191
  onRow: function onRow(record) {
74180
74192
  return {
74181
74193
  onClick: function onClick(e) {
@@ -74221,7 +74233,8 @@
74221
74233
  // }, [columns, autoSize.width])
74222
74234
 
74223
74235
  React.useEffect(function () {
74224
- var obj = {};
74236
+ var obj = _objectSpread({}, columnsState);
74237
+
74225
74238
  columns === null || columns === void 0 ? void 0 : columns.forEach(function (item) {
74226
74239
  if (item.fixed) {
74227
74240
  obj[item.dataIndex || item.key] = {
@@ -74231,6 +74244,10 @@
74231
74244
  });
74232
74245
  setColumnsStateMap(obj);
74233
74246
  }, []); // useEffect(() => {
74247
+ // console.log(props.columnsStateValue, 'v vv')
74248
+ // setColumnsStateMap(props.columnsStateValue)
74249
+ // }, [props.columnsStateValue])
74250
+ // useEffect(() => {
74234
74251
  // rowClick?.()
74235
74252
  // }, [useSelectedRows])
74236
74253
  // 将节点方法给外部使用
@@ -74282,6 +74299,27 @@
74282
74299
  /** 1: 使用scroll.x y 来控制宽高 默认都是100% */
74283
74300
 
74284
74301
  var ResizeSize = /*#__PURE__*/React.forwardRef(function (props, ref) {
74302
+ var _props$autoSizer = props.autoSizer,
74303
+ autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
74304
+
74305
+ if (!autoSizer) {
74306
+ return /*#__PURE__*/React__default['default'].createElement("div", {
74307
+ ref: tableWarpRef,
74308
+ id: "lm_protable_warp",
74309
+ style: {
74310
+ width: '100%',
74311
+ height: '100%'
74312
+ }
74313
+ }, /*#__PURE__*/React__default['default'].createElement(ResetTable, _extends({
74314
+ ref: defaultRef
74315
+ }, props, {
74316
+ autoSize: {
74317
+ height: '100%',
74318
+ width: '100%'
74319
+ }
74320
+ })));
74321
+ }
74322
+
74285
74323
  var _useState9 = React.useState({
74286
74324
  width: '100%',
74287
74325
  height: '100%'
@@ -74295,11 +74333,10 @@
74295
74333
  var resizeRef = React.useRef(null);
74296
74334
  var resetHeight = React.useMemo(function () {
74297
74335
  var height = tableSize.height;
74298
- console.log(3);
74299
- var h = height - 48;
74336
+ var h = height - 32;
74300
74337
 
74301
74338
  if (!props.hiddenPage || props.customCheck) {
74302
- h -= 32;
74339
+ h -= 48;
74303
74340
  }
74304
74341
 
74305
74342
  if (props.columns.some(function (v) {
@@ -74354,7 +74391,6 @@
74354
74391
  _tableWarpRef$current7 = _tableWarpRef$current5.height,
74355
74392
  height = _tableWarpRef$current7 === void 0 ? '100%' : _tableWarpRef$current7;
74356
74393
 
74357
- console.log(width, height, '--tableWarpReftableWarpRef', tableWarpRef.current);
74358
74394
  var value = summary ? 48 : 0;
74359
74395
  resizeRef.current = window.addEventListener('resize', handResize);
74360
74396
  setTableSize({
@@ -81018,7 +81054,7 @@
81018
81054
  LmTree.DirectoryTree = _Tree__default['default'].DirectoryTree;
81019
81055
 
81020
81056
  var _excluded$1g = ["className", "color"];
81021
- var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
81057
+ var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', 'theme'];
81022
81058
  var prefixCls$7 = 'lm_tag';
81023
81059
  var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
81024
81060
  var className = props.className,
@@ -81031,25 +81067,635 @@
81031
81067
  color: color,
81032
81068
  className: classnames(prefixCls$7, {
81033
81069
  lm_tag_noborder: !!props.noborder
81034
- }, className, PresetColorTypes.includes(color) && "lm_tag_main_color")
81070
+ }, className, PresetColorTypes.includes(color) && "lm_tag_main_color lm_tag_main_".concat(color))
81035
81071
  }));
81036
81072
  });
81037
81073
  LmTag.CheckableTag = _Tag__default['default'].CheckableTag;
81038
81074
 
81039
- var _excluded$1h = ["className"];
81075
+ var _excluded$1h = ["className", "noBorder"];
81040
81076
  var prefixCls$8 = 'lm_tabs';
81041
81077
 
81042
81078
  var LMTabs = function LMTabs(props) {
81043
81079
  var className = props.className,
81080
+ _props$noBorder = props.noBorder,
81081
+ noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
81044
81082
  others = _objectWithoutProperties(props, _excluded$1h);
81045
81083
 
81046
81084
  return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _extends({}, others, {
81047
- className: classnames(className, prefixCls$8)
81085
+ className: classnames(className, prefixCls$8, noBorder && 'lm_tabs_noborder')
81048
81086
  }));
81049
81087
  };
81050
81088
 
81051
81089
  LMTabs.TabPane = _Tabs__default['default'].TabPane;
81052
81090
 
81091
+ var SortItem = function SortItem(props) {
81092
+ var _props$item, _props$item2, _props$item3, _props$item4;
81093
+
81094
+ var _useSortable = useSortable({
81095
+ id: "".concat(props.id)
81096
+ }),
81097
+ attributes = _useSortable.attributes,
81098
+ listeners = _useSortable.listeners,
81099
+ setNodeRef = _useSortable.setNodeRef,
81100
+ transform = _useSortable.transform,
81101
+ transition = _useSortable.transition;
81102
+
81103
+ var style = {
81104
+ transform: CSS.Transform.toString(transform),
81105
+ transition: transition
81106
+ };
81107
+ return /*#__PURE__*/React__default['default'].createElement("div", _extends({
81108
+ ref: setNodeRef,
81109
+ className: "lm_custom_item",
81110
+ style: style
81111
+ }, attributes), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Checkbox, {
81112
+ checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show) === false ? false : true,
81113
+ onChange: function onChange(e) {
81114
+ return props.toggleShow(e.target.checked, props.id);
81115
+ },
81116
+ className: "filter_item-content"
81117
+ }, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, ((_props$item3 = props.item) === null || _props$item3 === void 0 ? void 0 : _props$item3.fixed) && /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.IconFont, {
81118
+ type: "lmweb-vertical-align-middl",
81119
+ className: "lm_custom_icon hover_show",
81120
+ onClick: function onClick(e) {
81121
+ e.stopPropagation();
81122
+ props.clearFiexd(props.id);
81123
+ }
81124
+ }), !((_props$item4 = props.item) === null || _props$item4 === void 0 ? void 0 : _props$item4.fixed) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.IconFont, {
81125
+ type: "lmweb-vertical-align-top",
81126
+ className: "lm_custom_icon hover_show icon_top",
81127
+ onClick: function onClick(e) {
81128
+ console.log(e, 'eee');
81129
+ e.stopPropagation();
81130
+ props.addFiexd(props.id, 'left');
81131
+ }
81132
+ }), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.IconFont, {
81133
+ type: "lmweb-vertical-align-botto",
81134
+ className: "lm_custom_icon hover_show icon_bottom",
81135
+ onClick: function onClick(e) {
81136
+ e.stopPropagation();
81137
+ props.addFiexd(props.id, 'right');
81138
+ }
81139
+ })), /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _extends({}, listeners, {
81140
+ className: "lm_custom_icon sort_item",
81141
+ style: {
81142
+ color: 'var(--tip-text-color)'
81143
+ }
81144
+ }))));
81145
+ };
81146
+ /** order show fixed */
81147
+
81148
+
81149
+ var ColumnsSort = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
81150
+ var _sortMenu$leftSortIte, _sortMenu$leftSortIte2, _sortMenu$items, _sortMenu$items2, _sortMenu$items3, _sortMenu$rigthSortIt, _sortMenu$rigthSortIt2;
81151
+
81152
+ var _ref$columns = _ref.columns,
81153
+ columns = _ref$columns === void 0 ? [] : _ref$columns,
81154
+ _ref$ColumnsStateValu = _ref.ColumnsStateValue,
81155
+ ColumnsStateValue = _ref$ColumnsStateValu === void 0 ? {} : _ref$ColumnsStateValu;
81156
+
81157
+ var _useState = React.useState([]),
81158
+ _useState2 = _slicedToArray(_useState, 2),
81159
+ localColumns = _useState2[0],
81160
+ setLocalColumns = _useState2[1];
81161
+
81162
+ var _useState3 = React.useState({}),
81163
+ _useState4 = _slicedToArray(_useState3, 2),
81164
+ colStateValue = _useState4[0],
81165
+ setColStateValue = _useState4[1];
81166
+
81167
+ var sortMenu = React.useMemo(function () {
81168
+ var cloneCol = lodash.cloneDeep(localColumns);
81169
+ cloneCol.forEach(function (item, index) {
81170
+ var _ColumnsStateValue$it, _ColumnsStateValue$it2;
81171
+
81172
+ var fixed = (_ColumnsStateValue$it = ColumnsStateValue[item.dataIndex]) === null || _ColumnsStateValue$it === void 0 ? void 0 : _ColumnsStateValue$it.fixed;
81173
+ var order = (_ColumnsStateValue$it2 = ColumnsStateValue[item.dataIndex]) === null || _ColumnsStateValue$it2 === void 0 ? void 0 : _ColumnsStateValue$it2.order;
81174
+
81175
+ if (!!fixed) {
81176
+ item.fixed = fixed;
81177
+ }
81178
+
81179
+ item.order = order !== undefined && order !== null ? order : index;
81180
+ });
81181
+ var leftSortItem = [];
81182
+ var rigthSortItem = [];
81183
+ var items = [];
81184
+ cloneCol === null || cloneCol === void 0 ? void 0 : cloneCol.forEach(function (item) {
81185
+ if ((item === null || item === void 0 ? void 0 : item.fixed) === 'right') {
81186
+ rigthSortItem.push(item);
81187
+ } else if (!(item === null || item === void 0 ? void 0 : item.fixed)) {
81188
+ items.push(item);
81189
+ } else {
81190
+ leftSortItem.push(item);
81191
+ }
81192
+ });
81193
+ return {
81194
+ leftSortItem: leftSortItem,
81195
+ rigthSortItem: rigthSortItem,
81196
+ items: items
81197
+ };
81198
+ }, [localColumns, colStateValue]);
81199
+ var isCheckAll = React.useMemo(function () {
81200
+ var showLength = localColumns.filter(function (item) {
81201
+ return item.show !== false;
81202
+ });
81203
+ return {
81204
+ indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length ? true : false,
81205
+ checkAll: showLength.length === localColumns.length
81206
+ };
81207
+ }, [localColumns]);
81208
+ React.useEffect(function () {
81209
+ setLocalColumns(columns);
81210
+ setColStateValue(ColumnsStateValue);
81211
+ }, []);
81212
+ var leftSensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
81213
+ coordinateGetter: sortableKeyboardCoordinates
81214
+ }));
81215
+ var sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
81216
+ coordinateGetter: sortableKeyboardCoordinates
81217
+ }));
81218
+ var rightSensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
81219
+ coordinateGetter: sortableKeyboardCoordinates
81220
+ }));
81221
+ /** 排序结束回调 */
81222
+
81223
+ var handleDragEnd = function handleDragEnd(event) {
81224
+ var active = event.active,
81225
+ over = event.over;
81226
+
81227
+ if (active.id !== over.id) {
81228
+ setLocalColumns(function (items) {
81229
+ var oldIndex = items.findIndex(function (s) {
81230
+ return s.dataIndex === active.id;
81231
+ });
81232
+ var newIndex = items.findIndex(function (s) {
81233
+ return s.dataIndex === over.id;
81234
+ });
81235
+ console.log(arrayMove(items, oldIndex, newIndex), 77);
81236
+ return arrayMove(items, oldIndex, newIndex).map(function (item, index) {
81237
+ return _objectSpread(_objectSpread({}, item), {}, {
81238
+ order: index
81239
+ });
81240
+ });
81241
+ });
81242
+ }
81243
+ };
81244
+ /** 取消固定 */
81245
+
81246
+
81247
+ var clearFiexd = function clearFiexd(id) {
81248
+ var resultColumns = localColumns.map(function (item) {
81249
+ if (item.dataIndex === id) {
81250
+ return _objectSpread(_objectSpread({}, item), {}, {
81251
+ fixed: undefined
81252
+ });
81253
+ }
81254
+
81255
+ return _objectSpread({}, item);
81256
+ });
81257
+ setLocalColumns(resultColumns);
81258
+ };
81259
+ /** 添加是否显示 */
81260
+
81261
+
81262
+ var toggleShow = function toggleShow(value, id) {
81263
+ var resultColumns = localColumns.map(function (item) {
81264
+ if (item.dataIndex === id) {
81265
+ return _objectSpread(_objectSpread({}, item), {}, {
81266
+ show: item.show === false ? true : false
81267
+ });
81268
+ }
81269
+
81270
+ return _objectSpread({}, item);
81271
+ });
81272
+ setLocalColumns(resultColumns);
81273
+ };
81274
+ /** 添加左右固定 */
81275
+
81276
+
81277
+ var addFiexd = function addFiexd(id, type) {
81278
+ var resultColumns = localColumns.map(function (item) {
81279
+ if (item.dataIndex === id) {
81280
+ return _objectSpread(_objectSpread({}, item), {}, {
81281
+ fixed: type
81282
+ });
81283
+ }
81284
+
81285
+ return _objectSpread({}, item);
81286
+ });
81287
+ setLocalColumns(resultColumns);
81288
+ };
81289
+ /** 切换是否全选 */
81290
+
81291
+
81292
+ var onCheckAllChange = function onCheckAllChange() {
81293
+ var resultColumns = localColumns.map(function (item) {
81294
+ return _objectSpread(_objectSpread({}, item), {}, {
81295
+ show: isCheckAll.checkAll ? false : true
81296
+ });
81297
+ });
81298
+ setLocalColumns(resultColumns);
81299
+ };
81300
+
81301
+ React.useImperativeHandle(ref, function () {
81302
+ return {
81303
+ getColumns: function getColumns() {
81304
+ return localColumns;
81305
+ },
81306
+ getColStateValue: function getColStateValue() {
81307
+ var obj = {};
81308
+ localColumns.forEach(function (item) {
81309
+ obj[item.dataIndex] = {};
81310
+
81311
+ if (![undefined, null].includes(item.order)) {
81312
+ obj[item.dataIndex]['order'] = item.order;
81313
+ }
81314
+
81315
+ if (![undefined, null].includes(item.order)) {
81316
+ obj[item.dataIndex]['show'] = item.show;
81317
+ }
81318
+
81319
+ if (![undefined, null].includes(item.fixed)) {
81320
+ obj[item.dataIndex]['fixed'] = item.fixed;
81321
+ }
81322
+ });
81323
+ return obj;
81324
+ }
81325
+ };
81326
+ });
81327
+ return /*#__PURE__*/React__default['default'].createElement("div", {
81328
+ className: "lm_custom_option_columns"
81329
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
81330
+ className: "global_setting"
81331
+ }, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Checkbox, {
81332
+ indeterminate: isCheckAll.indeterminate,
81333
+ onChange: onCheckAllChange,
81334
+ checked: isCheckAll.checkAll
81335
+ }, "\u5168\u9009"), /*#__PURE__*/React__default['default'].createElement("span", {
81336
+ onClick: function onClick() {
81337
+ return setLocalColumns(columns);
81338
+ }
81339
+ }, "\u91CD\u7F6E")), !!((_sortMenu$leftSortIte = sortMenu.leftSortItem) === null || _sortMenu$leftSortIte === void 0 ? void 0 : _sortMenu$leftSortIte.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
81340
+ className: "fixed_title"
81341
+ }, "\u56FA\u5B9A\u5728\u5DE6\u4FA7"), /*#__PURE__*/React__default['default'].createElement(DndContext, {
81342
+ sensors: leftSensors,
81343
+ collisionDetection: closestCenter,
81344
+ onDragEnd: handleDragEnd
81345
+ }, /*#__PURE__*/React__default['default'].createElement(SortableContext, {
81346
+ items: (_sortMenu$leftSortIte2 = sortMenu.leftSortItem) === null || _sortMenu$leftSortIte2 === void 0 ? void 0 : _sortMenu$leftSortIte2.map(function (v) {
81347
+ return "".concat(v.dataIndex);
81348
+ }),
81349
+ strategy: verticalListSortingStrategy
81350
+ }, sortMenu.leftSortItem.map(function (item) {
81351
+ return /*#__PURE__*/React__default['default'].createElement(SortItem, {
81352
+ key: item.dataIndex,
81353
+ item: item,
81354
+ toggleShow: toggleShow,
81355
+ clearFiexd: clearFiexd,
81356
+ id: item.dataIndex
81357
+ });
81358
+ })))), !!((_sortMenu$items = sortMenu.items) === null || _sortMenu$items === void 0 ? void 0 : _sortMenu$items.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
81359
+ className: "fixed_title"
81360
+ }, " \u4E0D\u56FA\u5B9A "), /*#__PURE__*/React__default['default'].createElement(DndContext, {
81361
+ sensors: sensors,
81362
+ collisionDetection: closestCenter,
81363
+ onDragEnd: handleDragEnd
81364
+ }, /*#__PURE__*/React__default['default'].createElement(SortableContext, {
81365
+ items: (_sortMenu$items2 = sortMenu.items) === null || _sortMenu$items2 === void 0 ? void 0 : _sortMenu$items2.map(function (v) {
81366
+ return "".concat(v.dataIndex);
81367
+ }),
81368
+ strategy: verticalListSortingStrategy
81369
+ }, (_sortMenu$items3 = sortMenu.items) === null || _sortMenu$items3 === void 0 ? void 0 : _sortMenu$items3.map(function (item) {
81370
+ return /*#__PURE__*/React__default['default'].createElement(SortItem, {
81371
+ key: item.dataIndex,
81372
+ addFiexd: addFiexd,
81373
+ toggleShow: toggleShow,
81374
+ item: item,
81375
+ id: item.dataIndex
81376
+ });
81377
+ })))), !!((_sortMenu$rigthSortIt = sortMenu.rigthSortItem) === null || _sortMenu$rigthSortIt === void 0 ? void 0 : _sortMenu$rigthSortIt.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
81378
+ className: "fixed_title"
81379
+ }, "\u56FA\u5B9A\u5728\u53F3\u4FA7"), /*#__PURE__*/React__default['default'].createElement(DndContext, {
81380
+ sensors: rightSensors,
81381
+ collisionDetection: closestCenter,
81382
+ onDragEnd: handleDragEnd
81383
+ }, /*#__PURE__*/React__default['default'].createElement(SortableContext, {
81384
+ items: (_sortMenu$rigthSortIt2 = sortMenu.rigthSortItem) === null || _sortMenu$rigthSortIt2 === void 0 ? void 0 : _sortMenu$rigthSortIt2.map(function (v) {
81385
+ return "".concat(v.dataIndex);
81386
+ }),
81387
+ strategy: verticalListSortingStrategy
81388
+ }, sortMenu.rigthSortItem.map(function (item) {
81389
+ return /*#__PURE__*/React__default['default'].createElement(SortItem, {
81390
+ key: item.dataIndex,
81391
+ toggleShow: toggleShow,
81392
+ clearFiexd: clearFiexd,
81393
+ item: item,
81394
+ id: item.dataIndex
81395
+ });
81396
+ })))));
81397
+ });
81398
+
81399
+ var UNLLVALUE = [null, undefined];
81400
+
81401
+ var SortItem$1 = function SortItem(props) {
81402
+ var _props$item, _props$item2;
81403
+
81404
+ var _useSortable = useSortable({
81405
+ id: "".concat(props.id)
81406
+ }),
81407
+ attributes = _useSortable.attributes,
81408
+ listeners = _useSortable.listeners,
81409
+ setNodeRef = _useSortable.setNodeRef,
81410
+ transform = _useSortable.transform,
81411
+ transition = _useSortable.transition;
81412
+
81413
+ var style = {
81414
+ transform: CSS.Transform.toString(transform),
81415
+ transition: transition
81416
+ };
81417
+ return /*#__PURE__*/React__default['default'].createElement("div", _extends({
81418
+ ref: setNodeRef,
81419
+ className: "lm_custom_item",
81420
+ style: style
81421
+ }, attributes), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Checkbox, {
81422
+ checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show) === false ? false : true,
81423
+ onChange: function onChange(e) {
81424
+ return props.toggleShow(e.target.checked, props.id);
81425
+ },
81426
+ className: "filter_item-content"
81427
+ }, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _extends({}, listeners, {
81428
+ className: "lm_custom_icon sort_item"
81429
+ }))));
81430
+ };
81431
+ /** order show fixed */
81432
+
81433
+
81434
+ var FilterSort = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
81435
+ var _ref$filter = _ref.filter,
81436
+ filter = _ref$filter === void 0 ? [] : _ref$filter,
81437
+ _ref$filterStateValue = _ref.filterStateValue,
81438
+ filterStateValue = _ref$filterStateValue === void 0 ? {} : _ref$filterStateValue;
81439
+
81440
+ var _useState = React.useState([]),
81441
+ _useState2 = _slicedToArray(_useState, 2),
81442
+ localFilter = _useState2[0],
81443
+ setLocalFilter = _useState2[1];
81444
+
81445
+ var _useState3 = React.useState({}),
81446
+ _useState4 = _slicedToArray(_useState3, 2),
81447
+ colStateValue = _useState4[0],
81448
+ setColStateValue = _useState4[1];
81449
+
81450
+ var sortMenu = React.useMemo(function () {
81451
+ var cloneCol = lodash.cloneDeep(localFilter);
81452
+ cloneCol.forEach(function (item, index) {
81453
+ var _filterStateValue$ite, _filterStateValue$ite2;
81454
+
81455
+ var order = (_filterStateValue$ite = filterStateValue[item.field]) === null || _filterStateValue$ite === void 0 ? void 0 : _filterStateValue$ite.order;
81456
+ item.order = order !== undefined && order !== null ? order : UNLLVALUE.includes(item.order) ? index : item.order;
81457
+ item.show = ((_filterStateValue$ite2 = filterStateValue[item.field]) === null || _filterStateValue$ite2 === void 0 ? void 0 : _filterStateValue$ite2.show) === false ? false : UNLLVALUE.includes(item.show) ? true : !!item.show;
81458
+ });
81459
+ return cloneCol;
81460
+ }, [localFilter, colStateValue]);
81461
+ var isCheckAll = React.useMemo(function () {
81462
+ var showLength = localFilter.filter(function (item) {
81463
+ return item.show !== false;
81464
+ });
81465
+ return {
81466
+ indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length ? true : false,
81467
+ checkAll: showLength.length === localFilter.length
81468
+ };
81469
+ }, [localFilter]);
81470
+ React.useEffect(function () {
81471
+ console.log(localFilter, 'localFilter');
81472
+ }, [localFilter]);
81473
+ React.useEffect(function () {
81474
+ setLocalFilter(filter);
81475
+ setColStateValue(filterStateValue);
81476
+ }, []);
81477
+ var sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
81478
+ coordinateGetter: sortableKeyboardCoordinates
81479
+ }));
81480
+ /** 排序结束回调 */
81481
+
81482
+ var handleDragEnd = function handleDragEnd(event) {
81483
+ var active = event.active,
81484
+ over = event.over;
81485
+
81486
+ if (active.id !== over.id) {
81487
+ setLocalFilter(function (items) {
81488
+ var oldIndex = items.findIndex(function (s) {
81489
+ return s.field === active.id;
81490
+ });
81491
+ var newIndex = items.findIndex(function (s) {
81492
+ return s.field === over.id;
81493
+ });
81494
+ console.log(arrayMove(items, oldIndex, newIndex), 77);
81495
+ return arrayMove(items, oldIndex, newIndex).map(function (item, index) {
81496
+ return _objectSpread(_objectSpread({}, item), {}, {
81497
+ order: index
81498
+ });
81499
+ });
81500
+ });
81501
+ }
81502
+ };
81503
+ /** 添加是否显示 */
81504
+
81505
+
81506
+ var toggleShow = function toggleShow(value, id) {
81507
+ var resultColumns = localFilter.map(function (item) {
81508
+ if (item.field === id) {
81509
+ return _objectSpread(_objectSpread({}, item), {}, {
81510
+ show: item.show === false ? true : false
81511
+ });
81512
+ }
81513
+
81514
+ return _objectSpread({}, item);
81515
+ });
81516
+ setLocalFilter(resultColumns);
81517
+ };
81518
+ /** 切换是否全选 */
81519
+
81520
+
81521
+ var onCheckAllChange = function onCheckAllChange() {
81522
+ var resultColumns = localFilter.map(function (item) {
81523
+ return _objectSpread(_objectSpread({}, item), {}, {
81524
+ show: isCheckAll.checkAll ? false : true
81525
+ });
81526
+ });
81527
+ console.log(resultColumns, 'resultColumns');
81528
+ setLocalFilter(resultColumns);
81529
+ };
81530
+
81531
+ React.useImperativeHandle(ref, function () {
81532
+ return {
81533
+ getLocalFilter: function getLocalFilter() {
81534
+ return localFilter;
81535
+ },
81536
+ getFilterStateValue: function getFilterStateValue() {
81537
+ var obj = {};
81538
+ localFilter.forEach(function (item) {
81539
+ obj[item.field] = {};
81540
+
81541
+ if (![undefined, null].includes(item.order)) {
81542
+ obj[item.field]['order'] = item.order;
81543
+ }
81544
+
81545
+ if (![undefined, null].includes(item.order)) {
81546
+ obj[item.field]['show'] = item.show;
81547
+ }
81548
+ });
81549
+ return obj;
81550
+ }
81551
+ };
81552
+ });
81553
+ return /*#__PURE__*/React__default['default'].createElement("div", {
81554
+ className: "lm_custom_option_columns"
81555
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
81556
+ className: "global_setting"
81557
+ }, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Checkbox, {
81558
+ indeterminate: isCheckAll.indeterminate,
81559
+ onChange: onCheckAllChange,
81560
+ checked: isCheckAll.checkAll
81561
+ }, "\u5168\u9009"), /*#__PURE__*/React__default['default'].createElement("span", {
81562
+ onClick: function onClick() {
81563
+ return setLocalFilter(filter);
81564
+ }
81565
+ }, "\u91CD\u7F6E")), !!(sortMenu === null || sortMenu === void 0 ? void 0 : sortMenu.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(DndContext, {
81566
+ sensors: sensors,
81567
+ collisionDetection: closestCenter,
81568
+ onDragEnd: handleDragEnd
81569
+ }, /*#__PURE__*/React__default['default'].createElement(SortableContext, {
81570
+ items: sortMenu === null || sortMenu === void 0 ? void 0 : sortMenu.map(function (v) {
81571
+ return "".concat(v.field);
81572
+ }),
81573
+ strategy: verticalListSortingStrategy
81574
+ }, sortMenu === null || sortMenu === void 0 ? void 0 : sortMenu.map(function (item) {
81575
+ return /*#__PURE__*/React__default['default'].createElement(SortItem$1, {
81576
+ key: item.field,
81577
+ toggleShow: toggleShow,
81578
+ item: item,
81579
+ id: item.field
81580
+ });
81581
+ })))));
81582
+ });
81583
+
81584
+ var TabPane$1 = linkmoreDesign.Tabs.TabPane;
81585
+ var optionsWithDisabled = [{
81586
+ label: '紧凑型',
81587
+ value: 'small'
81588
+ }, {
81589
+ label: '默认',
81590
+ value: 'default'
81591
+ }, {
81592
+ label: '中等',
81593
+ value: 'middle'
81594
+ }];
81595
+ var prefixCls$9 = 'lm_custom-table-option';
81596
+ var LMCustomTableOption = /*#__PURE__*/React.forwardRef(function (props, ref) {
81597
+ var className = props.className;
81598
+ var filterRef = React.useRef(null);
81599
+ var columnsRef = React.useRef(null); // const sizeRef = useRef(null)
81600
+
81601
+ var _useState = React.useState(false),
81602
+ _useState2 = _slicedToArray(_useState, 2),
81603
+ visible = _useState2[0],
81604
+ setVisible = _useState2[1];
81605
+
81606
+ var _useState3 = React.useState({
81607
+ filter: [],
81608
+ columns: [],
81609
+ size: 'small'
81610
+ }),
81611
+ _useState4 = _slicedToArray(_useState3, 2),
81612
+ lmOptions = _useState4[0],
81613
+ setLmOptions = _useState4[1];
81614
+
81615
+ var openSetting = function openSetting() {
81616
+ setVisible(true);
81617
+ };
81618
+
81619
+ React.useEffect(function () {
81620
+ setLmOptions({
81621
+ filter: props.filter,
81622
+ columns: props.columns,
81623
+ size: props.size
81624
+ });
81625
+ }, []);
81626
+ /** 提交按钮 */
81627
+
81628
+ var onOk = function onOk() {
81629
+ var _columnsRef$current, _columnsRef$current2, _filterRef$current, _filterRef$current2, _props$onSave;
81630
+
81631
+ /** tableInfo */
81632
+ var columnsData = (_columnsRef$current = columnsRef.current) === null || _columnsRef$current === void 0 ? void 0 : _columnsRef$current.getColumns();
81633
+ var ColStateValue = (_columnsRef$current2 = columnsRef.current) === null || _columnsRef$current2 === void 0 ? void 0 : _columnsRef$current2.getColStateValue();
81634
+ /** filterInfo */
81635
+
81636
+ var filterData = (_filterRef$current = filterRef.current) === null || _filterRef$current === void 0 ? void 0 : _filterRef$current.getLocalFilter();
81637
+ var filterStateValue = (_filterRef$current2 = filterRef.current) === null || _filterRef$current2 === void 0 ? void 0 : _filterRef$current2.getFilterStateValue();
81638
+ console.log('--columnsData:', columnsData, ColStateValue, '--filterData:', filterData, filterStateValue, 'size:', lmOptions.size);
81639
+ (_props$onSave = props.onSave) === null || _props$onSave === void 0 ? void 0 : _props$onSave.call(props, {
81640
+ columnsData: columnsData,
81641
+ ColStateValue: ColStateValue,
81642
+ filterData: filterData,
81643
+ filterStateValue: filterStateValue,
81644
+ size: lmOptions.size
81645
+ });
81646
+ };
81647
+
81648
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.IconFont, {
81649
+ type: "lmweb-setting",
81650
+ style: {
81651
+ fontSize: '20px'
81652
+ },
81653
+ onClick: openSetting
81654
+ }), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Drawer, {
81655
+ className: classnames(className, prefixCls$9),
81656
+ title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
81657
+ visible: visible,
81658
+ extra: /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Space, null, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, {
81659
+ size: "small",
81660
+ onClick: function onClick() {
81661
+ return setVisible(false);
81662
+ }
81663
+ }, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, {
81664
+ size: "small",
81665
+ onClick: onOk,
81666
+ type: "primary"
81667
+ }, "\u786E\u8BA4")),
81668
+ onClose: function onClose() {
81669
+ return setVisible(false);
81670
+ }
81671
+ }, /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Tabs, {
81672
+ defaultActiveKey: "1"
81673
+ }, /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
81674
+ tab: "\u4E2A\u6027\u5316\u7B5B\u9009",
81675
+ key: "1"
81676
+ }, /*#__PURE__*/React__default['default'].createElement(FilterSort, {
81677
+ ref: filterRef,
81678
+ filter: lmOptions.filter
81679
+ })), /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
81680
+ tab: "\u5217\u5B57\u6BB5\u8BBE\u7F6E",
81681
+ key: "2"
81682
+ }, /*#__PURE__*/React__default['default'].createElement(ColumnsSort, {
81683
+ ref: columnsRef,
81684
+ columns: lmOptions.columns
81685
+ })), /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
81686
+ tab: "\u5176\u4ED6",
81687
+ key: "3"
81688
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, "\u5217\u8868\u6837\u5F0F"), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Radio.Group, {
81689
+ options: optionsWithDisabled,
81690
+ onChange: function onChange(e) {
81691
+ return setLmOptions(_objectSpread(_objectSpread({}, lmOptions), {}, {
81692
+ size: e.target.value
81693
+ }));
81694
+ },
81695
+ value: lmOptions.size
81696
+ })))));
81697
+ });
81698
+
81053
81699
  Object.defineProperty(exports, 'Card', {
81054
81700
  enumerable: true,
81055
81701
  get: function () {
@@ -81062,18 +81708,36 @@
81062
81708
  return _Space__default['default'];
81063
81709
  }
81064
81710
  });
81711
+ Object.defineProperty(exports, 'Table', {
81712
+ enumerable: true,
81713
+ get: function () {
81714
+ return _Table__default['default'];
81715
+ }
81716
+ });
81065
81717
  Object.defineProperty(exports, 'message', {
81066
81718
  enumerable: true,
81067
81719
  get: function () {
81068
81720
  return _message__default['default'];
81069
81721
  }
81070
81722
  });
81723
+ Object.defineProperty(exports, 'Image', {
81724
+ enumerable: true,
81725
+ get: function () {
81726
+ return _Image__default['default'];
81727
+ }
81728
+ });
81071
81729
  Object.defineProperty(exports, 'Empty', {
81072
81730
  enumerable: true,
81073
81731
  get: function () {
81074
81732
  return _Empty__default['default'];
81075
81733
  }
81076
81734
  });
81735
+ Object.defineProperty(exports, 'Switch', {
81736
+ enumerable: true,
81737
+ get: function () {
81738
+ return _Switch__default['default'];
81739
+ }
81740
+ });
81077
81741
  Object.defineProperty(exports, 'Menu', {
81078
81742
  enumerable: true,
81079
81743
  get: function () {
@@ -81090,6 +81754,7 @@
81090
81754
  exports.ButtonTags = ButtonTags;
81091
81755
  exports.Checkbox = LMCheckBox;
81092
81756
  exports.CkFilter = Filter$1;
81757
+ exports.CustomTableOption = LMCustomTableOption;
81093
81758
  exports.CustomerService = CustomerService;
81094
81759
  exports.Drawer = LMDrawer;
81095
81760
  exports.Dropdown = LMDropdown;