linkmore-design 1.0.67 → 1.0.70

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 (517) hide show
  1. package/README.md +11 -7
  2. package/dist/Approval/demos/basic.d.ts +1 -0
  3. package/dist/Approval/handle.d.ts +11 -0
  4. package/dist/Approval/type.d.ts +39 -8
  5. package/dist/Approval/util.d.ts +26 -0
  6. package/dist/AutoComplete/index.d.ts +2 -1
  7. package/dist/Calendar/demos/basic.d.ts +2 -0
  8. package/dist/Calendar/index.d.ts +4 -0
  9. package/dist/Calendar/style/index.d.ts +1 -0
  10. package/dist/CardTable/hooks/usePagination.d.ts +1 -1
  11. package/dist/CardTable/utils.d.ts +2 -2
  12. package/dist/Carousel/demos/basic.d.ts +2 -0
  13. package/dist/Carousel/index.d.ts +3 -0
  14. package/dist/Carousel/style/index.d.ts +1 -0
  15. package/dist/CkFilter/components/CascaderFilter.d.ts +1 -1
  16. package/dist/Collapse/demos/basic.d.ts +2 -0
  17. package/dist/Collapse/index.d.ts +3 -0
  18. package/dist/Collapse/style/index.d.ts +1 -0
  19. package/dist/Comment/demos/basic.d.ts +2 -0
  20. package/dist/Comment/index.d.ts +3 -0
  21. package/dist/Comment/style/index.d.ts +1 -0
  22. package/dist/ImageViewer/LmImageViewer.d.ts +5 -0
  23. package/dist/ImageViewer/demos/basic.d.ts +2 -0
  24. package/dist/ImageViewer/index.d.ts +2 -0
  25. package/dist/ImageViewer/style/index.d.ts +1 -0
  26. package/dist/ImageViewer/wrapeer/Root.d.ts +3 -0
  27. package/dist/LmFilter/components/CascaderFilter.d.ts +1 -1
  28. package/dist/LmFilter/components/CheckboxFilter.d.ts +1 -1
  29. package/dist/LmFilter/components/DateFilter.d.ts +1 -1
  30. package/dist/LmFilter/components/InputFilter.d.ts +2 -2
  31. package/dist/LmFilter/components/SelectFilter.d.ts +1 -1
  32. package/dist/LmFilter/filterFns/index.d.ts +1 -1
  33. package/dist/LmFilter/localization.d.ts +1 -0
  34. package/dist/LmFilter/utils.d.ts +1 -1
  35. package/dist/LmSelect/useCheckboxOptions.d.ts +2 -1
  36. package/dist/LmTable/components/DndContainer.d.ts +5 -0
  37. package/dist/LmTable/components/sortableBoxCol.d.ts +5 -0
  38. package/dist/LmTable/components/sortableItemCol.d.ts +1 -0
  39. package/dist/LmTable/demos/tableColSort.d.ts +2 -0
  40. package/dist/LmUpload/LmUpload.d.ts +6 -1
  41. package/dist/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  42. package/dist/LmUpload/UploadList/ItemText.d.ts +2 -1
  43. package/dist/LmUpload/UploadList/RenderItem.d.ts +1 -5
  44. package/dist/LmUpload/UploadList/index.d.ts +4 -3
  45. package/dist/LmUpload/body/Progress.d.ts +4 -0
  46. package/dist/LmUpload/demos/card.d.ts +2 -0
  47. package/dist/LmUpload/demos/picture.d.ts +2 -0
  48. package/dist/LmUpload/fns/index.d.ts +9 -1
  49. package/dist/LmUpload/utils.d.ts +1 -0
  50. package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  51. package/dist/Modal/index.d.ts +1 -1
  52. package/dist/Popconfirm/demos/basic.d.ts +2 -0
  53. package/dist/Popconfirm/index.d.ts +3 -0
  54. package/dist/Popconfirm/style/index.d.ts +1 -0
  55. package/dist/Progress/demos/basic.d.ts +2 -0
  56. package/dist/Progress/demos/circle.d.ts +2 -0
  57. package/dist/Progress/demos/dynamic.d.ts +2 -0
  58. package/dist/Progress/demos/small.d.ts +2 -0
  59. package/dist/Progress/index.d.ts +3 -0
  60. package/dist/Progress/style/index.d.ts +1 -0
  61. package/dist/Segmented/demos/basic.d.ts +2 -0
  62. package/dist/Segmented/index.d.ts +3 -0
  63. package/dist/Segmented/style/index.d.ts +1 -0
  64. package/dist/Slider/demos/basic.d.ts +2 -0
  65. package/dist/Slider/index.d.ts +2 -0
  66. package/dist/Slider/style/index.d.ts +1 -0
  67. package/dist/Statistic/demos/basic.d.ts +2 -0
  68. package/dist/Statistic/index.d.ts +3 -0
  69. package/dist/Statistic/style/index.d.ts +1 -0
  70. package/dist/TimePicker/demos/basic.d.ts +3 -0
  71. package/dist/TimePicker/index.d.ts +3 -0
  72. package/dist/TimePicker/style/index.d.ts +1 -0
  73. package/dist/Timeline/demos/basic.d.ts +2 -0
  74. package/dist/Timeline/index.d.ts +3 -0
  75. package/dist/Timeline/style/index.d.ts +1 -0
  76. package/dist/Transfer/demos/basic.d.ts +2 -0
  77. package/dist/Transfer/index.d.ts +3 -0
  78. package/dist/Transfer/style/index.d.ts +1 -0
  79. package/dist/TreeSelect/demos/basic.d.ts +2 -0
  80. package/dist/TreeSelect/index.d.ts +3 -0
  81. package/dist/TreeSelect/style/index.d.ts +1 -0
  82. package/dist/hooks/useFullscreen/demos/useInModal.d.ts +2 -0
  83. package/dist/index.d.ts +19 -0
  84. package/dist/index.umd.js +8832 -2917
  85. package/dist/index.umd.min.js +6 -6
  86. package/es/Affix/style/index.css +6 -0
  87. package/es/Alert/index.js +27 -5
  88. package/es/Alert/style/index.css +7 -1
  89. package/es/Approval/handle.d.ts +11 -0
  90. package/es/Approval/handle.js +138 -0
  91. package/es/Approval/index.js +280 -122
  92. package/es/Approval/style/index.css +60 -8
  93. package/es/Approval/type.d.ts +39 -8
  94. package/es/Approval/type.js +97 -1
  95. package/es/Approval/util.d.ts +26 -0
  96. package/es/Approval/util.js +132 -0
  97. package/es/AutoComplete/index.d.ts +2 -1
  98. package/es/AutoComplete/style/index.css +6 -0
  99. package/es/Avatar/style/index.css +6 -0
  100. package/es/Breadcrumb/style/index.css +6 -0
  101. package/es/ButtonTags/style/index.css +6 -0
  102. package/es/Calendar/index.d.ts +4 -0
  103. package/es/Calendar/index.js +3 -0
  104. package/es/Calendar/style/index.css +511 -0
  105. package/es/Calendar/style/index.d.ts +1 -0
  106. package/es/Calendar/style/index.js +1 -0
  107. package/es/Card/style/index.css +6 -0
  108. package/es/CardTable/fns/index.js +5 -8
  109. package/es/CardTable/table/TableRoot.js +2 -1
  110. package/es/Carousel/index.d.ts +3 -0
  111. package/es/Carousel/index.js +3 -0
  112. package/es/Carousel/style/index.css +511 -0
  113. package/es/Carousel/style/index.d.ts +1 -0
  114. package/es/Carousel/style/index.js +1 -0
  115. package/es/Cascader/style/index.css +6 -0
  116. package/es/CkFilter/complexFilter/drawer.js +1 -4
  117. package/es/CkFilter/complexFilter/saveModal.js +5 -7
  118. package/es/CkFilter/components/CustomModal.js +2 -3
  119. package/es/CkFilter/components/filterTypes.js +1 -3
  120. package/es/CkFilter/components/modal.js +2 -5
  121. package/es/CkFilter/components/modalBack.js +2 -3
  122. package/es/CkFilter/customFilter/drawer.js +6 -11
  123. package/es/CkFilter/style/index.css +6 -0
  124. package/es/Col/style/index.css +6 -0
  125. package/es/Collapse/index.d.ts +3 -0
  126. package/es/Collapse/index.js +3 -0
  127. package/es/Collapse/style/index.css +511 -0
  128. package/es/Collapse/style/index.d.ts +1 -0
  129. package/es/Collapse/style/index.js +1 -0
  130. package/es/Comment/index.d.ts +3 -0
  131. package/es/Comment/index.js +3 -0
  132. package/es/Comment/style/index.css +511 -0
  133. package/es/Comment/style/index.d.ts +1 -0
  134. package/es/Comment/style/index.js +1 -0
  135. package/es/CustomTableOption/style/index.css +6 -0
  136. package/es/CustomerService/style/index.css +6 -0
  137. package/es/DatePicker/style/index.css +6 -0
  138. package/es/Descriptions/style/index.css +6 -0
  139. package/es/Drawer/style/index.css +6 -0
  140. package/es/Dropdown/style/index.css +6 -0
  141. package/es/EditTable/style/index.css +6 -0
  142. package/es/Empty/style/index.css +6 -0
  143. package/es/Filter/baseFilter/Popover.js +0 -1
  144. package/es/Filter/baseFilter/ToggleFilter.js +0 -1
  145. package/es/Filter/edit/editFilter.js +2 -6
  146. package/es/Filter/remember.js +0 -1
  147. package/es/Filter/style/index.css +6 -0
  148. package/es/Form/style/index.css +6 -0
  149. package/es/Grid/style/index.css +6 -0
  150. package/es/Icon/style/index.css +6 -0
  151. package/es/IconFont/font/iconfont.js +1 -1
  152. package/es/Image/style/index.css +6 -0
  153. package/es/ImageViewer/LmImageViewer.d.ts +5 -0
  154. package/es/ImageViewer/LmImageViewer.js +26 -0
  155. package/es/ImageViewer/index.d.ts +2 -0
  156. package/es/ImageViewer/index.js +2 -0
  157. package/es/ImageViewer/style/index.css +211 -0
  158. package/es/ImageViewer/style/index.js +3 -0
  159. package/es/ImageViewer/wrapeer/Root.d.ts +3 -0
  160. package/es/ImageViewer/wrapeer/Root.js +12 -0
  161. package/es/Input/style/index.css +6 -0
  162. package/es/InputNumber/style/index.css +6 -0
  163. package/es/Layout/style/index.css +6 -0
  164. package/es/LeftTable/style/index.css +6 -0
  165. package/es/List/style/index.css +6 -0
  166. package/es/LmEditTable/EditTable.js +5 -3
  167. package/es/LmEditTable/style/index.css +12 -0
  168. package/es/LmFilter/complexFilter/drawer.js +2 -7
  169. package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
  170. package/es/LmFilter/components/CascaderFilter.js +3 -2
  171. package/es/LmFilter/components/CheckboxFilter.js +3 -3
  172. package/es/LmFilter/components/DropdownFIlter.js +71 -65
  173. package/es/LmFilter/components/InputFilter.js +1 -2
  174. package/es/LmFilter/components/SelectFilter.js +2 -2
  175. package/es/LmFilter/components/index.js +7 -5
  176. package/es/LmFilter/customFilter/drawer.js +7 -25
  177. package/es/LmFilter/customFilter/index.js +2 -1
  178. package/es/LmFilter/customFilter/saveModal.js +5 -7
  179. package/es/LmFilter/customFilter/valueDrawer.js +2 -5
  180. package/es/LmFilter/filterFns/index.js +4 -7
  181. package/es/LmFilter/localization.d.ts +1 -0
  182. package/es/LmFilter/localization.js +2 -1
  183. package/es/LmFilter/utils.js +41 -22
  184. package/es/LmFilter/wrapper/FilterRoot.js +0 -2
  185. package/es/LmSelect/style/index.css +6 -0
  186. package/es/LmSelect/useCheckboxOptions.d.ts +2 -1
  187. package/es/LmSelect/useCheckboxOptions.js +4 -3
  188. package/es/LmTable/Table.js +78 -45
  189. package/es/LmTable/autosize.js +0 -3
  190. package/es/LmTable/components/DndContainer.d.ts +5 -0
  191. package/es/LmTable/components/DndContainer.js +35 -0
  192. package/es/LmTable/components/sortableBoxCol.js +24 -0
  193. package/es/LmTable/components/sortableItemCol.js +54 -0
  194. package/es/LmTable/style/index.css +6 -0
  195. package/es/LmUpload/LmUpload.d.ts +6 -1
  196. package/es/LmUpload/LmUpload.js +70 -14
  197. package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  198. package/es/LmUpload/UploadList/ItemPicture.js +23 -8
  199. package/es/LmUpload/UploadList/ItemPictureCard.js +82 -16
  200. package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
  201. package/es/LmUpload/UploadList/ItemText.js +13 -7
  202. package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
  203. package/es/LmUpload/UploadList/RenderItem.js +3 -3
  204. package/es/LmUpload/UploadList/index.d.ts +4 -3
  205. package/es/LmUpload/UploadList/index.js +15 -8
  206. package/es/LmUpload/body/Progress.d.ts +4 -0
  207. package/es/LmUpload/body/Progress.js +16 -0
  208. package/es/LmUpload/body/UploadCore.js +20 -13
  209. package/es/LmUpload/body/UploadPicture.js +16 -8
  210. package/es/LmUpload/fns/index.d.ts +8 -0
  211. package/es/LmUpload/fns/index.js +231 -25
  212. package/es/LmUpload/style/index.css +26 -3
  213. package/es/LmUpload/utils.d.ts +1 -0
  214. package/es/LmUpload/utils.js +14 -1
  215. package/es/LmUpload/view/index.js +2 -2
  216. package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  217. package/es/LmUpload/wrapper/UploadContainer.js +19 -3
  218. package/es/LmUpload/wrapper/UploadRoot.js +9 -1
  219. package/es/LmUpload/wrapper/UploadWrapper.js +4 -8
  220. package/es/LmUpload/wrapper/reducer.js +9 -2
  221. package/es/Mentions/style/index.css +6 -0
  222. package/es/Menu/style/index.css +6 -0
  223. package/es/Modal/index.d.ts +1 -1
  224. package/es/Modal/style/index.css +6 -0
  225. package/es/PageHeader/style/index.css +6 -0
  226. package/es/Pagination/style/index.css +6 -0
  227. package/es/PopTable/style/index.css +6 -0
  228. package/es/Popconfirm/index.d.ts +3 -0
  229. package/es/Popconfirm/index.js +3 -0
  230. package/es/Popconfirm/style/index.css +511 -0
  231. package/es/Popconfirm/style/index.d.ts +1 -0
  232. package/es/Popconfirm/style/index.js +1 -0
  233. package/es/Popover/style/index.css +6 -0
  234. package/es/ProTable/Table.js +0 -1
  235. package/es/ProTable/autosize.js +0 -3
  236. package/es/ProTable/style/index.css +6 -0
  237. package/es/Progress/index.d.ts +3 -0
  238. package/es/Progress/index.js +3 -0
  239. package/es/Progress/style/index.css +511 -0
  240. package/es/Progress/style/index.d.ts +1 -0
  241. package/es/Progress/style/index.js +1 -0
  242. package/es/QuickMenu/style/index.css +6 -0
  243. package/es/Rate/style/index.css +6 -0
  244. package/es/Row/style/index.css +6 -0
  245. package/es/Segmented/index.d.ts +3 -0
  246. package/es/Segmented/index.js +3 -0
  247. package/es/Segmented/style/index.css +511 -0
  248. package/es/Segmented/style/index.d.ts +1 -0
  249. package/es/Segmented/style/index.js +1 -0
  250. package/es/Select/style/index.css +6 -0
  251. package/es/Slider/index.d.ts +2 -0
  252. package/es/Slider/index.js +3 -0
  253. package/es/Slider/style/index.css +511 -0
  254. package/es/Slider/style/index.d.ts +1 -0
  255. package/es/Slider/style/index.js +1 -0
  256. package/es/Space/style/index.css +6 -0
  257. package/es/Spin/style/index.css +6 -0
  258. package/es/Statistic/index.d.ts +3 -0
  259. package/es/Statistic/index.js +3 -0
  260. package/es/Statistic/style/index.css +511 -0
  261. package/es/Statistic/style/index.d.ts +1 -0
  262. package/es/Statistic/style/index.js +1 -0
  263. package/es/Steps/style/index.css +6 -0
  264. package/es/Switch/style/index.css +6 -0
  265. package/es/Table/style/index.css +6 -0
  266. package/es/Tabs/style/index.css +6 -0
  267. package/es/Tag/style/index.css +6 -0
  268. package/es/TimePicker/index.d.ts +3 -0
  269. package/es/TimePicker/index.js +3 -0
  270. package/es/TimePicker/style/index.css +511 -0
  271. package/es/TimePicker/style/index.d.ts +1 -0
  272. package/es/TimePicker/style/index.js +1 -0
  273. package/es/Timeline/index.d.ts +3 -0
  274. package/es/Timeline/index.js +3 -0
  275. package/es/Timeline/style/index.css +511 -0
  276. package/es/Timeline/style/index.d.ts +1 -0
  277. package/es/Timeline/style/index.js +1 -0
  278. package/es/Tooltip/style/index.css +6 -0
  279. package/es/Transfer/index.d.ts +3 -0
  280. package/es/Transfer/index.js +3 -0
  281. package/es/Transfer/style/index.css +511 -0
  282. package/es/Transfer/style/index.d.ts +1 -0
  283. package/es/Transfer/style/index.js +1 -0
  284. package/es/Tree/style/index.css +6 -0
  285. package/es/TreeSelect/index.d.ts +3 -0
  286. package/es/TreeSelect/index.js +3 -0
  287. package/es/TreeSelect/style/index.css +511 -0
  288. package/es/TreeSelect/style/index.d.ts +1 -0
  289. package/es/TreeSelect/style/index.js +1 -0
  290. package/es/Typography/style/index.css +6 -0
  291. package/es/Upload/style/index.css +6 -0
  292. package/es/hooks/useFullscreen/index.js +6 -8
  293. package/es/index.d.ts +19 -0
  294. package/es/index.js +11 -1
  295. package/es/message/style/index.css +6 -0
  296. package/es/notification/style/index.css +6 -0
  297. package/es/styles/main.css +6 -0
  298. package/es/styles/resetAntd.css +3 -0
  299. package/lib/Affix/style/index.css +6 -0
  300. package/lib/Alert/index.js +27 -5
  301. package/lib/Alert/style/index.css +7 -1
  302. package/lib/Approval/handle.d.ts +11 -0
  303. package/lib/Approval/handle.js +160 -0
  304. package/lib/Approval/index.js +287 -122
  305. package/lib/Approval/style/index.css +60 -8
  306. package/lib/Approval/type.d.ts +39 -8
  307. package/lib/Approval/type.js +101 -1
  308. package/lib/Approval/util.d.ts +26 -0
  309. package/lib/Approval/util.js +148 -0
  310. package/lib/AutoComplete/index.d.ts +2 -1
  311. package/lib/AutoComplete/style/index.css +6 -0
  312. package/lib/Avatar/style/index.css +6 -0
  313. package/lib/Breadcrumb/style/index.css +6 -0
  314. package/lib/ButtonTags/style/index.css +6 -0
  315. package/lib/Calendar/index.d.ts +4 -0
  316. package/lib/Calendar/index.js +15 -0
  317. package/lib/Calendar/style/index.css +511 -0
  318. package/lib/Calendar/style/index.d.ts +1 -0
  319. package/lib/Calendar/style/index.js +3 -0
  320. package/lib/Card/style/index.css +6 -0
  321. package/lib/CardTable/fns/index.js +5 -8
  322. package/lib/CardTable/table/TableRoot.js +2 -1
  323. package/lib/Carousel/index.d.ts +3 -0
  324. package/lib/Carousel/index.js +15 -0
  325. package/lib/Carousel/style/index.css +511 -0
  326. package/lib/Carousel/style/index.d.ts +1 -0
  327. package/lib/Carousel/style/index.js +3 -0
  328. package/lib/Cascader/style/index.css +6 -0
  329. package/lib/CkFilter/complexFilter/drawer.js +1 -4
  330. package/lib/CkFilter/complexFilter/saveModal.js +5 -7
  331. package/lib/CkFilter/components/CustomModal.js +2 -3
  332. package/lib/CkFilter/components/filterTypes.js +1 -3
  333. package/lib/CkFilter/components/modal.js +2 -5
  334. package/lib/CkFilter/components/modalBack.js +2 -3
  335. package/lib/CkFilter/customFilter/drawer.js +6 -11
  336. package/lib/CkFilter/style/index.css +6 -0
  337. package/lib/Col/style/index.css +6 -0
  338. package/lib/Collapse/index.d.ts +3 -0
  339. package/lib/Collapse/index.js +15 -0
  340. package/lib/Collapse/style/index.css +511 -0
  341. package/lib/Collapse/style/index.d.ts +1 -0
  342. package/lib/Collapse/style/index.js +3 -0
  343. package/lib/Comment/index.d.ts +3 -0
  344. package/lib/Comment/index.js +15 -0
  345. package/lib/Comment/style/index.css +511 -0
  346. package/lib/Comment/style/index.d.ts +1 -0
  347. package/lib/Comment/style/index.js +3 -0
  348. package/lib/CustomTableOption/style/index.css +6 -0
  349. package/lib/CustomerService/style/index.css +6 -0
  350. package/lib/DatePicker/style/index.css +6 -0
  351. package/lib/Descriptions/style/index.css +6 -0
  352. package/lib/Drawer/style/index.css +6 -0
  353. package/lib/Dropdown/style/index.css +6 -0
  354. package/lib/EditTable/style/index.css +6 -0
  355. package/lib/Empty/style/index.css +6 -0
  356. package/lib/Filter/baseFilter/Popover.js +0 -1
  357. package/lib/Filter/baseFilter/ToggleFilter.js +0 -1
  358. package/lib/Filter/edit/editFilter.js +2 -6
  359. package/lib/Filter/remember.js +0 -1
  360. package/lib/Filter/style/index.css +6 -0
  361. package/lib/Form/style/index.css +6 -0
  362. package/lib/Grid/style/index.css +6 -0
  363. package/lib/Icon/style/index.css +6 -0
  364. package/lib/IconFont/font/iconfont.js +1 -1
  365. package/lib/Image/style/index.css +6 -0
  366. package/lib/ImageViewer/LmImageViewer.d.ts +5 -0
  367. package/lib/ImageViewer/LmImageViewer.js +40 -0
  368. package/lib/ImageViewer/index.d.ts +2 -0
  369. package/lib/ImageViewer/index.js +13 -0
  370. package/lib/ImageViewer/style/index.css +211 -0
  371. package/lib/ImageViewer/style/index.js +3 -0
  372. package/lib/ImageViewer/wrapeer/Root.d.ts +3 -0
  373. package/lib/ImageViewer/wrapeer/Root.js +23 -0
  374. package/lib/Input/style/index.css +6 -0
  375. package/lib/InputNumber/style/index.css +6 -0
  376. package/lib/Layout/style/index.css +6 -0
  377. package/lib/LeftTable/style/index.css +6 -0
  378. package/lib/List/style/index.css +6 -0
  379. package/lib/LmEditTable/EditTable.js +5 -3
  380. package/lib/LmEditTable/style/index.css +12 -0
  381. package/lib/LmFilter/complexFilter/drawer.js +2 -7
  382. package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
  383. package/lib/LmFilter/components/CascaderFilter.js +3 -2
  384. package/lib/LmFilter/components/CheckboxFilter.js +3 -3
  385. package/lib/LmFilter/components/DropdownFIlter.js +71 -65
  386. package/lib/LmFilter/components/InputFilter.js +1 -2
  387. package/lib/LmFilter/components/SelectFilter.js +2 -2
  388. package/lib/LmFilter/components/index.js +7 -5
  389. package/lib/LmFilter/customFilter/drawer.js +7 -25
  390. package/lib/LmFilter/customFilter/index.js +2 -1
  391. package/lib/LmFilter/customFilter/saveModal.js +5 -7
  392. package/lib/LmFilter/customFilter/valueDrawer.js +2 -5
  393. package/lib/LmFilter/filterFns/index.js +4 -7
  394. package/lib/LmFilter/localization.d.ts +1 -0
  395. package/lib/LmFilter/localization.js +4 -2
  396. package/lib/LmFilter/utils.js +41 -22
  397. package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
  398. package/lib/LmSelect/style/index.css +6 -0
  399. package/lib/LmSelect/useCheckboxOptions.d.ts +2 -1
  400. package/lib/LmSelect/useCheckboxOptions.js +7 -5
  401. package/lib/LmTable/Table.js +78 -45
  402. package/lib/LmTable/autosize.js +0 -3
  403. package/lib/LmTable/components/DndContainer.d.ts +5 -0
  404. package/lib/LmTable/components/DndContainer.js +49 -0
  405. package/lib/LmTable/components/sortableBoxCol.js +24 -0
  406. package/lib/LmTable/components/sortableItemCol.js +54 -0
  407. package/lib/LmTable/style/index.css +6 -0
  408. package/lib/LmUpload/LmUpload.d.ts +6 -1
  409. package/lib/LmUpload/LmUpload.js +69 -13
  410. package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  411. package/lib/LmUpload/UploadList/ItemPicture.js +26 -8
  412. package/lib/LmUpload/UploadList/ItemPictureCard.js +81 -16
  413. package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
  414. package/lib/LmUpload/UploadList/ItemText.js +16 -7
  415. package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
  416. package/lib/LmUpload/UploadList/RenderItem.js +3 -3
  417. package/lib/LmUpload/UploadList/index.d.ts +4 -3
  418. package/lib/LmUpload/UploadList/index.js +17 -8
  419. package/lib/LmUpload/body/Progress.d.ts +4 -0
  420. package/lib/LmUpload/body/{UploadDrag.js → Progress.js} +10 -5
  421. package/lib/LmUpload/body/UploadCore.js +25 -18
  422. package/lib/LmUpload/body/UploadPicture.js +18 -7
  423. package/lib/LmUpload/fns/index.d.ts +8 -0
  424. package/lib/LmUpload/fns/index.js +233 -25
  425. package/lib/LmUpload/style/index.css +26 -3
  426. package/lib/LmUpload/utils.d.ts +1 -0
  427. package/lib/LmUpload/utils.js +16 -1
  428. package/lib/LmUpload/view/index.js +2 -2
  429. package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  430. package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
  431. package/lib/LmUpload/wrapper/UploadRoot.js +9 -1
  432. package/lib/LmUpload/wrapper/UploadWrapper.js +5 -12
  433. package/lib/LmUpload/wrapper/reducer.js +9 -2
  434. package/lib/Mentions/style/index.css +6 -0
  435. package/lib/Menu/style/index.css +6 -0
  436. package/lib/Modal/index.d.ts +1 -1
  437. package/lib/Modal/style/index.css +6 -0
  438. package/lib/PageHeader/style/index.css +6 -0
  439. package/lib/Pagination/style/index.css +6 -0
  440. package/lib/PopTable/style/index.css +6 -0
  441. package/lib/Popconfirm/index.d.ts +3 -0
  442. package/lib/Popconfirm/index.js +15 -0
  443. package/lib/Popconfirm/style/index.css +511 -0
  444. package/lib/Popconfirm/style/index.d.ts +1 -0
  445. package/lib/Popconfirm/style/index.js +3 -0
  446. package/lib/Popover/style/index.css +6 -0
  447. package/lib/ProTable/Table.js +0 -1
  448. package/lib/ProTable/autosize.js +0 -3
  449. package/lib/ProTable/style/index.css +6 -0
  450. package/lib/Progress/index.d.ts +3 -0
  451. package/lib/Progress/index.js +15 -0
  452. package/lib/Progress/style/index.css +511 -0
  453. package/lib/Progress/style/index.d.ts +1 -0
  454. package/lib/Progress/style/index.js +3 -0
  455. package/lib/QuickMenu/style/index.css +6 -0
  456. package/lib/Rate/style/index.css +6 -0
  457. package/lib/Row/style/index.css +6 -0
  458. package/lib/Segmented/index.d.ts +3 -0
  459. package/lib/Segmented/index.js +15 -0
  460. package/lib/Segmented/style/index.css +511 -0
  461. package/lib/Segmented/style/index.d.ts +1 -0
  462. package/lib/Segmented/style/index.js +3 -0
  463. package/lib/Select/style/index.css +6 -0
  464. package/lib/Slider/index.d.ts +2 -0
  465. package/lib/Slider/index.js +15 -0
  466. package/lib/Slider/style/index.css +511 -0
  467. package/lib/Slider/style/index.d.ts +1 -0
  468. package/lib/Slider/style/index.js +3 -0
  469. package/lib/Space/style/index.css +6 -0
  470. package/lib/Spin/style/index.css +6 -0
  471. package/lib/Statistic/index.d.ts +3 -0
  472. package/lib/Statistic/index.js +15 -0
  473. package/lib/Statistic/style/index.css +511 -0
  474. package/lib/Statistic/style/index.d.ts +1 -0
  475. package/lib/Statistic/style/index.js +3 -0
  476. package/lib/Steps/style/index.css +6 -0
  477. package/lib/Switch/style/index.css +6 -0
  478. package/lib/Table/style/index.css +6 -0
  479. package/lib/Tabs/style/index.css +6 -0
  480. package/lib/Tag/style/index.css +6 -0
  481. package/lib/TimePicker/index.d.ts +3 -0
  482. package/lib/TimePicker/index.js +15 -0
  483. package/lib/TimePicker/style/index.css +511 -0
  484. package/lib/TimePicker/style/index.d.ts +1 -0
  485. package/lib/TimePicker/style/index.js +3 -0
  486. package/lib/Timeline/index.d.ts +3 -0
  487. package/lib/Timeline/index.js +15 -0
  488. package/lib/Timeline/style/index.css +511 -0
  489. package/lib/Timeline/style/index.d.ts +1 -0
  490. package/lib/Timeline/style/index.js +3 -0
  491. package/lib/Tooltip/style/index.css +6 -0
  492. package/lib/Transfer/index.d.ts +3 -0
  493. package/lib/Transfer/index.js +15 -0
  494. package/lib/Transfer/style/index.css +511 -0
  495. package/lib/Transfer/style/index.d.ts +1 -0
  496. package/lib/Transfer/style/index.js +3 -0
  497. package/lib/Tree/style/index.css +6 -0
  498. package/lib/TreeSelect/index.d.ts +3 -0
  499. package/lib/TreeSelect/index.js +15 -0
  500. package/lib/TreeSelect/style/index.css +511 -0
  501. package/lib/TreeSelect/style/index.d.ts +1 -0
  502. package/lib/TreeSelect/style/index.js +3 -0
  503. package/lib/Typography/style/index.css +6 -0
  504. package/lib/Upload/style/index.css +6 -0
  505. package/lib/hooks/useFullscreen/index.js +6 -10
  506. package/lib/index.d.ts +19 -0
  507. package/lib/index.js +81 -1
  508. package/lib/message/style/index.css +6 -0
  509. package/lib/notification/style/index.css +6 -0
  510. package/lib/styles/main.css +6 -0
  511. package/lib/styles/resetAntd.css +3 -0
  512. package/package.json +3 -1
  513. package/typings/index.d.ts +1 -1
  514. package/dist/LmUpload/body/UploadDrag.d.ts +0 -4
  515. package/es/LmUpload/body/UploadDrag.d.ts +0 -4
  516. package/es/LmUpload/body/UploadDrag.js +0 -10
  517. package/lib/LmUpload/body/UploadDrag.d.ts +0 -4
