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,704 +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 = void 0;
11
-
12
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
13
-
14
- require("antd/es/table/style");
15
-
16
- var _table = _interopRequireDefault(require("antd/es/table"));
17
-
18
- require("antd/es/radio/style");
19
-
20
- var _radio = _interopRequireDefault(require("antd/es/radio"));
21
-
22
- require("antd/es/checkbox/style");
23
-
24
- var _checkbox = _interopRequireDefault(require("antd/es/checkbox"));
25
-
26
- require("antd/es/select/style");
27
-
28
- var _select = _interopRequireDefault(require("antd/es/select"));
29
-
30
- require("antd/es/date-picker/style");
31
-
32
- var _datePicker = _interopRequireDefault(require("antd/es/date-picker"));
33
-
34
- require("antd/es/input-number/style");
35
-
36
- var _inputNumber = _interopRequireDefault(require("antd/es/input-number"));
37
-
38
- var _objectSpread5 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
39
-
40
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
41
-
42
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
43
-
44
- require("antd/es/form/style");
45
-
46
- var _form = _interopRequireDefault(require("antd/es/form"));
47
-
48
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
49
-
50
- require("antd/es/button/style");
51
-
52
- var _button = _interopRequireDefault(require("antd/es/button"));
53
-
54
- require("antd/es/input/style");
55
-
56
- var _input = _interopRequireDefault(require("antd/es/input"));
57
-
58
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
59
-
60
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
61
-
62
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
63
-
64
- var _react = _interopRequireWildcard(require("react"));
65
-
66
- var _linkmoreDesign = require("linkmore-design");
67
-
68
- var _dayjs = _interopRequireDefault(require("dayjs"));
69
-
70
- var _UploadOss = _interopRequireDefault(require("../UploadOss"));
71
-
72
- var _classnames = _interopRequireDefault(require("classnames"));
73
-
74
- var _lodash = require("lodash");
75
-
76
- var _icons = require("@ant-design/icons");
77
-
78
- var _excluded = ["value", "onChange"],
79
- _excluded2 = ["index"],
80
- _excluded3 = ["isEdit", "isHoverEdit", "editEnum", "valueType", "editable", "children", "dataIndex", "record", "handleSave", "rowKey", "handleAdd", "handleDelete", "getLength", "itemProps", "setValid", "reWriteOriginSource"],
81
- _excluded4 = ["value", "onChange", "columns", "isEdit", "isAdd", "rowKey", "isHoverEdit"];
82
- var UploadBtn = _UploadOss.default.UploadBtn;
83
-
84
- var EditableContext = /*#__PURE__*/_react.default.createContext(null);
85
-
86
- var UploadSingle = function UploadSingle(props) {
87
- var value = props.value,
88
- onChange = props.onChange,
89
- editEnum = props.editEnum;
90
-
91
- var handleDelete = function handleDelete() {
92
- onChange === null || onChange === void 0 ? void 0 : onChange();
93
- };
94
-
95
- return /*#__PURE__*/_react.default.createElement("div", {
96
- className: "upload_single"
97
- }, value ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
98
- type: "lmweb-link",
99
- style: {
100
- fontSize: 14,
101
- color: '#1890ff'
102
- }
103
- }), /*#__PURE__*/_react.default.createElement("a", {
104
- href: "".concat(value === null || value === void 0 ? void 0 : value.externalUrl, "/").concat(value === null || value === void 0 ? void 0 : value.filePath).concat(value === null || value === void 0 ? void 0 : value.realFileName),
105
- target: "_blank",
106
- rel: "noreferrer"
107
- }, value === null || value === void 0 ? void 0 : value.fileName), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
108
- type: "lmweb-delete",
109
- style: {
110
- fontSize: 14,
111
- color: '#1890ff'
112
- },
113
- onClick: handleDelete
114
- })) : /*#__PURE__*/_react.default.createElement(UploadBtn, (0, _extends2.default)({}, editEnum, {
115
- value: value,
116
- onChange: onChange
117
- })));
118
- };
119
-
120
- var InputRange = function InputRange(_ref) {
121
- var _ref$value = _ref.value,
122
- value = _ref$value === void 0 ? ['', ''] : _ref$value,
123
- onChange = _ref.onChange,
124
- editEnum = (0, _objectWithoutProperties2.default)(_ref, _excluded);
125
-
126
- // 输入值改变
127
- var handleInput = function handleInput(e, type) {
128
- var v = e.target.value;
129
- var nValue = (0, _toConsumableArray2.default)(value);
130
-
131
- if (type === 'prev') {
132
- nValue[0] = v;
133
- }
134
-
135
- if (type === 'next') {
136
- nValue[1] = v;
137
- }
138
-
139
- onChange(nValue);
140
- };
141
-
142
- return /*#__PURE__*/_react.default.createElement("div", {
143
- className: "lm_base_editTable_wrapperRange"
144
- }, /*#__PURE__*/_react.default.createElement("div", {
145
- className: "inputRange"
146
- }, /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
147
- value: value === null || value === void 0 ? void 0 : value[0],
148
- placeholder: "\u8BF7\u8F93\u5165",
149
- onChange: function onChange(e) {
150
- return handleInput(e, 'prev');
151
- }
152
- }, editEnum)), "~", /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
153
- value: value === null || value === void 0 ? void 0 : value[1],
154
- placeholder: "\u8BF7\u8F93\u5165",
155
- onChange: function onChange(e) {
156
- return handleInput(e, 'next');
157
- }
158
- }, editEnum))));
159
- }; // 操作列
160
-
161
-
162
- var Opetate = function Opetate(_ref2) {
163
- var record = _ref2.record,
164
- rowKey = _ref2.rowKey,
165
- handleAdd = _ref2.handleAdd,
166
- handleDelete = _ref2.handleDelete,
167
- getLength = _ref2.getLength,
168
- removeEnum = _ref2.removeEnum,
169
- addEnum = _ref2.addEnum;
170
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
171
- type: "link",
172
- size: "small",
173
- icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
174
- type: "lmweb-minus-circle",
175
- style: {
176
- fontSize: 16
177
- }
178
- }),
179
- disabled: getLength() < 2 || !!(removeEnum === null || removeEnum === void 0 ? void 0 : removeEnum.disabled)
180
- }, removeEnum, {
181
- onClick: function onClick() {
182
- return handleDelete(record[rowKey]);
183
- }
184
- })), /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
185
- type: "link",
186
- size: "small",
187
- icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
188
- type: "lmweb-plus-circle",
189
- style: {
190
- fontSize: 16
191
- }
192
- })
193
- }, addEnum, {
194
- onClick: function onClick() {
195
- return handleAdd(record);
196
- }
197
- })));
198
- }; // 表格行
199
-
200
-
201
- var EditableRow = function EditableRow(_ref3) {
202
- var index = _ref3.index,
203
- props = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
204
-
205
- var _Form$useForm = _form.default.useForm(),
206
- _Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
207
- form = _Form$useForm2[0];
208
-
209
- return /*#__PURE__*/_react.default.createElement(_form.default, {
210
- form: form,
211
- component: false
212
- }, /*#__PURE__*/_react.default.createElement(EditableContext.Provider, {
213
- value: form
214
- }, /*#__PURE__*/_react.default.createElement("tr", props)));
215
- };
216
-
217
- var isValidValue = function isValidValue(verifyValue) {
218
- var toStringValue = JSON.stringify(verifyValue);
219
-
220
- if (verifyValue === undefined || verifyValue === null || verifyValue === '' || toStringValue === '[]' || toStringValue === '{}') {
221
- return false;
222
- }
223
-
224
- return true;
225
- };
226
- /*
227
- 表格单元格
228
- editEnum: 下拉框时的数据数组(非数组时是配置设置)
229
- valueType: 编辑框配置(多选)
230
- */
231
-
232
-
233
- var EditableCell = function EditableCell(props) {
234
- var isEdit = props.isEdit,
235
- isHoverEdit = props.isHoverEdit,
236
- editEnum = props.editEnum,
237
- valueType = props.valueType,
238
- editable = props.editable,
239
- children = props.children,
240
- dataIndex = props.dataIndex,
241
- record = props.record,
242
- handleSave = props.handleSave,
243
- rowKey = props.rowKey,
244
- handleAdd = props.handleAdd,
245
- handleDelete = props.handleDelete,
246
- getLength = props.getLength,
247
- itemProps = props.itemProps,
248
- setValid = props.setValid,
249
- reWriteOriginSource = props.reWriteOriginSource,
250
- restProps = (0, _objectWithoutProperties2.default)(props, _excluded3);
251
-
252
- var _useState = (0, _react.useState)(true),
253
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
254
- editing = _useState2[0],
255
- setEditing = _useState2[1];
256
-
257
- var focusCapturedRef = (0, _react.useRef)(false);
258
- var curValue = (0, _lodash.get)(record, dataIndex);
259
- var curValueIsValid = isValidValue(curValue);
260
-
261
- var getDefaultChildNode = function getDefaultChildNode() {
262
- var focusCaptured = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
263
- var childNode = children;
264
-
265
- if (!isHoverEdit) {
266
- if (isEdit && editable) {
267
- childNode = /*#__PURE__*/_react.default.createElement(_form.default.Item, (0, _extends2.default)({
268
- style: {
269
- margin: 0
270
- }
271
- }, itemProps, {
272
- name: dataIndex
273
- }), Control(editable));
274
- }
275
- }
276
-
277
- if (isHoverEdit && editable) {
278
- if (focusCaptured) {
279
- childNode = /*#__PURE__*/_react.default.createElement(_form.default.Item, (0, _extends2.default)({
280
- style: {
281
- margin: 0
282
- }
283
- }, itemProps, {
284
- name: dataIndex
285
- }), Control(editable));
286
- }
287
-
288
- if (!curValueIsValid) {
289
- childNode = /*#__PURE__*/_react.default.createElement(_form.default.Item, (0, _extends2.default)({
290
- style: {
291
- margin: 0
292
- }
293
- }, itemProps, {
294
- name: dataIndex
295
- }), Control(editable));
296
- }
297
- }
298
-
299
- return childNode;
300
- };
301
-
302
- var _useState3 = (0, _react.useState)(getDefaultChildNode),
303
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
304
- childNode = _useState4[0],
305
- setChildNode = _useState4[1];
306
-
307
- var form = (0, _react.useContext)(EditableContext);
308
- (0, _react.useEffect)(function () {
309
- setChildNode(getDefaultChildNode(focusCapturedRef.current));
310
- }, [children]); // 出现死循环找我
311
-
312
- (0, _react.useEffect)(function () {
313
- if (isEdit && editable && record[dataIndex] || isHoverEdit && editable && record[dataIndex]) {
314
- form.setFieldsValue((0, _defineProperty2.default)({}, dataIndex, editable === 'date' ? (0, _dayjs.default)(record[dataIndex]) : record[dataIndex]));
315
- }
316
- }, [record]); // 校验保存
317
-
318
- var save = /*#__PURE__*/function () {
319
- var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(row) {
320
- var values;
321
- return _regenerator.default.wrap(function _callee$(_context) {
322
- while (1) {
323
- switch (_context.prev = _context.next) {
324
- case 0:
325
- _context.prev = 0;
326
- _context.t0 = row;
327
-
328
- if (_context.t0) {
329
- _context.next = 6;
330
- break;
331
- }
332
-
333
- _context.next = 5;
334
- return form.getFieldsValue();
335
-
336
- case 5:
337
- _context.t0 = _context.sent;
338
-
339
- case 6:
340
- values = _context.t0;
341
- handleSave((0, _objectSpread5.default)((0, _objectSpread5.default)({}, record), values));
342
- _context.next = 10;
343
- return form.validateFields();
344
-
345
- case 10:
346
- // 清空异常校验
347
- setValid(function (old) {
348
- var obj = (0, _objectSpread5.default)({}, old);
349
- delete obj[record[rowKey]];
350
- return obj;
351
- });
352
- _context.next = 16;
353
- break;
354
-
355
- case 13:
356
- _context.prev = 13;
357
- _context.t1 = _context["catch"](0);
358
- // 加入异常校验
359
- setValid(function (old) {
360
- return (0, _objectSpread5.default)((0, _objectSpread5.default)({}, old), {}, (0, _defineProperty2.default)({}, record[rowKey], _context.t1.errorFields));
361
- });
362
-
363
- case 16:
364
- case "end":
365
- return _context.stop();
366
- }
367
- }
368
- }, _callee, null, [[0, 13]]);
369
- }));
370
-
371
- return function save(_x) {
372
- return _ref4.apply(this, arguments);
373
- };
374
- }(); // 触发保存
375
-
376
-
377
- var handleFormItemChange = function handleFormItemChange() {
378
- save === null || save === void 0 ? void 0 : save();
379
- }; // 输入框
380
-
381
-
382
- function Control(con) {
383
- switch (con) {
384
- case 'input':
385
- return /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
386
- onPressEnter: handleFormItemChange,
387
- onBlur: handleFormItemChange,
388
- placeholder: "\u8BF7\u8F93\u5165"
389
- }, editEnum));
390
-
391
- case 'inputRange':
392
- return /*#__PURE__*/_react.default.createElement(InputRange, (0, _extends2.default)({
393
- onChange: handleFormItemChange
394
- }, editEnum));
395
-
396
- case 'number':
397
- return /*#__PURE__*/_react.default.createElement(_inputNumber.default, (0, _extends2.default)({
398
- onPressEnter: handleFormItemChange,
399
- onBlur: handleFormItemChange,
400
- style: {
401
- width: (editEnum === null || editEnum === void 0 ? void 0 : editEnum.width) || '100%'
402
- },
403
- placeholder: "\u8BF7\u8F93\u5165"
404
- }, editEnum));
405
-
406
- case 'date':
407
- return /*#__PURE__*/_react.default.createElement(_datePicker.default, (0, _extends2.default)({
408
- onChange: handleFormItemChange
409
- }, editEnum));
410
-
411
- case 'select':
412
- return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({
413
- showSearch: true,
414
- allowClear: true,
415
- placeholder: "\u8BF7\u9009\u62E9",
416
- filterOption: function filterOption(input, option) {
417
- return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
418
- }
419
- }, valueType, {
420
- onChange: handleFormItemChange
421
- }), editEnum === null || editEnum === void 0 ? void 0 : editEnum.map(function (v) {
422
- return /*#__PURE__*/_react.default.createElement(_select.default.Option, {
423
- key: v.value,
424
- value: v.value
425
- }, v.label);
426
- }));
427
-
428
- case 'multiple':
429
- return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({
430
- mode: "multiple",
431
- showSearch: true,
432
- allowClear: true,
433
- placeholder: "\u8BF7\u9009\u62E9",
434
- filterOption: function filterOption(input, option) {
435
- return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
436
- }
437
- }, valueType, {
438
- onChange: handleFormItemChange,
439
- onDeselect: handleFormItemChange
440
- }), editEnum === null || editEnum === void 0 ? void 0 : editEnum.map(function (v) {
441
- return /*#__PURE__*/_react.default.createElement(_select.default.Option, {
442
- key: v.value,
443
- value: v.value
444
- }, v.label);
445
- }));
446
-
447
- case 'checkbox':
448
- return /*#__PURE__*/_react.default.createElement(_checkbox.default.Group, (0, _extends2.default)({
449
- onChange: handleFormItemChange
450
- }, valueType), editEnum === null || editEnum === void 0 ? void 0 : editEnum.map(function (v) {
451
- return /*#__PURE__*/_react.default.createElement(_checkbox.default, {
452
- key: v.value,
453
- value: v.value
454
- }, v.label);
455
- }));
456
-
457
- case 'radio':
458
- return /*#__PURE__*/_react.default.createElement(_radio.default.Group, {
459
- onChange: handleFormItemChange
460
- }, editEnum === null || editEnum === void 0 ? void 0 : editEnum.map(function (v) {
461
- return /*#__PURE__*/_react.default.createElement(_radio.default, {
462
- key: v.value,
463
- value: v.value
464
- }, v.label);
465
- }));
466
-
467
- case 'upload':
468
- return /*#__PURE__*/_react.default.createElement(UploadSingle, {
469
- editEnum: editEnum,
470
- onChange: handleFormItemChange
471
- });
472
-
473
- case 'operate':
474
- return /*#__PURE__*/_react.default.createElement(Opetate, (0, _extends2.default)({}, editEnum, {
475
- record: record,
476
- rowKey: rowKey,
477
- handleAdd: handleAdd,
478
- handleDelete: handleDelete,
479
- getLength: getLength
480
- }));
481
-
482
- case 'render':
483
- {
484
- var render = editEnum.render;
485
- return render === null || render === void 0 ? void 0 : render((0, _objectSpread5.default)((0, _objectSpread5.default)({}, record), {}, {
486
- onChange: save
487
- }));
488
- }
489
-
490
- default:
491
- return /*#__PURE__*/_react.default.createElement(_input.default, {
492
- onPressEnter: handleFormItemChange,
493
- onBlur: handleFormItemChange
494
- });
495
- }
496
- }
497
-
498
- var isOpenEdit = isEdit && focusCapturedRef.current || isHoverEdit && focusCapturedRef.current;
499
- var classNames = (0, _classnames.default)({
500
- 'lm_base_editTable_cell': true,
501
- 'lm_base_editTable_cell_edit': isOpenEdit || isHoverEdit && !curValueIsValid
502
- });
503
- var extensionConfig = {};
504
-
505
- var mouseEnterCell = function mouseEnterCell() {
506
- focusCapturedRef.current = true;
507
- var newChildNode = getDefaultChildNode(true);
508
- setChildNode(newChildNode);
509
- };
510
-
511
- var mouseLeaveCell = function mouseLeaveCell() {
512
- focusCapturedRef.current = false;
513
- var nextValue = form.getFieldValue(dataIndex);
514
- var prevValue = (0, _lodash.get)(record, dataIndex);
515
-
516
- if (!(0, _lodash.eq)(prevValue, nextValue)) {
517
- var rowValue = (0, _lodash.get)(record, rowKey);
518
- reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue);
519
- } else {
520
- var newChildNode = getDefaultChildNode(false);
521
- setChildNode(newChildNode);
522
- }
523
- };
524
-
525
- if (isHoverEdit && editable) {
526
- (0, _lodash.set)(extensionConfig, 'onMouseEnter', mouseEnterCell);
527
- (0, _lodash.set)(extensionConfig, 'onMouseLeave', mouseLeaveCell);
528
- }
529
-
530
- return /*#__PURE__*/_react.default.createElement("td", (0, _extends2.default)({}, restProps, {
531
- className: classNames
532
- }, extensionConfig, {
533
- key: "".concat((0, _lodash.get)(record, rowKey), "_").concat(dataIndex)
534
- }), childNode);
535
- };
536
-
537
- var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
538
- var defaultData = props.value,
539
- onChange = props.onChange,
540
- columns = props.columns,
541
- isEdit = props.isEdit,
542
- _props$isAdd = props.isAdd,
543
- isAdd = _props$isAdd === void 0 ? true : _props$isAdd,
544
- _props$rowKey = props.rowKey,
545
- _rowKey = _props$rowKey === void 0 ? '_ID' : _props$rowKey,
546
- isHoverEdit = props.isHoverEdit,
547
- resetProps = (0, _objectWithoutProperties2.default)(props, _excluded4);
548
-
549
- var _useState5 = (0, _react.useState)(function () {
550
- return defaultData === null || defaultData === void 0 ? void 0 : defaultData.map(function (v, idx) {
551
- return (0, _objectSpread5.default)((0, _defineProperty2.default)({}, _rowKey, "v".concat(idx + 1)), v);
552
- });
553
- }),
554
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
555
- dataSource = _useState6[0],
556
- setDataSource = _useState6[1];
557
-
558
- var _useState7 = (0, _react.useState)(2),
559
- _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
560
- count = _useState8[0],
561
- setCount = _useState8[1];
562
-
563
- var _useState9 = (0, _react.useState)({}),
564
- _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
565
- _valid = _useState10[0],
566
- setValid = _useState10[1]; // 删除
567
-
568
-
569
- var handleDelete = function handleDelete(key) {
570
- var nValue = dataSource.filter(function (item) {
571
- return item[_rowKey] !== key;
572
- });
573
- onChange === null || onChange === void 0 ? void 0 : onChange(nValue);
574
- };
575
-
576
- var handleAdd = function handleAdd(row) {
577
- var newData = (0, _defineProperty2.default)({}, _rowKey, count + 1);
578
- var nValue = [];
579
-
580
- if (row) {
581
- var arr = (0, _toConsumableArray2.default)(dataSource);
582
- var index = arr.findIndex(function (item) {
583
- return row[_rowKey] === item[_rowKey];
584
- });
585
- var map = arr.splice(0, index + 1);
586
- nValue = [].concat((0, _toConsumableArray2.default)(map), [newData], (0, _toConsumableArray2.default)(arr));
587
- } else {
588
- nValue = [].concat((0, _toConsumableArray2.default)(dataSource), [newData]);
589
- }
590
-
591
- setCount(count + 1);
592
- onChange === null || onChange === void 0 ? void 0 : onChange(nValue);
593
- };
594
-
595
- var handleSave = function handleSave(row) {
596
- var newData = (0, _toConsumableArray2.default)(dataSource);
597
- var index = newData.findIndex(function (item) {
598
- return row[_rowKey] === item[_rowKey];
599
- });
600
- var item = newData[index];
601
- newData.splice(index, 1, (0, _objectSpread5.default)((0, _objectSpread5.default)({}, item), row));
602
- setDataSource(newData);
603
- onChange === null || onChange === void 0 ? void 0 : onChange(newData);
604
- };
605
-
606
- var reWriteOriginSource = function reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue) {
607
- setDataSource(function (prevDataSource) {
608
- return prevDataSource.map(function (item) {
609
- if ((0, _lodash.get)(item, rowKey) === rowValue) {
610
- (0, _lodash.set)(item, dataIndex, nextValue);
611
- }
612
-
613
- return item;
614
- });
615
- });
616
- };
617
-
618
- var config = (0, _react.useMemo)(function () {
619
- return (0, _objectSpread5.default)({
620
- size: 'small',
621
- pagination: false,
622
- tableLayout: 'fixed',
623
- scroll: {
624
- x: '100%'
625
- },
626
- rowKey: function rowKey(record) {
627
- return record[_rowKey] || record.index || Math.random();
628
- },
629
- components: {
630
- body: {
631
- row: EditableRow,
632
- cell: EditableCell
633
- }
634
- },
635
- columns: columns.map(function (col) {
636
- if (!col.editable) {
637
- return col;
638
- }
639
-
640
- return (0, _objectSpread5.default)((0, _objectSpread5.default)({}, col), {}, {
641
- render: function render(value) {
642
- return value;
643
- },
644
- onCell: function onCell(record) {
645
- return {
646
- getLength: function getLength() {
647
- return dataSource.length;
648
- },
649
- setValid: setValid,
650
- rowKey: _rowKey,
651
- record: record,
652
- isEdit: isEdit,
653
- isHoverEdit: isHoverEdit,
654
- handleAdd: handleAdd,
655
- handleDelete: handleDelete,
656
- editable: col.editable,
657
- dataIndex: col.dataIndex,
658
- itemProps: col.itemProps,
659
- editEnum: typeof col.editEnum === 'function' ? col.editEnum(record) : col.editEnum,
660
- valueType: typeof col.valueType === 'function' ? col.valueType(record) : col.valueType,
661
- handleSave: handleSave,
662
- reWriteOriginSource: reWriteOriginSource
663
- };
664
- }
665
- });
666
- })
667
- }, resetProps);
668
- }, [columns, dataSource]);
669
- (0, _react.useEffect)(function () {
670
- setDataSource(defaultData === null || defaultData === void 0 ? void 0 : defaultData.map(function (v, idx) {
671
- return (0, _objectSpread5.default)((0, _defineProperty2.default)({}, _rowKey, "v".concat(idx + 1)), v);
672
- }));
673
- }, [defaultData]);
674
- (0, _react.useImperativeHandle)(ref, function () {
675
- return {
676
- setRow: handleSave,
677
- valid: function valid() {
678
- return _valid;
679
- }
680
- };
681
- });
682
- var isShowAddAction = isEdit && isAdd || isHoverEdit && isAdd;
683
- return /*#__PURE__*/_react.default.createElement("div", {
684
- className: "lm_base_editTable_warpper"
685
- }, /*#__PURE__*/_react.default.createElement(_table.default, (0, _extends2.default)({}, config, {
686
- rowClassName: function rowClassName() {
687
- return 'editable-row';
688
- },
689
- bordered: true,
690
- dataSource: dataSource
691
- })), isShowAddAction && /*#__PURE__*/_react.default.createElement(_button.default, {
692
- className: "lm_base_editTable_add_bar",
693
- type: "dashed",
694
- block: true,
695
- onClick: handleAdd,
696
- style: {
697
- marginTop: 8
698
- }
699
- }, /*#__PURE__*/_react.default.createElement(_icons.PlusCircleOutlined, {
700
- className: "lm_base_editTable_add_icon"
701
- }), "\u65B0\u589E"));
702
- });
703
- var _default = EditTable;
704
- exports.default = _default;