linkmore-design 1.1.32 → 1.1.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 (1230) hide show
  1. package/CHANGELOG.md +1237 -0
  2. package/LICENSE +21 -21
  3. package/README.md +84 -84
  4. package/dist/Affix/demos/basic.d.ts +0 -1
  5. package/dist/Affix/index.d.ts +1 -1
  6. package/dist/Affix/utils.d.ts +1 -1
  7. package/dist/Alert/demos/basic.d.ts +0 -1
  8. package/dist/Alert/demos/visible.d.ts +0 -1
  9. package/dist/Approval/demos/basic.d.ts +0 -1
  10. package/dist/Approval/type.d.ts +1 -1
  11. package/dist/AutoComplete/index.d.ts +1 -1
  12. package/dist/Avatar/demos/basic.d.ts +0 -1
  13. package/dist/Badge/Ribbon.d.ts +1 -1
  14. package/dist/Badge/SingleNumber.d.ts +0 -1
  15. package/dist/Badge/demos/basic.d.ts +0 -1
  16. package/dist/Breadcrumb/demos/basic.d.ts +0 -1
  17. package/dist/Breadcrumb/demos/basic1.d.ts +0 -1
  18. package/dist/Button/demos/basic.d.ts +0 -1
  19. package/dist/Button/demos/disabled.d.ts +0 -1
  20. package/dist/Button/demos/ghost.d.ts +0 -1
  21. package/dist/Button/demos/icon.d.ts +0 -1
  22. package/dist/Button/demos/type.d.ts +0 -1
  23. package/dist/Calendar/demos/basic.d.ts +0 -1
  24. package/dist/Card/demos/basic.d.ts +0 -1
  25. package/dist/CardTable/LmCardTable.d.ts +1 -1
  26. package/dist/CardTable/table/TableRoot.d.ts +1 -1
  27. package/dist/Carousel/demos/basic.d.ts +0 -1
  28. package/dist/Cascader/demos/basic.d.ts +0 -1
  29. package/dist/Cascader/demos/formItem.d.ts +0 -1
  30. package/dist/Col/demos/basic.d.ts +0 -1
  31. package/dist/Collapse/demos/basic.d.ts +0 -1
  32. package/dist/Comment/demos/basic.d.ts +0 -1
  33. package/dist/ConfigProvider/DisabledContext.d.ts +1 -1
  34. package/dist/ConfigProvider/SizeContext.d.ts +1 -1
  35. package/dist/ConfigProvider/context.d.ts +2 -2
  36. package/dist/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
  37. package/dist/ConfigProvider/demos/componentSize.d.ts +0 -1
  38. package/dist/CustomTableOption/demos/basic.d.ts +0 -1
  39. package/dist/DatePicker/PickerButton.d.ts +0 -1
  40. package/dist/DatePicker/PickerTag.d.ts +0 -1
  41. package/dist/DatePicker/demos/basic.d.ts +0 -1
  42. package/dist/DatePicker/generatePicker/index.d.ts +13 -13
  43. package/dist/DatePicker/generatePicker/interface.d.ts +3 -3
  44. package/dist/DatePicker/index.d.ts +4 -4
  45. package/dist/Descriptions/demos/basic.d.ts +0 -1
  46. package/dist/Drawer/demos/basic.d.ts +0 -1
  47. package/dist/Drawer/demos/button.d.ts +0 -1
  48. package/dist/Drawer/demos/nested.d.ts +0 -1
  49. package/dist/Dropdown/demos/basic.d.ts +0 -1
  50. package/dist/Dropdown/demos/button.d.ts +0 -1
  51. package/dist/Dropdown/demos/icon.d.ts +0 -1
  52. package/dist/Dropdown/demos/local.d.ts +0 -1
  53. package/dist/Dropdown/demos/target.d.ts +0 -1
  54. package/dist/Empty/demos/basic.d.ts +0 -1
  55. package/dist/Empty/demos/custom.d.ts +0 -1
  56. package/dist/Empty/empty.d.ts +0 -1
  57. package/dist/Empty/simple.d.ts +0 -1
  58. package/dist/Form/Form.d.ts +2 -2
  59. package/dist/Form/FormItem/index.d.ts +6 -6
  60. package/dist/Form/FormItemLabel.d.ts +2 -2
  61. package/dist/Form/context.d.ts +2 -2
  62. package/dist/Form/demos/disabled.d.ts +0 -1
  63. package/dist/Form/demos/drawer1152-triple.d.ts +0 -1
  64. package/dist/Form/demos/drawer440-double.d.ts +0 -1
  65. package/dist/Form/demos/drawer440.d.ts +0 -1
  66. package/dist/Form/demos/drawer720-double.d.ts +0 -1
  67. package/dist/Form/demos/error-tip.d.ts +0 -1
  68. package/dist/Form/demos/formlist.d.ts +0 -1
  69. package/dist/Form/demos/horizontal.d.ts +0 -1
  70. package/dist/Form/demos/inline.d.ts +0 -1
  71. package/dist/Form/demos/modal416.d.ts +0 -1
  72. package/dist/Form/demos/modal552-double.d.ts +0 -1
  73. package/dist/Form/demos/responsive.d.ts +0 -1
  74. package/dist/Form/demos/ruleTime.d.ts +0 -1
  75. package/dist/Form/demos/vertical.d.ts +0 -1
  76. package/dist/Form/hooks/useFormItemStatus.d.ts +1 -1
  77. package/dist/Form/hooks/useFrameState.d.ts +1 -1
  78. package/dist/Form/index.d.ts +1 -1
  79. package/dist/Form/interface.d.ts +2 -2
  80. package/dist/FullScreen/demos/basic.d.ts +0 -1
  81. package/dist/FullScreen/demos/useInModal.d.ts +0 -1
  82. package/dist/Grid/col.d.ts +2 -2
  83. package/dist/Grid/demos/basic.d.ts +0 -1
  84. package/dist/Grid/row.d.ts +1 -1
  85. package/dist/IconFont/index.d.ts +0 -1
  86. package/dist/Image/demos/basic.d.ts +0 -1
  87. package/dist/ImageViewer/components/Arrows.d.ts +0 -1
  88. package/dist/ImageViewer/components/Carousel.d.ts +0 -1
  89. package/dist/ImageViewer/components/Operate.d.ts +0 -1
  90. package/dist/ImageViewer/components/Thumb.d.ts +0 -1
  91. package/dist/Input/demos/after.d.ts +0 -1
  92. package/dist/Input/demos/base.d.ts +0 -1
  93. package/dist/Input/demos/basic.d.ts +0 -1
  94. package/dist/Input/demos/color.d.ts +0 -1
  95. package/dist/Input/demos/combination.d.ts +0 -1
  96. package/dist/Input/demos/import.d.ts +0 -1
  97. package/dist/Input/demos/line.d.ts +0 -1
  98. package/dist/Input/demos/password.d.ts +0 -1
  99. package/dist/Input/demos/size.d.ts +0 -1
  100. package/dist/InputNumber/demos/basic.d.ts +0 -1
  101. package/dist/InputNumber/demos/format.d.ts +0 -1
  102. package/dist/InputNumber/demos/price.d.ts +0 -1
  103. package/dist/InputNumber/demos/status.d.ts +0 -1
  104. package/dist/InputNumber/demos/suffix.d.ts +0 -1
  105. package/dist/Layout/demos/basic.d.ts +0 -1
  106. package/dist/List/demos/basic.d.ts +0 -1
  107. package/dist/LmDrag/components/DndContainer.d.ts +0 -1
  108. package/dist/LmDrag/demos/basic.d.ts +0 -1
  109. package/dist/LmEditTable/DragHandle.d.ts +0 -1
  110. package/dist/LmEditTable/EditTable.d.ts +1 -1
  111. package/dist/LmEditTable/components/DraggableContainer.d.ts +0 -1
  112. package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +0 -1
  113. package/dist/LmEditTable/components/customRenderEmpty.d.ts +0 -1
  114. package/dist/LmEditTable/components/index.d.ts +0 -1
  115. package/dist/LmEditTable/demos/basic.d.ts +0 -1
  116. package/dist/LmEditTable/demos/colsort.d.ts +0 -1
  117. package/dist/LmEditTable/demos/group.d.ts +0 -1
  118. package/dist/LmEditTable/demos/priceTable.d.ts +0 -1
  119. package/dist/LmEditTable/demos/sinleEdit.d.ts +0 -1
  120. package/dist/LmEditTable/demos/size.d.ts +0 -1
  121. package/dist/LmEditTable/sortableBox.d.ts +0 -1
  122. package/dist/LmEditTable/sortableBoxCol.d.ts +0 -1
  123. package/dist/LmEditTable/sortableItemCol.d.ts +0 -1
  124. package/dist/LmFilter/wrapper/FilterRoot.d.ts +1 -1
  125. package/dist/LmSelect/GhostSelect.d.ts +0 -1
  126. package/dist/LmSelect/demos/basic.d.ts +0 -1
  127. package/dist/LmSelect/demos/checkbox.d.ts +0 -1
  128. package/dist/LmSelect/demos/ghost.d.ts +0 -1
  129. package/dist/LmSelect/useCheckboxOptions.d.ts +0 -1
  130. package/dist/LmTable/Table.d.ts +1 -1
  131. package/dist/LmTable/components/DndContainer.d.ts +1 -1
  132. package/dist/LmTable/components/Item/components/Remove/index.d.ts +0 -1
  133. package/dist/LmTable/components/customRenderEmpty.d.ts +0 -1
  134. package/dist/LmTable/components/inputDataEdit.d.ts +0 -1
  135. package/dist/LmTable/components/tableChartsModal.d.ts +0 -1
  136. package/dist/LmTable/context.d.ts +1 -1
  137. package/dist/LmUpload/UploadList/ItemPicture.d.ts +0 -1
  138. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +0 -1
  139. package/dist/LmUpload/UploadList/ItemText.d.ts +0 -1
  140. package/dist/LmUpload/demos/multiple.d.ts +2 -0
  141. package/dist/LmUpload/view/index.d.ts +0 -1
  142. package/dist/LmUpload/wrapper/Upload.d.ts +0 -1
  143. package/dist/Mentions/demos/basic.d.ts +0 -1
  144. package/dist/Menu/demos/basic.d.ts +0 -1
  145. package/dist/Modal/demos/basic.d.ts +0 -1
  146. package/dist/Modal/demos/info.d.ts +0 -1
  147. package/dist/Modal/demos/locale.d.ts +0 -1
  148. package/dist/PageHeader/demos/basic.d.ts +0 -1
  149. package/dist/Pagination/demos/basic.d.ts +0 -1
  150. package/dist/Popconfirm/demos/basic.d.ts +0 -1
  151. package/dist/Popover/demos/basic.d.ts +0 -1
  152. package/dist/Popover/demos/basic1.d.ts +0 -1
  153. package/dist/Progress/demos/basic.d.ts +0 -1
  154. package/dist/Progress/demos/circle.d.ts +0 -1
  155. package/dist/Progress/demos/dynamic.d.ts +0 -1
  156. package/dist/Progress/demos/small.d.ts +0 -1
  157. package/dist/QuickMenu/demos/basic.d.ts +0 -1
  158. package/dist/QuickMenu/demos/useInDraw.d.ts +0 -1
  159. package/dist/Rate/demos/basic.d.ts +0 -1
  160. package/dist/Result/demos/403.d.ts +0 -1
  161. package/dist/Result/demos/404.d.ts +0 -1
  162. package/dist/Result/demos/500.d.ts +0 -1
  163. package/dist/Result/demos/basic.d.ts +0 -1
  164. package/dist/Result/demos/customicon.d.ts +0 -1
  165. package/dist/Result/demos/error.d.ts +0 -1
  166. package/dist/Result/demos/info.d.ts +0 -1
  167. package/dist/Result/demos/success.d.ts +0 -1
  168. package/dist/Result/demos/warning.d.ts +0 -1
  169. package/dist/Result/index.d.ts +6 -6
  170. package/dist/Result/noFound.d.ts +0 -1
  171. package/dist/Result/serverError.d.ts +0 -1
  172. package/dist/Result/unauthorized.d.ts +0 -1
  173. package/dist/Row/demos/basic.d.ts +0 -1
  174. package/dist/Segmented/demos/basic.d.ts +0 -1
  175. package/dist/Select/demos/basic.d.ts +0 -1
  176. package/dist/Select/demos/bordered.d.ts +0 -1
  177. package/dist/Select/demos/formItem.d.ts +0 -1
  178. package/dist/Select/index.d.ts +1 -1
  179. package/dist/Skeleton/demos/basic.d.ts +0 -1
  180. package/dist/Slider/demos/basic.d.ts +0 -1
  181. package/dist/Space/demos/auto.d.ts +0 -1
  182. package/dist/Space/demos/basic.d.ts +0 -1
  183. package/dist/Space/demos/vertical.d.ts +0 -1
  184. package/dist/Spin/demos/basic.d.ts +0 -1
  185. package/dist/Spin/demos/size.d.ts +0 -1
  186. package/dist/Statistic/demos/basic.d.ts +0 -1
  187. package/dist/Steps/demos/basic.d.ts +0 -1
  188. package/dist/Switch/demos/basic.d.ts +0 -1
  189. package/dist/Switch/demos/table.d.ts +0 -1
  190. package/dist/Table/demos/basic.d.ts +0 -1
  191. package/dist/Tabs/demos/basic.d.ts +0 -1
  192. package/dist/Tabs/demos/nobroder.d.ts +0 -1
  193. package/dist/Tabs/index.d.ts +2 -2
  194. package/dist/Tag/demos/CheckableTag.d.ts +0 -1
  195. package/dist/Tag/demos/ExigencyTag.d.ts +0 -1
  196. package/dist/Tag/demos/add.d.ts +0 -1
  197. package/dist/Tag/demos/basic.d.ts +0 -1
  198. package/dist/Tag/demos/border.d.ts +0 -1
  199. package/dist/Tag/demos/colors.d.ts +0 -1
  200. package/dist/Timeline/demos/basic.d.ts +0 -1
  201. package/dist/Tooltip/demos/basic.d.ts +0 -1
  202. package/dist/Tooltip/index.d.ts +2 -2
  203. package/dist/Transfer/demos/basic.d.ts +0 -1
  204. package/dist/Tree/DirectoryTree.d.ts +2 -2
  205. package/dist/Tree/Tree.d.ts +4 -4
  206. package/dist/Tree/demos/basic.d.ts +0 -1
  207. package/dist/Tree/demos/controlled.d.ts +0 -1
  208. package/dist/Tree/demos/search.d.ts +0 -1
  209. package/dist/Tree/demos/sort.d.ts +0 -1
  210. package/dist/Tree/utils/dropIndicator.d.ts +0 -1
  211. package/dist/TreeSelect/demos/basic.d.ts +0 -1
  212. package/dist/TreeSelect/demos/formItem.d.ts +0 -1
  213. package/dist/TreeSelect/index.d.ts +1 -1
  214. package/dist/Typography/Base/index.d.ts +1 -1
  215. package/dist/Typography/Title.d.ts +1 -1
  216. package/dist/Typography/demos/basic.d.ts +0 -1
  217. package/dist/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  218. package/dist/Typography/index.d.ts +1 -1
  219. package/dist/Upload/index.d.ts +3 -3
  220. package/dist/_util/colors.d.ts +2 -2
  221. package/dist/_util/domTarget.d.ts +3 -3
  222. package/dist/_util/getRenderPropValue.d.ts +1 -1
  223. package/dist/_util/motion.d.ts +1 -1
  224. package/dist/_util/reactNode.d.ts +2 -2
  225. package/dist/_util/responsiveObserve.d.ts +5 -5
  226. package/dist/_util/statusUtils.d.ts +1 -1
  227. package/dist/_util/type.d.ts +2 -2
  228. package/dist/_util/warning.d.ts +1 -1
  229. package/dist/hooks/useFullscreen/demos/basic.d.ts +0 -1
  230. package/dist/hooks/useFullscreen/demos/useInModal.d.ts +0 -1
  231. package/dist/hooks/useFullscreen/index.d.ts +3 -3
  232. package/dist/index.umd.css +1224 -283
  233. package/dist/index.umd.js +57398 -27795
  234. package/dist/index.umd.min.css +2 -2
  235. package/dist/index.umd.min.js +47 -23
  236. package/dist/locale-provider/LocaleReceiver.d.ts +1 -1
  237. package/dist/locale-provider/context.d.ts +1 -1
  238. package/dist/message/demos/basic.d.ts +0 -1
  239. package/dist/message/demos/other.d.ts +0 -1
  240. package/dist/message/index.d.ts +10 -10
  241. package/dist/notification/demos/basic.d.ts +0 -1
  242. package/dist/notification/demos/button.d.ts +0 -1
  243. package/dist/notification/demos/icon.d.ts +0 -1
  244. package/dist/notification/index.d.ts +2 -2
  245. package/dist/variables.css +178 -178
  246. package/es/Affix/index.d.ts +1 -1
  247. package/es/Affix/index.js +90 -37
  248. package/es/Affix/utils.d.ts +1 -1
  249. package/es/Affix/utils.js +13 -6
  250. package/es/Alert/ErrorBoundary.js +15 -5
  251. package/es/Alert/index.js +64 -42
  252. package/es/Approval/handle.js +27 -10
  253. package/es/Approval/index.js +120 -63
  254. package/es/Approval/type.d.ts +1 -1
  255. package/es/Approval/type.js +24 -0
  256. package/es/Approval/util.js +24 -4
  257. package/es/AutoComplete/index.d.ts +1 -1
  258. package/es/AutoComplete/index.js +20 -9
  259. package/es/Badge/Ribbon.d.ts +1 -1
  260. package/es/Badge/Ribbon.js +16 -9
  261. package/es/Badge/ScrollNumber.js +28 -17
  262. package/es/Badge/SingleNumber.d.ts +0 -1
  263. package/es/Badge/SingleNumber.js +38 -23
  264. package/es/Badge/index.js +68 -44
  265. package/es/Badge/utils.js +2 -2
  266. package/es/Box/body/Item.js +3 -1
  267. package/es/Box/body/OverflowList.js +2 -2
  268. package/es/Box/wrapper/BoxContainer.js +12 -8
  269. package/es/Box/wrapper/BoxRoot.js +7 -5
  270. package/es/Box/wrapper/reducer.js +4 -2
  271. package/es/Button/index.js +17 -10
  272. package/es/ButtonTags/ButtonTags.js +20 -11
  273. package/es/ButtonTags/index.js +3 -0
  274. package/es/CardTable/LmCardTable.js +28 -19
  275. package/es/CardTable/body/TableBody.js +26 -17
  276. package/es/CardTable/body/TableBodyCell.js +17 -9
  277. package/es/CardTable/body/TableBodyRow.js +19 -13
  278. package/es/CardTable/card/PictureTextColumn.js +28 -18
  279. package/es/CardTable/card/PictureTextRow.js +31 -18
  280. package/es/CardTable/card/PictureTextRowOperate.js +30 -17
  281. package/es/CardTable/context.js +5 -0
  282. package/es/CardTable/empty.js +6 -1
  283. package/es/CardTable/fns/index.js +36 -22
  284. package/es/CardTable/footer.js +15 -4
  285. package/es/CardTable/hooks/usePagination.js +53 -38
  286. package/es/CardTable/index.js +5 -0
  287. package/es/CardTable/pager/TablePagination.js +15 -8
  288. package/es/CardTable/pager/index.js +13 -6
  289. package/es/CardTable/table/Table.js +6 -2
  290. package/es/CardTable/table/TableContainer.js +23 -14
  291. package/es/CardTable/table/TableRoot.js +65 -45
  292. package/es/CardTable/table/TableWrapper.js +9 -2
  293. package/es/CardTable/toolbar/ToolBarBottom.js +8 -3
  294. package/es/CardTable/utils.js +9 -3
  295. package/es/Cascader/index.js +21 -11
  296. package/es/Checkbox/index.js +18 -7
  297. package/es/Col/README.md.old +22 -22
  298. package/es/ConfigProvider/DisabledContext.d.ts +1 -1
  299. package/es/ConfigProvider/DisabledContext.js +1 -1
  300. package/es/ConfigProvider/SizeContext.d.ts +1 -1
  301. package/es/ConfigProvider/SizeContext.js +1 -1
  302. package/es/ConfigProvider/context.d.ts +2 -2
  303. package/es/ConfigProvider/context.js +10 -4
  304. package/es/ConfigProvider/cssVariables.js +25 -16
  305. package/es/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
  306. package/es/ConfigProvider/defaultRenderEmpty.js +6 -0
  307. package/es/ConfigProvider/index.js +55 -30
  308. package/es/CropImg/body/Operate.js +19 -10
  309. package/es/CropImg/body/index.js +8 -6
  310. package/es/CropImg/fns/index.js +11 -10
  311. package/es/CropImg/utils.js +52 -34
  312. package/es/CropImg/wrapper/Container.js +23 -12
  313. package/es/CropImg/wrapper/Root.js +16 -13
  314. package/es/CropImg/wrapper/Wrapper.js +2 -0
  315. package/es/CropImg/wrapper/reducer.js +9 -5
  316. package/es/CustomTableOption/cardSort.js +49 -24
  317. package/es/CustomTableOption/columnsSort.js +63 -29
  318. package/es/CustomTableOption/filterSort.js +53 -28
  319. package/es/CustomTableOption/index.js +31 -18
  320. package/es/CustomerService/README.md.old +15 -15
  321. package/es/CustomerService/components/question.js +20 -3
  322. package/es/CustomerService/index.js +46 -18
  323. package/es/DatePicker/PickerButton.d.ts +0 -1
  324. package/es/DatePicker/PickerTag.d.ts +0 -1
  325. package/es/DatePicker/generatePicker/generateRangePicker.js +33 -23
  326. package/es/DatePicker/generatePicker/generateSinglePicker.js +37 -22
  327. package/es/DatePicker/generatePicker/index.d.ts +13 -13
  328. package/es/DatePicker/generatePicker/index.js +25 -12
  329. package/es/DatePicker/generatePicker/interface.d.ts +3 -3
  330. package/es/DatePicker/index.d.ts +4 -4
  331. package/es/DatePicker/util.js +17 -0
  332. package/es/Descriptions/Cell.js +17 -11
  333. package/es/Descriptions/Item.js +1 -0
  334. package/es/Descriptions/Row.js +31 -24
  335. package/es/Descriptions/index.js +46 -27
  336. package/es/Divider/index.js +21 -12
  337. package/es/Drawer/index.js +11 -4
  338. package/es/Dropdown/index.js +40 -19
  339. package/es/EditTable/EditTable.js +178 -82
  340. package/es/EditTable/README.md.old +66 -66
  341. package/es/EditTable/index.js +3 -0
  342. package/es/Empty/empty.js +4 -1
  343. package/es/Empty/index.js +22 -10
  344. package/es/Empty/simple.js +4 -1
  345. package/es/EnlargeImg/README.md.old +21 -21
  346. package/es/EnlargeImg/index.js +43 -17
  347. package/es/Filter/Popover.js +65 -29
  348. package/es/Filter/README.md.old +144 -144
  349. package/es/Filter/baseFilter/Popover.js +70 -28
  350. package/es/Filter/baseFilter/ToggleFilter.js +25 -9
  351. package/es/Filter/baseFilter/index.js +31 -11
  352. package/es/Filter/complex/ComplexFilter.js +47 -16
  353. package/es/Filter/complex/ComplexItem.js +47 -24
  354. package/es/Filter/components/Checkbox.js +34 -14
  355. package/es/Filter/components/Date.js +30 -10
  356. package/es/Filter/components/Input.js +23 -7
  357. package/es/Filter/components/Select.js +33 -13
  358. package/es/Filter/components/Tree.js +24 -8
  359. package/es/Filter/components/header.js +17 -3
  360. package/es/Filter/components/index.js +6 -0
  361. package/es/Filter/context.js +4 -0
  362. package/es/Filter/edit/editFilter.js +81 -44
  363. package/es/Filter/index.js +49 -27
  364. package/es/Filter/popContext.js +4 -0
  365. package/es/Filter/remember.js +41 -18
  366. package/es/Form/ErrorList.js +22 -16
  367. package/es/Form/Form.d.ts +2 -2
  368. package/es/Form/Form.js +49 -27
  369. package/es/Form/FormItem/ItemHolder.js +42 -26
  370. package/es/Form/FormItem/index.d.ts +6 -6
  371. package/es/Form/FormItem/index.js +118 -70
  372. package/es/Form/FormItemInput.js +16 -14
  373. package/es/Form/FormItemLabel.d.ts +2 -2
  374. package/es/Form/FormItemLabel.js +43 -24
  375. package/es/Form/FormList.js +11 -3
  376. package/es/Form/FormWrapper.js +4 -0
  377. package/es/Form/WrapperItem.js +70 -34
  378. package/es/Form/container.js +25 -12
  379. package/es/Form/context.d.ts +2 -2
  380. package/es/Form/context.js +5 -2
  381. package/es/Form/hooks/useDebounce.js +4 -3
  382. package/es/Form/hooks/useForm.js +7 -2
  383. package/es/Form/hooks/useFormInstance.js +2 -1
  384. package/es/Form/hooks/useFormItemStatus.d.ts +1 -1
  385. package/es/Form/hooks/useFormItemStatus.js +4 -1
  386. package/es/Form/hooks/useFrameState.d.ts +1 -1
  387. package/es/Form/hooks/useFrameState.js +8 -3
  388. package/es/Form/hooks/useItemRef.js +6 -1
  389. package/es/Form/index.d.ts +1 -1
  390. package/es/Form/index.js +2 -0
  391. package/es/Form/interface.d.ts +2 -2
  392. package/es/Form/util.js +6 -2
  393. package/es/FullScreen/index.js +6 -3
  394. package/es/Grid/col.d.ts +2 -2
  395. package/es/Grid/col.js +41 -21
  396. package/es/Grid/hooks/useBreakpoint.js +3 -0
  397. package/es/Grid/index.js +3 -2
  398. package/es/Grid/row.d.ts +1 -1
  399. package/es/Grid/row.js +49 -31
  400. package/es/Icon/index.js +4 -0
  401. package/es/IconFont/font/iconfont.css +1831 -1831
  402. package/es/IconFont/font/iconfont.js +16 -10
  403. package/es/IconFont/index.js +4 -1
  404. package/es/IconSelect/iconJson.json +2935 -2935
  405. package/es/IconSelect/index.js +29 -12
  406. package/es/ImageViewer/LmImageViewer.js +6 -0
  407. package/es/ImageViewer/components/Arrows.js +7 -1
  408. package/es/ImageViewer/components/Carousel.js +15 -13
  409. package/es/ImageViewer/components/Operate.js +4 -0
  410. package/es/ImageViewer/components/Thumb.js +10 -3
  411. package/es/ImageViewer/fns/index.js +26 -17
  412. package/es/ImageViewer/wrapeer/Container.js +5 -1
  413. package/es/ImageViewer/wrapeer/Root.js +19 -14
  414. package/es/ImageViewer/wrapeer/Wrapper.js +5 -1
  415. package/es/ImageViewer/wrapeer/reducer.js +13 -6
  416. package/es/Input/index.js +37 -30
  417. package/es/InputNumber/index.js +13 -9
  418. package/es/LeftTable/index.js +49 -25
  419. package/es/LmDrag/LmDrag.js +6 -0
  420. package/es/LmDrag/components/DndContainer.js +38 -22
  421. package/es/LmDrag/components/sortableBox.js +5 -4
  422. package/es/LmDrag/components/sortableItem.js +17 -13
  423. package/es/LmDrag/wrapper/Root.js +2 -0
  424. package/es/LmEditTable/DndContainer.js +33 -22
  425. package/es/LmEditTable/DragHandle.js +6 -4
  426. package/es/LmEditTable/EditTable.d.ts +1 -1
  427. package/es/LmEditTable/EditTable.js +370 -159
  428. package/es/LmEditTable/components/DraggableContainer.js +12 -6
  429. package/es/LmEditTable/components/QuickOpetate.js +12 -7
  430. package/es/LmEditTable/components/bottomOpetateComponent.js +6 -4
  431. package/es/LmEditTable/components/customRenderEmpty.js +4 -1
  432. package/es/LmEditTable/hooks/useForkRef.js +3 -0
  433. package/es/LmEditTable/rowSort/DndContainerRow.js +36 -24
  434. package/es/LmEditTable/sortableBox.js +3 -1
  435. package/es/LmEditTable/sortableBoxCol.js +3 -1
  436. package/es/LmEditTable/sortableItem.js +19 -10
  437. package/es/LmEditTable/sortableItemCol.d.ts +0 -1
  438. package/es/LmEditTable/sortableItemCol.js +21 -16
  439. package/es/LmEditTable/util.js +46 -6
  440. package/es/LmEditTable/virtual/VirtualRow.js +46 -26
  441. package/es/LmEditTable/virtual/VirtualRow2.js +15 -7
  442. package/es/LmEditTable/virtual/VirtualTable.js +14 -10
  443. package/es/LmEditTable/virtual/VirtualWrapper.js +13 -6
  444. package/es/LmEditTable/virtual/context.js +15 -5
  445. package/es/LmFilter/Controls/CheckboxTags.js +12 -2
  446. package/es/LmFilter/Controls/index.js +24 -10
  447. package/es/LmFilter/LmFilter.js +14 -4
  448. package/es/LmFilter/baseFilter/fuzzySearch.js +18 -8
  449. package/es/LmFilter/baseFilter/index.js +7 -2
  450. package/es/LmFilter/clearFilter/index.js +9 -2
  451. package/es/LmFilter/complexFilter/drawer.js +76 -47
  452. package/es/LmFilter/complexFilter/index.js +14 -2
  453. package/es/LmFilter/complexFilter/valueDrawer.js +52 -20
  454. package/es/LmFilter/components/CascaderFilter.js +52 -27
  455. package/es/LmFilter/components/CheckboxFilter.js +52 -39
  456. package/es/LmFilter/components/CustomSelectFilter.js +38 -20
  457. package/es/LmFilter/components/DateFilter.js +39 -23
  458. package/es/LmFilter/components/DropdownFIlter.js +90 -57
  459. package/es/LmFilter/components/EmptyFilter.js +5 -0
  460. package/es/LmFilter/components/InputFilter.js +13 -5
  461. package/es/LmFilter/components/InputSearchClose.js +22 -10
  462. package/es/LmFilter/components/SelectFilter.js +37 -21
  463. package/es/LmFilter/components/index.js +37 -26
  464. package/es/LmFilter/customFilter/drawer.js +75 -40
  465. package/es/LmFilter/customFilter/index.js +24 -11
  466. package/es/LmFilter/customFilter/saveModal.js +39 -15
  467. package/es/LmFilter/customFilter/valueDrawer.js +51 -20
  468. package/es/LmFilter/filterFns/index.js +192 -131
  469. package/es/LmFilter/hooks/index.js +2 -0
  470. package/es/LmFilter/hooks/useDelayedFn.js +5 -2
  471. package/es/LmFilter/index.js +3 -0
  472. package/es/LmFilter/localization.js +1 -2
  473. package/es/LmFilter/utils.js +52 -26
  474. package/es/LmFilter/wrapper/Filter.js +13 -4
  475. package/es/LmFilter/wrapper/FilterContainer.js +5 -1
  476. package/es/LmFilter/wrapper/FilterRoot.js +62 -40
  477. package/es/LmFilter/wrapper/FilterWrapper.js +5 -1
  478. package/es/LmImgList/body/Banner.js +17 -13
  479. package/es/LmImgList/body/Thumb.js +9 -4
  480. package/es/LmImgList/fns/index.js +23 -15
  481. package/es/LmImgList/wrapper/Container.js +13 -9
  482. package/es/LmImgList/wrapper/Root.js +16 -13
  483. package/es/LmImgList/wrapper/reducer.js +11 -6
  484. package/es/LmSelect/GhostSelect.js +150 -99
  485. package/es/LmSelect/NormalSelect.js +30 -20
  486. package/es/LmSelect/index.js +7 -1
  487. package/es/LmSelect/useCheckboxOptions.js +27 -17
  488. package/es/LmSelect/utils.js +22 -20
  489. package/es/LmTable/Table.js +490 -289
  490. package/es/LmTable/VList.js +170 -109
  491. package/es/LmTable/autosize.js +43 -16
  492. package/es/LmTable/chartUtil.js +14 -4
  493. package/es/LmTable/common/index.js +7 -1
  494. package/es/LmTable/components/CalcExpression.js +30 -11
  495. package/es/LmTable/components/Container/Container.js +22 -18
  496. package/es/LmTable/components/DndContainer.d.ts +1 -1
  497. package/es/LmTable/components/DndContainer.js +211 -132
  498. package/es/LmTable/components/HeaderCol.js +22 -13
  499. package/es/LmTable/components/Item/Item.js +26 -22
  500. package/es/LmTable/components/Item/components/Action/Action.js +8 -4
  501. package/es/LmTable/components/Item/components/Remove/index.d.ts +0 -1
  502. package/es/LmTable/components/SortableBox.js +6 -1
  503. package/es/LmTable/components/customRenderEmpty.js +4 -1
  504. package/es/LmTable/components/inputDataEdit.js +8 -3
  505. package/es/LmTable/components/sheelTableCell.js +57 -32
  506. package/es/LmTable/components/tableChartsModal.js +30 -23
  507. package/es/LmTable/context.js +3 -0
  508. package/es/LmTable/detectElementResize.js +59 -26
  509. package/es/LmTable/expression.js +24 -4
  510. package/es/LmTable/hooks/useDndItems.js +65 -24
  511. package/es/LmTable/hooks/useGroupDataSource.js +6 -1
  512. package/es/LmTable/hooks/useResizeObserver.js +18 -13
  513. package/es/LmTable/hooks/useRowSelectControllableValue.js +20 -6
  514. package/es/LmTable/index.js +3 -0
  515. package/es/LmTable/multipleContainersKeyboardCoordinates.js +30 -5
  516. package/es/LmTable/resetConfig.js +8 -8
  517. package/es/LmTable/testDemos/group.js +21 -5
  518. package/es/LmTable/util.js +154 -87
  519. package/es/LmTable/virTual/VirtualRow.js +42 -25
  520. package/es/LmTable/virTual/VirtualTable.js +21 -12
  521. package/es/LmTable/virTual/VirtualWrapper.js +14 -7
  522. package/es/LmTable/virTual/context.js +15 -5
  523. package/es/LmUpload/LmUpload.js +18 -11
  524. package/es/LmUpload/UploadList/ItemPicture.js +9 -8
  525. package/es/LmUpload/UploadList/ItemPictureCard.js +38 -23
  526. package/es/LmUpload/UploadList/ItemText.js +7 -5
  527. package/es/LmUpload/UploadList/RenderItem.js +7 -1
  528. package/es/LmUpload/UploadList/index.js +19 -11
  529. package/es/LmUpload/body/Progress.js +2 -0
  530. package/es/LmUpload/body/UploadCore.js +18 -10
  531. package/es/LmUpload/body/UploadPicture.js +5 -4
  532. package/es/LmUpload/components/Crop.js +5 -3
  533. package/es/LmUpload/components/Preview.js +10 -7
  534. package/es/LmUpload/fns/index.js +117 -66
  535. package/es/LmUpload/utils.js +15 -12
  536. package/es/LmUpload/view/index.js +2 -0
  537. package/es/LmUpload/wrapper/Upload.js +2 -0
  538. package/es/LmUpload/wrapper/UploadContainer.js +5 -1
  539. package/es/LmUpload/wrapper/UploadRoot.js +18 -13
  540. package/es/LmUpload/wrapper/UploadWrapper.js +2 -0
  541. package/es/LmUpload/wrapper/reducer.js +11 -6
  542. package/es/LoadingPage/index.js +7 -1
  543. package/es/Locale/ku_IQ.js +2 -2
  544. package/es/Modal/index.js +25 -10
  545. package/es/PageHeader/index.js +44 -22
  546. package/es/Pagination/index.js +13 -4
  547. package/es/Popover/index.js +14 -5
  548. package/es/QuickMenu/index.js +45 -18
  549. package/es/Radio/index.js +24 -10
  550. package/es/Result/index.d.ts +6 -6
  551. package/es/Result/index.js +26 -16
  552. package/es/Result/noFound.js +2 -0
  553. package/es/Result/serverError.js +2 -0
  554. package/es/Result/unauthorized.js +2 -0
  555. package/es/Row/README.md.old +22 -22
  556. package/es/Select/index.d.ts +1 -1
  557. package/es/Select/index.js +31 -20
  558. package/es/Switch/index.js +11 -4
  559. package/es/Tabs/TabPane.js +2 -0
  560. package/es/Tabs/hooks/useAnimateConfig.js +3 -0
  561. package/es/Tabs/hooks/useLegacyItems.js +12 -3
  562. package/es/Tabs/index.d.ts +2 -2
  563. package/es/Tabs/index.js +27 -15
  564. package/es/Tabs/index.old.js +11 -4
  565. package/es/Tag/index.js +13 -5
  566. package/es/Tooltip/index.d.ts +2 -2
  567. package/es/Tooltip/index.js +66 -34
  568. package/es/Tree/DirectoryTree.d.ts +2 -2
  569. package/es/Tree/DirectoryTree.js +61 -31
  570. package/es/Tree/Tree.d.ts +4 -4
  571. package/es/Tree/Tree.js +21 -14
  572. package/es/Tree/index.js +5 -1
  573. package/es/Tree/utils/dictUtil.js +21 -4
  574. package/es/Tree/utils/dropIndicator.d.ts +0 -1
  575. package/es/Tree/utils/dropIndicator.js +10 -5
  576. package/es/Tree/utils/iconUtil.js +13 -2
  577. package/es/TreeSelect/index.d.ts +1 -1
  578. package/es/TreeSelect/index.js +24 -15
  579. package/es/Typography/Base/Ellipsis.js +52 -25
  580. package/es/Typography/Base/EllipsisTooltip.js +8 -3
  581. package/es/Typography/Base/index.d.ts +1 -1
  582. package/es/Typography/Base/index.js +173 -104
  583. package/es/Typography/Editable.js +34 -21
  584. package/es/Typography/Link.js +11 -4
  585. package/es/Typography/Paragraph.js +2 -0
  586. package/es/Typography/Text.js +9 -1
  587. package/es/Typography/Title.d.ts +1 -1
  588. package/es/Typography/Title.js +10 -2
  589. package/es/Typography/Typography.js +23 -11
  590. package/es/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  591. package/es/Typography/hooks/useUpdatedEffect.js +1 -0
  592. package/es/Typography/index.d.ts +1 -1
  593. package/es/Upload/index.d.ts +3 -3
  594. package/es/Upload/index.js +6 -2
  595. package/es/UploadOss/index.js +4 -0
  596. package/es/UploadOss/uploadBtn.js +54 -32
  597. package/es/UploadOss/uploadImg.js +86 -58
  598. package/es/VirtualList/index.js +27 -18
  599. package/es/_util/colors.d.ts +2 -2
  600. package/es/_util/colors.js +2 -2
  601. package/es/_util/domTarget.d.ts +3 -3
  602. package/es/_util/domTarget.js +3 -0
  603. package/es/_util/getDataOrAriaProps.js +1 -0
  604. package/es/_util/getRenderPropValue.d.ts +1 -1
  605. package/es/_util/getRenderPropValue.js +3 -0
  606. package/es/_util/hooks/useFlexGapSupport.js +4 -3
  607. package/es/_util/hooks/useForceUpdate.js +5 -4
  608. package/es/_util/motion.d.ts +1 -1
  609. package/es/_util/motion.js +11 -2
  610. package/es/_util/placements.js +8 -7
  611. package/es/_util/reactNode.d.ts +2 -2
  612. package/es/_util/responsiveObserve.d.ts +5 -5
  613. package/es/_util/responsiveObserve.js +5 -0
  614. package/es/_util/statusUtils.d.ts +1 -1
  615. package/es/_util/statusUtils.js +1 -0
  616. package/es/_util/styleChecker.js +9 -6
  617. package/es/_util/throttleByAnimationFrame.js +6 -0
  618. package/es/_util/transButton.js +15 -3
  619. package/es/_util/type.d.ts +2 -2
  620. package/es/_util/type.js +2 -0
  621. package/es/_util/warning.d.ts +1 -1
  622. package/es/_util/warning.js +6 -4
  623. package/es/hooks/useEvent/index.js +7 -6
  624. package/es/hooks/useFullscreen/index.d.ts +3 -3
  625. package/es/hooks/useFullscreen/index.js +29 -7
  626. package/es/locale-provider/LocaleReceiver.d.ts +1 -1
  627. package/es/locale-provider/LocaleReceiver.js +12 -4
  628. package/es/locale-provider/context.d.ts +1 -1
  629. package/es/locale-provider/index.js +11 -2
  630. package/es/message/hooks/useMessage.js +17 -8
  631. package/es/message/index.d.ts +10 -10
  632. package/es/message/index.js +36 -8
  633. package/es/notification/hooks/useNotification.js +12 -8
  634. package/es/notification/index.d.ts +2 -2
  635. package/es/notification/index.js +70 -34
  636. package/es/services/newRequest.js +50 -21
  637. package/es/services/utils.js +15 -0
  638. package/es/styles/variables.css +178 -178
  639. package/lib/Affix/index.d.ts +1 -1
  640. package/lib/Affix/index.js +104 -37
  641. package/lib/Affix/utils.d.ts +1 -1
  642. package/lib/Affix/utils.js +22 -6
  643. package/lib/Alert/ErrorBoundary.js +21 -5
  644. package/lib/Alert/index.js +78 -42
  645. package/lib/Approval/handle.js +37 -10
  646. package/lib/Approval/index.js +131 -63
  647. package/lib/Approval/type.d.ts +1 -1
  648. package/lib/Approval/type.js +24 -0
  649. package/lib/Approval/util.js +30 -4
  650. package/lib/AutoComplete/index.d.ts +1 -1
  651. package/lib/AutoComplete/index.js +34 -10
  652. package/lib/Avatar/index.js +4 -0
  653. package/lib/Badge/Ribbon.d.ts +1 -1
  654. package/lib/Badge/Ribbon.js +23 -9
  655. package/lib/Badge/ScrollNumber.js +35 -17
  656. package/lib/Badge/SingleNumber.d.ts +0 -1
  657. package/lib/Badge/SingleNumber.js +43 -23
  658. package/lib/Badge/index.js +79 -44
  659. package/lib/Badge/utils.js +2 -0
  660. package/lib/Box/LmBox.js +5 -0
  661. package/lib/Box/body/Item.js +7 -1
  662. package/lib/Box/body/List.js +6 -0
  663. package/lib/Box/body/OverflowList.js +4 -0
  664. package/lib/Box/index.js +3 -0
  665. package/lib/Box/wrapper/BoxContainer.js +19 -8
  666. package/lib/Box/wrapper/BoxRoot.js +14 -5
  667. package/lib/Box/wrapper/BoxWrapper.js +5 -0
  668. package/lib/Box/wrapper/reducer.js +8 -2
  669. package/lib/Breadcrumb/index.js +4 -0
  670. package/lib/Button/index.js +25 -10
  671. package/lib/ButtonTags/ButtonTags.js +20 -11
  672. package/lib/ButtonTags/index.js +3 -0
  673. package/lib/Calendar/index.js +4 -0
  674. package/lib/Card/index.js +4 -0
  675. package/lib/CardTable/LmCardTable.js +28 -19
  676. package/lib/CardTable/body/TableBody.js +26 -17
  677. package/lib/CardTable/body/TableBodyCell.js +17 -9
  678. package/lib/CardTable/body/TableBodyRow.js +19 -13
  679. package/lib/CardTable/card/PictureTextColumn.js +28 -18
  680. package/lib/CardTable/card/PictureTextRow.js +31 -18
  681. package/lib/CardTable/card/PictureTextRowOperate.js +30 -17
  682. package/lib/CardTable/context.js +5 -0
  683. package/lib/CardTable/empty.js +6 -1
  684. package/lib/CardTable/fns/index.js +36 -22
  685. package/lib/CardTable/footer.js +15 -4
  686. package/lib/CardTable/hooks/usePagination.js +53 -38
  687. package/lib/CardTable/index.js +5 -0
  688. package/lib/CardTable/pager/TablePagination.js +15 -8
  689. package/lib/CardTable/pager/index.js +13 -6
  690. package/lib/CardTable/table/Table.js +6 -2
  691. package/lib/CardTable/table/TableContainer.js +23 -14
  692. package/lib/CardTable/table/TableRoot.js +65 -45
  693. package/lib/CardTable/table/TableWrapper.js +9 -2
  694. package/lib/CardTable/toolbar/ToolBarBottom.js +8 -3
  695. package/lib/CardTable/utils.js +9 -3
  696. package/lib/Carousel/index.js +4 -0
  697. package/lib/Cascader/index.js +30 -11
  698. package/lib/Checkbox/index.js +18 -7
  699. package/lib/Col/README.md.old +22 -22
  700. package/lib/Col/index.js +2 -0
  701. package/lib/Collapse/index.js +4 -0
  702. package/lib/Comment/index.js +4 -0
  703. package/lib/ConfigProvider/DisabledContext.d.ts +1 -1
  704. package/lib/ConfigProvider/DisabledContext.js +6 -1
  705. package/lib/ConfigProvider/SizeContext.d.ts +1 -1
  706. package/lib/ConfigProvider/SizeContext.js +6 -1
  707. package/lib/ConfigProvider/context.d.ts +2 -2
  708. package/lib/ConfigProvider/context.js +13 -4
  709. package/lib/ConfigProvider/cssVariables.js +34 -17
  710. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
  711. package/lib/ConfigProvider/defaultRenderEmpty.js +12 -0
  712. package/lib/ConfigProvider/index.js +75 -30
  713. package/lib/CropImg/LmCropImg.js +5 -0
  714. package/lib/CropImg/body/Operate.js +23 -10
  715. package/lib/CropImg/body/index.js +13 -6
  716. package/lib/CropImg/fns/index.js +12 -8
  717. package/lib/CropImg/index.js +3 -0
  718. package/lib/CropImg/utils.js +52 -34
  719. package/lib/CropImg/wrapper/Container.js +29 -10
  720. package/lib/CropImg/wrapper/Root.js +24 -13
  721. package/lib/CropImg/wrapper/Wrapper.js +6 -0
  722. package/lib/CropImg/wrapper/reducer.js +12 -5
  723. package/lib/CustomTableOption/cardSort.js +60 -24
  724. package/lib/CustomTableOption/columnsSort.js +77 -29
  725. package/lib/CustomTableOption/filterSort.js +65 -28
  726. package/lib/CustomTableOption/index.js +44 -18
  727. package/lib/CustomerService/README.md.old +15 -15
  728. package/lib/CustomerService/components/question.js +20 -3
  729. package/lib/CustomerService/index.js +46 -18
  730. package/lib/DatePicker/PickerButton.d.ts +0 -1
  731. package/lib/DatePicker/PickerButton.js +4 -0
  732. package/lib/DatePicker/PickerTag.d.ts +0 -1
  733. package/lib/DatePicker/PickerTag.js +4 -0
  734. package/lib/DatePicker/generatePicker/generateRangePicker.js +52 -23
  735. package/lib/DatePicker/generatePicker/generateSinglePicker.js +56 -22
  736. package/lib/DatePicker/generatePicker/index.d.ts +13 -13
  737. package/lib/DatePicker/generatePicker/index.js +33 -12
  738. package/lib/DatePicker/generatePicker/interface.d.ts +3 -3
  739. package/lib/DatePicker/index.d.ts +4 -4
  740. package/lib/DatePicker/index.js +6 -0
  741. package/lib/DatePicker/util.js +20 -0
  742. package/lib/Descriptions/Cell.js +22 -11
  743. package/lib/Descriptions/Item.js +2 -0
  744. package/lib/Descriptions/Row.js +36 -24
  745. package/lib/Descriptions/index.js +61 -28
  746. package/lib/Divider/index.js +28 -12
  747. package/lib/Drawer/index.js +16 -4
  748. package/lib/Dropdown/index.js +48 -19
  749. package/lib/EditTable/EditTable.js +178 -82
  750. package/lib/EditTable/README.md.old +66 -66
  751. package/lib/EditTable/index.js +3 -0
  752. package/lib/Empty/empty.js +7 -1
  753. package/lib/Empty/index.js +33 -10
  754. package/lib/Empty/simple.js +7 -1
  755. package/lib/EnlargeImg/README.md.old +21 -21
  756. package/lib/EnlargeImg/index.js +43 -17
  757. package/lib/Filter/Popover.js +65 -29
  758. package/lib/Filter/README.md.old +144 -144
  759. package/lib/Filter/baseFilter/Popover.js +70 -28
  760. package/lib/Filter/baseFilter/ToggleFilter.js +25 -9
  761. package/lib/Filter/baseFilter/index.js +31 -11
  762. package/lib/Filter/complex/ComplexFilter.js +47 -16
  763. package/lib/Filter/complex/ComplexItem.js +47 -24
  764. package/lib/Filter/components/Checkbox.js +34 -14
  765. package/lib/Filter/components/Date.js +30 -10
  766. package/lib/Filter/components/Input.js +23 -7
  767. package/lib/Filter/components/Select.js +33 -13
  768. package/lib/Filter/components/Tree.js +24 -8
  769. package/lib/Filter/components/header.js +17 -3
  770. package/lib/Filter/components/index.js +6 -0
  771. package/lib/Filter/context.js +4 -0
  772. package/lib/Filter/edit/editFilter.js +81 -44
  773. package/lib/Filter/index.js +49 -27
  774. package/lib/Filter/popContext.js +4 -0
  775. package/lib/Filter/remember.js +41 -18
  776. package/lib/Form/ErrorList.js +34 -16
  777. package/lib/Form/Form.d.ts +2 -2
  778. package/lib/Form/Form.js +62 -27
  779. package/lib/Form/FormItem/ItemHolder.js +60 -26
  780. package/lib/Form/FormItem/index.d.ts +6 -6
  781. package/lib/Form/FormItem/index.js +138 -70
  782. package/lib/Form/FormItemInput.js +23 -14
  783. package/lib/Form/FormItemLabel.d.ts +2 -2
  784. package/lib/Form/FormItemLabel.js +55 -24
  785. package/lib/Form/FormList.js +18 -3
  786. package/lib/Form/FormWrapper.js +8 -0
  787. package/lib/Form/WrapperItem.js +79 -34
  788. package/lib/Form/container.js +32 -12
  789. package/lib/Form/context.d.ts +2 -2
  790. package/lib/Form/context.js +15 -2
  791. package/lib/Form/hooks/useDebounce.js +9 -3
  792. package/lib/Form/hooks/useForm.js +14 -2
  793. package/lib/Form/hooks/useFormInstance.js +5 -1
  794. package/lib/Form/hooks/useFormItemStatus.d.ts +1 -1
  795. package/lib/Form/hooks/useFormItemStatus.js +8 -1
  796. package/lib/Form/hooks/useFrameState.d.ts +1 -1
  797. package/lib/Form/hooks/useFrameState.js +16 -3
  798. package/lib/Form/hooks/useItemRef.js +13 -1
  799. package/lib/Form/index.d.ts +1 -1
  800. package/lib/Form/index.js +13 -0
  801. package/lib/Form/interface.d.ts +2 -2
  802. package/lib/Form/util.js +9 -2
  803. package/lib/FullScreen/index.js +10 -3
  804. package/lib/Grid/RowContext.js +2 -0
  805. package/lib/Grid/col.d.ts +2 -2
  806. package/lib/Grid/col.js +48 -21
  807. package/lib/Grid/hooks/useBreakpoint.js +8 -0
  808. package/lib/Grid/index.js +7 -0
  809. package/lib/Grid/row.d.ts +1 -1
  810. package/lib/Grid/row.js +62 -31
  811. package/lib/Icon/index.js +4 -0
  812. package/lib/IconFont/font/iconfont.css +1831 -1831
  813. package/lib/IconFont/font/iconfont.js +16 -10
  814. package/lib/IconFont/index.js +11 -1
  815. package/lib/IconSelect/iconJson.json +2935 -2935
  816. package/lib/IconSelect/index.js +29 -12
  817. package/lib/Image/index.js +4 -0
  818. package/lib/ImageViewer/LmImageViewer.js +11 -0
  819. package/lib/ImageViewer/components/Arrows.js +10 -1
  820. package/lib/ImageViewer/components/Carousel.js +18 -13
  821. package/lib/ImageViewer/components/Operate.js +7 -0
  822. package/lib/ImageViewer/components/Thumb.js +15 -3
  823. package/lib/ImageViewer/fns/index.js +27 -17
  824. package/lib/ImageViewer/index.js +3 -0
  825. package/lib/ImageViewer/wrapeer/Container.js +12 -2
  826. package/lib/ImageViewer/wrapeer/Root.js +27 -15
  827. package/lib/ImageViewer/wrapeer/Wrapper.js +9 -2
  828. package/lib/ImageViewer/wrapeer/reducer.js +16 -6
  829. package/lib/Input/index.js +49 -30
  830. package/lib/InputNumber/index.js +23 -9
  831. package/lib/Layout/index.js +4 -0
  832. package/lib/LeftTable/index.js +49 -25
  833. package/lib/List/index.js +4 -0
  834. package/lib/LmDrag/LmDrag.js +11 -0
  835. package/lib/LmDrag/components/DndContainer.js +47 -22
  836. package/lib/LmDrag/components/sortableBox.js +9 -2
  837. package/lib/LmDrag/components/sortableItem.js +22 -13
  838. package/lib/LmDrag/index.js +3 -0
  839. package/lib/LmDrag/wrapper/Root.js +7 -0
  840. package/lib/LmEditTable/DndContainer.js +43 -22
  841. package/lib/LmEditTable/DragHandle.js +12 -4
  842. package/lib/LmEditTable/EditTable.d.ts +1 -1
  843. package/lib/LmEditTable/EditTable.js +397 -159
  844. package/lib/LmEditTable/components/DraggableContainer.js +17 -6
  845. package/lib/LmEditTable/components/QuickOpetate.js +18 -7
  846. package/lib/LmEditTable/components/bottomOpetateComponent.js +9 -4
  847. package/lib/LmEditTable/components/customRenderEmpty.js +8 -1
  848. package/lib/LmEditTable/components/index.js +6 -0
  849. package/lib/LmEditTable/hooks/useForkRef.js +4 -0
  850. package/lib/LmEditTable/index.js +3 -0
  851. package/lib/LmEditTable/rowSort/DndContainerRow.js +42 -23
  852. package/lib/LmEditTable/sortableBox.js +6 -1
  853. package/lib/LmEditTable/sortableBoxCol.js +6 -1
  854. package/lib/LmEditTable/sortableItem.js +25 -10
  855. package/lib/LmEditTable/sortableItemCol.d.ts +0 -1
  856. package/lib/LmEditTable/sortableItemCol.js +22 -11
  857. package/lib/LmEditTable/util.js +60 -6
  858. package/lib/LmEditTable/virtual/VirtualRow.js +53 -26
  859. package/lib/LmEditTable/virtual/VirtualRow2.js +22 -7
  860. package/lib/LmEditTable/virtual/VirtualTable.js +22 -10
  861. package/lib/LmEditTable/virtual/VirtualWrapper.js +18 -6
  862. package/lib/LmEditTable/virtual/context.js +15 -3
  863. package/lib/LmEditTable/virtual/index.js +4 -0
  864. package/lib/LmFilter/Controls/CheckboxTags.js +12 -2
  865. package/lib/LmFilter/Controls/index.js +24 -10
  866. package/lib/LmFilter/LmFilter.js +14 -4
  867. package/lib/LmFilter/baseFilter/fuzzySearch.js +18 -8
  868. package/lib/LmFilter/baseFilter/index.js +7 -2
  869. package/lib/LmFilter/clearFilter/index.js +9 -2
  870. package/lib/LmFilter/complexFilter/drawer.js +76 -47
  871. package/lib/LmFilter/complexFilter/index.js +14 -2
  872. package/lib/LmFilter/complexFilter/valueDrawer.js +52 -20
  873. package/lib/LmFilter/components/CascaderFilter.js +52 -27
  874. package/lib/LmFilter/components/CheckboxFilter.js +52 -39
  875. package/lib/LmFilter/components/CustomSelectFilter.js +38 -20
  876. package/lib/LmFilter/components/DateFilter.js +39 -23
  877. package/lib/LmFilter/components/DropdownFIlter.js +90 -57
  878. package/lib/LmFilter/components/EmptyFilter.js +5 -0
  879. package/lib/LmFilter/components/InputFilter.js +13 -5
  880. package/lib/LmFilter/components/InputSearchClose.js +22 -10
  881. package/lib/LmFilter/components/SelectFilter.js +37 -21
  882. package/lib/LmFilter/components/index.js +37 -26
  883. package/lib/LmFilter/customFilter/drawer.js +75 -40
  884. package/lib/LmFilter/customFilter/index.js +24 -11
  885. package/lib/LmFilter/customFilter/saveModal.js +39 -15
  886. package/lib/LmFilter/customFilter/valueDrawer.js +51 -20
  887. package/lib/LmFilter/filterFns/index.js +198 -129
  888. package/lib/LmFilter/hooks/index.js +2 -0
  889. package/lib/LmFilter/hooks/useDelayedFn.js +5 -2
  890. package/lib/LmFilter/index.js +3 -0
  891. package/lib/LmFilter/localization.js +1 -2
  892. package/lib/LmFilter/utils.js +52 -26
  893. package/lib/LmFilter/wrapper/Filter.js +13 -4
  894. package/lib/LmFilter/wrapper/FilterContainer.js +5 -1
  895. package/lib/LmFilter/wrapper/FilterRoot.js +62 -40
  896. package/lib/LmFilter/wrapper/FilterWrapper.js +5 -1
  897. package/lib/LmImgList/LmImgList.js +5 -0
  898. package/lib/LmImgList/body/Banner.js +22 -13
  899. package/lib/LmImgList/body/Thumb.js +16 -4
  900. package/lib/LmImgList/fns/index.js +24 -15
  901. package/lib/LmImgList/index.js +4 -0
  902. package/lib/LmImgList/wrapper/Container.js +21 -9
  903. package/lib/LmImgList/wrapper/Root.js +24 -13
  904. package/lib/LmImgList/wrapper/Wrapper.js +5 -0
  905. package/lib/LmImgList/wrapper/reducer.js +14 -6
  906. package/lib/LmSelect/GhostSelect.js +163 -99
  907. package/lib/LmSelect/NormalSelect.js +40 -20
  908. package/lib/LmSelect/index.js +14 -1
  909. package/lib/LmSelect/useCheckboxOptions.js +37 -17
  910. package/lib/LmSelect/utils.js +38 -18
  911. package/lib/LmTable/Table.js +490 -289
  912. package/lib/LmTable/VList.js +170 -109
  913. package/lib/LmTable/autosize.js +43 -16
  914. package/lib/LmTable/chartUtil.js +14 -4
  915. package/lib/LmTable/common/index.js +9 -1
  916. package/lib/LmTable/components/CalcExpression.js +37 -11
  917. package/lib/LmTable/components/Container/Container.js +26 -16
  918. package/lib/LmTable/components/Container/index.js +1 -0
  919. package/lib/LmTable/components/DndContainer.d.ts +1 -1
  920. package/lib/LmTable/components/DndContainer.js +223 -128
  921. package/lib/LmTable/components/HeaderCol.js +22 -13
  922. package/lib/LmTable/components/Item/Item.js +32 -20
  923. package/lib/LmTable/components/Item/components/Action/Action.js +14 -4
  924. package/lib/LmTable/components/Item/components/Action/index.js +1 -0
  925. package/lib/LmTable/components/Item/components/Handle/index.js +4 -0
  926. package/lib/LmTable/components/Item/components/Remove/index.d.ts +0 -1
  927. package/lib/LmTable/components/Item/components/Remove/index.js +4 -0
  928. package/lib/LmTable/components/Item/components/index.js +4 -0
  929. package/lib/LmTable/components/Item/index.js +2 -0
  930. package/lib/LmTable/components/SortableBox.js +6 -1
  931. package/lib/LmTable/components/customRenderEmpty.js +8 -1
  932. package/lib/LmTable/components/inputDataEdit.js +11 -3
  933. package/lib/LmTable/components/sheelTableCell.js +65 -32
  934. package/lib/LmTable/components/tableChartsModal.js +26 -12
  935. package/lib/LmTable/context.js +3 -0
  936. package/lib/LmTable/detectElementResize.js +59 -26
  937. package/lib/LmTable/expression.js +28 -4
  938. package/lib/LmTable/hooks/useDndItems.js +70 -24
  939. package/lib/LmTable/hooks/useGroupDataSource.js +6 -1
  940. package/lib/LmTable/hooks/useResizeObserver.js +23 -13
  941. package/lib/LmTable/hooks/useRowSelectControllableValue.js +20 -6
  942. package/lib/LmTable/index.js +3 -0
  943. package/lib/LmTable/multipleContainersKeyboardCoordinates.js +32 -5
  944. package/lib/LmTable/resetConfig.js +8 -8
  945. package/lib/LmTable/testDemos/group.js +21 -5
  946. package/lib/LmTable/util.js +154 -87
  947. package/lib/LmTable/virTual/VirtualRow.js +46 -25
  948. package/lib/LmTable/virTual/VirtualTable.js +30 -12
  949. package/lib/LmTable/virTual/VirtualWrapper.js +19 -7
  950. package/lib/LmTable/virTual/context.js +15 -3
  951. package/lib/LmTable/virTual/index.js +4 -0
  952. package/lib/LmUpload/LmUpload.js +26 -11
  953. package/lib/LmUpload/UploadList/ItemPicture.js +13 -6
  954. package/lib/LmUpload/UploadList/ItemPictureCard.js +44 -23
  955. package/lib/LmUpload/UploadList/ItemText.js +12 -5
  956. package/lib/LmUpload/UploadList/RenderItem.js +14 -1
  957. package/lib/LmUpload/UploadList/index.js +26 -11
  958. package/lib/LmUpload/body/Progress.js +5 -0
  959. package/lib/LmUpload/body/UploadCore.js +24 -8
  960. package/lib/LmUpload/body/UploadPicture.js +10 -2
  961. package/lib/LmUpload/components/Crop.js +9 -3
  962. package/lib/LmUpload/components/Preview.js +14 -7
  963. package/lib/LmUpload/fns/index.js +123 -66
  964. package/lib/LmUpload/index.js +3 -0
  965. package/lib/LmUpload/utils.js +24 -10
  966. package/lib/LmUpload/view/index.js +4 -0
  967. package/lib/LmUpload/wrapper/Upload.js +6 -1
  968. package/lib/LmUpload/wrapper/UploadContainer.js +11 -2
  969. package/lib/LmUpload/wrapper/UploadRoot.js +26 -14
  970. package/lib/LmUpload/wrapper/UploadWrapper.js +9 -1
  971. package/lib/LmUpload/wrapper/reducer.js +15 -6
  972. package/lib/LoadingPage/index.js +7 -1
  973. package/lib/Locale/ar_EG.js +6 -1
  974. package/lib/Locale/az_AZ.js +6 -1
  975. package/lib/Locale/bg_BG.js +6 -0
  976. package/lib/Locale/bn_BD.js +6 -1
  977. package/lib/Locale/by_BY.js +6 -1
  978. package/lib/Locale/ca_ES.js +6 -1
  979. package/lib/Locale/cs_CZ.js +6 -1
  980. package/lib/Locale/da_DK.js +6 -0
  981. package/lib/Locale/de_DE.js +6 -1
  982. package/lib/Locale/default.js +7 -1
  983. package/lib/Locale/el_GR.js +6 -0
  984. package/lib/Locale/en_GB.js +6 -1
  985. package/lib/Locale/en_US.js +3 -0
  986. package/lib/Locale/es_ES.js +6 -1
  987. package/lib/Locale/et_EE.js +6 -1
  988. package/lib/Locale/fa_IR.js +6 -1
  989. package/lib/Locale/fi_FI.js +6 -0
  990. package/lib/Locale/fr_BE.js +6 -0
  991. package/lib/Locale/fr_CA.js +6 -0
  992. package/lib/Locale/fr_FR.js +6 -1
  993. package/lib/Locale/ga_IE.js +6 -1
  994. package/lib/Locale/gl_ES.js +6 -1
  995. package/lib/Locale/he_IL.js +6 -1
  996. package/lib/Locale/hi_IN.js +6 -1
  997. package/lib/Locale/hr_HR.js +6 -1
  998. package/lib/Locale/hu_HU.js +6 -0
  999. package/lib/Locale/id_ID.js +6 -0
  1000. package/lib/Locale/is_IS.js +6 -0
  1001. package/lib/Locale/it_IT.js +6 -0
  1002. package/lib/Locale/ja_JP.js +6 -1
  1003. package/lib/Locale/ka_GE.js +6 -1
  1004. package/lib/Locale/kk_KZ.js +6 -1
  1005. package/lib/Locale/km_KH.js +6 -1
  1006. package/lib/Locale/kmr_IQ.js +6 -0
  1007. package/lib/Locale/kn_IN.js +6 -0
  1008. package/lib/Locale/ko_KR.js +6 -1
  1009. package/lib/Locale/ku_IQ.js +6 -0
  1010. package/lib/Locale/lt_LT.js +6 -1
  1011. package/lib/Locale/lv_LV.js +6 -0
  1012. package/lib/Locale/mk_MK.js +6 -0
  1013. package/lib/Locale/ml_IN.js +6 -1
  1014. package/lib/Locale/mn_MN.js +6 -0
  1015. package/lib/Locale/ms_MY.js +6 -0
  1016. package/lib/Locale/nb_NO.js +6 -1
  1017. package/lib/Locale/ne_NP.js +6 -0
  1018. package/lib/Locale/nl_BE.js +6 -1
  1019. package/lib/Locale/nl_NL.js +6 -1
  1020. package/lib/Locale/pl_PL.js +6 -1
  1021. package/lib/Locale/pt_BR.js +6 -1
  1022. package/lib/Locale/pt_PT.js +6 -0
  1023. package/lib/Locale/ro_RO.js +6 -1
  1024. package/lib/Locale/ru_RU.js +6 -1
  1025. package/lib/Locale/si_LK.js +6 -1
  1026. package/lib/Locale/sk_SK.js +6 -1
  1027. package/lib/Locale/sl_SI.js +6 -0
  1028. package/lib/Locale/sr_RS.js +6 -1
  1029. package/lib/Locale/sv_SE.js +6 -1
  1030. package/lib/Locale/ta_IN.js +6 -0
  1031. package/lib/Locale/th_TH.js +6 -1
  1032. package/lib/Locale/tk_TK.js +6 -1
  1033. package/lib/Locale/tr_TR.js +6 -1
  1034. package/lib/Locale/uk_UA.js +6 -1
  1035. package/lib/Locale/ur_PK.js +6 -1
  1036. package/lib/Locale/vi_VN.js +6 -0
  1037. package/lib/Locale/zh_CN.js +7 -1
  1038. package/lib/Locale/zh_HK.js +6 -1
  1039. package/lib/Locale/zh_TW.js +6 -1
  1040. package/lib/Mentions/index.js +4 -0
  1041. package/lib/Menu/index.js +4 -0
  1042. package/lib/Modal/index.js +36 -10
  1043. package/lib/Modal/locale.js +5 -0
  1044. package/lib/PageHeader/index.js +60 -22
  1045. package/lib/Pagination/index.js +20 -4
  1046. package/lib/Popconfirm/index.js +4 -0
  1047. package/lib/Popover/index.js +23 -5
  1048. package/lib/Progress/index.js +4 -0
  1049. package/lib/QuickMenu/index.js +54 -18
  1050. package/lib/Radio/index.js +24 -10
  1051. package/lib/Rate/index.js +4 -0
  1052. package/lib/Result/index.d.ts +6 -6
  1053. package/lib/Result/index.js +41 -16
  1054. package/lib/Result/noFound.js +4 -0
  1055. package/lib/Result/serverError.js +4 -0
  1056. package/lib/Result/unauthorized.js +4 -0
  1057. package/lib/Row/README.md.old +22 -22
  1058. package/lib/Row/index.js +2 -0
  1059. package/lib/Segmented/index.js +4 -0
  1060. package/lib/Select/index.d.ts +1 -1
  1061. package/lib/Select/index.js +41 -20
  1062. package/lib/Skeleton/index.js +4 -0
  1063. package/lib/Slider/index.js +4 -0
  1064. package/lib/Space/index.js +4 -0
  1065. package/lib/Spin/index.js +4 -0
  1066. package/lib/Statistic/index.js +4 -0
  1067. package/lib/Steps/index.js +4 -0
  1068. package/lib/Switch/index.js +18 -4
  1069. package/lib/Table/index.js +4 -0
  1070. package/lib/Tabs/TabPane.js +3 -0
  1071. package/lib/Tabs/hooks/useAnimateConfig.js +8 -0
  1072. package/lib/Tabs/hooks/useLegacyItems.js +17 -3
  1073. package/lib/Tabs/index.d.ts +2 -2
  1074. package/lib/Tabs/index.js +43 -15
  1075. package/lib/Tabs/index.old.js +17 -4
  1076. package/lib/Tag/index.js +20 -5
  1077. package/lib/TestTable/LmBox.js +3 -0
  1078. package/lib/TestTable/index.js +3 -0
  1079. package/lib/TimePicker/index.js +4 -0
  1080. package/lib/Timeline/index.js +4 -0
  1081. package/lib/Tooltip/index.d.ts +2 -2
  1082. package/lib/Tooltip/index.js +80 -34
  1083. package/lib/Transfer/index.js +4 -0
  1084. package/lib/Tree/DirectoryTree.d.ts +2 -2
  1085. package/lib/Tree/DirectoryTree.js +74 -29
  1086. package/lib/Tree/Tree.d.ts +4 -4
  1087. package/lib/Tree/Tree.js +35 -14
  1088. package/lib/Tree/TreeIndex.js +3 -0
  1089. package/lib/Tree/index.js +11 -1
  1090. package/lib/Tree/utils/dictUtil.js +24 -4
  1091. package/lib/Tree/utils/dropIndicator.d.ts +0 -1
  1092. package/lib/Tree/utils/dropIndicator.js +15 -5
  1093. package/lib/Tree/utils/iconUtil.js +25 -2
  1094. package/lib/TreeSelect/index.d.ts +1 -1
  1095. package/lib/TreeSelect/index.js +35 -15
  1096. package/lib/Typography/Base/Ellipsis.js +58 -25
  1097. package/lib/Typography/Base/EllipsisTooltip.js +12 -3
  1098. package/lib/Typography/Base/index.d.ts +1 -1
  1099. package/lib/Typography/Base/index.js +200 -104
  1100. package/lib/Typography/Editable.js +45 -21
  1101. package/lib/Typography/Link.js +17 -4
  1102. package/lib/Typography/Paragraph.js +7 -0
  1103. package/lib/Typography/Text.js +16 -1
  1104. package/lib/Typography/Title.d.ts +1 -1
  1105. package/lib/Typography/Title.js +18 -2
  1106. package/lib/Typography/Typography.js +30 -11
  1107. package/lib/Typography/hooks/useMergedConfig.js +5 -0
  1108. package/lib/Typography/hooks/useUpdatedEffect.d.ts +1 -1
  1109. package/lib/Typography/hooks/useUpdatedEffect.js +4 -0
  1110. package/lib/Typography/index.d.ts +1 -1
  1111. package/lib/Typography/index.js +9 -0
  1112. package/lib/Upload/index.d.ts +3 -3
  1113. package/lib/Upload/index.js +13 -2
  1114. package/lib/UploadOss/index.js +4 -0
  1115. package/lib/UploadOss/uploadBtn.js +54 -32
  1116. package/lib/UploadOss/uploadImg.js +86 -58
  1117. package/lib/VirtualList/index.js +27 -18
  1118. package/lib/_util/colors.d.ts +2 -2
  1119. package/lib/_util/colors.js +4 -2
  1120. package/lib/_util/domTarget.d.ts +3 -3
  1121. package/lib/_util/domTarget.js +6 -0
  1122. package/lib/_util/getDataOrAriaProps.js +2 -0
  1123. package/lib/_util/getRenderPropValue.d.ts +1 -1
  1124. package/lib/_util/getRenderPropValue.js +5 -0
  1125. package/lib/_util/hooks/useFlexGapSupport.js +11 -3
  1126. package/lib/_util/hooks/useForceUpdate.js +10 -4
  1127. package/lib/_util/motion.d.ts +1 -1
  1128. package/lib/_util/motion.js +12 -0
  1129. package/lib/_util/placements.js +12 -7
  1130. package/lib/_util/reactNode.d.ts +2 -2
  1131. package/lib/_util/reactNode.js +5 -0
  1132. package/lib/_util/responsiveObserve.d.ts +5 -5
  1133. package/lib/_util/responsiveObserve.js +8 -0
  1134. package/lib/_util/statusUtils.d.ts +1 -1
  1135. package/lib/_util/statusUtils.js +9 -0
  1136. package/lib/_util/styleChecker.js +16 -6
  1137. package/lib/_util/throttleByAnimationFrame.js +12 -0
  1138. package/lib/_util/transButton.js +19 -3
  1139. package/lib/_util/type.d.ts +2 -2
  1140. package/lib/_util/type.js +6 -0
  1141. package/lib/_util/warning.d.ts +1 -1
  1142. package/lib/_util/warning.js +10 -4
  1143. package/lib/hooks/index.js +3 -0
  1144. package/lib/hooks/useEvent/index.js +7 -4
  1145. package/lib/hooks/useFullscreen/index.d.ts +3 -3
  1146. package/lib/hooks/useFullscreen/index.js +33 -7
  1147. package/lib/index.js +89 -0
  1148. package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
  1149. package/lib/locale-provider/LocaleReceiver.js +20 -4
  1150. package/lib/locale-provider/ar_EG.js +3 -0
  1151. package/lib/locale-provider/az_AZ.js +3 -0
  1152. package/lib/locale-provider/bg_BG.js +3 -0
  1153. package/lib/locale-provider/bn_BD.js +3 -0
  1154. package/lib/locale-provider/by_BY.js +3 -0
  1155. package/lib/locale-provider/ca_ES.js +3 -0
  1156. package/lib/locale-provider/context.d.ts +1 -1
  1157. package/lib/locale-provider/context.js +2 -0
  1158. package/lib/locale-provider/cs_CZ.js +3 -0
  1159. package/lib/locale-provider/da_DK.js +3 -0
  1160. package/lib/locale-provider/de_DE.js +3 -0
  1161. package/lib/locale-provider/default.js +3 -0
  1162. package/lib/locale-provider/el_GR.js +3 -0
  1163. package/lib/locale-provider/en_GB.js +3 -0
  1164. package/lib/locale-provider/en_US.js +3 -0
  1165. package/lib/locale-provider/es_ES.js +3 -0
  1166. package/lib/locale-provider/et_EE.js +3 -0
  1167. package/lib/locale-provider/fa_IR.js +3 -0
  1168. package/lib/locale-provider/fi_FI.js +3 -0
  1169. package/lib/locale-provider/fr_BE.js +3 -0
  1170. package/lib/locale-provider/fr_CA.js +3 -0
  1171. package/lib/locale-provider/fr_FR.js +3 -0
  1172. package/lib/locale-provider/ga_IE.js +3 -0
  1173. package/lib/locale-provider/gl_ES.js +3 -0
  1174. package/lib/locale-provider/he_IL.js +3 -0
  1175. package/lib/locale-provider/hi_IN.js +3 -0
  1176. package/lib/locale-provider/hr_HR.js +3 -0
  1177. package/lib/locale-provider/hu_HU.js +3 -0
  1178. package/lib/locale-provider/hy_AM.js +3 -0
  1179. package/lib/locale-provider/id_ID.js +3 -0
  1180. package/lib/locale-provider/index.js +21 -2
  1181. package/lib/locale-provider/is_IS.js +3 -0
  1182. package/lib/locale-provider/it_IT.js +3 -0
  1183. package/lib/locale-provider/ja_JP.js +3 -0
  1184. package/lib/locale-provider/ka_GE.js +3 -0
  1185. package/lib/locale-provider/kk_KZ.js +3 -0
  1186. package/lib/locale-provider/km_KH.js +3 -0
  1187. package/lib/locale-provider/kmr_IQ.js +3 -0
  1188. package/lib/locale-provider/kn_IN.js +3 -0
  1189. package/lib/locale-provider/ko_KR.js +3 -0
  1190. package/lib/locale-provider/ku_IQ.js +3 -0
  1191. package/lib/locale-provider/lt_LT.js +3 -0
  1192. package/lib/locale-provider/lv_LV.js +3 -0
  1193. package/lib/locale-provider/mk_MK.js +3 -0
  1194. package/lib/locale-provider/ml_IN.js +3 -0
  1195. package/lib/locale-provider/mn_MN.js +3 -0
  1196. package/lib/locale-provider/ms_MY.js +3 -0
  1197. package/lib/locale-provider/nb_NO.js +3 -0
  1198. package/lib/locale-provider/ne_NP.js +3 -0
  1199. package/lib/locale-provider/nl_BE.js +3 -0
  1200. package/lib/locale-provider/nl_NL.js +3 -0
  1201. package/lib/locale-provider/pl_PL.js +3 -0
  1202. package/lib/locale-provider/pt_BR.js +3 -0
  1203. package/lib/locale-provider/pt_PT.js +3 -0
  1204. package/lib/locale-provider/ro_RO.js +3 -0
  1205. package/lib/locale-provider/ru_RU.js +3 -0
  1206. package/lib/locale-provider/si_LK.js +3 -0
  1207. package/lib/locale-provider/sk_SK.js +3 -0
  1208. package/lib/locale-provider/sl_SI.js +3 -0
  1209. package/lib/locale-provider/sr_RS.js +3 -0
  1210. package/lib/locale-provider/sv_SE.js +3 -0
  1211. package/lib/locale-provider/ta_IN.js +3 -0
  1212. package/lib/locale-provider/th_TH.js +3 -0
  1213. package/lib/locale-provider/tk_TK.js +3 -0
  1214. package/lib/locale-provider/tr_TR.js +3 -0
  1215. package/lib/locale-provider/uk_UA.js +3 -0
  1216. package/lib/locale-provider/ur_PK.js +3 -0
  1217. package/lib/locale-provider/vi_VN.js +3 -0
  1218. package/lib/locale-provider/zh_CN.js +3 -0
  1219. package/lib/locale-provider/zh_HK.js +3 -0
  1220. package/lib/locale-provider/zh_TW.js +3 -0
  1221. package/lib/message/hooks/useMessage.js +27 -8
  1222. package/lib/message/index.d.ts +10 -10
  1223. package/lib/message/index.js +53 -8
  1224. package/lib/notification/hooks/useNotification.js +19 -8
  1225. package/lib/notification/index.d.ts +2 -2
  1226. package/lib/notification/index.js +83 -34
  1227. package/lib/services/newRequest.js +50 -21
  1228. package/lib/services/utils.js +15 -0
  1229. package/lib/styles/variables.css +178 -178
  1230. package/package.json +146 -146
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { CropImg } from 'linkmore-design';
3
+
3
4
  var Crop = function Crop(_ref) {
4
5
  var instance = _ref.instance;
5
6
  var enableCrop = instance.enableCrop,
6
- state = instance.state,
7
- cropConfig = instance.cropConfig,
8
- checkOver = instance.checkOver;
7
+ state = instance.state,
8
+ cropConfig = instance.cropConfig,
9
+ checkOver = instance.checkOver;
9
10
  if (!enableCrop) return null;
10
11
  var config = Object.assign(Object.assign({}, cropConfig), {
11
12
  file: state.cropFile,
@@ -18,4 +19,5 @@ var Crop = function Crop(_ref) {
18
19
  });
19
20
  return /*#__PURE__*/React.createElement(CropImg, Object.assign({}, config));
20
21
  };
22
+
21
23
  export default /*#__PURE__*/React.memo(Crop);
@@ -1,23 +1,25 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { ImageViewer } from 'linkmore-design';
3
+
3
4
  var Preview = function Preview(_ref) {
4
5
  var instance = _ref.instance;
5
6
  var enabledPreview = instance.enabledPreview,
6
- state = instance.state,
7
- dispatch = instance.dispatch,
8
- getFileList = instance.getFileList;
9
- if (!enabledPreview) return null;
10
- // 与展示顺序保持一致
7
+ state = instance.state,
8
+ dispatch = instance.dispatch,
9
+ getFileList = instance.getFileList;
10
+ if (!enabledPreview) return null; // 与展示顺序保持一致
11
+
11
12
  var fileList = useMemo(function () {
12
13
  var _a;
14
+
13
15
  return (_a = getFileList()) === null || _a === void 0 ? void 0 : _a.sort(function (a, b) {
14
16
  return a.seq - b.seq;
15
17
  });
16
18
  }, [getFileList]);
17
19
  var config = useMemo(function () {
18
20
  var _state$preview = state.preview,
19
- index = _state$preview.index,
20
- visible = _state$preview.visible;
21
+ index = _state$preview.index,
22
+ visible = _state$preview.visible;
21
23
  return {
22
24
  urlList: fileList === null || fileList === void 0 ? void 0 : fileList.map(function (_ref2) {
23
25
  var url = _ref2.url;
@@ -37,4 +39,5 @@ var Preview = function Preview(_ref) {
37
39
  }, [fileList, state.preview]);
38
40
  return /*#__PURE__*/React.createElement(ImageViewer, Object.assign({}, config));
39
41
  };
42
+
40
43
  export default /*#__PURE__*/React.memo(Preview);
@@ -1,11 +1,13 @@
1
- import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
1
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
+
3
4
  var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
4
5
  function adopt(value) {
5
6
  return value instanceof P ? value : new P(function (resolve) {
6
7
  resolve(value);
7
8
  });
8
9
  }
10
+
9
11
  return new (P || (P = Promise))(function (resolve, reject) {
10
12
  function fulfilled(value) {
11
13
  try {
@@ -14,6 +16,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
14
16
  reject(e);
15
17
  }
16
18
  }
19
+
17
20
  function rejected(value) {
18
21
  try {
19
22
  step(generator["throw"](value));
@@ -21,31 +24,36 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
21
24
  reject(e);
22
25
  }
23
26
  }
27
+
24
28
  function step(result) {
25
29
  result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
26
30
  }
31
+
27
32
  step((generator = generator.apply(thisArg, _arguments || [])).next());
28
33
  });
29
34
  };
35
+
30
36
  import { useCallback } from 'react';
31
37
  import { message } from 'linkmore-design';
32
38
  import OSS from 'ali-oss';
39
+
33
40
  var useCoreOptions = function useCoreOptions(_ref) {
34
41
  var state = _ref.state,
35
- dispatch = _ref.dispatch,
36
- props = _ref.props;
42
+ dispatch = _ref.dispatch,
43
+ props = _ref.props;
37
44
  var uid = props.uid,
38
- onChange = props.onChange,
39
- type = props.type,
40
- fileSize = props.fileSize,
41
- fileSizeType = props.fileSizeType,
42
- fileAreaSize = props.fileAreaSize,
43
- enabledOss = props.enabledOss,
44
- enableCrop = props.enableCrop,
45
- ossConfig = props.ossConfig;
45
+ onChange = props.onChange,
46
+ type = props.type,
47
+ fileSize = props.fileSize,
48
+ fileSizeType = props.fileSizeType,
49
+ fileAreaSize = props.fileAreaSize,
50
+ enabledOss = props.enabledOss,
51
+ enableCrop = props.enableCrop,
52
+ ossConfig = props.ossConfig;
46
53
  /* 获取两个对象是否存在指定值相等
47
54
  * 取用户定义的列字段,如果读取不到则取'fileName'对比
48
55
  */
56
+
49
57
  var getHasEqual = useCallback(function (obj1, obj2) {
50
58
  var extend = [uid, 'fileName'];
51
59
  var flag = false;
@@ -55,8 +63,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
55
63
  }
56
64
  });
57
65
  return flag;
58
- }, [uid]);
59
- // 从对象中读取存在的指定属性
66
+ }, [uid]); // 从对象中读取存在的指定属性
67
+
60
68
  var getFileHasValue = useCallback(function (obj) {
61
69
  if (!obj) return '';
62
70
  var extend = [uid, 'fileName'];
@@ -65,45 +73,49 @@ var useCoreOptions = function useCoreOptions(_ref) {
65
73
  if (!val && obj[v]) val = obj[v];
66
74
  });
67
75
  return val;
68
- }, [uid]);
69
- // 获取当前的文件列表
76
+ }, [uid]); // 获取当前的文件列表
77
+
70
78
  var getFileList = useCallback(function () {
71
79
  return props.fileList || state.fileList;
72
- }, [props.fileList, state.fileList]);
73
- // 获取上传状态
80
+ }, [props.fileList, state.fileList]); // 获取上传状态
81
+
74
82
  var getUploadStatus = useCallback(function () {
75
83
  var uploading = typeof state.percent === 'number';
76
84
  return {
77
85
  uploading: uploading
78
86
  };
79
- }, [state.percent]);
80
- // 获取文件字段值
87
+ }, [state.percent]); // 获取文件字段值
88
+
81
89
  var getFileFields = useCallback(function (fileParams) {
82
90
  var fileNames = props.fileNames;
83
91
  var obj = {};
84
92
  Object.entries(fileNames).forEach(function (v) {
85
93
  var itemKey = v[0];
86
94
  var itemValue = v[1];
95
+
87
96
  if (fileParams[itemKey]) {
88
97
  obj[itemKey] = fileParams[itemValue];
89
98
  }
90
99
  });
91
100
  return obj;
92
- }, [props]);
93
- // 获取是否达到最大上传数量
101
+ }, [props]); // 获取是否达到最大上传数量
102
+
94
103
  var getIsMaxCount = useCallback(function () {
95
104
  var maxCount = props.maxCount,
96
- limit = props.limit;
105
+ limit = props.limit;
97
106
  var flag = false;
98
107
  var num = maxCount || limit;
108
+
99
109
  if (num && typeof num === 'number') {
100
110
  flag = !(getFileList().length < num);
101
111
  }
112
+
102
113
  return flag;
103
- }, [getFileList, props]);
104
- // 上传成功事件: File, fileParams
114
+ }, [getFileList, props]); // 上传成功事件: File, fileParams
115
+
105
116
  var uploadSuccess = useCallback(function (file, params, ossCallBack) {
106
117
  var _a;
118
+
107
119
  var fileList = [params].concat(_toConsumableArray(getFileList()));
108
120
  dispatch({
109
121
  type: 'changeFileList',
@@ -112,8 +124,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
112
124
  dispatch({
113
125
  type: 'changePercent',
114
126
  percent: null
115
- });
116
- // 上传事件:抛出 file: 文件 filelist: 文件列表 event: 上传进度信息
127
+ }); // 上传事件:抛出 file: 文件 filelist: 文件列表 event: 上传进度信息
128
+
117
129
  (_a = props.onSuccess) === null || _a === void 0 ? void 0 : _a.call(props, {
118
130
  file: file,
119
131
  fileList: fileList
@@ -123,13 +135,15 @@ var useCoreOptions = function useCoreOptions(_ref) {
123
135
  fileList: fileList
124
136
  });
125
137
  ossCallBack === null || ossCallBack === void 0 ? void 0 : ossCallBack(params);
126
- }, [getFileList, props.onSuccess, onChange, dispatch]);
127
- // 上传进度事件
138
+ }, [getFileList, props.onSuccess, onChange, dispatch]); // 上传进度事件
139
+
128
140
  var uploadProgress = useCallback(function (file, _ref2) {
129
141
  var progress = _ref2.progress,
130
- checkPoint = _ref2.checkPoint,
131
- result = _ref2.result;
142
+ checkPoint = _ref2.checkPoint,
143
+ result = _ref2.result;
144
+
132
145
  var _a;
146
+
133
147
  var params = {
134
148
  file: file,
135
149
  fileList: getFileList(),
@@ -146,11 +160,11 @@ var useCoreOptions = function useCoreOptions(_ref) {
146
160
  type: 'changePercent',
147
161
  percent: Number((progress * 100).toFixed(2))
148
162
  });
149
- }, [getFileList, props.onProgress, onChange, dispatch]);
150
- // 上传失败事件
163
+ }, [getFileList, props.onProgress, onChange, dispatch]); // 上传失败事件
164
+
151
165
  var uploadError = useCallback(function (_ref3) {
152
166
  var error = _ref3.error,
153
- file = _ref3.file;
167
+ file = _ref3.file;
154
168
  console.log('上传报错:', error);
155
169
  props.onError ? props.onError({
156
170
  error: error,
@@ -164,12 +178,13 @@ var useCoreOptions = function useCoreOptions(_ref) {
164
178
  status: 'error'
165
179
  }
166
180
  });
167
- }, [props.onError, getFileList, onChange]);
168
- // 上传至ali-oss
181
+ }, [props.onError, getFileList, onChange]); // 上传至ali-oss
182
+
169
183
  var uploadOss = useCallback(function (file) {
170
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
184
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
171
185
  var _ossConfig, _ossConfig$dir, filePath, shortlink, _ossConfig$region, region, accessKeyId, accessKeySecret, stsToken, _ossConfig$bucket, bucket, ossCallBack, client, timestamp, fileName, pathName, url, params;
172
- return _regeneratorRuntime().wrap(function _callee$(_context) {
186
+
187
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
173
188
  while (1) {
174
189
  switch (_context.prev = _context.next) {
175
190
  case 0:
@@ -198,7 +213,9 @@ var useCoreOptions = function useCoreOptions(_ref) {
198
213
  },
199
214
  parallel: 4,
200
215
  partSize: 1024 * 1024 // 分片大小
216
+
201
217
  });
218
+
202
219
  case 9:
203
220
  params = props.fileConfig({
204
221
  file: file,
@@ -211,6 +228,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
211
228
  uploadSuccess(file, params, ossCallBack);
212
229
  _context.next = 16;
213
230
  break;
231
+
214
232
  case 13:
215
233
  _context.prev = 13;
216
234
  _context.t0 = _context["catch"](0);
@@ -218,6 +236,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
218
236
  error: _context.t0,
219
237
  file: file
220
238
  });
239
+
221
240
  case 16:
222
241
  case "end":
223
242
  return _context.stop();
@@ -225,26 +244,27 @@ var useCoreOptions = function useCoreOptions(_ref) {
225
244
  }
226
245
  }, _callee, null, [[0, 13]]);
227
246
  }));