@@ -39,23 +39,23 @@ var FilterControl = function FilterControl(_ref) {
39
39
  item = _ref.item;
40
40
  var type = item.type;
41
41
  var widgets = {
42
- 'input': /*#__PURE__*/_react.default.createElement(_InputFilter.default, {
42
+ input: /*#__PURE__*/_react.default.createElement(_InputFilter.default, {
43
43
  instance: instance,
44
44
  item: item
45
45
  }),
46
- 'select': /*#__PURE__*/_react.default.createElement(_SelectFilter.default, {
46
+ select: /*#__PURE__*/_react.default.createElement(_SelectFilter.default, {
47
47
  instance: instance,
48
48
  item: item
49
49
  }),
50
- 'checkbox': /*#__PURE__*/_react.default.createElement(_CheckboxFilter.default, {
50
+ checkbox: /*#__PURE__*/_react.default.createElement(_CheckboxFilter.default, {
51
51
  instance: instance,
52
52
  item: item
53
53
  }),
54
- 'cascader': /*#__PURE__*/_react.default.createElement(_CascaderFilter.default, {
54
+ cascader: /*#__PURE__*/_react.default.createElement(_CascaderFilter.default, {
55
55
  instance: instance,
56
56
  item: item
57
57
  }),
58
- 'date': /*#__PURE__*/_react.default.createElement(_DateFilter.default, {
58
+ date: /*#__PURE__*/_react.default.createElement(_DateFilter.default, {
59
59
  instance: instance,
60
60
  item: item
61
61
  })
@@ -65,7 +65,6 @@ var FilterControl = function FilterControl(_ref) {
65
65
 
66
66
  var getPlacehodler = function getPlacehodler(props) {
67
67
  var type = props.type,
68
- dateType = props.dateType,
69
68
  itemProps = props.props; // 日期显示的处理
70
69
 
71
70
  if (['date'].includes(type)) {
@@ -83,10 +82,10 @@ var getPlacehodler = function getPlacehodler(props) {
83
82
  }
84
83
 
85
84
  var placeholder = {
86
- 'week': '周',
87
- 'month': '月份',
88
- 'quarter': '季度',
89
- 'year': '年份'
85
+ week: '周',
86
+ month: '月份',
87
+ quarter: '季度',
88
+ year: '年份'
90
89
  };
91
90
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "\u9009\u62E9", placeholder[itemProps === null || itemProps === void 0 ? void 0 : itemProps.picker] || '日期', /*#__PURE__*/_react.default.createElement(_icons.CalendarOutlined, {
92
91
  style: {
@@ -100,92 +99,99 @@ var getPlacehodler = function getPlacehodler(props) {
100
99
 
101
100
 
102
101
  var getLabel = function getLabel(filterValue, item) {
103
- var _data$find;
104
-
105
102
  var type = item.type,
106
103
  data = item.data; // 不存在筛选时
107
104
 
108
105
  if (!(0, _utils.getIsHas)(filterValue)) {
109
106
  return getPlacehodler(item);
110
107
  } // 存在筛选数据时 ⬇️
111
- // 级联数据转换平级结构
112
108
 
113
109
 
114
- if (['cascader'].includes(type)) {
115
- var _item$props;
110
+ try {
111
+ var _data$find;
112
+
113
+ // 级联数据转换平级结构
114
+ if (['cascader'].includes(type)) {
115
+ var nArr = (0, _utils.getFlatItem)(item, filterValue);
116
+ var labels = nArr === null || nArr === void 0 ? void 0 : nArr.map(function (v) {
117
+ var _item$props, _item$props$fieldName;
116
118
 
117
- var nArr = (0, _utils.getFlatItem)((item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.multiple) ? filterValue : [filterValue], data);
118
- var labels = nArr.map(function (v) {
119
- return v.label;
120
- });
119
+ return v[(item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : (_item$props$fieldName = _item$props.fieldNames) === null || _item$props$fieldName === void 0 ? void 0 : _item$props$fieldName.label) || 'label'];
120
+ });
121
121
 
122
- switch (labels.length) {
123
- case 1:
124
- return labels[0];
122
+ switch (labels.length) {
123
+ case 0:
124
+ // 数据未查找到时
125
+ return filterValue;
125
126
 
126
- case 2:
127
- return "".concat(labels[0], "\u3001").concat(labels[1]);
127
+ case 1:
128
+ return labels[0];
128
129
 
129
- default:
130
- return "".concat(labels[0], "\u3001+").concat(labels.length - 1, "...");
130
+ case 2:
131
+ return "".concat(labels[0], "\u3001").concat(labels[1]);
132
+
133
+ default:
134
+ return "".concat(labels[0], "\u3001+").concat(labels.length - 1, "...");
135
+ }
131
136
  }
132
- }
133
137
 
134
- if (Array.isArray(filterValue)) {
135
- var _data$filter;
138
+ if (Array.isArray(filterValue)) {
139
+ var _data$filter;
136
140
 
137
- // 日期
138
- if (['date'].includes(type)) {
139
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, filterValue[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
140
- type: "lmweb-swap-right",
141
- style: {
142
- fontSize: 14,
143
- color: 'var(--text-color)'
144
- }
145
- }), filterValue[1]);
146
- } // 多选
141
+ // 日期
142
+ if (['date'].includes(type)) {
143
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, filterValue[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
144
+ type: "lmweb-swap-right",
145
+ style: {
146
+ fontSize: 14,
147
+ color: 'var(--text-color)'
148
+ }
149
+ }), filterValue[1]);
150
+ } // 多选
147
151
 
148
152
 
149
- var _labels = data === null || data === void 0 ? void 0 : (_data$filter = data.filter(function (v) {
150
- return filterValue.includes(v.value);
151
- })) === null || _data$filter === void 0 ? void 0 : _data$filter.map(function (v) {
152
- return v.label;
153
- });
153
+ var _labels = data === null || data === void 0 ? void 0 : (_data$filter = data.filter(function (v) {
154
+ return filterValue.includes(v.value);
155
+ })) === null || _data$filter === void 0 ? void 0 : _data$filter.map(function (v) {
156
+ return v.label;
157
+ });
154
158
 
155
- if (!_labels.length) {
156
- _labels = filterValue;
157
- }
159
+ if (!_labels.length) {
160
+ _labels = filterValue;
161
+ } // 受控模式未查找到显示的内容时展示
158
162
 
159
- ; // 受控模式未查找到显示的内容时展示
160
163
 
161
- switch (_labels.length) {
162
- case 1:
163
- return _labels[0];
164
+ switch (_labels.length) {
165
+ case 1:
166
+ return _labels[0];
164
167
 
165
- case 2:
166
- return "".concat(_labels[0], "\u3001").concat(_labels[1]);
168
+ case 2:
169
+ return "".concat(_labels[0], "\u3001").concat(_labels[1]);
167
170
 
168
- default:
169
- return "".concat(_labels[0], "\u3001+").concat(_labels.length - 1, "...");
170
- }
171
- } // 输入框
171
+ default:
172
+ return "".concat(_labels[0], "\u3001+").concat(_labels.length - 1, "...");
173
+ }
174
+ } // 输入框
172
175
 
173
176
 
174
- if (['input', 'date'].includes(type)) {
175
- return filterValue;
176
- } // 单选框 受控模式未查找到显示的内容时展示filterValue
177
+ if (['input', 'date'].includes(type)) {
178
+ return filterValue;
179
+ } // 单选框 受控模式未查找到显示的内容时展示filterValue
177
180
 
178
181
 
179
- var label = ((_data$find = data.find(function (v) {
180
- return v.value === filterValue;
181
- })) === null || _data$find === void 0 ? void 0 : _data$find.label) || filterValue;
182
- return label;
182
+ var label = (data === null || data === void 0 ? void 0 : (_data$find = data.find(function (v) {
183
+ return (v === null || v === void 0 ? void 0 : v.value) === filterValue;
184
+ })) === null || _data$find === void 0 ? void 0 : _data$find.label) || filterValue;
185
+ return label;
186
+ } catch (error) {
187
+ return filterValue;
188
+ }
183
189
  };
184
190
  /*
185
191
  * css样式控制
186
192
  * expand: 展开样式
187
193
  * active: 选中样式
188
- */
194
+ */
189
195
 
190
196
 
191
197
  var DropdownFilter = /*#__PURE__*/_react.default.memo(function (_ref2) {
@@ -7,7 +7,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.default = exports.InputFilter = void 0;
10
+ exports.default = void 0;
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
@@ -47,6 +47,5 @@ var InputFilter = function InputFilter(_ref) {
47
47
  })));
48
48
  };
49
49
 
50
- exports.InputFilter = InputFilter;
51
50
  var _default = InputFilter;
52
51
  exports.default = _default;
@@ -21,12 +21,12 @@ var _react = _interopRequireWildcard(require("react"));
21
21
 
22
22
  var _linkmoreDesign = require("linkmore-design");
23
23
 
24
+ var _classnames = _interopRequireDefault(require("classnames"));
25
+
24
26
  var _InputSearchClose = _interopRequireDefault(require("./InputSearchClose"));
25
27
 
26
28
  var _EmptyFilter = _interopRequireDefault(require("./EmptyFilter"));
27
29
 
28
- var _classnames = _interopRequireDefault(require("classnames"));
29
-
30
30
  var _hooks = require("../hooks");
31
31
 
32
32
  var _excluded = ["item"];
@@ -29,7 +29,7 @@ var _excluded = ["instance", "item", "value", "onChange", "options"],
29
29
  /*
30
30
  * 筛选组件使用时只传入 instance, item
31
31
  * 其余参数皆为单独使用时传入
32
- */
32
+ */
33
33
  var FilterControl = /*#__PURE__*/_react.default.memo(function (props) {
34
34
  var _props$instance = props.instance,
35
35
  instance = _props$instance === void 0 ? {} : _props$instance,
@@ -62,12 +62,14 @@ var FilterControl = /*#__PURE__*/_react.default.memo(function (props) {
62
62
  return value || aliveValue;
63
63
  }, [value, aliveValue]);
64
64
  var filterValue = (0, _react.useMemo)(function () {
65
- if ((0, _utils.getIsHas)(getFilterValue === null || getFilterValue === void 0 ? void 0 : getFilterValue(resetItem))) {
66
- return getFilterValue === null || getFilterValue === void 0 ? void 0 : getFilterValue(resetItem);
65
+ var val = getFilterValue === null || getFilterValue === void 0 ? void 0 : getFilterValue(resetItem);
66
+
67
+ if ((0, _utils.getIsHas)(val)) {
68
+ return val;
67
69
  }
68
70
 
69
- return (getFilterValue === null || getFilterValue === void 0 ? void 0 : getFilterValue(resetItem)) || transformFilterValue;
70
- }, [resetItem, transformFilterValue]); // 单独使用时抛出选中的值
71
+ return val || transformFilterValue;
72
+ }, [getFilterValue, resetItem, transformFilterValue]); // 单独使用时抛出选中的值
71
73
 
72
74
  var handleChange = function handleChange(val) {
73
75
  setAliveValue === null || setAliveValue === void 0 ? void 0 : setAliveValue(val);
@@ -79,9 +79,7 @@ var ListItemChecked = function ListItemChecked(_ref) {
79
79
  }
80
80
 
81
81
  if (getItem.type === 'cascader') {
82
- var _getItem$props;
83
-
84
- return getFlatItem((getItem === null || getItem === void 0 ? void 0 : (_getItem$props = getItem.props) === null || _getItem$props === void 0 ? void 0 : _getItem$props.multiple) ? checkedValue : [checkedValue], getItem.data, 'parent');
82
+ return (0, _utils.getFlatItem)(getItem, checkedValue, 'parent');
85
83
  }
86
84
 
87
85
  return (_getItem$data = getItem.data) === null || _getItem$data === void 0 ? void 0 : _getItem$data.filter(function (v) {
@@ -117,7 +115,6 @@ var ListItemChecked = function ListItemChecked(_ref) {
117
115
  e.stopPropagation();
118
116
  var filterValues = (0, _objectSpread3.default)({}, complexDrawer.data);
119
117
  delete filterValues[field];
120
- console.log('filterValues', filterValues);
121
118
  dispatch({
122
119
  type: 'changeComplexDrawer',
123
120
  complexDrawer: {
@@ -198,8 +195,7 @@ var ListItemChecked = function ListItemChecked(_ref) {
198
195
 
199
196
  var DropdownBtn = function DropdownBtn(_ref2) {
200
197
  var instance = _ref2.instance;
201
- var state = instance.state,
202
- dispatch = instance.dispatch,
198
+ var dispatch = instance.dispatch,
203
199
  dataSource = instance.dataSource;
204
200
 
205
201
  var _useState = (0, _react.useState)(false),
@@ -279,18 +275,6 @@ var Index = function Index(_ref3) {
279
275
  visible: false
280
276
  })
281
277
  });
282
- }; // 新增筛选项
283
-
284
-
285
- var addEvent = function addEvent() {
286
- dispatch({
287
- type: 'changeModal',
288
- customModal: {
289
- visible: true,
290
- type: 'custom',
291
- data: {}
292
- }
293
- });
294
278
  }; // 保存数据
295
279
 
296
280
 
@@ -315,7 +299,6 @@ var Index = function Index(_ref3) {
315
299
  });
316
300
  }
317
301
 
318
- console.log('保存数据!', nValue, state.customDrawer);
319
302
  dispatch({
320
303
  type: 'changeSaveModal',
321
304
  saveModal: {
@@ -323,20 +306,19 @@ var Index = function Index(_ref3) {
323
306
  data: nValue
324
307
  }
325
308
  });
326
- _context.next = 13;
309
+ _context.next = 11;
327
310
  break;
328
311
 
329
- case 10:
330
- _context.prev = 10;
312
+ case 9:
313
+ _context.prev = 9;
331
314
  _context.t0 = _context["catch"](0);
332
- console.log('error:', _context.t0);
333
315
 
334
- case 13:
316
+ case 11:
335
317
  case "end":
336
318
  return _context.stop();
337
319
  }
338
320
  }
339
- }, _callee, null, [[0, 10]]);
321
+ }, _callee, null, [[0, 9]]);
340
322
  }));
341
323
 
342
324
  return function onSave() {
@@ -94,7 +94,8 @@ var LmFilterCustom = function LmFilterCustom(_ref) {
94
94
  overlayClassName: "filter_dropdown_container_custom",
95
95
  onVisibleChange: function onVisibleChange(v) {
96
96
  return setVisible(v);
97
- }
97
+ },
98
+ destroyPopupOnHide: true
98
99
  }, /*#__PURE__*/_react.default.createElement("div", {
99
100
  className: (0, _classnames.default)('lm_filter_custom_select', {
100
101
  expand: visible,
@@ -99,7 +99,6 @@ var Save = function Save(_ref) {
99
99
  });
100
100
  }
101
101
 
102
- console.log('保存数据!', nValue);
103
102
  onClose();
104
103
  dispatch({
105
104
  type: 'changeCustomDrawer',
@@ -108,20 +107,19 @@ var Save = function Save(_ref) {
108
107
  })
109
108
  });
110
109
  (_instance$onSave = instance.onSave) === null || _instance$onSave === void 0 ? void 0 : _instance$onSave.call(instance, resetOptions(nValue));
111
- _context.next = 15;
110
+ _context.next = 13;
112
111
  break;
113
112
 
114
- case 12:
115
- _context.prev = 12;
113
+ case 11:
114
+ _context.prev = 11;
116
115
  _context.t0 = _context["catch"](0);
117
- console.log('error:', _context.t0);
118
116
 
119
- case 15:
117
+ case 13:
120
118
  case "end":
121
119
  return _context.stop();
122
120
  }
123
121
  }
124
- }, _callee, null, [[0, 12]]);
122
+ }, _callee, null, [[0, 11]]);
125
123
  }));
126
124
 
127
125
  return function onSave() {
@@ -113,15 +113,14 @@ var ValueDrawer = function ValueDrawer(_ref) {
113
113
  })
114
114
  });
