linkmore-design 1.0.90 → 1.0.91

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 (791) hide show
  1. package/dist/Affix/style/variables.d.ts +1 -0
  2. package/dist/Alert/style/variables.d.ts +1 -0
  3. package/dist/Approval/style/variables.d.ts +1 -0
  4. package/dist/AutoComplete/style/variables.d.ts +1 -0
  5. package/dist/Avatar/style/variables.d.ts +1 -0
  6. package/dist/Badge/style/variables.d.ts +1 -0
  7. package/dist/Box/style/variables.d.ts +1 -0
  8. package/dist/Breadcrumb/style/variables.d.ts +1 -0
  9. package/dist/ButtonTags/style/variables.d.ts +1 -0
  10. package/dist/Calendar/style/variables.d.ts +1 -0
  11. package/dist/Card/style/variables.d.ts +1 -0
  12. package/dist/CardTable/style/variables.d.ts +1 -0
  13. package/dist/Carousel/style/variables.d.ts +1 -0
  14. package/dist/Cascader/style/variables.d.ts +1 -0
  15. package/dist/Checkbox/style/variables.d.ts +1 -0
  16. package/dist/Col/style/variables.d.ts +1 -0
  17. package/dist/Collapse/style/variables.d.ts +1 -0
  18. package/dist/Comment/style/variables.d.ts +1 -0
  19. package/dist/ConfigProvider/style/variables.d.ts +1 -0
  20. package/dist/CustomTableOption/style/variables.d.ts +1 -0
  21. package/dist/CustomerService/style/variables.d.ts +1 -0
  22. package/dist/DatePicker/style/variables.d.ts +1 -0
  23. package/dist/Descriptions/style/variables.d.ts +1 -0
  24. package/dist/Divider/style/variables.d.ts +1 -0
  25. package/dist/Drawer/style/variables.d.ts +1 -0
  26. package/dist/Dropdown/style/variables.d.ts +1 -0
  27. package/dist/EditTable/style/variables.d.ts +1 -0
  28. package/dist/Empty/style/variables.d.ts +1 -0
  29. package/dist/EnlargeImg/style/variables.d.ts +1 -0
  30. package/dist/Filter/style/variables.d.ts +1 -0
  31. package/dist/Form/style/variables.d.ts +1 -0
  32. package/dist/FullScreen/style/variables.d.ts +1 -0
  33. package/dist/Grid/style/variables.d.ts +1 -0
  34. package/dist/Icon/style/variables.d.ts +1 -0
  35. package/dist/IconFont/style/variables.d.ts +1 -0
  36. package/dist/IconSelect/style/variables.d.ts +1 -0
  37. package/dist/Image/style/variables.d.ts +1 -0
  38. package/dist/ImageViewer/style/variables.d.ts +1 -0
  39. package/dist/Input/style/variables.d.ts +1 -0
  40. package/dist/InputNumber/style/variables.d.ts +1 -0
  41. package/dist/Layout/style/variables.d.ts +1 -0
  42. package/dist/LeftTable/style/variables.d.ts +1 -0
  43. package/dist/List/style/variables.d.ts +1 -0
  44. package/dist/LmEditTable/style/variables.d.ts +1 -0
  45. package/dist/LmFilter/style/variables.d.ts +1 -0
  46. package/dist/LmSelect/style/variables.d.ts +1 -0
  47. package/dist/LmTable/style/variables.d.ts +1 -0
  48. package/dist/LmUpload/style/variables.d.ts +1 -0
  49. package/dist/LoadingPage/style/variables.d.ts +1 -0
  50. package/dist/Mentions/style/variables.d.ts +1 -0
  51. package/dist/Menu/style/variables.d.ts +1 -0
  52. package/dist/Modal/style/variables.d.ts +1 -0
  53. package/dist/PageHeader/style/variables.d.ts +1 -0
  54. package/dist/Pagination/style/variables.d.ts +1 -0
  55. package/dist/Popconfirm/style/variables.d.ts +1 -0
  56. package/dist/Popover/style/variables.d.ts +1 -0
  57. package/dist/Progress/style/variables.d.ts +1 -0
  58. package/dist/QuickMenu/style/variables.d.ts +1 -0
  59. package/dist/Radio/style/variables.d.ts +1 -0
  60. package/dist/Rate/style/variables.d.ts +1 -0
  61. package/dist/Result/style/variables.d.ts +1 -0
  62. package/dist/Row/style/variables.d.ts +1 -0
  63. package/dist/Segmented/style/variables.d.ts +1 -0
  64. package/dist/Select/style/variables.d.ts +1 -0
  65. package/dist/Skeleton/style/variables.d.ts +1 -0
  66. package/dist/Slider/style/variables.d.ts +1 -0
  67. package/dist/Space/style/variables.d.ts +1 -0
  68. package/dist/Spin/style/variables.d.ts +1 -0
  69. package/dist/Statistic/style/variables.d.ts +1 -0
  70. package/dist/Steps/style/variables.d.ts +1 -0
  71. package/dist/Switch/style/variables.d.ts +1 -0
  72. package/dist/Table/style/variables.d.ts +1 -0
  73. package/dist/Tabs/style/variables.d.ts +1 -0
  74. package/dist/Tag/style/variables.d.ts +1 -0
  75. package/dist/TestTable/style/variables.d.ts +1 -0
  76. package/dist/TimePicker/style/variables.d.ts +1 -0
  77. package/dist/Timeline/style/variables.d.ts +1 -0
  78. package/dist/Tooltip/style/variables.d.ts +1 -0
  79. package/dist/Transfer/style/variables.d.ts +1 -0
  80. package/dist/Tree/style/variables.d.ts +1 -0
  81. package/dist/TreeSelect/style/variables.d.ts +1 -0
  82. package/dist/Typography/style/variables.d.ts +1 -0
  83. package/dist/Upload/style/variables.d.ts +1 -0
  84. package/dist/UploadOss/style/variables.d.ts +1 -0
  85. package/dist/VirtualList/style/variables.d.ts +1 -0
  86. package/dist/base.css +511 -0
  87. package/dist/index.umd.js +1 -1
  88. package/dist/index.umd.min.js +1 -1
  89. package/dist/locale-provider/style/variables.d.ts +1 -0
  90. package/dist/message/style/variables.d.ts +1 -0
  91. package/dist/notification/style/variables.d.ts +1 -0
  92. package/dist/styles/index.d.ts +1 -0
  93. package/es/Affix/style/variables.css +0 -0
  94. package/es/Affix/style/variables.d.ts +1 -0
  95. package/es/Affix/style/variables.js +1 -0
  96. package/es/Alert/style/variables.css +26 -0
  97. package/es/Alert/style/variables.d.ts +1 -0
  98. package/es/Alert/style/variables.js +1 -0
  99. package/es/Approval/style/variables.css +199 -0
  100. package/es/Approval/style/variables.d.ts +1 -0
  101. package/es/Approval/style/variables.js +1 -0
  102. package/es/AutoComplete/style/variables.css +0 -0
  103. package/es/AutoComplete/style/variables.d.ts +1 -0
  104. package/es/AutoComplete/style/variables.js +1 -0
  105. package/es/Avatar/style/variables.css +0 -0
  106. package/es/Avatar/style/variables.d.ts +1 -0
  107. package/es/Avatar/style/variables.js +1 -0
  108. package/es/Badge/style/variables.css +0 -0
  109. package/es/Badge/style/variables.d.ts +1 -0
  110. package/es/Badge/style/variables.js +1 -0
  111. package/es/Box/style/variables.css +10 -0
  112. package/es/Breadcrumb/style/variables.css +0 -0
  113. package/es/Breadcrumb/style/variables.d.ts +1 -0
  114. package/es/Breadcrumb/style/variables.js +1 -0
  115. package/es/Button/style/variables.css +118 -0
  116. package/es/ButtonTags/style/variables.css +72 -0
  117. package/es/Calendar/style/variables.css +0 -0
  118. package/es/Calendar/style/variables.d.ts +1 -0
  119. package/es/Calendar/style/variables.js +1 -0
  120. package/es/Card/style/variables.css +0 -0
  121. package/es/Card/style/variables.d.ts +1 -0
  122. package/es/Card/style/variables.js +1 -0
  123. package/es/CardTable/style/variables.css +453 -0
  124. package/es/Carousel/style/variables.css +0 -0
  125. package/es/Carousel/style/variables.d.ts +1 -0
  126. package/es/Carousel/style/variables.js +1 -0
  127. package/es/Cascader/style/variables.css +15 -0
  128. package/es/Cascader/style/variables.d.ts +1 -0
  129. package/es/Cascader/style/variables.js +1 -0
  130. package/es/Checkbox/style/variables.css +128 -0
  131. package/es/Col/style/variables.css +0 -0
  132. package/es/Col/style/variables.d.ts +1 -0
  133. package/es/Col/style/variables.js +1 -0
  134. package/es/Collapse/style/variables.css +0 -0
  135. package/es/Collapse/style/variables.d.ts +1 -0
  136. package/es/Collapse/style/variables.js +1 -0
  137. package/es/Comment/style/variables.css +0 -0
  138. package/es/Comment/style/variables.d.ts +1 -0
  139. package/es/Comment/style/variables.js +1 -0
  140. package/es/ConfigProvider/style/variables.css +141 -0
  141. package/es/CustomTableOption/style/variables.css +99 -0
  142. package/es/CustomTableOption/style/variables.d.ts +1 -0
  143. package/es/CustomTableOption/style/variables.js +1 -0
  144. package/es/CustomerService/style/variables.css +253 -0
  145. package/es/DatePicker/style/variables.css +0 -0
  146. package/es/DatePicker/style/variables.d.ts +1 -0
  147. package/es/DatePicker/style/variables.js +1 -0
  148. package/es/Descriptions/style/index.css +139 -139
  149. package/es/Descriptions/style/variables.css +172 -0
  150. package/es/Descriptions/style/variables.d.ts +1 -0
  151. package/es/Descriptions/style/variables.js +1 -0
  152. package/es/Divider/style/variables.css +0 -0
  153. package/es/Divider/style/variables.d.ts +1 -0
  154. package/es/Divider/style/variables.js +1 -0
  155. package/es/Drawer/style/variables.css +8 -0
  156. package/es/Drawer/style/variables.d.ts +1 -0
  157. package/es/Drawer/style/variables.js +1 -0
  158. package/es/Dropdown/style/variables.css +86 -0
  159. package/es/Dropdown/style/variables.d.ts +1 -0
  160. package/es/Dropdown/style/variables.js +1 -0
  161. package/es/EditTable/style/variables.css +178 -0
  162. package/es/Empty/style/variables.css +44 -0
  163. package/es/Empty/style/variables.d.ts +1 -0
  164. package/es/Empty/style/variables.js +1 -0
  165. package/es/EnlargeImg/style/variables.css +4 -0
  166. package/es/Filter/style/variables.css +271 -0
  167. package/es/Form/style/variables.css +181 -0
  168. package/es/Form/style/variables.d.ts +1 -0
  169. package/es/Form/style/variables.js +1 -0
  170. package/es/FullScreen/style/variables.css +10 -0
  171. package/es/FullScreen/style/variables.d.ts +1 -0
  172. package/es/FullScreen/style/variables.js +1 -0
  173. package/es/Grid/style/variables.css +0 -0
  174. package/es/Grid/style/variables.d.ts +1 -0
  175. package/es/Grid/style/variables.js +1 -0
  176. package/es/Icon/style/variables.css +0 -0
  177. package/es/IconFont/style/variables.css +0 -0
  178. package/es/IconSelect/style/variables.css +25 -0
  179. package/es/Image/style/variables.css +0 -0
  180. package/es/Image/style/variables.d.ts +1 -0
  181. package/es/Image/style/variables.js +1 -0
  182. package/es/ImageViewer/style/variables.css +118 -0
  183. package/es/Input/style/variables.css +773 -0
  184. package/es/Input/style/variables.d.ts +1 -0
  185. package/es/Input/style/variables.js +1 -0
  186. package/es/InputNumber/style/variables.css +35 -0
  187. package/es/InputNumber/style/variables.d.ts +1 -0
  188. package/es/InputNumber/style/variables.js +1 -0
  189. package/es/Layout/style/variables.css +0 -0
  190. package/es/Layout/style/variables.d.ts +1 -0
  191. package/es/Layout/style/variables.js +1 -0
  192. package/es/LeftTable/style/variables.css +161 -0
  193. package/es/List/style/variables.css +0 -0
  194. package/es/List/style/variables.d.ts +1 -0
  195. package/es/List/style/variables.js +1 -0
  196. package/es/LmEditTable/style/variables.css +89 -0
  197. package/es/LmEditTable/style/variables.d.ts +1 -0
  198. package/es/LmEditTable/style/variables.js +1 -0
  199. package/es/LmFilter/style/variables.css +425 -0
  200. package/es/LmSelect/style/variables.css +247 -0
  201. package/es/LmSelect/style/variables.d.ts +1 -0
  202. package/es/LmSelect/style/variables.js +1 -0
  203. package/es/LmTable/style/variables.css +1046 -0
  204. package/es/LmUpload/style/variables.css +218 -0
  205. package/es/LoadingPage/style/variables.css +0 -0
  206. package/es/Mentions/style/variables.css +0 -0
  207. package/es/Mentions/style/variables.d.ts +1 -0
  208. package/es/Mentions/style/variables.js +1 -0
  209. package/es/Menu/style/variables.css +0 -0
  210. package/es/Menu/style/variables.d.ts +1 -0
  211. package/es/Menu/style/variables.js +1 -0
  212. package/es/Modal/style/variables.css +35 -0
  213. package/es/Modal/style/variables.d.ts +1 -0
  214. package/es/Modal/style/variables.js +1 -0
  215. package/es/PageHeader/style/variables.css +0 -0
  216. package/es/PageHeader/style/variables.d.ts +1 -0
  217. package/es/PageHeader/style/variables.js +1 -0
  218. package/es/Pagination/style/variables.css +49 -0
  219. package/es/Pagination/style/variables.d.ts +1 -0
  220. package/es/Pagination/style/variables.js +1 -0
  221. package/es/Popconfirm/style/variables.css +0 -0
  222. package/es/Popconfirm/style/variables.d.ts +1 -0
  223. package/es/Popconfirm/style/variables.js +1 -0
  224. package/es/Popover/style/variables.css +0 -0
  225. package/es/Popover/style/variables.d.ts +1 -0
  226. package/es/Popover/style/variables.js +1 -0
  227. package/es/Progress/style/variables.css +0 -0
  228. package/es/Progress/style/variables.d.ts +1 -0
  229. package/es/Progress/style/variables.js +1 -0
  230. package/es/QuickMenu/style/variables.css +56 -0
  231. package/es/QuickMenu/style/variables.d.ts +1 -0
  232. package/es/QuickMenu/style/variables.js +1 -0
  233. package/es/Radio/style/variables.css +141 -0
  234. package/es/Rate/style/variables.css +0 -0
  235. package/es/Rate/style/variables.d.ts +1 -0
  236. package/es/Rate/style/variables.js +1 -0
  237. package/es/Result/style/variables.css +0 -0
  238. package/es/Result/style/variables.d.ts +1 -0
  239. package/es/Result/style/variables.js +1 -0
  240. package/es/Row/style/variables.css +0 -0
  241. package/es/Row/style/variables.d.ts +1 -0
  242. package/es/Row/style/variables.js +1 -0
  243. package/es/Segmented/style/variables.css +0 -0
  244. package/es/Segmented/style/variables.d.ts +1 -0
  245. package/es/Segmented/style/variables.js +1 -0
  246. package/es/Select/style/variables.css +15 -0
  247. package/es/Select/style/variables.d.ts +1 -0
  248. package/es/Select/style/variables.js +1 -0
  249. package/es/Skeleton/style/variables.css +0 -0
  250. package/es/Skeleton/style/variables.d.ts +1 -0
  251. package/es/Skeleton/style/variables.js +1 -0
  252. package/es/Slider/style/variables.css +0 -0
  253. package/es/Slider/style/variables.d.ts +1 -0
  254. package/es/Slider/style/variables.js +1 -0
  255. package/es/Space/style/variables.css +0 -0
  256. package/es/Space/style/variables.d.ts +1 -0
  257. package/es/Space/style/variables.js +1 -0
  258. package/es/Spin/style/variables.css +0 -0
  259. package/es/Spin/style/variables.d.ts +1 -0
  260. package/es/Spin/style/variables.js +1 -0
  261. package/es/Statistic/style/variables.css +0 -0
  262. package/es/Statistic/style/variables.d.ts +1 -0
  263. package/es/Statistic/style/variables.js +1 -0
  264. package/es/Steps/style/variables.css +0 -0
  265. package/es/Steps/style/variables.d.ts +1 -0
  266. package/es/Steps/style/variables.js +1 -0
  267. package/es/Switch/style/variables.css +41 -0
  268. package/es/Switch/style/variables.d.ts +1 -0
  269. package/es/Switch/style/variables.js +1 -0
  270. package/es/Table/style/variables.css +0 -0
  271. package/es/Table/style/variables.d.ts +1 -0
  272. package/es/Table/style/variables.js +1 -0
  273. package/es/Tabs/style/index.css +1 -1
  274. package/es/Tabs/style/variables.css +46 -0
  275. package/es/Tabs/style/variables.d.ts +1 -0
  276. package/es/Tabs/style/variables.js +1 -0
  277. package/es/Tag/style/variables.css +64 -0
  278. package/es/Tag/style/variables.d.ts +1 -0
  279. package/es/Tag/style/variables.js +1 -0
  280. package/es/TestTable/style/variables.css +10 -0
  281. package/es/TimePicker/style/variables.css +0 -0
  282. package/es/TimePicker/style/variables.d.ts +1 -0
  283. package/es/TimePicker/style/variables.js +1 -0
  284. package/es/Timeline/style/variables.css +3 -0
  285. package/es/Timeline/style/variables.d.ts +1 -0
  286. package/es/Timeline/style/variables.js +1 -0
  287. package/es/Tooltip/style/variables.css +0 -0
  288. package/es/Tooltip/style/variables.d.ts +1 -0
  289. package/es/Tooltip/style/variables.js +1 -0
  290. package/es/Transfer/style/variables.css +0 -0
  291. package/es/Transfer/style/variables.d.ts +1 -0
  292. package/es/Transfer/style/variables.js +1 -0
  293. package/es/Tree/style/variables.css +12 -0
  294. package/es/Tree/style/variables.d.ts +1 -0
  295. package/es/Tree/style/variables.js +1 -0
  296. package/es/TreeSelect/style/variables.css +0 -0
  297. package/es/TreeSelect/style/variables.d.ts +1 -0
  298. package/es/TreeSelect/style/variables.js +1 -0
  299. package/es/Typography/style/variables.css +0 -0
  300. package/es/Typography/style/variables.d.ts +1 -0
  301. package/es/Typography/style/variables.js +1 -0
  302. package/es/Upload/style/variables.css +35 -0
  303. package/es/Upload/style/variables.d.ts +1 -0
  304. package/es/Upload/style/variables.js +1 -0
  305. package/es/UploadOss/style/variables.css +121 -0
  306. package/es/VirtualList/style/variables.css +0 -0
  307. package/es/locale-provider/style/variables.css +0 -0
  308. package/es/locale-provider/style/variables.d.ts +1 -0
  309. package/es/locale-provider/style/variables.js +1 -0
  310. package/es/message/style/variables.css +31 -0
  311. package/es/message/style/variables.d.ts +1 -0
  312. package/es/message/style/variables.js +1 -0
  313. package/es/notification/style/variables.css +41 -0
  314. package/es/notification/style/variables.d.ts +1 -0
  315. package/es/notification/style/variables.js +1 -0
  316. package/es/styles/index.d.ts +1 -0
  317. package/es/styles/index.js +1 -0
  318. package/es/styles/variables.css +6698 -0
  319. package/lib/Affix/style/variables.css +0 -0
  320. package/lib/Affix/style/variables.d.ts +1 -0
  321. package/lib/Affix/style/variables.js +3 -0
  322. package/lib/Alert/style/variables.css +26 -0
  323. package/lib/Alert/style/variables.d.ts +1 -0
  324. package/lib/Alert/style/variables.js +3 -0
  325. package/lib/Approval/style/variables.css +199 -0
  326. package/lib/Approval/style/variables.d.ts +1 -0
  327. package/lib/Approval/style/variables.js +3 -0
  328. package/lib/AutoComplete/style/variables.css +0 -0
  329. package/lib/AutoComplete/style/variables.d.ts +1 -0
  330. package/lib/AutoComplete/style/variables.js +3 -0
  331. package/lib/Avatar/style/variables.css +0 -0
  332. package/lib/Avatar/style/variables.d.ts +1 -0
  333. package/lib/Avatar/style/variables.js +3 -0
  334. package/lib/Badge/style/variables.css +0 -0
  335. package/lib/Badge/style/variables.d.ts +1 -0
  336. package/lib/Badge/style/variables.js +3 -0
  337. package/lib/Box/style/variables.css +10 -0
  338. package/lib/Breadcrumb/style/variables.css +0 -0
  339. package/lib/Breadcrumb/style/variables.d.ts +1 -0
  340. package/lib/Breadcrumb/style/variables.js +3 -0
  341. package/lib/Button/style/variables.css +118 -0
  342. package/lib/ButtonTags/style/variables.css +72 -0
  343. package/lib/Calendar/style/variables.css +0 -0
  344. package/lib/Calendar/style/variables.d.ts +1 -0
  345. package/lib/Calendar/style/variables.js +3 -0
  346. package/lib/Card/style/variables.css +0 -0
  347. package/lib/Card/style/variables.d.ts +1 -0
  348. package/lib/Card/style/variables.js +3 -0
  349. package/lib/CardTable/style/variables.css +453 -0
  350. package/lib/Carousel/style/variables.css +0 -0
  351. package/lib/Carousel/style/variables.d.ts +1 -0
  352. package/lib/Carousel/style/variables.js +3 -0
  353. package/lib/Cascader/style/variables.css +15 -0
  354. package/lib/Cascader/style/variables.d.ts +1 -0
  355. package/lib/Cascader/style/variables.js +3 -0
  356. package/lib/Checkbox/style/variables.css +128 -0
  357. package/lib/Col/style/variables.css +0 -0
  358. package/lib/Col/style/variables.d.ts +1 -0
  359. package/lib/Col/style/variables.js +3 -0
  360. package/lib/Collapse/style/variables.css +0 -0
  361. package/lib/Collapse/style/variables.d.ts +1 -0
  362. package/lib/Collapse/style/variables.js +3 -0
  363. package/lib/Comment/style/variables.css +0 -0
  364. package/lib/Comment/style/variables.d.ts +1 -0
  365. package/lib/Comment/style/variables.js +3 -0
  366. package/lib/ConfigProvider/style/variables.css +141 -0
  367. package/lib/CustomTableOption/style/variables.css +99 -0
  368. package/lib/CustomTableOption/style/variables.d.ts +1 -0
  369. package/lib/CustomTableOption/style/variables.js +3 -0
  370. package/lib/CustomerService/style/variables.css +253 -0
  371. package/lib/DatePicker/style/variables.css +0 -0
  372. package/lib/DatePicker/style/variables.d.ts +1 -0
  373. package/lib/DatePicker/style/variables.js +3 -0
  374. package/lib/Descriptions/style/index.css +139 -139
  375. package/lib/Descriptions/style/variables.css +172 -0
  376. package/lib/Descriptions/style/variables.d.ts +1 -0
  377. package/lib/Descriptions/style/variables.js +3 -0
  378. package/lib/Divider/style/variables.css +0 -0
  379. package/lib/Divider/style/variables.d.ts +1 -0
  380. package/lib/Divider/style/variables.js +3 -0
  381. package/lib/Drawer/style/variables.css +8 -0
  382. package/lib/Drawer/style/variables.d.ts +1 -0
  383. package/lib/Drawer/style/variables.js +3 -0
  384. package/lib/Dropdown/style/variables.css +86 -0
  385. package/lib/Dropdown/style/variables.d.ts +1 -0
  386. package/lib/Dropdown/style/variables.js +3 -0
  387. package/lib/EditTable/style/variables.css +178 -0
  388. package/lib/Empty/style/variables.css +44 -0
  389. package/lib/Empty/style/variables.d.ts +1 -0
  390. package/lib/Empty/style/variables.js +3 -0
  391. package/lib/EnlargeImg/style/variables.css +4 -0
  392. package/lib/Filter/style/variables.css +271 -0
  393. package/lib/Form/style/variables.css +181 -0
  394. package/lib/Form/style/variables.d.ts +1 -0
  395. package/lib/Form/style/variables.js +3 -0
  396. package/lib/FullScreen/style/variables.css +10 -0
  397. package/lib/FullScreen/style/variables.d.ts +1 -0
  398. package/lib/FullScreen/style/variables.js +3 -0
  399. package/lib/Grid/style/variables.css +0 -0
  400. package/lib/Grid/style/variables.d.ts +1 -0
  401. package/lib/Grid/style/variables.js +3 -0
  402. package/lib/Icon/style/variables.css +0 -0
  403. package/lib/IconFont/style/variables.css +0 -0
  404. package/lib/IconSelect/style/variables.css +25 -0
  405. package/lib/Image/style/variables.css +0 -0
  406. package/lib/Image/style/variables.d.ts +1 -0
  407. package/lib/Image/style/variables.js +3 -0
  408. package/lib/ImageViewer/style/variables.css +118 -0
  409. package/lib/Input/style/variables.css +773 -0
  410. package/lib/Input/style/variables.d.ts +1 -0
  411. package/lib/Input/style/variables.js +3 -0
  412. package/lib/InputNumber/style/variables.css +35 -0
  413. package/lib/InputNumber/style/variables.d.ts +1 -0
  414. package/lib/InputNumber/style/variables.js +3 -0
  415. package/lib/Layout/style/variables.css +0 -0
  416. package/lib/Layout/style/variables.d.ts +1 -0
  417. package/lib/Layout/style/variables.js +3 -0
  418. package/lib/LeftTable/style/variables.css +161 -0
  419. package/lib/List/style/variables.css +0 -0
  420. package/lib/List/style/variables.d.ts +1 -0
  421. package/lib/List/style/variables.js +3 -0
  422. package/lib/LmEditTable/style/variables.css +89 -0
  423. package/lib/LmEditTable/style/variables.d.ts +1 -0
  424. package/lib/LmEditTable/style/variables.js +3 -0
  425. package/lib/LmFilter/style/variables.css +425 -0
  426. package/lib/LmSelect/style/variables.css +247 -0
  427. package/lib/LmSelect/style/variables.d.ts +1 -0
  428. package/lib/LmSelect/style/variables.js +3 -0
  429. package/lib/LmTable/style/variables.css +1046 -0
  430. package/lib/LmUpload/style/variables.css +218 -0
  431. package/lib/LoadingPage/style/variables.css +0 -0
  432. package/lib/Mentions/style/variables.css +0 -0
  433. package/lib/Mentions/style/variables.d.ts +1 -0
  434. package/lib/Mentions/style/variables.js +3 -0
  435. package/lib/Menu/style/variables.css +0 -0
  436. package/lib/Menu/style/variables.d.ts +1 -0
  437. package/lib/Menu/style/variables.js +3 -0
  438. package/lib/Modal/style/variables.css +35 -0
  439. package/lib/Modal/style/variables.d.ts +1 -0
  440. package/lib/Modal/style/variables.js +3 -0
  441. package/lib/PageHeader/style/variables.css +0 -0
  442. package/lib/PageHeader/style/variables.d.ts +1 -0
  443. package/lib/PageHeader/style/variables.js +3 -0
  444. package/lib/Pagination/style/variables.css +49 -0
  445. package/lib/Pagination/style/variables.d.ts +1 -0
  446. package/lib/Pagination/style/variables.js +3 -0
  447. package/lib/Popconfirm/style/variables.css +0 -0
  448. package/lib/Popconfirm/style/variables.d.ts +1 -0
  449. package/lib/Popconfirm/style/variables.js +3 -0
  450. package/lib/Popover/style/variables.css +0 -0
  451. package/lib/Popover/style/variables.d.ts +1 -0
  452. package/lib/Popover/style/variables.js +3 -0
  453. package/lib/Progress/style/variables.css +0 -0
  454. package/lib/Progress/style/variables.d.ts +1 -0
  455. package/lib/Progress/style/variables.js +3 -0
  456. package/lib/QuickMenu/style/variables.css +56 -0
  457. package/lib/QuickMenu/style/variables.d.ts +1 -0
  458. package/lib/QuickMenu/style/variables.js +3 -0
  459. package/lib/Radio/style/variables.css +141 -0
  460. package/lib/Rate/style/variables.css +0 -0
  461. package/lib/Rate/style/variables.d.ts +1 -0
  462. package/lib/Rate/style/variables.js +3 -0
  463. package/lib/Result/style/variables.css +0 -0
  464. package/lib/Result/style/variables.d.ts +1 -0
  465. package/lib/Result/style/variables.js +3 -0
  466. package/lib/Row/style/variables.css +0 -0
  467. package/lib/Row/style/variables.d.ts +1 -0
  468. package/lib/Row/style/variables.js +3 -0
  469. package/lib/Segmented/style/variables.css +0 -0
  470. package/lib/Segmented/style/variables.d.ts +1 -0
  471. package/lib/Segmented/style/variables.js +3 -0
  472. package/lib/Select/style/variables.css +15 -0
  473. package/lib/Select/style/variables.d.ts +1 -0
  474. package/lib/Select/style/variables.js +3 -0
  475. package/lib/Skeleton/style/variables.css +0 -0
  476. package/lib/Skeleton/style/variables.d.ts +1 -0
  477. package/lib/Skeleton/style/variables.js +3 -0
  478. package/lib/Slider/style/variables.css +0 -0
  479. package/lib/Slider/style/variables.d.ts +1 -0
  480. package/lib/Slider/style/variables.js +3 -0
  481. package/lib/Space/style/variables.css +0 -0
  482. package/lib/Space/style/variables.d.ts +1 -0
  483. package/lib/Space/style/variables.js +3 -0
  484. package/lib/Spin/style/variables.css +0 -0
  485. package/lib/Spin/style/variables.d.ts +1 -0
  486. package/lib/Spin/style/variables.js +3 -0
  487. package/lib/Statistic/style/variables.css +0 -0
  488. package/lib/Statistic/style/variables.d.ts +1 -0
  489. package/lib/Statistic/style/variables.js +3 -0
  490. package/lib/Steps/style/variables.css +0 -0
  491. package/lib/Steps/style/variables.d.ts +1 -0
  492. package/lib/Steps/style/variables.js +3 -0
  493. package/lib/Switch/style/variables.css +41 -0
  494. package/lib/Switch/style/variables.d.ts +1 -0
  495. package/lib/Switch/style/variables.js +3 -0
  496. package/lib/Table/style/variables.css +0 -0
  497. package/lib/Table/style/variables.d.ts +1 -0
  498. package/lib/Table/style/variables.js +3 -0
  499. package/lib/Tabs/style/index.css +1 -1
  500. package/lib/Tabs/style/variables.css +46 -0
  501. package/lib/Tabs/style/variables.d.ts +1 -0
  502. package/lib/Tabs/style/variables.js +3 -0
  503. package/lib/Tag/style/variables.css +64 -0
  504. package/lib/Tag/style/variables.d.ts +1 -0
  505. package/lib/Tag/style/variables.js +3 -0
  506. package/lib/TestTable/style/variables.css +10 -0
  507. package/lib/TimePicker/style/variables.css +0 -0
  508. package/lib/TimePicker/style/variables.d.ts +1 -0
  509. package/lib/TimePicker/style/variables.js +3 -0
  510. package/lib/Timeline/style/variables.css +3 -0
  511. package/lib/Timeline/style/variables.d.ts +1 -0
  512. package/lib/Timeline/style/variables.js +3 -0
  513. package/lib/Tooltip/style/variables.css +0 -0
  514. package/lib/Tooltip/style/variables.d.ts +1 -0
  515. package/lib/Tooltip/style/variables.js +3 -0
  516. package/lib/Transfer/style/variables.css +0 -0
  517. package/lib/Transfer/style/variables.d.ts +1 -0
  518. package/lib/Transfer/style/variables.js +3 -0
  519. package/lib/Tree/style/variables.css +12 -0
  520. package/lib/Tree/style/variables.d.ts +1 -0
  521. package/lib/Tree/style/variables.js +3 -0
  522. package/lib/TreeSelect/style/variables.css +0 -0
  523. package/lib/TreeSelect/style/variables.d.ts +1 -0
  524. package/lib/TreeSelect/style/variables.js +3 -0
  525. package/lib/Typography/style/variables.css +0 -0
  526. package/lib/Typography/style/variables.d.ts +1 -0
  527. package/lib/Typography/style/variables.js +3 -0
  528. package/lib/Upload/style/variables.css +35 -0
  529. package/lib/Upload/style/variables.d.ts +1 -0
  530. package/lib/Upload/style/variables.js +3 -0
  531. package/lib/UploadOss/style/variables.css +121 -0
  532. package/lib/VirtualList/style/variables.css +0 -0
  533. package/lib/locale-provider/style/variables.css +0 -0
  534. package/lib/locale-provider/style/variables.d.ts +1 -0
  535. package/lib/locale-provider/style/variables.js +3 -0
  536. package/lib/message/style/variables.css +31 -0
  537. package/lib/message/style/variables.d.ts +1 -0
  538. package/lib/message/style/variables.js +3 -0
  539. package/lib/notification/style/variables.css +41 -0
  540. package/lib/notification/style/variables.d.ts +1 -0
  541. package/lib/notification/style/variables.js +3 -0
  542. package/lib/styles/index.d.ts +1 -0
  543. package/lib/styles/index.js +3 -0
  544. package/lib/styles/variables.css +6698 -0
  545. package/package.json +6 -2
  546. package/es/Box/style/index.js +0 -3
  547. package/es/ButtonTags/ButtonTags.js +0 -59
  548. package/es/ButtonTags/index.js +0 -13
  549. package/es/ButtonTags/style/index.js +0 -3
  550. package/es/CardTable/LmCardTable.js +0 -63
  551. package/es/CardTable/body/TableBody.js +0 -78
  552. package/es/CardTable/body/TableBodyCell.js +0 -67
  553. package/es/CardTable/body/TableBodyRow.js +0 -91
  554. package/es/CardTable/card/PictureTextColumn.js +0 -132
  555. package/es/CardTable/card/PictureTextRow.js +0 -153
  556. package/es/CardTable/card/PictureTextRowOperate.js +0 -146
  557. package/es/CardTable/context.js +0 -20
  558. package/es/CardTable/empty.js +0 -24
  559. package/es/CardTable/fns/index.js +0 -160
  560. package/es/CardTable/footer.js +0 -59
  561. package/es/CardTable/hooks/usePagination.js +0 -128
  562. package/es/CardTable/index.js +0 -17
  563. package/es/CardTable/pager/TablePagination.js +0 -62
  564. package/es/CardTable/pager/index.js +0 -48
  565. package/es/CardTable/style/index.js +0 -3
  566. package/es/CardTable/table/Table.js +0 -27
  567. package/es/CardTable/table/TableContainer.js +0 -97
  568. package/es/CardTable/table/TableRoot.js +0 -210
  569. package/es/CardTable/table/TableWrapper.js +0 -40
  570. package/es/CardTable/toolbar/ToolBarBottom.js +0 -28
  571. package/es/CardTable/utils.js +0 -31
  572. package/es/Checkbox/index.js +0 -47
  573. package/es/Checkbox/style/index.js +0 -3
  574. package/es/ConfigProvider/style/index.js +0 -3
  575. package/es/CustomerService/components/question.js +0 -120
  576. package/es/CustomerService/index.js +0 -291
  577. package/es/CustomerService/style/index.js +0 -3
  578. package/es/EditTable/EditTable.js +0 -704
  579. package/es/EditTable/index.js +0 -13
  580. package/es/EditTable/style/index.js +0 -3
  581. package/es/EnlargeImg/index.js +0 -109
  582. package/es/EnlargeImg/style/index.js +0 -3
  583. package/es/Filter/Popover.js +0 -199
  584. package/es/Filter/baseFilter/Popover.js +0 -213
  585. package/es/Filter/baseFilter/ToggleFilter.js +0 -111
  586. package/es/Filter/baseFilter/index.js +0 -100
  587. package/es/Filter/complex/ComplexFilter.js +0 -149
  588. package/es/Filter/complex/ComplexItem.js +0 -157
  589. package/es/Filter/components/Checkbox.js +0 -94
  590. package/es/Filter/components/Date.js +0 -87
  591. package/es/Filter/components/Input.js +0 -63
  592. package/es/Filter/components/Select.js +0 -89
  593. package/es/Filter/components/Tree.js +0 -64
  594. package/es/Filter/components/header.js +0 -60
  595. package/es/Filter/components/index.js +0 -47
  596. package/es/Filter/context.js +0 -15
  597. package/es/Filter/edit/editFilter.js +0 -273
  598. package/es/Filter/index.js +0 -174
  599. package/es/Filter/popContext.js +0 -15
  600. package/es/Filter/remember.js +0 -136
  601. package/es/Filter/style/index.js +0 -3
  602. package/es/Icon/index.js +0 -20
  603. package/es/Icon/style/index.js +0 -3
  604. package/es/IconFont/font/iconfont.js +0 -48
  605. package/es/IconFont/style/index.js +0 -3
  606. package/es/IconSelect/index.js +0 -115
  607. package/es/IconSelect/style/index.js +0 -3
  608. package/es/ImageViewer/style/index.js +0 -3
  609. package/es/LeftTable/index.js +0 -184
  610. package/es/LeftTable/style/index.js +0 -3
  611. package/es/LmFilter/Controls/CheckboxTags.js +0 -53
  612. package/es/LmFilter/Controls/index.js +0 -78
  613. package/es/LmFilter/LmFilter.js +0 -69
  614. package/es/LmFilter/baseFilter/fuzzySearch.js +0 -69
  615. package/es/LmFilter/baseFilter/index.js +0 -33
  616. package/es/LmFilter/clearFilter/index.js +0 -31
  617. package/es/LmFilter/complexFilter/drawer.js +0 -381
  618. package/es/LmFilter/complexFilter/index.js +0 -64
  619. package/es/LmFilter/complexFilter/valueDrawer.js +0 -235
  620. package/es/LmFilter/components/CascaderFilter.js +0 -160
  621. package/es/LmFilter/components/CheckboxFilter.js +0 -189
  622. package/es/LmFilter/components/CustomSelectFilter.js +0 -139
  623. package/es/LmFilter/components/DateFilter.js +0 -163
  624. package/es/LmFilter/components/DropdownFIlter.js +0 -264
  625. package/es/LmFilter/components/EmptyFilter.js +0 -27
  626. package/es/LmFilter/components/InputFilter.js +0 -51
  627. package/es/LmFilter/components/InputSearchClose.js +0 -74
  628. package/es/LmFilter/components/SelectFilter.js +0 -121
  629. package/es/LmFilter/components/index.js +0 -93
  630. package/es/LmFilter/customFilter/drawer.js +0 -409
  631. package/es/LmFilter/customFilter/index.js +0 -136
  632. package/es/LmFilter/customFilter/saveModal.js +0 -185
  633. package/es/LmFilter/customFilter/valueDrawer.js +0 -232
  634. package/es/LmFilter/filterFns/index.js +0 -644
  635. package/es/LmFilter/hooks/index.js +0 -18
  636. package/es/LmFilter/hooks/useDelayedFn.js +0 -29
  637. package/es/LmFilter/index.js +0 -16
  638. package/es/LmFilter/style/index.js +0 -3
  639. package/es/LmFilter/utils.js +0 -173
  640. package/es/LmFilter/wrapper/Filter.js +0 -41
  641. package/es/LmFilter/wrapper/FilterContainer.js +0 -25
  642. package/es/LmFilter/wrapper/FilterRoot.js +0 -208
  643. package/es/LmFilter/wrapper/FilterWrapper.js +0 -25
  644. package/es/LmTable/Table.js +0 -1385
  645. package/es/LmTable/VList.js +0 -594
  646. package/es/LmTable/autosize.js +0 -167
  647. package/es/LmTable/components/sortableBoxCol.js +0 -24
  648. package/es/LmTable/components/sortableItemCol.js +0 -54
  649. package/es/LmTable/context.js +0 -12
  650. package/es/LmTable/detectElementResize.js +0 -225
  651. package/es/LmTable/index.js +0 -14
  652. package/es/LmTable/resetConfig.js +0 -39
  653. package/es/LmTable/style/index.js +0 -3
  654. package/es/LmTable/util.js +0 -211
  655. package/es/LmUpload/style/index.js +0 -3
  656. package/es/LoadingPage/index.js +0 -33
  657. package/es/LoadingPage/style/index.js +0 -3
  658. package/es/Radio/index.js +0 -50
  659. package/es/Radio/style/index.js +0 -3
  660. package/es/TestTable/style/index.js +0 -3
  661. package/es/UploadOss/index.js +0 -18
  662. package/es/UploadOss/style/index.js +0 -3
  663. package/es/UploadOss/uploadBtn.js +0 -141
  664. package/es/UploadOss/uploadImg.js +0 -282
  665. package/es/VirtualList/index.js +0 -85
  666. package/es/VirtualList/style/index.js +0 -3
  667. package/es/services/newRequest.js +0 -201
  668. package/es/services/utils.js +0 -72
  669. package/lib/Box/style/index.js +0 -3
  670. package/lib/ButtonTags/ButtonTags.js +0 -59
  671. package/lib/ButtonTags/index.js +0 -13
  672. package/lib/ButtonTags/style/index.js +0 -3
  673. package/lib/CardTable/LmCardTable.js +0 -63
  674. package/lib/CardTable/body/TableBody.js +0 -78
  675. package/lib/CardTable/body/TableBodyCell.js +0 -67
  676. package/lib/CardTable/body/TableBodyRow.js +0 -91
  677. package/lib/CardTable/card/PictureTextColumn.js +0 -132
  678. package/lib/CardTable/card/PictureTextRow.js +0 -153
  679. package/lib/CardTable/card/PictureTextRowOperate.js +0 -146
  680. package/lib/CardTable/context.js +0 -20
  681. package/lib/CardTable/empty.js +0 -24
  682. package/lib/CardTable/fns/index.js +0 -160
  683. package/lib/CardTable/footer.js +0 -59
  684. package/lib/CardTable/hooks/usePagination.js +0 -128
  685. package/lib/CardTable/index.js +0 -17
  686. package/lib/CardTable/pager/TablePagination.js +0 -62
  687. package/lib/CardTable/pager/index.js +0 -48
  688. package/lib/CardTable/style/index.js +0 -3
  689. package/lib/CardTable/table/Table.js +0 -27
  690. package/lib/CardTable/table/TableContainer.js +0 -97
  691. package/lib/CardTable/table/TableRoot.js +0 -210
  692. package/lib/CardTable/table/TableWrapper.js +0 -40
  693. package/lib/CardTable/toolbar/ToolBarBottom.js +0 -28
  694. package/lib/CardTable/utils.js +0 -31
  695. package/lib/Checkbox/index.js +0 -47
  696. package/lib/Checkbox/style/index.js +0 -3
  697. package/lib/ConfigProvider/style/index.js +0 -3
  698. package/lib/CustomerService/components/question.js +0 -120
  699. package/lib/CustomerService/index.js +0 -291
  700. package/lib/CustomerService/style/index.js +0 -3
  701. package/lib/EditTable/EditTable.js +0 -704
  702. package/lib/EditTable/index.js +0 -13
  703. package/lib/EditTable/style/index.js +0 -3
  704. package/lib/EnlargeImg/index.js +0 -109
  705. package/lib/EnlargeImg/style/index.js +0 -3
  706. package/lib/Filter/Popover.js +0 -199
  707. package/lib/Filter/baseFilter/Popover.js +0 -213
  708. package/lib/Filter/baseFilter/ToggleFilter.js +0 -111
  709. package/lib/Filter/baseFilter/index.js +0 -100
  710. package/lib/Filter/complex/ComplexFilter.js +0 -149
  711. package/lib/Filter/complex/ComplexItem.js +0 -157
  712. package/lib/Filter/components/Checkbox.js +0 -94
  713. package/lib/Filter/components/Date.js +0 -87
  714. package/lib/Filter/components/Input.js +0 -63
  715. package/lib/Filter/components/Select.js +0 -89
  716. package/lib/Filter/components/Tree.js +0 -64
  717. package/lib/Filter/components/header.js +0 -60
  718. package/lib/Filter/components/index.js +0 -47
  719. package/lib/Filter/context.js +0 -15
  720. package/lib/Filter/edit/editFilter.js +0 -273
  721. package/lib/Filter/index.js +0 -174
  722. package/lib/Filter/popContext.js +0 -15
  723. package/lib/Filter/remember.js +0 -136
  724. package/lib/Filter/style/index.js +0 -3
  725. package/lib/Icon/index.js +0 -20
  726. package/lib/Icon/style/index.js +0 -3
  727. package/lib/IconFont/font/iconfont.js +0 -48
  728. package/lib/IconFont/style/index.js +0 -3
  729. package/lib/IconSelect/index.js +0 -115
  730. package/lib/IconSelect/style/index.js +0 -3
  731. package/lib/ImageViewer/style/index.js +0 -3
  732. package/lib/LeftTable/index.js +0 -184
  733. package/lib/LeftTable/style/index.js +0 -3
  734. package/lib/LmFilter/Controls/CheckboxTags.js +0 -53
  735. package/lib/LmFilter/Controls/index.js +0 -78
  736. package/lib/LmFilter/LmFilter.js +0 -69
  737. package/lib/LmFilter/baseFilter/fuzzySearch.js +0 -69
  738. package/lib/LmFilter/baseFilter/index.js +0 -33
  739. package/lib/LmFilter/clearFilter/index.js +0 -31
  740. package/lib/LmFilter/complexFilter/drawer.js +0 -381
  741. package/lib/LmFilter/complexFilter/index.js +0 -64
  742. package/lib/LmFilter/complexFilter/valueDrawer.js +0 -235
  743. package/lib/LmFilter/components/CascaderFilter.js +0 -160
  744. package/lib/LmFilter/components/CheckboxFilter.js +0 -189
  745. package/lib/LmFilter/components/CustomSelectFilter.js +0 -139
  746. package/lib/LmFilter/components/DateFilter.js +0 -163
  747. package/lib/LmFilter/components/DropdownFIlter.js +0 -264
  748. package/lib/LmFilter/components/EmptyFilter.js +0 -27
  749. package/lib/LmFilter/components/InputFilter.js +0 -51
  750. package/lib/LmFilter/components/InputSearchClose.js +0 -74
  751. package/lib/LmFilter/components/SelectFilter.js +0 -121
  752. package/lib/LmFilter/components/index.js +0 -93
  753. package/lib/LmFilter/customFilter/drawer.js +0 -409
  754. package/lib/LmFilter/customFilter/index.js +0 -136
  755. package/lib/LmFilter/customFilter/saveModal.js +0 -185
  756. package/lib/LmFilter/customFilter/valueDrawer.js +0 -232
  757. package/lib/LmFilter/filterFns/index.js +0 -644
  758. package/lib/LmFilter/hooks/index.js +0 -18
  759. package/lib/LmFilter/hooks/useDelayedFn.js +0 -29
  760. package/lib/LmFilter/index.js +0 -16
  761. package/lib/LmFilter/style/index.js +0 -3
  762. package/lib/LmFilter/utils.js +0 -173
  763. package/lib/LmFilter/wrapper/Filter.js +0 -41
  764. package/lib/LmFilter/wrapper/FilterContainer.js +0 -25
  765. package/lib/LmFilter/wrapper/FilterRoot.js +0 -208
  766. package/lib/LmFilter/wrapper/FilterWrapper.js +0 -25
  767. package/lib/LmTable/Table.js +0 -1385
  768. package/lib/LmTable/VList.js +0 -594
  769. package/lib/LmTable/autosize.js +0 -167
  770. package/lib/LmTable/components/sortableBoxCol.js +0 -24
  771. package/lib/LmTable/components/sortableItemCol.js +0 -54
  772. package/lib/LmTable/context.js +0 -12
  773. package/lib/LmTable/detectElementResize.js +0 -225
  774. package/lib/LmTable/index.js +0 -14
  775. package/lib/LmTable/resetConfig.js +0 -39
  776. package/lib/LmTable/style/index.js +0 -3
  777. package/lib/LmTable/util.js +0 -211
  778. package/lib/LmUpload/style/index.js +0 -3
  779. package/lib/LoadingPage/index.js +0 -33
  780. package/lib/LoadingPage/style/index.js +0 -3
  781. package/lib/Radio/index.js +0 -50
  782. package/lib/Radio/style/index.js +0 -3
  783. package/lib/TestTable/style/index.js +0 -3
  784. package/lib/UploadOss/index.js +0 -18
  785. package/lib/UploadOss/style/index.js +0 -3
  786. package/lib/UploadOss/uploadBtn.js +0 -141
  787. package/lib/UploadOss/uploadImg.js +0 -282
  788. package/lib/VirtualList/index.js +0 -85
  789. package/lib/VirtualList/style/index.js +0 -3
  790. package/lib/services/newRequest.js +0 -201
  791. package/lib/services/utils.js +0 -72