228
- }, [ossConfig, uploadProgress, props.fileConfig, uploadSuccess, uploadError]);
229
- // 自定义使用外部上传
247
+ }, [ossConfig, uploadProgress, props.fileConfig, uploadSuccess, uploadError]); // 自定义使用外部上传
248
+
230
249
  var customUpload = useCallback(function (file) {
231
250
  var _a;
251
+
232
252
  (_a = props.fileUpload) === null || _a === void 0 ? void 0 : _a.call(props, {
233
253
  file: file,
234
254
  value: getFileList(),
235
255
  onChange: uploadSuccess
236
256
  });
237
- }, [props.fileUpload, getFileList, uploadSuccess]);
238
- // 调用上传方法: 执行 uploadOss && customUpload事件
257
+ }, [props.fileUpload, getFileList, uploadSuccess]); // 调用上传方法: 执行 uploadOss && customUpload事件
258
+
239
259
  var uploadFile = useCallback(function (file) {
240
260
  enabledOss && uploadOss(file);
241
261
  customUpload(file);
242
- }, [enabledOss, uploadOss, customUpload]);
243
- // 检测完成, 执行外部 `beforeUpload` 事件
262
+ }, [enabledOss, uploadOss, customUpload]); // 检测完成, 执行外部 `beforeUpload` 事件
263
+
244
264
  var checkOver = useCallback(function (file) {
245
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
265
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
246
266
  var res, newFile;
247
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
267
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
248
268
  while (1) {
249
269
  switch (_context2.prev = _context2.next) {
250
270
  case 0:
@@ -252,37 +272,48 @@ var useCoreOptions = function useCoreOptions(_ref) {
252
272
  _context2.next = 3;
253
273
  break;
254
274
  }
275
+
255
276
  uploadFile(file);
256
277
  return _context2.abrupt("return");
278
+
257
279
  case 3:
258
280
  res = props.beforeUpload(file, getFileList()); // Promise
281
+
259
282
  if (!(res === null || res === void 0 ? void 0 : res.then)) {
260
283
  _context2.next = 16;
261
284
  break;
262
285
  }
286
+
263
287
  _context2.prev = 5;
264
288
  _context2.next = 8;
265
289
  return res;
290
+
266
291
  case 8:
267
292
  newFile = _context2.sent;
268
293
  uploadFile(newFile);
269
294
  _context2.next = 15;
270
295
  break;
296
+
271
297
  case 12:
272
298
  _context2.prev = 12;
273
299
  _context2.t0 = _context2["catch"](5);
274
300
  console.log('上传失败!');
301
+
275
302
  case 15:
276
303
  return _context2.abrupt("return");
304
+
277
305
  case 16:
278
306
  if (res) {
279
307
  _context2.next = 18;
280
308
  break;
281
309
  }
310
+
282
311
  return _context2.abrupt("return");
312
+
283
313
  case 18:
284
314
  // () => true
285
315
  uploadFile(file);
316
+
286
317
  case 19:
287
318
  case "end":
288
319
  return _context2.stop();
@@ -290,34 +321,40 @@ var useCoreOptions = function useCoreOptions(_ref) {
290
321
  }
291
322
  }, _callee2, null, [[5, 12]]);
292
323
  }));
