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,644 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.initLocalization = exports.default = void 0;
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
13
-
14
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
15
-
16
- var _objectSpread4 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
17
-
18
- var _react = _interopRequireWildcard(require("react"));
19
-
20
- var _utils = require("../utils");
21
-
22
- // 初始化查询结构
23
- var initLocalization = function initLocalization(props) {
24
- var _globalQuery$filters, _globalQuery$filters$, _fuzzyQuery$filters, _fuzzyQuery$filters$, _filterQuery$filters, _filterQuery$filters$;
25
-
26
- var localization = props.localization,
27
- dataSource = props.dataSource,
28
- searchKey = props.searchKey,
29
- searchConfig = props.searchConfig,
30
- customOptions = props.customOptions;
31
- var globalQuery = localization.globalQuery,
32
- filterQuery = localization.filterQuery,
33
- fuzzyQuery = localization.fuzzyQuery;
34
- var basicFilter = (localization === null || localization === void 0 ? void 0 : localization.basicFilter) || {};
35
- var basicQuery = {}; // 存储查询结构
36
-
37
- var isFuzzy = Array.isArray(searchKey); // 数组时为模糊搜索结构
38
-
39
- var searchFilter = (localization === null || localization === void 0 ? void 0 : localization.fuzzyFilter) || {};
40
- var searchQuery = {}; // 模糊查询结构
41
-
42
- var customFilter = (customOptions === null || customOptions === void 0 ? void 0 : customOptions.find(function (v) {
43
- var _localization$customF;
44
-
45
- return (v === null || v === void 0 ? void 0 : v.value) === (localization === null || localization === void 0 ? void 0 : (_localization$customF = localization.customFilter) === null || _localization$customF === void 0 ? void 0 : _localization$customF.value);
46
- })) || {};
47
- var customQuery = {}; // 自定义筛选存储结构
48
- // 一级查询
49
-
50
- if (globalQuery === null || globalQuery === void 0 ? void 0 : (_globalQuery$filters = globalQuery.filters) === null || _globalQuery$filters === void 0 ? void 0 : (_globalQuery$filters$ = _globalQuery$filters[0]) === null || _globalQuery$filters$ === void 0 ? void 0 : _globalQuery$filters$.conditions) {
51
- var _globalQuery$filters2, _globalQuery$filters3;
52
-
53
- var globalQueryArr = (globalQuery === null || globalQuery === void 0 ? void 0 : (_globalQuery$filters2 = globalQuery.filters) === null || _globalQuery$filters2 === void 0 ? void 0 : (_globalQuery$filters3 = _globalQuery$filters2[0]) === null || _globalQuery$filters3 === void 0 ? void 0 : _globalQuery$filters3.conditions) || [];
54
- customQuery = globalQueryArr.reduce(function (pre, cur) {
55
- var checkedValue = cur.value; // 选中的数据
56
- // 查找该数据是否展示
57
-
58
- if ((0, _utils.getIsHas)(checkedValue)) {
59
- pre[cur.fieldName] = cur;
60
- }
61
-
62
- return pre;
63
- }, {});
64
- } // 模糊查询
65
-
66
-
67
- if ((0, _utils.getIsHas)(searchFilter)) {
68
- var _Object$keys;
69
-
70
- searchQuery = (_Object$keys = Object.keys(searchFilter)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.reduce(function (pre, cur) {
71
- if ((0, _utils.getIsHas)(searchFilter[cur])) {
72
- pre[cur] = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, searchConfig), {}, {
73
- fieldName: cur,
74
- value: [searchFilter[cur]]
75
- });
76
- }
77
-
78
- return pre;
79
- }, {});
80
- } else if (fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : (_fuzzyQuery$filters = fuzzyQuery.filters) === null || _fuzzyQuery$filters === void 0 ? void 0 : (_fuzzyQuery$filters$ = _fuzzyQuery$filters[0]) === null || _fuzzyQuery$filters$ === void 0 ? void 0 : _fuzzyQuery$filters$.conditions) {
81
- var _fuzzyQuery$filters2, _fuzzyQuery$filters2$;
82
-
83
- var fuzzyQueryArr = (fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : (_fuzzyQuery$filters2 = fuzzyQuery.filters) === null || _fuzzyQuery$filters2 === void 0 ? void 0 : (_fuzzyQuery$filters2$ = _fuzzyQuery$filters2[0]) === null || _fuzzyQuery$filters2$ === void 0 ? void 0 : _fuzzyQuery$filters2$.conditions) || []; // 初始化基础查询缓存
84
-
85
- searchFilter = fuzzyQueryArr.reduce(function (pre, cur) {
86
- var checkedValue = cur.value; // 选中的数据
87
-
88
- if ((0, _utils.getIsHas)(checkedValue)) {
89
- searchQuery[cur.fieldName] = cur;
90
- pre[cur.fieldName] = checkedValue[0];
91
- }
92
-
93
- return pre;
94
- }, {});
95
- } // 二级查询
96
-
97
-
98
- if ((0, _utils.getIsHas)(basicFilter)) {
99
- var _Object$keys2;
100
-
101
- basicQuery = (_Object$keys2 = Object.keys(basicFilter)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.reduce(function (pre, cur) {
102
- var item = dataSource.find(function (v) {
103
- if (cur === v.field) {
104
- return v.show || typeof v.show !== 'boolean';
105
- }
106
-
107
- return false;
108
- });
109
-
110
- if (!isFuzzy && cur === searchKey) {
111
- item = {
112
- field: searchKey,
113
- operator: 'contains',
114
- fieldType: 'string'
115
- };
116
- }
117
-
118
- if ((0, _utils.getIsHas)(basicFilter[cur]) && !!item) {
119
- var _item, _item2;
120
-
121
- pre[cur] = {
122
- fieldName: cur,
123
- fieldType: ((_item = item) === null || _item === void 0 ? void 0 : _item.valueType) || 'string',
124
- value: Array.isArray(basicFilter[cur]) ? basicFilter[cur] : [basicFilter[cur]],
125
- operator: ((_item2 = item) === null || _item2 === void 0 ? void 0 : _item2.operator) || 'equal'
126
- };
127
- }
128
-
129
- return pre;
130
- }, {});
131
- } else if (filterQuery === null || filterQuery === void 0 ? void 0 : (_filterQuery$filters = filterQuery.filters) === null || _filterQuery$filters === void 0 ? void 0 : (_filterQuery$filters$ = _filterQuery$filters[0]) === null || _filterQuery$filters$ === void 0 ? void 0 : _filterQuery$filters$.conditions) {
132
- var _filterQuery$filters2, _filterQuery$filters3;
133
-
134
- var filterQueryArr = (filterQuery === null || filterQuery === void 0 ? void 0 : (_filterQuery$filters2 = filterQuery.filters) === null || _filterQuery$filters2 === void 0 ? void 0 : (_filterQuery$filters3 = _filterQuery$filters2[0]) === null || _filterQuery$filters3 === void 0 ? void 0 : _filterQuery$filters3.conditions) || []; // 初始化基础查询缓存
135
-
136
- basicFilter = filterQueryArr.reduce(function (pre, cur) {
137
- var checkedValue = cur.value; // 选中的数据
138
- // 是否搜索框
139
-
140
- var isSearchInput = cur.fieldName === searchKey; // 查找该数据是否展示
141
-
142
- var someData = dataSource.some(function (v) {
143
- if (cur.fieldName === v.field) {
144
- return v.show || typeof v.show !== 'boolean';
145
- }
146
-
147
- return false;
148
- });
149
-
150
- if ((0, _utils.getIsHas)(checkedValue) && someData || isSearchInput) {
151
- basicQuery[cur.fieldName] = cur; // 复选/级联/日期区间
152
-
153
- if (!['checkbox', 'cascader'].includes(cur.type) && checkedValue.length < 2) {
154
- checkedValue = checkedValue[0];
155
- }
156
-
157
- pre[cur.fieldName] = checkedValue;
158
- }
159
-
160
- return pre;
161
- }, {});
162
- }
163
-
164
- return {
165
- searchFilter: searchFilter,
166
- searchQuery: searchQuery,
167
- basicFilter: basicFilter,
168
- basicQuery: basicQuery,
169
- customFilter: customFilter,
170
- customQuery: customQuery
171
- };
172
- }; // 核心参数集合
173
-
174
-
175
- exports.initLocalization = initLocalization;
176
-
177
- var useCoreOptions = function useCoreOptions(_ref) {
178
- var state = _ref.state,
179
- dispatch = _ref.dispatch,
180
- props = _ref.props;
181
- var onChange = props.onChange,
182
- dataSource = props.dataSource,
183
- searchKey = props.searchKey,
184
- searchConfig = props.searchConfig,
185
- customOptions = props.customOptions; // 转换一级查询结构 object => array
186
-
187
- var tranformGlobalQuery = (0, _react.useCallback)(function (obj) {
188
- var _Object$keys3;
189
-
190
- var nArr = ((_Object$keys3 = Object.keys(obj)) === null || _Object$keys3 === void 0 ? void 0 : _Object$keys3.reduce(function (pre, cur) {
191
- var item = dataSource.find(function (v) {
192
- return cur === v.field;
193
- });
194
- var itemValue = obj[cur].value;
195
-
196
- if ((0, _utils.getIsHas)(itemValue) && !!item) {
197
- return [].concat((0, _toConsumableArray2.default)(pre), [{
198
- fieldName: cur,
199
- fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
200
- type: item.type,
201
- value: Array.isArray(itemValue) ? itemValue : [itemValue],
202
- operator: obj[cur].mode === 'and' ? 'equal' : 'contains'
203
- }]);
204
- }
205
-
206
- return pre;
207
- }, [])) || [];
208
- return nArr;
209
- }, [dataSource]); // 转行查询结构
210
-
211
- var tranformQuery = (0, _react.useCallback)(function (_ref2) {
212
- var _Object$keys4, _Object$keys5;
213
-
214
- var _ref2$customFilter = _ref2.customFilter,
215
- customFilter = _ref2$customFilter === void 0 ? {} : _ref2$customFilter,
216
- _ref2$searchQuery = _ref2.searchQuery,
217
- searchQuery = _ref2$searchQuery === void 0 ? {} : _ref2$searchQuery,
218
- _ref2$basicQuery = _ref2.basicQuery,
219
- basicQuery = _ref2$basicQuery === void 0 ? {} : _ref2$basicQuery;
220
- var globalQuery = {
221
- filters: [{
222
- conditions: tranformGlobalQuery(customFilter === null || customFilter === void 0 ? void 0 : customFilter.data)
223
- }]
224
- };
225
- var fuzzyQuery = {
226
- filters: [{
227
- conditions: (_Object$keys4 = Object.keys(searchQuery)) === null || _Object$keys4 === void 0 ? void 0 : _Object$keys4.map(function (k) {
228
- return searchQuery[k];
229
- })
230
- }]
231
- };
232
- var filterQuery = {
233
- filters: [{
234
- conditions: (_Object$keys5 = Object.keys(basicQuery)) === null || _Object$keys5 === void 0 ? void 0 : _Object$keys5.map(function (k) {
235
- return basicQuery[k];
236
- })
237
- }]
238
- };
239
- return {
240
- globalQuery: globalQuery,
241
- fuzzyQuery: fuzzyQuery,
242
- filterQuery: filterQuery
243
- };
244
- }, [tranformGlobalQuery]); // 触发查询 type basic基础筛选 | complex高级筛选
245
-
246
- var onQuery = (0, _react.useCallback)(function () {
247
- var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
248
- _ref3$complexFilter = _ref3.complexFilter,
249
- complexFilter = _ref3$complexFilter === void 0 ? {} : _ref3$complexFilter,
250
- _ref3$type = _ref3.type,
251
- type = _ref3$type === void 0 ? 'basic' : _ref3$type,
252
- _ref3$basicFilter = _ref3.basicFilter,
253
- basicFilter = _ref3$basicFilter === void 0 ? state.basicFilter || {} : _ref3$basicFilter,
254
- _ref3$basicQuery = _ref3.basicQuery,
255
- basicQuery = _ref3$basicQuery === void 0 ? state.basicQuery || {} : _ref3$basicQuery,
256
- _ref3$searchFilter = _ref3.searchFilter,
257
- searchFilter = _ref3$searchFilter === void 0 ? state.searchFilter || {} : _ref3$searchFilter,
258
- _ref3$searchQuery = _ref3.searchQuery,
259
- searchQuery = _ref3$searchQuery === void 0 ? state.searchQuery || {} : _ref3$searchQuery,
260
- _ref3$customFilter = _ref3.customFilter,
261
- customFilter = _ref3$customFilter === void 0 ? state.customFilter || {} : _ref3$customFilter;
262
-
263
- if (type === 'custom') {
264
- dispatch({
265
- type: 'changeCustomFilter',
266
- customFilter: customFilter
267
- });
268
-
269
- var _tranformQuery = tranformQuery({
270
- customFilter: customFilter,
271
- searchQuery: searchQuery,
272
- basicQuery: basicQuery
273
- }),
274
- globalQuery = _tranformQuery.globalQuery,
275
- fuzzyQuery = _tranformQuery.fuzzyQuery,
276
- filterQuery = _tranformQuery.filterQuery;
277
-
278
- onChange === null || onChange === void 0 ? void 0 : onChange({
279
- fuzzyFilter: searchFilter,
280
- fuzzyQuery: fuzzyQuery,
281
- basicFilter: basicFilter,
282
- globalQuery: globalQuery,
283
- filterQuery: filterQuery,
284
- type: 'custom'
285
- });
286
- }
287
-
288
- if (type === 'search') {
289
- dispatch({
290
- type: 'changeSearchFilter',
291
- searchFilter: searchFilter
292
- });
293
- dispatch({
294
- type: 'changeSearchQuery',
295
- searchQuery: searchQuery
296
- });
297
- dispatch({
298
- type: 'changeComplexFilter',
299
- complexFilter: {}
300
- }); // 基础筛选清空高级筛选
301
- // 抛出给外部查询
302
-
303
- var _tranformQuery2 = tranformQuery({
304
- customFilter: customFilter,
305
- searchQuery: searchQuery,
306
- basicQuery: basicQuery
307
- }),
308
- _globalQuery = _tranformQuery2.globalQuery,
309
- _fuzzyQuery = _tranformQuery2.fuzzyQuery,
310
- _filterQuery = _tranformQuery2.filterQuery;
311
-
312
- onChange === null || onChange === void 0 ? void 0 : onChange({
313
- fuzzyFilter: searchFilter,
314
- basicFilter: basicFilter,
315
- fuzzyQuery: _fuzzyQuery,
316
- globalQuery: _globalQuery,
317
- filterQuery: _filterQuery,
318
- type: 'search'
319
- });
320
- }
321
-
322
- if (type === 'basic') {
323
- dispatch({
324
- type: 'changeBasicFilter',
325
- basicFilter: basicFilter
326
- });
327
- dispatch({
328
- type: 'changeBasicQuery',
329
- basicQuery: basicQuery
330
- });
331
- dispatch({
332
- type: 'changeComplexFilter',
333
- complexFilter: {}
334
- }); // 基础筛选清空高级筛选
335
- // 抛出给外部查询
336
-
337
- var _tranformQuery3 = tranformQuery({
338
- customFilter: customFilter,
339
- searchQuery: searchQuery,
340
- basicQuery: basicQuery
341
- }),
342
- _globalQuery2 = _tranformQuery3.globalQuery,
343
- _fuzzyQuery2 = _tranformQuery3.fuzzyQuery,
344
- _filterQuery2 = _tranformQuery3.filterQuery;
345
-
346
- onChange === null || onChange === void 0 ? void 0 : onChange({
347
- fuzzyFilter: searchFilter,
348
- basicFilter: basicFilter,
349
- fuzzyQuery: _fuzzyQuery2,
350
- globalQuery: _globalQuery2,
351
- filterQuery: _filterQuery2,
352
- type: 'basic'
353
- });
354
- }
355
-
356
- if (type === 'complex') {
357
- var _Object$keys6;
358
-
359
- // eslint-disable-next-line no-shadow
360
- var _basicQuery = (_Object$keys6 = Object.keys(complexFilter)) === null || _Object$keys6 === void 0 ? void 0 : _Object$keys6.reduce(function (pre, cur) {
361
- var item = dataSource.find(function (v) {
362
- return cur === v.field;
363
- });
364
- var itemValue = complexFilter[cur].value;
365
-
366
- if ((0, _utils.getIsHas)(itemValue) && !!item) {
367
- // eslint-disable-next-line no-param-reassign
368
- pre[cur] = {
369
- fieldName: cur,
370
- fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
371
- type: item.type,
372
- value: Array.isArray(itemValue) ? itemValue : [itemValue],
373
- operator: complexFilter[cur].mode === 'and' ? 'equal' : 'contains'
374
- };
375
- }
376
-
377
- return pre;
378
- }, {});
379
-
380
- dispatch({
381
- type: 'changeSearchFilter',
382
- searchFilter: {}
383
- });
384
- dispatch({
385
- type: 'changeSearchQuery',
386
- searchQuery: {}
387
- });
388
- dispatch({
389
- type: 'changeBasicFilter',
390
- basicFilter: {}
391
- });
392
- dispatch({
393
- type: 'changeComplexFilter',
394
- complexFilter: complexFilter
395
- });
396
- dispatch({
397
- type: 'changeComplexDrawer',
398
- complexDrawer: {
399
- data: {},
400
- visible: false
401
- }
402
- });
403
- dispatch({
404
- type: 'changeBasicQuery',
405
- basicQuery: _basicQuery
406
- });
407
-
408
- var _tranformQuery4 = tranformQuery({
409
- customFilter: customFilter,
410
- basicQuery: _basicQuery
411
- }),
412
- _globalQuery3 = _tranformQuery4.globalQuery,
413
- _filterQuery3 = _tranformQuery4.filterQuery;
414
-
415
- onChange === null || onChange === void 0 ? void 0 : onChange({
416
- complexFilter: complexFilter,
417
- globalQuery: _globalQuery3,
418
- filterQuery: _filterQuery3,
419
- type: type
420
- });
421
- }
422
-
423
- if (type === 'clear') {
424
- dispatch({
425
- type: 'reset'
426
- });
427
-
428
- var _tranformQuery5 = tranformQuery({
429
- customFilter: customFilter,
430
- searchQuery: searchQuery,
431
- basicQuery: basicQuery
432
- }),
433
- _globalQuery4 = _tranformQuery5.globalQuery,
434
- _fuzzyQuery3 = _tranformQuery5.fuzzyQuery,
435
- _filterQuery4 = _tranformQuery5.filterQuery;
436
-
437
- onChange === null || onChange === void 0 ? void 0 : onChange({
438
- fuzzyFilter: searchFilter,
439
- basicFilter: basicFilter,
440
- fuzzyQuery: _fuzzyQuery3,
441
- globalQuery: _globalQuery4,
442
- filterQuery: _filterQuery4,
443
- type: 'clear'
444
- });
445
- }
446
- }, [tranformQuery, state]); // 清除事件
447
-
448
- var onClearChange = (0, _react.useCallback)(function () {
449
- var _props$onClearChange;
450
-
451
- var params = {
452
- searchFilter: {},
453
- searchQuery: {},
454
- basicFilter: {},
455
- complexFilter: {},
456
- basicQuery: {},
457
- type: 'clear'
458
- };
459
- (_props$onClearChange = props.onClearChange) === null || _props$onClearChange === void 0 ? void 0 : _props$onClearChange.call(props, params);
460
- onQuery(params);
461
- }, [onQuery]); // 根据字段查找过滤的数据, 不存在时返回默认值
462
-
463
- var getFilterValue = (0, _react.useCallback)(function (_ref4) {
464
- var field = _ref4.field,
465
- type = _ref4.type;
466
-
467
- if ((0, _utils.getIsHas)(state.basicFilter[field])) {
468
- return state.basicFilter[field];
469
- }
470
-
471
- var defaultValue = (0, _utils.getValueForType)(type);
472
- return state.basicFilter[field] || defaultValue;
473
- }, [state.basicFilter]); // 获取查询结构
474
-
475
- var getFilterQuery = (0, _react.useCallback)(function () {
476
- var originData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : dataSource;
477
- var basicFilter = (0, _utils.getFilterShow)(state.basicFilter, originData);
478
- var basicQuery = (0, _utils.getFilterShow)(state.basicQuery, originData);
479
- dispatch({
480
- type: 'changeBasicFilter',
481
- basicFilter: basicFilter
482
- });
483
- dispatch({
484
- type: 'changeBasicQuery',
485
- basicQuery: basicQuery
486
- });
487
-
488
- var _tranformQuery6 = tranformQuery({
489
- customFilter: state.customFilter,
490
- searchQuery: state.searchQuery,
491
- basicQuery: basicQuery
492
- }),
493
- globalQuery = _tranformQuery6.globalQuery,
494
- fuzzyQuery = _tranformQuery6.fuzzyQuery,
495
- filterQuery = _tranformQuery6.filterQuery;
496
-
497
- return {
498
- fuzzyFilter: state.searchFilter,
499
- basicFilter: basicFilter,
500
- fuzzyQuery: fuzzyQuery,
501
- globalQuery: globalQuery,
502
- filterQuery: filterQuery,
503
- type: 'basic'
504
- };
505
- }, [state, dataSource]); // 设置筛选的值 itemValue => String || Array => ['', '', ...]
506
-
507
- var setFilterValue = (0, _react.useCallback)(function (itemValue, item) {
508
- var field = item.field;
509
-
510
- if (field) {
511
- // 基础查询数据(受控数据)
512
- var basicFilter = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.basicFilter), {}, (0, _defineProperty2.default)({}, field, itemValue)); // 外部查询数据结构
513
-
514
- var basicQuery = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.basicQuery), {}, (0, _defineProperty2.default)({}, field, {
515
- fieldName: field,
516
- fieldType: item.valueType || 'string',
517
- type: item.type,
518
- value: Array.isArray(itemValue) ? itemValue : [itemValue],
519
- operator: item.operator || 'equal'
520
- })); // 数据清除时不返回结构体
521
-
522
- if (!(0, _utils.getIsHas)(itemValue)) {
523
- delete basicFilter[field];
524
- delete basicQuery[field];
525
- } // 触发外部事件
526
-
527
-
528
- onQuery === null || onQuery === void 0 ? void 0 : onQuery({
529
- basicFilter: basicFilter,
530
- basicQuery: basicQuery,
531
- type: 'basic'
532
- });
533
- }
534
- }, [state]); // 单个设置过滤字段值, 会触发onChange事件, 多个字段时使用setLocalization
535
-
536
- var setFilterFieldValue = (0, _react.useCallback)(function (field, value) {
537
- var item = dataSource.find(function (v) {
538
- return v.fidld === field;
539
- }) || {};
540
- setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue(value, item);
541
- }, [dataSource]); // 读取缓存
542
-
543
- var setLocalization = (0, _react.useCallback)(function () {
544
- var localization = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : props.localization;
545
-
546
- var _initLocalization = initLocalization((0, _objectSpread4.default)((0, _objectSpread4.default)({}, props), {}, {
547
- localization: localization
548
- })),
549
- searchFilter = _initLocalization.searchFilter,
550
- searchQuery = _initLocalization.searchQuery,
551
- basicFilter = _initLocalization.basicFilter,
552
- basicQuery = _initLocalization.basicQuery,
553
- customFilter = _initLocalization.customFilter,
554
- customQuery = _initLocalization.customQuery;
555
-
556
- dispatch({
557
- type: 'changeSearchFilter',
558
- searchFilter: searchFilter
559
- });
560
- dispatch({
561
- type: 'changeSearchQuery',
562
- searchQuery: searchQuery
563
- });
564
- dispatch({
565
- type: 'changeBasicFilter',
566
- basicFilter: basicFilter
567
- });
568
- dispatch({
569
- type: 'changeBasicQuery',
570
- basicQuery: basicQuery
571
- });
572
- dispatch({
573
- type: 'changeCustomFilter',
574
- customFilter: customFilter
575
- });
576
- dispatch({
577
- type: 'changeCustomQuery',
578
- customQuery: customQuery
579
- });
580
- }, [props]); // 模糊查询结构
581
-
582
- var setSearchFilter = (0, _react.useCallback)(function (itemValue, item) {
583
- var searchFilter = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
584
- pre[cur] = itemValue;
585
- return pre;
586
- }, (0, _objectSpread4.default)({}, state.searchFilter));
587
- var searchQuery = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
588
- pre[cur] = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, searchConfig), {}, {
589
- fieldName: cur,
590
- value: [itemValue]
591
- });
592
- return pre;
593
- }, (0, _objectSpread4.default)({}, state.searchQuery)); // 数据清除时不返回结构体
594
-
595
- if (!(0, _utils.getIsHas)(itemValue)) {
596
- searchFilter = {};
597
- searchQuery = {};
598
- }
599
-
600
- onQuery({
601
- searchFilter: searchFilter,
602
- searchQuery: searchQuery,
603
- type: 'search'
604
- });
605
- }, [searchKey, state]); // 自定义筛选查询
606
-
607
- var setCustomFilter = (0, _react.useCallback)(function (val) {
608
- var customFilter = customOptions.find(function (v) {
609
- return v.value === val;
610
- });
611
- onQuery({
612
- customFilter: customFilter,
613
- type: 'custom'
614
- });
615
- }, [customOptions, state.basicFilter]); // 组件内部使用
616
-
617
- var CoreMethods = {
618
- onQuery: onQuery,
619
- setCustomFilter: setCustomFilter,
620
- setSearchFilter: setSearchFilter
621
- }; // 参与Ref转发
622
-
623
- var RefMethods = {
624
- getState: function getState() {
625
- return state;
626
- },
627
- getBasicFilter: function getBasicFilter() {
628
- return state.basicFilter;
629
- },
630
- getFilterValue: getFilterValue,
631
- getFilterQuery: getFilterQuery,
632
- setFilterValue: setFilterValue,
633
- setFilterFieldValue: setFilterFieldValue,
634
- setLocalization: setLocalization,
635
- onClearChange: onClearChange
636
- };
637
- return {
638
- CoreMethods: CoreMethods,
639
- RefMethods: RefMethods
640
- };
641
- };
642
-
643
- var _default = useCoreOptions;
644
- exports.default = _default;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _useDelayedFn = require("./useDelayedFn");
8
-
9
- Object.keys(_useDelayedFn).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _useDelayedFn[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _useDelayedFn[key];
16
- }
17
- });
18
- });
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useDelayedFn = exports.default = void 0;
7
-
8
- var _react = require("react");
9
-
10
- var _lodash = require("lodash");
11
-
12
- // 延迟/防抖加载函数, 默认延迟200ms
13
- var useDelayedFn = function useDelayedFn() {
14
- var wait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
15
- var delayedQuery = (0, _react.useCallback)((0, _lodash.debounce)(function (fn) {
16
- typeof fn === 'function' ? fn === null || fn === void 0 ? void 0 : fn() : fn;
17
- }, wait), []); // 防止异步任务数导致的内存泄漏
18
-
19
- (0, _react.useEffect)(function () {
20
- return function () {
21
- delayedQuery.cancel();
22
- };
23
- }, []);
24
- return delayedQuery;
25
- };
26
-
27
- exports.useDelayedFn = useDelayedFn;
28
- var _default = useDelayedFn;
29
- exports.default = _default;