@@ -1,1385 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.default = exports.Summary = void 0;
11
-
12
- require("antd/es/config-provider/style");
13
-
14
- var _configProvider = _interopRequireDefault(require("antd/es/config-provider"));
15
-
16
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
17
-
18
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
19
-
20
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
21
-
22
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
23
-
24
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
25
-
26
- var _proTable = _interopRequireDefault(require("@ant-design/pro-table"));
27
-
28
- var _sortable = require("@dnd-kit/sortable");
29
-
30
- var _classnames = _interopRequireDefault(require("classnames"));
31
-
32
- var _lodash = require("lodash");
33
-
34
- var _react = _interopRequireWildcard(require("react"));
35
-
36
- var _reactResizable = require("react-resizable");
37
-
38
- var _immer = require("immer");
39
-
40
- var _reactSortableHoc = require("react-sortable-hoc");
41
-
42
- var _IconFont = _interopRequireDefault(require("../IconFont"));
43
-
44
- var _Empty = _interopRequireDefault(require("../Empty"));
45
-
46
- var _DndContainer = _interopRequireDefault(require("./components/DndContainer"));
47
-
48
- var _sortableBoxCol = _interopRequireDefault(require("./components/sortableBoxCol"));
49
-
50
- var _sortableItemCol = _interopRequireDefault(require("./components/sortableItemCol"));
51
-
52
- var _sheelTableCell = _interopRequireDefault(require("./components/sheelTableCell"));
53
-
54
- var _tableChartsModal = _interopRequireDefault(require("./components/tableChartsModal"));
55
-
56
- var _customRenderEmpty = _interopRequireDefault(require("./components/customRenderEmpty"));
57
-
58
- var _util = require("./util");
59
-
60
- var _resetConfig = _interopRequireDefault(require("./resetConfig"));
61
-
62
- var _virTual = require("./virTual");
63
-
64
- var _excluded = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "groupInfo", "emptyProps", "columnKeys"],
65
- _excluded2 = ["className", "style"],
66
- _excluded3 = ["onResize", "width", "onResizeStop"];
67
- var Summary = _proTable.default.Summary;
68
- exports.Summary = Summary;
69
-
70
- var isEmpty = function isEmpty(obj) {
71
- var _Object$keys;
72
-
73
- return ((_Object$keys = Object.keys(obj || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0;
74
- };
75
-
76
- var defaultParsePaste = function defaultParsePaste(str) {
77
- return str.split(/\r\n|\n|\r/).map(function (row) {
78
- return row.split('\t');
79
- });
80
- };
81
-
82
- var range = function range(start, end) {
83
- var array = [];
84
- var inc = end - start > 0;
85
-
86
- for (var i = start; inc ? i <= end : i >= end; inc ? i++ : i--) {
87
- inc ? array.push(i) : array.unshift(i);
88
- }
89
-
90
- return array;
91
- }; // const DragHandle = SortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
92
-
93
-
94
- var DragHandle = (0, _reactSortableHoc.SortableHandle)(function () {
95
- return /*#__PURE__*/_react.default.createElement(_IconFont.default, {
96
- type: "lmweb-icon-m-receipt1",
97
- style: {
98
- cursor: 'move',
99
- fontSize: '16px'
100
- }
101
- });
102
- });
103
- var sortDefaultColumnItem = {
104
- title: '排序',
105
- dataIndex: 'sort',
106
- width: 48,
107
- maxWidth: 48,
108
- className: 'drag-visible',
109
- render: function render() {
110
- return /*#__PURE__*/_react.default.createElement(DragHandle, null);
111
- }
112
- };
113
- var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
114
- var customizeColumns = props.columns,
115
- customizeDataSource = props.dataSource,
116
- autoSize = props.autoSize,
117
- rowClick = props.rowClick,
118
- _onDoubleClick = props.onDoubleClick,
119
- checkConfig = props.checkConfig,
120
- _summary = props.summary,
121
- pagination = props.pagination,
122
- hiddenPage = props.hiddenPage,
123
- loading = props.loading,
124
- _props$virtual = props.virtual,
125
- virtual = _props$virtual === void 0 ? false : _props$virtual,
126
- _props$sortOpen = props.sortOpen,
127
- sortOpen = _props$sortOpen === void 0 ? false : _props$sortOpen,
128
- _props$colSortOpen = props.colSortOpen,
129
- colSortOpen = _props$colSortOpen === void 0 ? false : _props$colSortOpen,
130
- _props$resizeable = props.resizeable,
131
- resizeable = _props$resizeable === void 0 ? false : _props$resizeable,
132
- customCheck = props.customCheck,
133
- components = props.components,
134
- rowSelection = props.rowSelection,
135
- columnsState = props.columnsState,
136
- onChange = props.onChange,
137
- filterChange = props.filterChange,
138
- _props$tableRowType = props.tableRowType,
139
- tableRowType = _props$tableRowType === void 0 ? 'default' : _props$tableRowType,
140
- _props$size = props.size,
141
- size = _props$size === void 0 ? 'default' : _props$size,
142
- _props$openSheet = props.openSheet,
143
- openSheet = _props$openSheet === void 0 ? false : _props$openSheet,
144
- _props$editSheet = props.editSheet,
145
- editSheet = _props$editSheet === void 0 ? false : _props$editSheet,
146
- dataChange = props.dataChange,
147
- groupInfo = props.groupInfo,
148
- emptyProps = props.emptyProps,
149
- columnKeys = props.columnKeys,
150
- resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
151
- var _resetProps$rowKey = resetProps.rowKey,
152
- rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
153
-
154
- var _useState = (0, _react.useState)({
155
- selectedRows: []
156
- }),
157
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
158
- useSelectedRows = _useState2[0],
159
- setSelectedRows = _useState2[1]; // 复选中的值
160
-
161
-
162
- var _useState3 = (0, _react.useState)(''),
163
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
164
- useActiveKey = _useState4[0],
165
- setActiveKey = _useState4[1]; // 行选中
166
-
167
-
168
- var _useState5 = (0, _react.useState)([]),
169
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
170
- useColumns = _useState6[0],
171
- setColumns = _useState6[1];
172
-
173
- var tableWarpRef = (0, _react.useRef)(null);
174
- var dataSourceRef = (0, _react.useRef)(null);
175
- /** 右键的ref */
176
-
177
- var contentMenuRef = (0, _react.useRef)(null);
178
- /** 当前展开的列 */
179
-
180
- var _useState7 = (0, _react.useState)([]),
181
- _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
182
- expandedRowKeys = _useState8[0],
183
- setExpandedRowKeys = _useState8[1];
184
-
185
- var deepDataSourceRef = (0, _react.useRef)([]);
186
- /** 行分组 */
187
-
188
- var groupDataSource = (0, _react.useMemo)(function () {
189
- if (!(groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length)) {
190
- return customizeDataSource;
191
- }
192
-
193
- return (0, _util.transformWithRowGroup)(customizeDataSource, groupInfo);
194
- }, [customizeDataSource, groupInfo]);
195
- /** 列分组 */
196
-
197
- var _useMemo = (0, _react.useMemo)(function () {
198
- if (!(columnKeys === null || columnKeys === void 0 ? void 0 : columnKeys.length)) {
199
- return {
200
- dataSource: groupDataSource,
201
- columns: customizeColumns
202
- };
203
- }
204
-
205
- return (0, _util.transformWithColGroup)(customizeColumns, groupDataSource, columnKeys);
206
- }, [customizeColumns, groupDataSource, columnKeys]),
207
- columns = _useMemo.columns,
208
- dataSource = _useMemo.dataSource;
209
-
210
- (0, _react.useEffect)(function () {
211
- setExpandedRowKeys([]);
212
- }, [groupInfo]);
213
- /** sheel数据的表格 */
214
-
215
- var _useState9 = (0, _react.useState)({
216
- start: {},
217
- end: {},
218
- selecting: false,
219
- forceEdit: false,
220
- editing: {},
221
- clear: {},
222
- commiting: {}
223
- }),
224
- _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
225
- sheelStataus = _useState10[0],
226
- setSheelStatus = _useState10[1];
227
-
228
- var shellStatusRef = (0, _react.useRef)({
229
- start: {},
230
- end: {},
231
- selecting: false,
232
- forceEdit: false,
233
- editing: {},
234
- clear: {},
235
- commiting: {}
236
- });
237
-
238
- var _useState11 = (0, _react.useState)(false),
239
- _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
240
- selectIng = _useState12[0],
241
- setSelectIng = _useState12[1];
242
-
243
- var _useState13 = (0, _react.useState)(false),
244
- _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
245
- editIng = _useState14[0],
246
- setEditIng = _useState14[1];
247
-
248
- var _useState15 = (0, _react.useState)(false),
249
- _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
250
- commitIng = _useState16[0],
251
- setCommitIng = _useState16[1];
252
- /** 右键菜单是否显示 */
253
-
254
-
255
- var _useState17 = (0, _react.useState)(false),
256
- _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
257
- contextMenuStatus = _useState18[0],
258
- setContextMenuStatus = _useState18[1];
259
- /** 右键按钮的位置 */
260
-
261
-
262
- var _useState19 = (0, _react.useState)({
263
- position: 'fixed',
264
- left: 300,
265
- top: 200
266
- }),
267
- _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
268
- style = _useState20[0],
269
- setStyle = _useState20[1];
270
-
271
- var _useState21 = (0, _react.useState)(null),
272
- _useState22 = (0, _slicedToArray2.default)(_useState21, 2),
273
- chartsModalStatus = _useState22[0],
274
- setChartsModalStatus = _useState22[1]; // 列设置
275
-
276
-
277
- var _useState23 = (0, _react.useState)(false),
278
- _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
279
- columnsStateMap = _useState24[0],
280
- setColumnsStateMap = _useState24[1];
281
-
282
- var SortableItem = (0, _reactSortableHoc.SortableElement)(function (props) {
283
- return /*#__PURE__*/_react.default.createElement("tr", props);
284
- });
285
- var SortContainer = (0, _reactSortableHoc.SortableContainer)(function (props) {
286
- return /*#__PURE__*/_react.default.createElement("tbody", props);
287
- });
288
- (0, _react.useEffect)(function () {
289
- dataSourceRef.current = dataSource;
290
- }, [dataSource]);
291
- (0, _react.useEffect)(function () {
292
- var source = [];
293
-
294
- var deepChildren = function deepChildren(arr) {
295
- arr.forEach(function (item) {
296
- source.push((0, _lodash.omit)(item, 'children'));
297
-
298
- if ((item === null || item === void 0 ? void 0 : item.children) && expandedRowKeys.includes(item.key)) {
299
- deepChildren(item === null || item === void 0 ? void 0 : item.children);
300
- }
301
- });
302
- };
303
-
304
- deepChildren(dataSource);
305
- deepDataSourceRef.current = source;
306
- }, [dataSource, expandedRowKeys]);
307
-
308
- var onSortEnd = function onSortEnd(_ref) {
309
- var oldIndex = _ref.oldIndex,
310
- newIndex = _ref.newIndex;
311
-
312
- if (oldIndex !== newIndex) {
313
- var newData = (0, _sortable.arrayMove)(dataSource, oldIndex, newIndex).filter(function (el) {
314
- return !!el;
315
- }); // setDataSource([...newData])
316
-
317
- onChange === null || onChange === void 0 ? void 0 : onChange(newData);
318
- }
319
- };
320
-
321
- var onColSortEnd = function onColSortEnd(active, over) {
322
- var oldIndex = columns.findIndex(function (item) {
323
- return item.dataIndex === active;
324
- });
325
- var newIndex = columns.findIndex(function (item) {
326
- return item.dataIndex === over;
327
- });
328
- filterChange === null || filterChange === void 0 ? void 0 : filterChange((0, _sortable.arrayMove)(columns, oldIndex, newIndex).map(function (item, index) {
329
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
330
- order: index
331
- });
332
- }));
333
- };
334
-
335
- var DraggableContainer = function DraggableContainer(props) {
336
- return /*#__PURE__*/_react.default.createElement(SortContainer, (0, _extends2.default)({
337
- useDragHandle: true,
338
- disableAutoscroll: true,
339
- helperClass: "row-dragging",
340
- onSortEnd: onSortEnd
341
- }, props));
342
- };
343
-
344
- var DraggableBodyRow = function DraggableBodyRow(props) {
345
- var className = props.className,
346
- style = props.style,
347
- restProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
348
- var index = dataSource.findIndex(function (x) {
349
- return x[rowKey || 'index'] === restProps['data-row-key'];
350
- });
351
- return /*#__PURE__*/_react.default.createElement(SortableItem, (0, _extends2.default)({
352
- index: index
353
- }, restProps));
354
- };
355
-
356
- var handleResize = function handleResize(index) {
357
- return function (e, _ref2) {
358
- var size = _ref2.size;
359
- var nextColumns = (0, _toConsumableArray2.default)(useColumns);
360
- nextColumns[index] = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, nextColumns[index]), {}, {
361
- width: size.width
362
- });
363
- setColumns(nextColumns);
364
- };
365
- };
366
-
367
- var endResize = function endResize(e, data) {
368
- setTimeout(function () {
369
- filterChange === null || filterChange === void 0 ? void 0 : filterChange(useColumns);
370
- });
371
- };
372
-
373
- var isSelected = function isSelected(i, j) {
374
- var _shellStatusRef$curre = shellStatusRef.current,
375
- start = _shellStatusRef$curre.start,
376
- end = _shellStatusRef$curre.end,
377
- editing = _shellStatusRef$curre.editing,
378
- commiting = _shellStatusRef$curre.commiting;
379
- var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
380
- var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
381
- var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
382
- var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
383
- var isSelected = (0, _util.checkIsSelectd)(i, j, start, end);
384
- return {
385
- /** 是否选中 */
386
- isSelected: isSelected,
387
-
388
- /** 是否尾行 */
389
- isEnd: i === maxi && j >= minj && j <= maxj,
390
-
391
- /** 是否尾列 */
392
- isRightEnd: j === maxj && i >= mini && i <= maxi,
393
-
394
- /** 是否在编辑中 */
395
- isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j,
396
-
397
- /** 是否有效拉伸 */
398
- isVaildCommit: isEmpty(commiting) ? false : isSelected && !(0, _util.checkIsSelectd)(i, j, commiting === null || commiting === void 0 ? void 0 : commiting.start, commiting === null || commiting === void 0 ? void 0 : commiting.end)
399
- };
400
- };
401
-
402
- var getSelectDatas = function getSelectDatas(start, end) {
403
- return range(start.i, end.i).map(function (i) {
404
- return range(start.j, end.j).map(function (j) {
405
- var _columns$j, _columns$j2;
406
-
407
- var columnKey = (_columns$j = columns[j]) === null || _columns$j === void 0 ? void 0 : _columns$j.dataIndex;
408
- var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
409
- var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
410
-
411
- if ((_columns$j2 = columns[j]) === null || _columns$j2 === void 0 ? void 0 : _columns$j2.render) {
412
- var _columns$j3, _columns$j3$render;
413
-
414
- return (_columns$j3 = columns[j]) === null || _columns$j3 === void 0 ? void 0 : (_columns$j3$render = _columns$j3.render) === null || _columns$j3$render === void 0 ? void 0 : _columns$j3$render.call(_columns$j3, cell, dataItem, i);
415
- }
416
-
417
- return cell;
418
- }).join('\t');
419
- }).join('\n');
420
- };
421
- /** 复制功能 */
422
-
423
-
424
- var handleCopy = function handleCopy(e) {
425
- var _shellStatusRef$curre2;
426
-
427
- if (isEmpty((_shellStatusRef$curre2 = shellStatusRef.current) === null || _shellStatusRef$curre2 === void 0 ? void 0 : _shellStatusRef$curre2.editing)) {
428
- var _e$clipboardData;
429
-
430
- e === null || e === void 0 ? void 0 : e.preventDefault();
431
- var _shellStatusRef$curre3 = shellStatusRef.current,
432
- start = _shellStatusRef$curre3.start,
433
- end = _shellStatusRef$curre3.end;
434
- var text = getSelectDatas(start, end);
435
-
436
- if (window.clipboardData && window.clipboardData.setData) {
437
- window.clipboardData.setData('Text', text);
438
- } else if ((_e$clipboardData = e.clipboardData) === null || _e$clipboardData === void 0 ? void 0 : _e$clipboardData.setData) {
439
- e.clipboardData.setData('text/plain', text);
440
- } else {
441
- var _document;
442
-
443
- (_document = document) === null || _document === void 0 ? void 0 : _document.execCommand('copy');
444
-
445
- if (contextMenuStatus) {
446
- setContextMenuStatus(false);
447
- }
448
- }
449
- }
450
- };
451
-
452
- var onMouseOver = function onMouseOver(i, j) {
453
- var _shellStatusRef$curre4, _shellStatusRef$curre7, _checkStatus, _shellStatusRef$curre8;
454
-
455
- if (isEmpty(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.commiting)) {
456
- var _shellStatusRef$curre5, _shellStatusRef$curre6;
457
-
458
- if ((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.selecting) && isEmpty(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre6 = shellStatusRef.current) === null || _shellStatusRef$curre6 === void 0 ? void 0 : _shellStatusRef$curre6.editing)) {
459
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
460
- end: {
461
- i: i,
462
- j: j
463
- }
464
- });
465
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
466
- end: {
467
- i: i,
468
- j: j
469
- }
470
- }));
471
- }
472
- } else if (!isEmpty((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.commiting) || {}) && ((_checkStatus = (0, _util.checkStatus)(i, j, shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre8 = shellStatusRef.current) === null || _shellStatusRef$curre8 === void 0 ? void 0 : _shellStatusRef$curre8.commiting)) === null || _checkStatus === void 0 ? void 0 : _checkStatus.isVaildCommit)) {
473
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
474
- end: {
475
- i: i,
476
- j: j
477
- }
478
- });
479
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
480
- end: {
481
- i: i,
482
- j: j
483
- }
484
- }));
485
- }
486
- };
487
- /** sheel 表格 鼠标松开 */
488
-
489
-
490
- var sheelOnMouseUp = function sheelOnMouseUp() {
491
- var _shellStatusRef$curre9;
492
-
493
- if (!isEmpty((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.commiting)) {
494
- var _commiting$start, _commiting$end, _commiting$start2, _commiting$end2, _difference, _difference2, _obj$i;
495
-
496
- var _shellStatusRef$curre10 = shellStatusRef.current,
497
- start = _shellStatusRef$curre10.start,
498
- end = _shellStatusRef$curre10.end,
499
- commiting = _shellStatusRef$curre10.commiting;
500
- var columnsKeysList = columns.map(function (item) {
501
- return item.dataIndex;
502
- });
503
- var rowtext = range(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
504
- return columnsKeysList.map(function (j) {
505
- var columnKey = j;
506
- var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
507
- var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
508
- return cell;
509
- });
510
- });
511
- var coltext = range(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
512
- return range(commiting === null || commiting === void 0 ? void 0 : commiting.start.j, commiting === null || commiting === void 0 ? void 0 : commiting.end.j).map(function (j) {
513
- var _columns$j4, _columns$j5;
514
-
515
- var columnKey = (_columns$j4 = columns[j]) === null || _columns$j4 === void 0 ? void 0 : _columns$j4.dataIndex;
516
- var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
517
- var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
518
-
519
- if ((_columns$j5 = columns[j]) === null || _columns$j5 === void 0 ? void 0 : _columns$j5.render) {
520
- var _columns$j6, _columns$j6$render;
521
-
522
- return (_columns$j6 = columns[j]) === null || _columns$j6 === void 0 ? void 0 : (_columns$j6$render = _columns$j6.render) === null || _columns$j6$render === void 0 ? void 0 : _columns$j6$render.call(_columns$j6, cell, dataItem, i);
523
- }
524
-
525
- return cell;
526
- });
527
- });
528
- var selectedRange = {
529
- i: range(start.i, end.i),
530
- j: range(start.j, end.j)
531
- };
532
- var commitRange = {
533
- i: range(commiting === null || commiting === void 0 ? void 0 : (_commiting$start = commiting.start) === null || _commiting$start === void 0 ? void 0 : _commiting$start.i, commiting === null || commiting === void 0 ? void 0 : (_commiting$end = commiting.end) === null || _commiting$end === void 0 ? void 0 : _commiting$end.i),
534
- j: range(commiting === null || commiting === void 0 ? void 0 : (_commiting$start2 = commiting.start) === null || _commiting$start2 === void 0 ? void 0 : _commiting$start2.j, commiting === null || commiting === void 0 ? void 0 : (_commiting$end2 = commiting.end) === null || _commiting$end2 === void 0 ? void 0 : _commiting$end2.j)
535
- };
536
- var obj = {
537
- i: [],
538
- j: []
539
- };
540
- var type = '';
541
-
542
- if ((_difference = (0, _lodash.difference)(selectedRange.i, commitRange.i)) === null || _difference === void 0 ? void 0 : _difference.length) {
543
- obj = {
544
- i: (0, _lodash.difference)(selectedRange.i, commitRange.i),
545
- j: selectedRange.j
546
- };
547
- type = 'row';
548
- } else if ((_difference2 = (0, _lodash.difference)(selectedRange.j, commitRange.j)) === null || _difference2 === void 0 ? void 0 : _difference2.length) {
549
- obj = {
550
- i: selectedRange.i,
551
- j: (0, _lodash.difference)(selectedRange.j, commitRange.j)
552
- };
553
- type = 'col';
554
- }
555
-
556
- var data = (0, _lodash.cloneDeep)(dataSourceRef.current);
557
- (_obj$i = obj.i) === null || _obj$i === void 0 ? void 0 : _obj$i.map(function (tri, index) {
558
- var _obj$j;
559
-
560
- (_obj$j = obj.j) === null || _obj$j === void 0 ? void 0 : _obj$j.map(function (tdj) {
561
- var _isSelected;
562
-
563
- if ((_isSelected = isSelected(tri, tdj)) === null || _isSelected === void 0 ? void 0 : _isSelected.isSelected) {
564
- if (type === 'row') {
565
- var _rowtext;
566
-
567
- data[tri][columnsKeysList[tdj]] = (_rowtext = rowtext[index % rowtext.length]) === null || _rowtext === void 0 ? void 0 : _rowtext[tdj];
568
- } else {
569
- var _coltext;
570
-
571
- data[tri][columnsKeysList[tdj]] = (_coltext = coltext[index % coltext.length]) === null || _coltext === void 0 ? void 0 : _coltext[tdj % coltext[index % coltext.length].length];
572
- }
573
- }
574
- });
575
- });
576
-
577
- if (editSheet) {
578
- dataChange === null || dataChange === void 0 ? void 0 : dataChange(data);
579
- }
580
-
581
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
582
- selecting: false,
583
- commiting: {}
584
- }));
585
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
586
- selecting: false,
587
- commiting: {}
588
- });
589
- setCommitIng(false);
590
- } else {
591
- setSheelStatus((0, _objectSpread2.default)((0, _objectSpread2.default)({}, sheelStataus), {}, {
592
- selecting: false
593
- }));
594
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
595
- selecting: false
596
- });
597
- }
598
-
599
- document.removeEventListener('mouseup', sheelOnMouseUp);
600
- };
601
- /** 剪切内容 */
602
-
603
-
604
- var handleCut = function handleCut(e) {
605
- var _shellStatusRef$curre11;
606
-
607
- if (isEmpty((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing)) {
608
- e.preventDefault();
609
- handleCopy(e);
610
- /** 暂时先不隐藏 */
611
- // const { start, end } = shellStatusRef.current
612
- // clearSelectedCells(start, end)
613
- }
614
- };
615
- /** 内容粘贴 */
616
-
617
-
618
- var handlePaste = function handlePaste(e) {
619
- var _shellStatusRef$curre12;
620
-
621
- if (isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing)) {
622
- var _shellStatusRef$curre13 = shellStatusRef.current,
623
- start = _shellStatusRef$curre13.start,
624
- end = _shellStatusRef$curre13.end;
625
- start = {
626
- i: Math.min(start.i, end.i),
627
- j: Math.min(start.j, end.j)
628
- };
629
- end = {
630
- i: Math.max(start.i, end.i),
631
- j: Math.max(start.j, end.j)
632
- };
633
- var parse = defaultParsePaste;
634
- var changes = [];
635
- var pasteData = [];
636
-
637
- if (window.clipboardData && window.clipboardData.getData) {
638
- // IE
639
- pasteData = parse(window.clipboardData.getData('Text'));
640
- } else if (e.clipboardData && e.clipboardData.getData) {
641
- pasteData = parse(e.clipboardData.getData('text/plain'));
642
- }
643
-
644
- var data = dataSourceRef.current; // in order of preference
645
-
646
- var resultEnd = [];
647
- pasteData.forEach(function (row, i) {
648
- row.forEach(function (value, j) {
649
- resultEnd.push({
650
- i: start.i + i,
651
- j: start.j + j,
652
- value: value
653
- });
654
- });
655
- });
656
- var columnsKeysList = columns.map(function (item) {
657
- return item.dataIndex;
658
- });
659
- var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
660
- resultEnd.forEach(function (item) {
661
- var _isSelected2;
662
-
663
- if ((_isSelected2 = isSelected(item.i, item.j)) === null || _isSelected2 === void 0 ? void 0 : _isSelected2.isSelected) {
664
- draft[item.i][columnsKeysList[item.j]] = item.value;
665
- }
666
- });
667
- });
668
- /** 只有开通了编辑权限之后才可以 */
669
-
670
- if (editSheet) {
671
- dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
672
- }
673
- }
674
- };
675
-
676
- var pageClick = function pageClick(e) {
677
- // if (this.props.disablePageClick) return;
678
- var element = tableWarpRef.current;
679
-
680
- if (!(element === null || element === void 0 ? void 0 : element.contains(e.target))) {
681
- shellStatusRef.current = {
682
- start: {},
683
- end: {},
684
- selecting: false,
685
- forceEdit: false,
686
- editing: {},
687
- clear: {},
688
- commiting: {}
689
- };
690
- setSelectIng(false);
691
- document.removeEventListener('mousedown', pageClick);
692
- document.removeEventListener('mouseup', sheelOnMouseUp);
693
- document.removeEventListener('cut', handleCut);
694
- document.removeEventListener('copy', handleCopy);
695
- document.removeEventListener('paste', handlePaste);
696
- }
697
- /** 关闭右键 */
698
-
699
-
700
- var contentElement = contentMenuRef.current;
701
-
702
- if (!(contentElement === null || contentElement === void 0 ? void 0 : contentElement.contains(e.target))) {
703
- setContextMenuStatus(false);
704
- }
705
- };
706
- /** sheel 表格 鼠标点击 */
707
-
708
- /**
709
- * i 行
710
- * j 列
711
- * e 点击元素
712
- * commitStatus boolena 是否点击了快速选择
713
- */
714
-
715
-
716
- var sheelMouseDown = function sheelMouseDown(i, j, e, commitStatus) {
717
- var _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21, _shellStatusRef$curre22, _shellStatusRef$curre23;
718
-
719
- var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing) && ((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing.i) === i && ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.j) === j;
720
- var editing = isEmpty((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing) || ((_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing.i) !== i || ((_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.editing.j) !== j ? {} : (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.editing;
721
- shellStatusRef.current = {
722
- selecting: !isNowEditingSameCell,
723
- start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.start : {
724
- i: i,
725
- j: j
726
- },
727
- end: {
728
- i: i,
729
- j: j
730
- },
731
- editing: editing,
732
- forceEdit: !!isNowEditingSameCell,
733
- commiting: commitStatus ? {
734
- start: (_shellStatusRef$curre22 = shellStatusRef.current) === null || _shellStatusRef$curre22 === void 0 ? void 0 : _shellStatusRef$curre22.start,
735
- end: {
736
- i: i,
737
- j: j
738
- }
739
- } : {}
740
- };
741
- setSelectIng(!isNowEditingSameCell);
742
-
743
- if (commitStatus) {
744
- setCommitIng(true);
745
- }
746
-
747
- if (isEmpty((_shellStatusRef$curre23 = shellStatusRef.current) === null || _shellStatusRef$curre23 === void 0 ? void 0 : _shellStatusRef$curre23.editing)) {
748
- setEditIng(false);
749
- }
750
-
751
- document.addEventListener('mouseup', sheelOnMouseUp);
752
- document.addEventListener('mousedown', pageClick);
753
- document.addEventListener('cut', handleCut);
754
- document.addEventListener('copy', handleCopy);
755
- document.addEventListener('paste', handlePaste);
756
- };
757
- /** 鼠标右键点击事件 */
758
-
759
-
760
- var onContextMenu = function onContextMenu(evt, i, j) {
761
- evt.preventDefault();
762
- var _shellStatusRef$curre24 = shellStatusRef.current,
763
- start = _shellStatusRef$curre24.start,
764
- end = _shellStatusRef$curre24.end;
765
- /** 如果表格当前没有选择,则把当前的右击的td块默认选中 */
766
-
767
- if (isEmpty(start) && isEmpty(end)) {
768
- sheelMouseDown(i, j, evt);
769
- }
770
-
771
- if (!(0, _util.checkIsSelectd)(i, j, start, end)) {
772
- sheelMouseDown(i, j, evt);
773
- }
774
-
775
- setContextMenuStatus(true); // 获得点击的位置
776
-
777
- var clientX = evt.clientX,
778
- clientY = evt.clientY; // 文档显示区的宽度
779
-
780
- var screenW = window.innerWidth;
781
- var screenH = window.innerHeight; // 右键菜单的宽度
782
- // const rightClickRefW = rightClickRef.current.offsetWidth;
783
- // const rightClickRefH = rightClickRef.current.offsetHeight;
784
-
785
- var rightClickRefW = 200;
786
- var rightClickRefH = 200; // right为true,说明鼠标点击的位置到浏览器的右边界的宽度可以放下contextmenu。
787
- // 否则,菜单放到左边。
788
-
789
- var right = screenW - clientX > rightClickRefW;
790
- var top = screenH - clientY > rightClickRefH; // 赋值右键菜单离鼠标一些距离
791
-
792
- clientX = right ? clientX + 6 : clientX - rightClickRefW - 6;
793
- clientY = top ? clientY + 6 : clientY - rightClickRefH - 6;
794
- setStyle((0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
795
- left: clientX,
796
- top: clientY
797
- }));
798
- };
799
-
800
- var onSheelDoubleClick = function onSheelDoubleClick(i, j, col) {
801
- if (editSheet) {
802
- if (!col.readOnly) {
803
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
804
- editing: {
805
- i: i,
806
- j: j
807
- },
808
- forceEdit: true,
809
- clear: {}
810
- });
811
- setEditIng(true);
812
- }
813
- }
814
- };
815
-
816
- var dataSourceChange = function dataSourceChange(i, j, newRecord) {
817
- var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
818
- draft[i] = newRecord;
819
- });
820
- dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
821
- shellStatusRef.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, shellStatusRef.current), {}, {
822
- editing: {},
823
- forceEdit: false,
824
- clear: {}
825
- });
826
- };
827
-
828
- (0, _react.useEffect)(function () {
829
- return function () {
830
- document.removeEventListener('mousedown', pageClick);
831
- document.removeEventListener('mouseup', sheelOnMouseUp);
832
- document.removeEventListener('cut', handleCut);
833
- document.removeEventListener('copy', handleCopy);
834
- document.removeEventListener('paste', handlePaste);
835
- };
836
- }, []);
837
- var resetColumns = (0, _react.useCallback)(function () {
838
- var result = useColumns.filter(function (item) {
839
- return item.show !== false;
840
- }).map(function (col, index) {
841
- var obj = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, col), {}, {
842
- width: col.width,
843
- onHeaderCell: function onHeaderCell(column) {
844
- return {
845
- width: column.width,
846
- // onResize: (e, size) => handleResize(e, size, index),
847
- onResize: handleResize(index),
848
- onResizeStop: endResize
849
- };
850
- }
851
- });
852
-
853
- if (openSheet) {
854
- obj.onCell = function (record, rowIndex) {
855
- return {
856
- record: record,
857
- rowKey: rowKey,
858
- col: col,
859
- colIndex: index,
860
- selectIng: selectIng,
861
- editIng: editIng,
862
- commitIng: commitIng,
863
- rowIndex: rowIndex,
864
- onMouseDown: sheelMouseDown,
865
- onMouseOver: onMouseOver,
866
- onContextMenu: onContextMenu,
867
- isSelected: isSelected,
868
- onDoubleClick: onSheelDoubleClick,
869
- dataSourceChange: dataSourceChange
870
- };
871
- };
872
- }
873
-
874
- return obj;
875
- });
876
-
877
- if (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) {
878
- result = [{
879
- dataIndex: 'group',
880
- title: '分组',
881
- key: 'group'
882
- }].concat((0, _toConsumableArray2.default)(result));
883
- }
884
-
885
- return sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result;
886
- }, [useColumns, sortOpen, selectIng, dataSource, groupInfo, commitIng]);
887
- (0, _react.useEffect)(function () {
888
- setColumns(columns);
889
- }, [columns]); // 行点击事件
890
-
891
- var onRecord = function onRecord(record) {
892
- var _Object$assign = Object.assign(_resetConfig.default.checkConfig, checkConfig),
893
- trigger = _Object$assign.trigger,
894
- highlight = _Object$assign.highlight;
895
-
896
- if (highlight) {
897
- setActiveKey(record[rowKey]);
898
- }
899
-
900
- if (trigger === 'row') {
901
- var selectedRows = useSelectedRows.selectedRows;
902
-
903
- if (tableRowType === 'select' || tableRowType === 'default' && selectedRows.length) {
904
- var selectedRowKeys = selectedRows.map(function (v) {
905
- return v[rowKey];
906
- });
907
- var Idx = selectedRowKeys.indexOf(record[rowKey]);
908
- Idx >= 0 ? selectedRows.splice(Idx, 1) : selectedRows.push(record);
909
- setSelectedRows({
910
- selectedRows: selectedRows
911
- });
912
- rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
913
- }
914
- } else {
915
- rowClick === null || rowClick === void 0 ? void 0 : rowClick(record);
916
- }
917
- }; // 重写表格,增加虚拟滚动
918
- // const vComponents = useMemo(() => {
919
- // return VList({
920
- // height: autoSize.height, // 此值和scrollY值相同. 必传.
921
- // })
922
- // }, [autoSize.height])
923
- // 复选框配置
924
-
925
-
926
- var config = (0, _react.useMemo)(function () {
927
- return (0, _objectSpread2.default)({
928
- defaultSize: 'small',
929
- tableLayout: columnKeys ? 'auto' : 'fixed',
930
- rowKey: rowKey,
931
- debounceTime: 300,
932
- revalidateOnFocus: false,
933
- options: {
934
- setting: false,
935
- density: false,
936
- fullScreen: false,
937
- reload: false
938
- },
939
- columnsState: {
940
- value: columnsStateMap,
941
- onChange: function onChange(k) {
942
- setColumnsStateMap(k);
943
- }
944
- },
945
- search: false,
946
- tableAlertRender: false,
947
- checkConfig: checkConfig,
948
- // components: vComponents,
949
- scroll: resetProps.autoSizer || resetProps.scroll ? (0, _objectSpread2.default)((0, _objectSpread2.default)({
950
- y: autoSize.height
951
- }, resetProps.scroll), resizeable ? {
952
- x: '100%'
953
- } : {}) : resizeable ? {
954
- x: '100%'
955
- } : null,
956
- pagination: !hiddenPage && (0, _objectSpread2.default)({
957
- showSizeChanger: true,
958
- showQuickJumper: true,
959
- showTotal: function showTotal(total) {
960
- return "\u5171 ".concat(total, " \u6761");
961
- },
962
- locale: {
963
- items_per_page: '/条',
964
- jump_to: '前往',
965
- page: '页'
966
- },
967
- size: 'small'
968
- }, pagination),
969
- rowSelection: rowSelection === false ? undefined : (0, _objectSpread2.default)({
970
- fixed: true,
971
- type: 'checkbox',
972
- columnWidth: 36,
973
- selectedRowKeys: useSelectedRows.selectedRows.map(function (v) {
974
- return v[rowKey];
975
- }),
976
- onChange: function onChange(selectedRowKeys, selectedRows, t, s) {
977
- setSelectedRows({
978
- selectedRows: selectedRows
979
- });
980
- rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
981
- }
982
- }, rowSelection),
983
- onRow: function onRow(record) {
984
- return {
985
- onClick: function onClick(e) {
986
- onRecord(record);
987
- },
988
- onDoubleClick: function onDoubleClick() {
989
- _onDoubleClick === null || _onDoubleClick === void 0 ? void 0 : _onDoubleClick(record);
990
- }
991
- };
992
- },
993
- rowClassName: function rowClassName(record) {
994
- return record[rowKey] === useActiveKey ? 'row-active' : '';
995
- },
996
- columns: resetColumns(),
997
- size: size
998
- }, resetProps);
999
- }, [useColumns, useSelectedRows, columnsStateMap, resetProps, autoSize.height, resizeable]);
1000
- var resultColumns = (0, _react.useMemo)(function () {
1001
- var result = useColumns.map(function (item, index) {
1002
- var _columnsStateMap$item, _columnsStateMap$item2, _columnsStateMap$item3, _columnsStateMap$item4;
1003
-
1004
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
1005
- colSort: (columnsStateMap === null || columnsStateMap === void 0 ? void 0 : (_columnsStateMap$item = columnsStateMap[item.dataIndex]) === null || _columnsStateMap$item === void 0 ? void 0 : _columnsStateMap$item.order) === undefined ? index : (columnsStateMap === null || columnsStateMap === void 0 ? void 0 : (_columnsStateMap$item2 = columnsStateMap[item.dataIndex]) === null || _columnsStateMap$item2 === void 0 ? void 0 : _columnsStateMap$item2.order) || index,
1006
- fixed: (columnsStateMap === null || columnsStateMap === void 0 ? void 0 : (_columnsStateMap$item3 = columnsStateMap[item.dataIndex]) === null || _columnsStateMap$item3 === void 0 ? void 0 : _columnsStateMap$item3.fixed) || item.fixed || undefined,
1007
- show: (columnsStateMap === null || columnsStateMap === void 0 ? void 0 : (_columnsStateMap$item4 = columnsStateMap[item.dataIndex]) === null || _columnsStateMap$item4 === void 0 ? void 0 : _columnsStateMap$item4.show) !== false
1008
- });
1009
- }).filter(function (item) {
1010
- return !!item.show;
1011
- });
1012
- result.sort(function (a, b) {
1013
- return (a.fixed === 'left' ? a.colSort : a.fixed === 'right' ? 500 + a.colSort : a.colSort + 50) - (b.fixed === 'left' ? b.colSort : b.fixed === 'right' ? 500 + b.colSort : b.colSort + 50);
1014
- });
1015
- return result;
1016
- }, [columnsStateMap, useColumns]);
1017
- (0, _react.useEffect)(function () {
1018
- var obj = (0, _objectSpread2.default)({}, columnsState);
1019
- columns === null || columns === void 0 ? void 0 : columns.forEach(function (item) {
1020
- /** 目前支持三种 */
1021
- var _ref3 = obj[item.dataIndex || item.key] || {},
1022
- order = _ref3.order,
1023
- show = _ref3.show,
1024
- fixed = _ref3.fixed;
1025
-
1026
- obj[item.dataIndex || item.key] = {
1027
- fixed: fixed || item.fixed,
1028
- show: show === false ? false : item.show || true,
1029
- order: order || item.order
1030
- };
1031
- });
1032
- setColumnsStateMap(obj);
1033
- }, [columnsState]); // 将节点方法给外部使用
1034
-
1035
- _react.default.useImperativeHandle(ref, function () {
1036
- return {
1037
- getCheckboxRecords: function getCheckboxRecords() {
1038
- return useSelectedRows.selectedRows;
1039
- },
1040
- // 用于按钮触发事件
1041
- clearSelect: function clearSelect() {
1042
- setSelectedRows({
1043
- selectedRows: []
1044
- });
1045
- rowClick === null || rowClick === void 0 ? void 0 : rowClick([]);
1046
- },
1047
- customSetCheckboxRecords: function customSetCheckboxRecords(value) {
1048
- setSelectedRows({
1049
- selectedRows: value
1050
- });
1051
- rowClick === null || rowClick === void 0 ? void 0 : rowClick(value);
1052
- },
1053
- checkboxRecords: useSelectedRows.selectedRows,
1054
- columns: useColumns.map(function (item) {
1055
- return (0, _lodash.omit)(item, ['render', 'sorter', 'onFilter', 'filters']);
1056
- })
1057
- };
1058
- }); // loading触发清空选中状态
1059
-
1060
-
1061
- (0, _react.useEffect)(function () {
1062
- setSelectedRows({
1063
- selectedRows: []
1064
- });
1065
- }, [loading]);
1066
-
1067
- var onTableChange = function onTableChange(pagination, filters, sorter, extra) {
1068
- var resultColumns = useColumns.map(function (item) {
1069
- var obj = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
1070
- sortOrder: false
1071
- });
1072
- obj.filteredValue = filters[obj.dataIndex] || [];
1073
-
1074
- if (Array.isArray(sorter)) {
1075
- var checkSort = sorter.find(function (s) {
1076
- return s.field === obj.dataIndex;
1077
- });
1078
-
1079
- if (checkSort) {
1080
- obj.sortOrder = checkSort.order;
1081
- }
1082
- } else if ((sorter === null || sorter === void 0 ? void 0 : sorter.field) === obj.dataIndex) {
1083
- obj.sortOrder = sorter.order;
1084
- }
1085
-
1086
- return obj;
1087
- });
1088
- setColumns(resultColumns);
1089
- filterChange === null || filterChange === void 0 ? void 0 : filterChange(resultColumns);
1090
- onChange === null || onChange === void 0 ? void 0 : onChange(pagination, filters, sorter, extra);
1091
- };
1092
- /** 排序的表头 */
1093
-
1094
-
1095
- var ResizableTitle = function ResizableTitle(props) {
1096
- var onResize = props.onResize,
1097
- width = props.width,
1098
- onResizeStop = props.onResizeStop,
1099
- restProps = (0, _objectWithoutProperties2.default)(props, _excluded3);
1100
-
1101
- if (!width) {
1102
- return /*#__PURE__*/_react.default.createElement("th", restProps);
1103
- }
1104
-
1105
- return /*#__PURE__*/_react.default.createElement(_reactResizable.Resizable, {
1106
- width: width,
1107
- height: 0,
1108
- handle: /*#__PURE__*/_react.default.createElement("span", {
1109
- className: "react-resizable-handle",
1110
- onClick: function onClick(e) {
1111
- e.stopPropagation();
1112
- }
1113
- }),
1114
- onResize: onResize,
1115
- onResizeStop: onResizeStop,
1116
- draggableOpts: {
1117
- enableUserSelectHack: false
1118
- }
1119
- }, /*#__PURE__*/_react.default.createElement("th", restProps));
1120
- };
1121
-
1122
- var colDraggableContainer = (0, _react.useCallback)(function (_ref4) {
1123
- var props = (0, _extends2.default)({}, _ref4);
1124
- return /*#__PURE__*/_react.default.createElement("tr", null, _react.default.Children.map(props.children, function (child) {
1125
- var _child$props, _child$props$column;
1126
-
1127
- if (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : (_child$props$column = _child$props.column) === null || _child$props$column === void 0 ? void 0 : _child$props$column.fixed) {
1128
- return child;
1129
- }
1130
-
1131
- return /*#__PURE__*/_react.default.createElement(_sortableItemCol.default, {
1132
- id: child.key
1133
- }, child);
1134
- }));
1135
- }, [columns]);
1136
- var tableComponents = (0, _react.useMemo)(function () {
1137
- var _ref5 = components || {},
1138
- _ref5$body = _ref5.body,
1139
- body = _ref5$body === void 0 ? {} : _ref5$body,
1140
- _ref5$header = _ref5.header,
1141
- header = _ref5$header === void 0 ? {} : _ref5$header;
1142
-
1143
- return {
1144
- // table: (record) => {
1145
- // return <div style={record.style}>{record.children}</div>
1146
- // }
1147
- table: virtual ? _virTual.VirtualTable : null,
1148
- header: (0, _objectSpread2.default)({
1149
- row: colSortOpen ? colDraggableContainer : null,
1150
- cell: resizeable ? ResizableTitle : null
1151
- }, header),
1152
- body: (0, _objectSpread2.default)((0, _objectSpread2.default)({
1153
- wrapper: sortOpen ? DraggableContainer : virtual ? _virTual.VirtualWrapper : null,
1154
- row: sortOpen ? DraggableBodyRow : virtual ? _virTual.VirtualRow : null
1155
- }, body), {}, {
1156
- cell: openSheet ? _sheelTableCell.default : null
1157
- })
1158
- };
1159
- }, [sortOpen, resizeable, components, colSortOpen]);
1160
- return /*#__PURE__*/_react.default.createElement("div", {
1161
- style: {
1162
- height: '100%',
1163
- width: '100%'
1164
- },
1165
- ref: tableWarpRef
1166
- }, /*#__PURE__*/_react.default.createElement(_configProvider.default, {
1167
- renderEmpty: loading ? function () {
1168
- return null;
1169
- } : emptyProps ? function () {
1170
- return /*#__PURE__*/_react.default.createElement(_Empty.default, emptyProps, (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.footer) || null);
1171
- } : _customRenderEmpty.default
1172
- }, colSortOpen ? /*#__PURE__*/_react.default.createElement(_DndContainer.default, {
1173
- move: onColSortEnd
1174
- }, /*#__PURE__*/_react.default.createElement(_sortableBoxCol.default, {
1175
- items: columns.reduce(function (acc, item) {
1176
- return [].concat((0, _toConsumableArray2.default)(acc), [item.dataIndex]);
1177
- }, [])
1178
- }, /*#__PURE__*/_react.default.createElement(_proTable.default, (0, _extends2.default)({}, config, {
1179
- loading: loading,
1180
- dataSource: dataSource,
1181
- components: tableComponents,
1182
- onChange: onTableChange,
1183
- expandable: {
1184
- onExpand: function onExpand() {
1185
- shellStatusRef.current = {
1186
- start: {},
1187
- end: {},
1188
- selecting: false,
1189
- forceEdit: false,
1190
- editing: {},
1191
- clear: {},
1192
- commiting: {}
1193
- };
1194
- },
1195
- expandedRowKeys: expandedRowKeys,
1196
- onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
1197
- return setExpandedRowKeys(expandedRows);
1198
- }
1199
- },
1200
- tableClassName: (0, _classnames.default)('lm_protable', resizeable && 'lm_resizeable'),
1201
- summary: function summary(pageData) {
1202
- return _summary && _summary(pageData, resultColumns);
1203
- }
1204
- })))) : /*#__PURE__*/_react.default.createElement(_proTable.default, (0, _extends2.default)({}, config, {
1205
- loading: loading,
1206
- dataSource: dataSource,
1207
- components: tableComponents,
1208
- onChange: onTableChange,
1209
- expandable: {
1210
- onExpand: function onExpand() {
1211
- shellStatusRef.current = {
1212
- start: {},
1213
- end: {},
1214
- selecting: false,
1215
- forceEdit: false,
1216
- editing: {},
1217
- clear: {},
1218
- commiting: {}
1219
- };
1220
- },
1221
- expandedRowKeys: expandedRowKeys,
1222
- onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
1223
- return setExpandedRowKeys(expandedRows);
1224
- }
1225
- },
1226
- tableClassName: (0, _classnames.default)('lm_protable', resizeable && 'lm_resizeable'),
1227
- summary: function summary(pageData) {
1228
- return _summary && _summary(pageData, resultColumns);
1229
- }
1230
- }))), !!customCheck && /*#__PURE__*/_react.default.createElement("div", {
1231
- className: "lm_customCheck"
1232
- }, customCheck), contextMenuStatus && /*#__PURE__*/_react.default.createElement("div", {
1233
- ref: contentMenuRef,
1234
- className: "WeChatContactsAvatarTools",
1235
- style: style
1236
- }, /*#__PURE__*/_react.default.createElement("div", {
1237
- className: "rightClickItems",
1238
- onClick: handleCopy
1239
- }, "\u590D\u5236"), /*#__PURE__*/_react.default.createElement("div", {
1240
- className: "rightClickItems",
1241
- onClick: function onClick() {
1242
- return setChartsModalStatus('column');
1243
- }
1244
- }, "\u751F\u6210\u67F1\u72B6\u56FE"), /*#__PURE__*/_react.default.createElement("div", {
1245
- className: "rightClickItems",
1246
- onClick: function onClick() {
1247
- return setChartsModalStatus('pie');
1248
- }
1249
- }, "\u751F\u6210\u997C\u56FE"), /*#__PURE__*/_react.default.createElement("div", {
1250
- className: "rightClickItems",
1251
- onClick: function onClick() {
1252
- return setChartsModalStatus('line');
1253
- }
1254
- }, "\u751F\u6210\u6298\u7EBF\u56FE")), chartsModalStatus && /*#__PURE__*/_react.default.createElement(_tableChartsModal.default, {
1255
- type: chartsModalStatus,
1256
- onCancel: function onCancel() {
1257
- return setChartsModalStatus(false);
1258
- },
1259
- onOk: function onOk() {
1260
- return setChartsModalStatus(false);
1261
- },
1262
- data: dataSource,
1263
- columns: columns,
1264
- selectInfo: (0, _lodash.pick)(shellStatusRef.current, ['start', 'end'])
1265
- }));
1266
- }); // 监听大小: 这里的高度是整个表格的高度,表体需要减去列头和分页的高度
1267
-
1268
- /** 1: 使用scroll.x y 来控制宽高 默认都是100% */
1269
-
1270
- var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1271
- var _props$autoSizer = props.autoSizer,
1272
- autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
1273
-
1274
- var _useState25 = (0, _react.useState)({
1275
- width: '100%',
1276
- height: '100%'
1277
- }),
1278
- _useState26 = (0, _slicedToArray2.default)(_useState25, 2),
1279
- tableSize = _useState26[0],
1280
- setTableSize = _useState26[1];
1281
-
1282
- var defaultRef = ref || (0, _react.useRef)(null);
1283
- var tableWarpRef = (0, _react.useRef)(null);
1284
- var resizeRef = (0, _react.useRef)(null);
1285
-
1286
- if (!autoSizer) {
1287
- return /*#__PURE__*/_react.default.createElement("div", {
1288
- ref: tableWarpRef,
1289
- id: "lm_protable_warp",
1290
- style: {
1291
- width: '100%',
1292
- height: '100%'
1293
- }
1294
- }, /*#__PURE__*/_react.default.createElement(ResetTable, (0, _extends2.default)({
1295
- ref: defaultRef
1296
- }, props, {
1297
- autoSize: {
1298
- height: '100%',
1299
- width: '100%'
1300
- }
1301
- })));
1302
- }
1303
-
1304
- var resetHeight = (0, _react.useMemo)(function () {
1305
- var height = tableSize.height;
1306
- var h = height - 32;
1307
-
1308
- if (!props.hiddenPage || props.customCheck) {
1309
- h -= 48;
1310
- }
1311
-
1312
- if (props.columns.some(function (v) {
1313
- return v.children;
1314
- })) {
1315
- h -= 32;
1316
- }
1317
-
1318
- return h;
1319
- }, [props.hiddenPage, props.customCheck, props.columns, tableSize]);
1320
- var throttleSize = (0, _react.useCallback)(function () {
1321
- var width = tableSize.width,
1322
- height = tableSize.height;
1323
- return /*#__PURE__*/_react.default.createElement(ResetTable, (0, _extends2.default)({
1324
- ref: defaultRef
1325
- }, props, {
1326
- autoSize: {
1327
- height: resetHeight,
1328
- width: width
1329
- }
1330
- }));
1331
- }, [tableSize, props]);
1332
-
1333
- var changeSize = function changeSize() {
1334
- var _tableWarpRef$current;
1335
-
1336
- var value = props.summary ? 48 : 0;
1337
-
1338
- var _ref6 = ((_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : _tableWarpRef$current.getBoundingClientRect()) || {},
1339
- _ref6$width = _ref6.width,
1340
- width = _ref6$width === void 0 ? '100%' : _ref6$width,
1341
- _ref6$height = _ref6.height,
1342
- height = _ref6$height === void 0 ? '100%' : _ref6$height;
1343
-
1344
- setTableSize({
1345
- width: width,
1346
- height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
1347
- });
1348
- };
1349
-
1350
- var handResize = (0, _lodash.throttle)(changeSize, 600);
1351
- (0, _react.useEffect)(function () {
1352
- var summary = props.summary;
1353
- setTimeout(function () {
1354
- var _tableWarpRef$current5;
1355
-
1356
- var _tableWarpRef$current2 = (_tableWarpRef$current5 = tableWarpRef.current) === null || _tableWarpRef$current5 === void 0 ? void 0 : _tableWarpRef$current5.getBoundingClientRect(),
1357
- _tableWarpRef$current3 = _tableWarpRef$current2.width,
1358
- width = _tableWarpRef$current3 === void 0 ? '100%' : _tableWarpRef$current3,
1359
- _tableWarpRef$current4 = _tableWarpRef$current2.height,
1360
- height = _tableWarpRef$current4 === void 0 ? '100%' : _tableWarpRef$current4;
1361
-
1362
- var value = summary ? 48 : 0;
1363
- setTableSize({
1364
- width: width,
1365
- height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
1366
- });
1367
- }, 100);
1368
- resizeRef.current = window.addEventListener('resize', handResize);
1369
- return function () {
1370
- window.removeEventListener('resize', handResize);
1371
- };
1372
- }, []);
1373
- return /*#__PURE__*/_react.default.createElement("div", {
1374
- ref: tableWarpRef,
1375
- id: "lm_protable_warp",
1376
- style: {
1377
- width: '100%',
1378
- height: '100%'
1379
- }
1380
- }, throttleSize());
1381
- });
1382
-
1383
- var _default = /*#__PURE__*/(0, _react.memo)(ResizeSize);
1384
-
1385
- exports.default = _default;