293
- }, [props.beforeUpload, getFileList, uploadFile]);
294
- // 单个文件异步校验
324
+ }, [props.beforeUpload, getFileList, uploadFile]); // 单个文件异步校验
325
+
295
326
  var fileCheckAsync = useCallback(function (file) {
296
327
  return new Promise(function (resolve, reject) {
297
328
  // 文件类型校验是否通过 | 存在通配符或符合规定类型
298
- var isCheckType = type.includes('*') || type.includes(file.name.replace(/.*\./, '').toLowerCase());
299
- // 大小校验是否通过
329
+ var isCheckType = type.includes('*') || type.includes(file.name.replace(/.*\./, '').toLowerCase()); // 大小校验是否通过
330
+
300
331
  var isCheckSize = file.size / 1024 / (fileSizeType.toLowerCase().includes('m') ? 1024 : 1) <= fileSize;
332
+
301
333
  if (!isCheckType) {
302
334
  var content = type.join('、');
303
335
  reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u4EC5\u652F\u6301".concat(content, "\u7684\u6587\u4EF6\u7C7B\u578B\uFF01")));
304
336
  }
337
+
305
338
  if (!isCheckSize) {
306
339
  reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u9644\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(fileSize).concat(fileSizeType, "\uFF01")));
307
- }
308
- // 是否需要校验图片宽高
340
+ } // 是否需要校验图片宽高
341
+
342
+
309
343
  if (fileAreaSize) {
310
344
  var reader = new FileReader();
311
345
  reader.readAsDataURL(file);
346
+
312
347
  reader.onload = function (evt) {
313
348
  var res = evt.target.result;
314
349
  var imageObj = new Image();
315
350
  imageObj.src = res;
351
+
316
352
  imageObj.onload = function () {
317
353
  var maxWidth = fileAreaSize.maxWidth,
318
- maxHeight = fileAreaSize.maxHeight;
354
+ maxHeight = fileAreaSize.maxHeight;
319
355
  var isCheckAreaSizeMaxWidth = !maxWidth || imageObj.width <= maxWidth;
320
356
  var isCheckAreaSizeMaxHeight = !maxHeight || imageObj.height <= maxHeight;
357
+
321
358
  if (!isCheckAreaSizeMaxWidth || !isCheckAreaSizeMaxHeight) {
322
359
  reject(new Error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u56FE\u7247\u5C3A\u5BF8\u4E0D\u7B26\u5408"));
323
360
  } else {
@@ -329,8 +366,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
329
366
  resolve(file);
330
367
  }
331
368
  });
332
- }, [type, fileSize, fileSizeType, fileAreaSize]);
333
- // 文件循环校验,返回校验后的文件数组
369
+ }, [type, fileSize, fileSizeType, fileAreaSize]); // 文件循环校验,返回校验后的文件数组
370
+
334
371
  var filesLoopCheck = useCallback(function (files) {
335
372
  return Promise.all(files.map(fileCheckAsync));
336
373
  }, [fileCheckAsync]);