115
115
  onClose();
116
- _context.next = 21;
116
+ _context.next = 20;
117
117
  break;
118
118
 
119
119
  case 18:
120
120
  _context.prev = 18;
121
121
  _context.t0 = _context["catch"](0);
122
- console.log('校验错误!', _context.t0);
123
122
 
124
- case 21:
123
+ case 20:
125
124
  case "end":
126
125
  return _context.stop();
127
126
  }
@@ -135,8 +134,6 @@ var ValueDrawer = function ValueDrawer(_ref) {
135
134
  }();
136
135
 
137
136
  var onValuesChange = function onValuesChange(values) {
138
- console.log('values', values);
139
-
140
137
  if (values.field) {
141
138
  form.setFieldsValue({
142
139
  value: []
@@ -55,8 +55,6 @@ var initLocalization = function initLocalization(props) {
55
55
  }, {});
56
56
  }
57
57
 
58
- ;
59
-
60
58
  if ((0, _utils.getIsHas)(basicFilter)) {
61
59
  var _Object$keys;
62
60
 
@@ -123,7 +121,6 @@ var initLocalization = function initLocalization(props) {
123
121
  }, {});
124
122
  }
125
123
 
126
- ;
127
124
  return {
128
125
  basicFilter: basicFilter,
129
126
  basicQuery: basicQuery,
@@ -248,6 +245,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
248
245
  if (type === 'complex') {
249
246
  var _Object$keys5, _Object$keys6;
250
247
 
248
+ // eslint-disable-next-line no-shadow
251
249
  var _basicQuery = (_Object$keys5 = Object.keys(complexFilter)) === null || _Object$keys5 === void 0 ? void 0 : _Object$keys5.reduce(function (pre, cur) {
252
250
  var item = dataSource.find(function (v) {
253
251
  return cur === v.field;
@@ -255,6 +253,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
255
253
  var itemValue = complexFilter[cur].value;
256
254
 
257
255
  if ((0, _utils.getIsHas)(itemValue) && !!item) {
256
+ // eslint-disable-next-line no-param-reassign
258
257
  pre[cur] = {
259
258
  fieldName: cur,
260
259
  fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
@@ -323,12 +322,12 @@ var useCoreOptions = function useCoreOptions(_ref) {
323
322
  var getFilterValue = (0, _react.useCallback)(function (_ref3) {
324
323
  var field = _ref3.field,
325
324
  type = _ref3.type;
326
- var defaultValue = (0, _utils.getValueForType)(type);
327
325
 
328
326
  if ((0, _utils.getIsHas)(state.basicFilter[field])) {
329
327
  return state.basicFilter[field];
330
328
  }
331
329
 
330
+ var defaultValue = (0, _utils.getValueForType)(type);
332
331
  return state.basicFilter[field] || defaultValue;
333
332
  }, [state.basicFilter]); // 获取查询结构
334
333
 
@@ -384,9 +383,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
384
383
  if (!(0, _utils.getIsHas)(itemValue)) {
385
384
  delete basicFilter[field];
386
385
  delete basicQuery[field];
387
- }
386
+ } // 触发外部事件
388
387
 
389
- ; // 触发外部事件
390
388
 
391
389
  onQuery === null || onQuery === void 0 ? void 0 : onQuery({
392
390
  basicFilter: basicFilter,
@@ -436,7 +434,6 @@ var useCoreOptions = function useCoreOptions(_ref) {
436
434
  var customFilter = customOptions.find(function (v) {
437
435
  return v.value === val;
438
436
  });
439
- console.log('state.basicFilter', state.basicFilter);
440
437
  onQuery({
441
438
  customFilter: customFilter,
442
439
  basicFilter: state.basicFilter,
@@ -12,3 +12,4 @@ export declare const DefaultLocalization: {
12
12
  }[];
13
13
  };
14
14
  };
15
+ export default DefaultLocalization;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DefaultLocalization = void 0;
6
+ exports.default = exports.DefaultLocalization = void 0;
7
7
  // export interface LM_Localization {
8
8
  // fieldName: string,
9
9
  // operator: number,
@@ -34,4 +34,6 @@ var DefaultLocalization = {
34
34
  }]
35
35
  }
36
36
  };
37
- exports.DefaultLocalization = DefaultLocalization;
37
+ exports.DefaultLocalization = DefaultLocalization;
38
+ var _default = DefaultLocalization;
39
+ exports.default = _default;
@@ -15,6 +15,8 @@ exports.uniqueFunc = uniqueFunc;
15
15
 
16
16
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
17
17
 
18
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
19
+
18
20
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
19
21
 
20
22
  var _dayjs = _interopRequireDefault(require("dayjs"));
@@ -55,27 +57,39 @@ function uniqueFunc(arr, guid) {
55
57
 
56
58
  function getRanges() {
57
59
  return {
58
- '近一周': [(0, _dayjs.default)().subtract(7, 'day').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
59
- '近一月': [(0, _dayjs.default)().subtract(1, 'month').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
60
- '近一年': [(0, _dayjs.default)().subtract(1, 'year').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')]
60
+ 近一周: [(0, _dayjs.default)().subtract(7, 'day').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
61
+ 近一月: [(0, _dayjs.default)().subtract(1, 'month').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
62
+ 近一年: [(0, _dayjs.default)().subtract(1, 'year').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')]
61
63
  };
62
64
  } // 级联选择器获取深层结构数据 type: 遍历子/父结构
63
65
 
64
66
 
65
- function getFlatItem(filterValues, originArr) {
67
+ function getFlatItem(getItem, checkedValue) {
68
+ var _getItem$props, _getItem$props2;
69
+
66
70
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
71
+ var filterValues = (getItem === null || getItem === void 0 ? void 0 : (_getItem$props = getItem.props) === null || _getItem$props === void 0 ? void 0 : _getItem$props.multiple) ? checkedValue : [checkedValue];
72
+ var originArr = (getItem === null || getItem === void 0 ? void 0 : getItem.data) || []; // 用于自定义读取的字段
73
+
74
+ var fieldNames = (0, _objectSpread2.default)({
75
+ label: 'label',
76
+ value: 'value',
77
+ children: 'children'
78
+ }, (getItem === null || getItem === void 0 ? void 0 : (_getItem$props2 = getItem.props) === null || _getItem$props2 === void 0 ? void 0 : _getItem$props2.fieldNames) || {});
67
79
  var nArr = []; // 获取子级项
68
80
 
69
81
  var getChildren = function getChildren(item) {
70
- var _item$children;
82
+ var _item$fieldNames$chil;
83
+
84
+ if (!item) return;
71
85
 
72
86
  if (type === 'parent') {
73
87
  nArr.push(item);
74
88
  return;
75
89
  }
76
90
 
77
- if (item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) {
78
- item === null || item === void 0 ? void 0 : item.children.forEach(function (v) {
91
+ if (item === null || item === void 0 ? void 0 : (_item$fieldNames$chil = item[fieldNames.children]) === null || _item$fieldNames$chil === void 0 ? void 0 : _item$fieldNames$chil.length) {
92
+ item === null || item === void 0 ? void 0 : item[fieldNames.children].forEach(function (v) {
79
93
  return getChildren(v);
80
94
  });
81
95
  } else {
@@ -86,35 +100,39 @@ function getFlatItem(filterValues, originArr) {
86
100
 
87
101
  filterValues.forEach(function (item) {
88
102
  if (item.length === 1) {
89
- var findItem = originArr.find(function (v) {
90
- return v.value === item[item.length - 1];
103
+ var findItem = originArr === null || originArr === void 0 ? void 0 : originArr.find(function (v) {
104
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
91
105
  });
92
106
  getChildren(findItem);
93
107
  }
94
108
 
95
109
  if (item.length === 2) {
96
- var findArr1 = originArr.find(function (v) {
97
- return v.value === item[0];
98
- }).children;
110
+ var _originArr$find;
99
111
 
100
- var _findItem = findArr1.find(function (v) {
101
- return v.value === item[item.length - 1];
112
+ var findArr1 = originArr === null || originArr === void 0 ? void 0 : (_originArr$find = originArr.find(function (v) {
113
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
114
+ })) === null || _originArr$find === void 0 ? void 0 : _originArr$find[fieldNames.children];
115
+
116
+ var _findItem = findArr1 === null || findArr1 === void 0 ? void 0 : findArr1.find(function (v) {
117
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
102
118
  });
103
119
 
104
120
  getChildren(_findItem);
105
121
  }
106
122
 
107
123
  if (item.length === 3) {
108
- var _findArr = originArr.find(function (v) {
109
- return v.value === item[0];
110
- }).children;
124
+ var _originArr$find2, _findArr$find;
125
+
126
+ var _findArr = originArr === null || originArr === void 0 ? void 0 : (_originArr$find2 = originArr.find(function (v) {
127
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
128
+ })) === null || _originArr$find2 === void 0 ? void 0 : _originArr$find2[fieldNames.children];
111
129
 
112
- var findArr2 = _findArr.find(function (v) {
113
- return v.value === item[1];
114
- }).children;
130
+ var findArr2 = _findArr === null || _findArr === void 0 ? void 0 : (_findArr$find = _findArr.find(function (v) {
131
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[1];
132
+ })) === null || _findArr$find === void 0 ? void 0 : _findArr$find[fieldNames.children];
115
133
 
116
- var _findItem2 = findArr2.find(function (v) {
117
- return v.value === item[item.length - 1];
134
+ var _findItem2 = findArr2 === null || findArr2 === void 0 ? void 0 : findArr2.find(function (v) {
135
+ return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
118
136
  });
119
137
 
120
138
  nArr.push(_findItem2);
@@ -131,6 +149,7 @@ function getFilterShow(basicFilter, dataSource) {
131
149
  if (dataSource.some(function (v) {
132
150
  return v.field === cur && (v.show || typeof v.show !== 'boolean');
133
151
  })) {
152
+ // eslint-disable-next-line no-param-reassign
134
153
  pre[cur] = value;
135
154
  }
136
155
 
@@ -19,8 +19,6 @@ var _FilterWrapper = _interopRequireDefault(require("./FilterWrapper"));
19
19
 
20
20
  var _filterFns = _interopRequireWildcard(require("../filterFns"));
21
21
 
22
- var _utils = require("../utils");
23
-
24
22
  // 根文件 => 参数聚合
25
23
  var reducer = function reducer(state, action) {
26
24
  var basicFilter = action.basicFilter,
@@ -81,6 +81,9 @@
81
81
  .ant-notification-notice .ant-notification-notice-description {
82
82
  font-size: 12px;
83
83
  }
84
+ .ant-collapse {
85
+ font-size: 12px;
86
+ }
84
87
  @font-face {
85
88
  font-family: 'iconfont';
86
89
  /* Project id 2966019 */
@@ -503,6 +506,9 @@ html {
503
506
  .card_cell_content:hover .card_cell_body .card_cell_checkbox {
504
507
  opacity: 1;
505
508
  }
509
+ p {
510
+ margin-bottom: 0;
511
+ }
506
512
  .lm_select.ant-select {
507
513
  font-size: 12px;
508
514
  }
@@ -1,4 +1,5 @@
1
- export declare const useCheckboxOptions: (options: any, { value, onChange: onCheckChange }: {
1
+ export declare const useCheckboxOptions: (options: any, { value, onChange }: {
2
2
  value?: any[];
3
3
  onChange: any;
4
4
  }, filter?: string) => JSX.Element;
5
+ export default useCheckboxOptions;