@@ -342,10 +379,11 @@ var useCoreOptions = function useCoreOptions(_ref) {
342
379
  * => uploadProgress => uploadSuccess || uploadError
343
380
  * => Props.onChange && (Props.onSuccess || Props.onError)
344
381
  */
382
+
345
383
  var beforeUpload = useCallback(function (e) {
346
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
384
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
347
385
  var files, res;
348
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
386
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
349
387
  while (1) {
350
388
  switch (_context3.prev = _context3.next) {
351
389
  case 0:
@@ -353,8 +391,10 @@ var useCoreOptions = function useCoreOptions(_ref) {
353
391
  _context3.prev = 1;
354
392
  _context3.next = 4;
355
393
  return filesLoopCheck(files);
394
+
356
395
  case 4:
357
396
  res = _context3.sent;
397
+
358
398
  // 仅单文件上传时可剪裁
359
399
  if (enableCrop) {
360
400
  dispatch({
@@ -365,13 +405,16 @@ var useCoreOptions = function useCoreOptions(_ref) {
365
405
  // 校验完成开始执行上传
366
406
  res.forEach(checkOver);
367
407
  }
408
+
368
409
  _context3.next = 12;
369
410
  break;
411
+
370
412
  case 8:
371
413
  _context3.prev = 8;
372
414
  _context3.t0 = _context3["catch"](1);
373
415
  console.log('文件校验未通过!', _context3.t0.message);
374
416
  message.warning(_context3.t0.message, 1.5);
417
+
375
418
  case 12:
376
419
  case "end":
377
420
  return _context3.stop();
@@ -379,19 +422,22 @@ var useCoreOptions = function useCoreOptions(_ref) {
379
422
  }
380
423
  }, _callee3, null, [[1, 8]]);
381
424
  }));
382
- }, [filesLoopCheck, enableCrop, checkOver]);
383
- // 删除事件
425
+ }, [filesLoopCheck, enableCrop, checkOver]); // 删除事件
426
+
384
427
  var remove = useCallback(function (file) {
385
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
428
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
386
429
  var _a, _b, res, fileList;
387
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
430
+
431
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
388
432
  while (1) {
389
433
  switch (_context4.prev = _context4.next) {
390
434
  case 0:
391
435
  _context4.next = 2;
392
436
  return (_a = props.onRemove) === null || _a === void 0 ? void 0 : _a.call(props, file);
437
+
393
438
  case 2:
394
439
  res = _context4.sent;
440
+
395
441
  if (res) {
396
442
  fileList = (_b = getFileList()) === null || _b === void 0 ? void 0 : _b.filter(function (v) {
397
443
  return !getHasEqual(v, file);
@@ -405,6 +451,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
405
451
  fileList: fileList
406
452
  });
407
453
  }
454
+
408
455
  case 4:
409
456
  case "end":
410
457
  return _context4.stop();
@@ -412,20 +459,23 @@ var useCoreOptions = function useCoreOptions(_ref) {
412
459
  }
413
460
  }, _callee4);
414
461
  }));
415
- }, [props.onRemove, getFileList, onChange, dispatch, getHasEqual]);
416
- // 点击文件链接或预览图标时的回调
462
+ }, [props.onRemove, getFileList, onChange, dispatch, getHasEqual]); // 点击文件链接或预览图标时的回调
463
+
417
464
  var preview = useCallback(function (file) {
418
465
  var _a;
466
+
419
467
  (_a = props.onPreview) === null || _a === void 0 ? void 0 : _a.call(props, file);
420
- }, [props.onPreview]);
421
- // 点击下载文件时的回调
468
+ }, [props.onPreview]); // 点击下载文件时的回调
469
+
422
470
  var download = useCallback(function (file) {
423
471
  var _a;
472
+
424
473
  (_a = props.onDownload) === null || _a === void 0 ? void 0 : _a.call(props, file);
425
- }, [props.onDownload]);
426
- // 拖拽移动事件
474
+ }, [props.onDownload]); // 拖拽移动事件
475
+
427
476
  var move = useCallback(function (active, over, fileList) {
428
477
  var _a;
478
+
429
479
  (_a = props.onMove) === null || _a === void 0 ? void 0 : _a.call(props, active, over, fileList);
430
480
  onChange === null || onChange === void 0 ? void 0 : onChange({
431
481
  file: active,
@@ -460,4 +510,5 @@ var useCoreOptions = function useCoreOptions(_ref) {
460
510
  RefMethods: RefMethods
461
511
  };
462
512
  };
513
+
463
514
  export default useCoreOptions;
@@ -1,28 +1,30 @@
1
1
  import _typeof from "@babel/runtime/helpers/esm/typeof";
2
- import React from 'react';
3
- // 检查是否存在内容
2
+ import React from 'react'; // 检查是否存在内容
3
+
4
4
  export function getIsHas(val) {
5
- var _a;
6
- // 检查是否数字类型, 是否布尔类型
7
- var flag = !!val || typeof val === 'number' || typeof val === 'boolean';
8
- // 检查空对象和空数组
5
+ var _a; // 检查是否数字类型, 是否布尔类型
6
+
7
+
8
+ var flag = !!val || typeof val === 'number' || typeof val === 'boolean'; // 检查空对象和空数组
9
+
9
10
  if (!!val && _typeof(val) === 'object') {
10
11
  flag = Array.isArray(val) ? !!val.length : !!((_a = Object.keys(val)) === null || _a === void 0 ? void 0 : _a.length);
11
12
  }
13
+
12
14
  return flag;
13
- }
14
- // 检查是否类组件
15
+ } // 检查是否类组件
16
+
15
17
  export function isClassComponent(component) {
16
18
  return typeof component === 'function' && function () {
17
19
  var proto = Object.getPrototypeOf(component);
18
20
  return proto.prototype && proto.prototype.isReactComponent;
19
21
  }();
20
- }
21
- // 检查是否自定义组件
22
+ } // 检查是否自定义组件
23
+
22
24
  export function isExoticComponent(component) {
23
25
  return _typeof(component) === 'object' && _typeof(component.$$typeof) === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
24
- }
25
- // 检查是否React组件
26
+ } // 检查是否React组件
27
+
26
28
  export function isReactComponent(component) {
27
29
  return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);
28
30
  }
@@ -33,6 +35,7 @@ export var render = function render(Comp, props) {
33
35
  * 将上传的图片转换为可展示的形式
34
36
  * getBase64(file, (img) => {})
35
37
  */
38
+
36
39
  export var getBase64 = function getBase64(img, callback) {
37
40
  var reader = new FileReader();
38
41
  reader.addEventListener('load', function () {
@@ -1,8 +1,10 @@
1
1
  import * as React from 'react';
2
+
2
3
  var LmUploadView = function LmUploadView(_ref) {
3
4
  var instance = _ref.instance;
4
5
  return /*#__PURE__*/React.createElement("div", {
5
6
  className: "lm_upload_view"
6
7
  });
7
8
  };
9
+
8
10
  export default LmUploadView;
@@ -1,10 +1,12 @@
1
1
  // 上传组件组合
2
2
  import * as React from 'react';
3
3
  import UploadCore from '../body/UploadCore';
4
+
4
5
  var LmUpload = function LmUpload(_ref) {
5
6
  var instance = _ref.instance;
6
7
  return /*#__PURE__*/React.createElement(UploadCore, {
7
8
  instance: instance
8
9
  });
9
10
  };
11
+
10
12
  export default LmUpload;
@@ -2,10 +2,12 @@
2
2
  import * as React from 'react';
3
3
  import LmUpload from './Upload';
4
4
  import LmUploadList from '../UploadList';
5
+
5
6
  var LmUploadContainer = function LmUploadContainer(_ref) {
6
7
  var instance = _ref.instance;
7
8
  var readOnly = instance.readOnly,
8
- wrapper = instance.components.wrapper;
9
+ wrapper = instance.components.wrapper;
10
+
9
11
  if (!wrapper) {
10
12
  return /*#__PURE__*/React.createElement(React.Fragment, null, !readOnly && /*#__PURE__*/React.createElement(LmUpload, {
11
13
  instance: instance
@@ -13,6 +15,7 @@ var LmUploadContainer = function LmUploadContainer(_ref) {
13
15
  instance: instance
14
16
  }));
15
17
  }
18
+
16
19
  return wrapper === null || wrapper === void 0 ? void 0 : wrapper({
17
20
  uploadDom: !readOnly && /*#__PURE__*/React.createElement(LmUpload, {
18
21
  instance: instance
@@ -22,4 +25,5 @@ var LmUploadContainer = function LmUploadContainer(_ref) {
22
25
  })
23
26
  });
24
27
  };
28
+
25
29
  export default /*#__PURE__*/React.memo(LmUploadContainer);