@qsxy/element-plus-react 1.0.3 → 2.0.0

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 (483) hide show
  1. package/dist/Affix/Affix.d.ts +4 -0
  2. package/dist/Affix/Affix.js +301 -0
  3. package/dist/Affix/index.d.ts +2 -0
  4. package/dist/Affix/index.js +1 -0
  5. package/dist/Affix/typings.d.ts +50 -0
  6. package/dist/Affix/typings.js +1 -0
  7. package/dist/Alert/typings.d.ts +1 -1
  8. package/dist/Anchor/Anchor.d.ts +6 -0
  9. package/dist/Anchor/Anchor.js +258 -0
  10. package/dist/Anchor/AnchorLink.d.ts +4 -0
  11. package/dist/Anchor/AnchorLink.js +77 -0
  12. package/dist/Anchor/element.d.ts +4 -0
  13. package/dist/Anchor/element.js +17 -0
  14. package/dist/Anchor/index.d.ts +3 -0
  15. package/dist/Anchor/index.js +2 -0
  16. package/dist/Anchor/typings.d.ts +101 -0
  17. package/dist/Anchor/typings.js +1 -0
  18. package/dist/Backtop/Backtop.d.ts +7 -0
  19. package/dist/Backtop/Backtop.js +153 -0
  20. package/dist/Backtop/index.d.ts +2 -0
  21. package/dist/Backtop/index.js +1 -0
  22. package/dist/Backtop/typings.d.ts +31 -0
  23. package/dist/Backtop/typings.js +1 -0
  24. package/dist/Button/Button.d.ts +2 -11
  25. package/dist/Button/Button.js +2 -6
  26. package/dist/Button/index.d.ts +1 -1
  27. package/dist/Calendar/Calendar.js +12 -8
  28. package/dist/Calendar/YearRangePanel.js +1 -1
  29. package/dist/Carousel/typings.d.ts +1 -1
  30. package/dist/Cascader/Cascader.d.ts +3 -3
  31. package/dist/Cascader/Cascader.js +238 -166
  32. package/dist/Cascader/CascaderContext.d.ts +9 -3
  33. package/dist/Cascader/CascaderContext.js +3 -1
  34. package/dist/Cascader/CascaderDropdown.d.ts +4 -3
  35. package/dist/Cascader/CascaderDropdown.js +21 -10
  36. package/dist/Cascader/CascaderMenu.d.ts +2 -2
  37. package/dist/Cascader/CascaderMenu.js +56 -14
  38. package/dist/Cascader/CascaderPanel.d.ts +4 -0
  39. package/dist/Cascader/CascaderPanel.js +11 -0
  40. package/dist/Cascader/index.d.ts +4 -1
  41. package/dist/Cascader/index.js +2 -1
  42. package/dist/Cascader/typings.d.ts +45 -31
  43. package/dist/Cascader/useCascader.d.ts +14 -13
  44. package/dist/Cascader/useCascader.js +120 -27
  45. package/dist/CheckboxGroup/CheckboxGroup.d.ts +11 -1
  46. package/dist/CheckboxGroup/CheckboxGroup.js +78 -19
  47. package/dist/Collapse/Collapse.d.ts +3 -3
  48. package/dist/Collapse/Collapse.js +71 -16
  49. package/dist/Collapse/CollapseContext.d.ts +3 -6
  50. package/dist/Collapse/CollapseContext.js +2 -4
  51. package/dist/Collapse/CollapseItem.d.ts +3 -3
  52. package/dist/Collapse/CollapseItem.js +93 -51
  53. package/dist/Collapse/CollapseTransition.js +11 -7
  54. package/dist/Collapse/index.d.ts +1 -1
  55. package/dist/Collapse/typings.d.ts +20 -5
  56. package/dist/ColorPicker/typings.d.ts +1 -1
  57. package/dist/Countdown/Countdown.d.ts +4 -0
  58. package/dist/Countdown/Countdown.js +121 -0
  59. package/dist/Countdown/index.d.ts +2 -0
  60. package/dist/Countdown/index.js +1 -0
  61. package/dist/Countdown/typings.d.ts +52 -0
  62. package/dist/Countdown/typings.js +1 -0
  63. package/dist/Countdown/util.d.ts +14 -0
  64. package/dist/Countdown/util.js +58 -0
  65. package/dist/DatePicker/DatePicker.js +9 -6
  66. package/dist/DatePicker/DateRangePicker.js +7 -6
  67. package/dist/DatePicker/typings.d.ts +0 -13
  68. package/dist/DateTimePicker/DateTimePicker.js +29 -19
  69. package/dist/Dialog/Dialog.d.ts +2 -13
  70. package/dist/Dialog/Dialog.js +139 -149
  71. package/dist/Dialog/DialogBody.js +3 -38
  72. package/dist/Dialog/DialogContext.d.ts +0 -7
  73. package/dist/Dialog/DialogContext.js +1 -5
  74. package/dist/Dialog/DialogHeader.js +2 -2
  75. package/dist/Dialog/typings.d.ts +43 -28
  76. package/dist/Dialog/useDraggable.d.ts +2 -1
  77. package/dist/Dialog/useDraggable.js +34 -9
  78. package/dist/Drawer/Drawer.d.ts +2 -13
  79. package/dist/Drawer/Drawer.js +115 -137
  80. package/dist/Drawer/DrawerBody.js +7 -8
  81. package/dist/Drawer/DrawerFooter.js +7 -7
  82. package/dist/Drawer/DrawerHeader.js +11 -8
  83. package/dist/Drawer/typings.d.ts +22 -6
  84. package/dist/Dropdown/Dropdown.js +5 -3
  85. package/dist/Dropdown/typings.d.ts +2 -1
  86. package/dist/Empty/Empty.js +16 -4
  87. package/dist/Form/Form.d.ts +4 -21
  88. package/dist/Form/Form.js +53 -25
  89. package/dist/Form/FormItem.d.ts +4 -52
  90. package/dist/Form/FormItem.js +633 -650
  91. package/dist/Form/FormItemContext.d.ts +10 -1
  92. package/dist/Form/FormItemContext.js +9 -1
  93. package/dist/Form/FormLabelWrap.d.ts +8 -0
  94. package/dist/Form/FormLabelWrap.js +103 -0
  95. package/dist/Form/{FieldContext.d.ts → InternalFormContext.d.ts} +2 -2
  96. package/dist/Form/{FieldContext.js → InternalFormContext.js} +5 -2
  97. package/dist/Form/List.d.ts +3 -3
  98. package/dist/Form/List.js +4 -4
  99. package/dist/Form/index.d.ts +4 -2
  100. package/dist/Form/index.js +4 -1
  101. package/dist/Form/typings.d.ts +61 -9
  102. package/dist/Form/typings.js +15 -1
  103. package/dist/Form/useForm.js +3 -3
  104. package/dist/Form/useWatch.js +1 -1
  105. package/dist/Input/Input.d.ts +2 -14
  106. package/dist/Input/Input.js +122 -100
  107. package/dist/Input/InputGroup.js +1 -1
  108. package/dist/Input/InputRange.js +7 -11
  109. package/dist/Input/TextArea.d.ts +1 -1
  110. package/dist/Input/TextArea.js +84 -29
  111. package/dist/Input/index.d.ts +1 -0
  112. package/dist/Input/index.js +2 -1
  113. package/dist/Input/typings.d.ts +3 -25
  114. package/dist/InputNumber/InputNumber.js +74 -23
  115. package/dist/InputNumber/typings.d.ts +0 -4
  116. package/dist/Menu/Menu.js +1 -1
  117. package/dist/Menu/typings.d.ts +3 -13
  118. package/dist/Message/index.js +5 -3
  119. package/dist/MessageBox/MessageBox.js +29 -33
  120. package/dist/MessageBox/typings.d.ts +0 -1
  121. package/dist/Notification/typings.d.ts +1 -1
  122. package/dist/PageHeader/PageHeader.d.ts +8 -0
  123. package/dist/PageHeader/PageHeader.js +91 -0
  124. package/dist/PageHeader/index.d.ts +2 -0
  125. package/dist/PageHeader/index.js +1 -0
  126. package/dist/PageHeader/typings.d.ts +34 -0
  127. package/dist/PageHeader/typings.js +1 -0
  128. package/dist/Pagination/typings.d.ts +1 -1
  129. package/dist/Popover/Popover.js +7 -7
  130. package/dist/Popover/typings.d.ts +3 -3
  131. package/dist/Popper/Popper.js +49 -28
  132. package/dist/Popper/popperOptions.js +1 -0
  133. package/dist/Popper/typings.d.ts +2 -0
  134. package/dist/Radio/Radio.d.ts +2 -12
  135. package/dist/Radio/Radio.js +2 -6
  136. package/dist/Radio/RadioButton.d.ts +1 -1
  137. package/dist/Radio/RadioButton.js +4 -4
  138. package/dist/Radio/index.d.ts +1 -0
  139. package/dist/Radio/index.js +2 -1
  140. package/dist/Radio/typings.d.ts +1 -1
  141. package/dist/RadioGroup/RadioGroup.js +44 -16
  142. package/dist/RadioGroup/typings.d.ts +10 -0
  143. package/dist/Segmented/Segmented.d.ts +4 -0
  144. package/dist/Segmented/Segmented.js +208 -0
  145. package/dist/Segmented/index.d.ts +2 -0
  146. package/dist/Segmented/index.js +1 -0
  147. package/dist/Segmented/typings.d.ts +20 -0
  148. package/dist/Segmented/typings.js +5 -0
  149. package/dist/Select/SelectCore.js +52 -9
  150. package/dist/Select/typings.d.ts +13 -8
  151. package/dist/Select/useSelect.d.ts +23 -9
  152. package/dist/Select/useSelect.js +55 -8
  153. package/dist/Skeleton/typings.d.ts +1 -1
  154. package/dist/Slider/Button.d.ts +4 -0
  155. package/dist/Slider/Button.js +96 -0
  156. package/dist/Slider/Marker.d.ts +4 -0
  157. package/dist/Slider/Marker.js +31 -0
  158. package/dist/Slider/Slider.d.ts +4 -0
  159. package/dist/Slider/Slider.js +263 -0
  160. package/dist/Slider/SliderContext.d.ts +3 -0
  161. package/dist/Slider/SliderContext.js +2 -0
  162. package/dist/Slider/hooks/index.d.ts +5 -0
  163. package/dist/Slider/hooks/index.js +5 -0
  164. package/dist/Slider/hooks/useLifecycle.d.ts +5 -0
  165. package/dist/Slider/hooks/useLifecycle.js +50 -0
  166. package/dist/Slider/hooks/useMarks.d.ts +2 -0
  167. package/dist/Slider/hooks/useMarks.js +49 -0
  168. package/dist/Slider/hooks/useSlider.d.ts +38 -0
  169. package/dist/Slider/hooks/useSlider.js +227 -0
  170. package/dist/Slider/hooks/useSliderButton.d.ts +28 -0
  171. package/dist/Slider/hooks/useSliderButton.js +454 -0
  172. package/dist/Slider/hooks/useStops.d.ts +6 -0
  173. package/dist/Slider/hooks/useStops.js +47 -0
  174. package/dist/Slider/hooks/useWatch.d.ts +3 -0
  175. package/dist/Slider/hooks/useWatch.js +119 -0
  176. package/dist/Slider/index.d.ts +2 -0
  177. package/dist/Slider/index.js +1 -0
  178. package/dist/Slider/style/css.d.ts +1 -0
  179. package/dist/Slider/style/css.js +1 -0
  180. package/dist/Slider/style/index.d.ts +1 -0
  181. package/dist/Slider/style/index.js +1 -0
  182. package/dist/Slider/typings.d.ts +122 -0
  183. package/dist/Slider/typings.js +1 -0
  184. package/dist/Space/Space.js +9 -12
  185. package/dist/Space/useSpace.js +2 -1
  186. package/dist/Statistic/Statistic.js +1 -2
  187. package/dist/Steps/Step.d.ts +4 -0
  188. package/dist/Steps/Step.js +247 -0
  189. package/dist/Steps/Steps.d.ts +5 -0
  190. package/dist/Steps/Steps.js +116 -0
  191. package/dist/Steps/index.d.ts +3 -0
  192. package/dist/Steps/index.js +2 -0
  193. package/dist/Steps/typings.d.ts +119 -0
  194. package/dist/Steps/typings.js +1 -0
  195. package/dist/Switch/typings.d.ts +0 -1
  196. package/dist/Table/Table.js +14 -14
  197. package/dist/Table/TableBody.js +4 -4
  198. package/dist/Table/TableCell.js +53 -28
  199. package/dist/Table/TableColumn.d.ts +2 -2
  200. package/dist/Table/TableHeader.js +2 -2
  201. package/dist/Table/TableHeaderCell.js +2 -2
  202. package/dist/Table/hooks/useResize.js +0 -2
  203. package/dist/Table/hooks/useTable.d.ts +1 -1
  204. package/dist/Table/hooks/useTable.js +15 -10
  205. package/dist/Table/typings.d.ts +26 -12
  206. package/dist/Table/util.d.ts +1 -1
  207. package/dist/Table/util.js +8 -65
  208. package/dist/TableV2/index.d.ts +10 -0
  209. package/dist/TableV2/index.js +7 -0
  210. package/dist/TableV2/src/auto-resizer.d.ts +14 -0
  211. package/dist/TableV2/src/auto-resizer.js +1 -0
  212. package/dist/TableV2/src/cell.d.ts +21 -0
  213. package/dist/TableV2/src/cell.js +1 -0
  214. package/dist/TableV2/src/components/auto-resizer.d.ts +4 -0
  215. package/dist/TableV2/src/components/auto-resizer.js +32 -0
  216. package/dist/TableV2/src/components/cell.d.ts +4 -0
  217. package/dist/TableV2/src/components/cell.js +22 -0
  218. package/dist/TableV2/src/components/expand-icon.d.ts +12 -0
  219. package/dist/TableV2/src/components/expand-icon.js +29 -0
  220. package/dist/TableV2/src/components/header-cell.d.ts +4 -0
  221. package/dist/TableV2/src/components/header-cell.js +23 -0
  222. package/dist/TableV2/src/components/header-row.d.ts +17 -0
  223. package/dist/TableV2/src/components/header-row.js +41 -0
  224. package/dist/TableV2/src/components/header.d.ts +20 -0
  225. package/dist/TableV2/src/components/header.js +103 -0
  226. package/dist/TableV2/src/components/index.d.ts +10 -0
  227. package/dist/TableV2/src/components/index.js +7 -0
  228. package/dist/TableV2/src/components/row.d.ts +19 -0
  229. package/dist/TableV2/src/components/row.js +206 -0
  230. package/dist/TableV2/src/components/sort-icon.d.ts +9 -0
  231. package/dist/TableV2/src/components/sort-icon.js +14 -0
  232. package/dist/TableV2/src/composables/index.d.ts +6 -0
  233. package/dist/TableV2/src/composables/index.js +6 -0
  234. package/dist/TableV2/src/composables/use-auto-resize.d.ts +7 -0
  235. package/dist/TableV2/src/composables/use-auto-resize.js +55 -0
  236. package/dist/TableV2/src/composables/use-columns.d.ts +21 -0
  237. package/dist/TableV2/src/composables/use-columns.js +119 -0
  238. package/dist/TableV2/src/composables/use-data.d.ts +15 -0
  239. package/dist/TableV2/src/composables/use-data.js +62 -0
  240. package/dist/TableV2/src/composables/use-row.d.ts +34 -0
  241. package/dist/TableV2/src/composables/use-row.js +191 -0
  242. package/dist/TableV2/src/composables/use-scrollbar.d.ts +25 -0
  243. package/dist/TableV2/src/composables/use-scrollbar.js +117 -0
  244. package/dist/TableV2/src/composables/use-styles.d.ts +23 -0
  245. package/dist/TableV2/src/composables/use-styles.js +90 -0
  246. package/dist/TableV2/src/composables/utils.d.ts +3 -0
  247. package/dist/TableV2/src/composables/utils.js +29 -0
  248. package/dist/TableV2/src/constants.d.ts +18 -0
  249. package/dist/TableV2/src/constants.js +22 -0
  250. package/dist/TableV2/src/grid.d.ts +52 -0
  251. package/dist/TableV2/src/grid.js +1 -0
  252. package/dist/TableV2/src/header-cell.d.ts +13 -0
  253. package/dist/TableV2/src/header-cell.js +1 -0
  254. package/dist/TableV2/src/header-row.d.ts +10 -0
  255. package/dist/TableV2/src/header-row.js +1 -0
  256. package/dist/TableV2/src/header.d.ts +15 -0
  257. package/dist/TableV2/src/header.js +1 -0
  258. package/dist/TableV2/src/private.d.ts +1 -0
  259. package/dist/TableV2/src/private.js +1 -0
  260. package/dist/TableV2/src/renderers/cell.d.ts +14 -0
  261. package/dist/TableV2/src/renderers/cell.js +120 -0
  262. package/dist/TableV2/src/renderers/empty.d.ts +7 -0
  263. package/dist/TableV2/src/renderers/empty.js +11 -0
  264. package/dist/TableV2/src/renderers/footer.d.ts +7 -0
  265. package/dist/TableV2/src/renderers/footer.js +9 -0
  266. package/dist/TableV2/src/renderers/header-cell.d.ts +13 -0
  267. package/dist/TableV2/src/renderers/header-cell.js +92 -0
  268. package/dist/TableV2/src/renderers/header.d.ts +9 -0
  269. package/dist/TableV2/src/renderers/header.js +39 -0
  270. package/dist/TableV2/src/renderers/left-table.d.ts +32 -0
  271. package/dist/TableV2/src/renderers/left-table.js +15 -0
  272. package/dist/TableV2/src/renderers/main-table.d.ts +31 -0
  273. package/dist/TableV2/src/renderers/main-table.js +12 -0
  274. package/dist/TableV2/src/renderers/overlay.d.ts +3 -0
  275. package/dist/TableV2/src/renderers/overlay.js +9 -0
  276. package/dist/TableV2/src/renderers/right-table.d.ts +31 -0
  277. package/dist/TableV2/src/renderers/right-table.js +15 -0
  278. package/dist/TableV2/src/renderers/row.d.ts +11 -0
  279. package/dist/TableV2/src/renderers/row.js +96 -0
  280. package/dist/TableV2/src/row.d.ts +51 -0
  281. package/dist/TableV2/src/row.js +1 -0
  282. package/dist/TableV2/src/table-grid.d.ts +43 -0
  283. package/dist/TableV2/src/table-grid.js +283 -0
  284. package/dist/TableV2/src/table-v2.d.ts +31 -0
  285. package/dist/TableV2/src/table-v2.js +311 -0
  286. package/dist/TableV2/src/table.d.ts +196 -0
  287. package/dist/TableV2/src/table.js +1 -0
  288. package/dist/TableV2/src/tokens.d.ts +11 -0
  289. package/dist/TableV2/src/tokens.js +6 -0
  290. package/dist/TableV2/src/types.d.ts +94 -0
  291. package/dist/TableV2/src/types.js +1 -0
  292. package/dist/TableV2/src/use-table.d.ts +48 -0
  293. package/dist/TableV2/src/use-table.js +197 -0
  294. package/dist/TableV2/src/utils.d.ts +5 -0
  295. package/dist/TableV2/src/utils.js +47 -0
  296. package/dist/Tabs/Tabs.js +1 -1
  297. package/dist/Tabs/typings.d.ts +1 -3
  298. package/dist/Tag/Tag.js +1 -1
  299. package/dist/TimePicker/TimePicker.js +6 -7
  300. package/dist/TimePicker/TimePickerPanel.js +12 -2
  301. package/dist/TimePicker/TimePickerRange.js +19 -8
  302. package/dist/Tooltip/Tooltip.js +31 -8
  303. package/dist/Tooltip/typings.d.ts +4 -0
  304. package/dist/Tour/Content.d.ts +9 -0
  305. package/dist/Tour/Content.js +81 -0
  306. package/dist/Tour/Mask.d.ts +12 -0
  307. package/dist/Tour/Mask.js +100 -0
  308. package/dist/Tour/Step.d.ts +7 -0
  309. package/dist/Tour/Step.js +119 -0
  310. package/dist/Tour/Tour.d.ts +6 -0
  311. package/dist/Tour/Tour.js +237 -0
  312. package/dist/Tour/context.d.ts +4 -0
  313. package/dist/Tour/context.js +9 -0
  314. package/dist/Tour/helper.d.ts +39 -0
  315. package/dist/Tour/helper.js +286 -0
  316. package/dist/Tour/index.d.ts +3 -0
  317. package/dist/Tour/index.js +2 -0
  318. package/dist/Tour/typings.d.ts +318 -0
  319. package/dist/Tour/typings.js +38 -0
  320. package/dist/Transfer/List.js +58 -59
  321. package/dist/Transfer/ListItem.d.ts +2 -2
  322. package/dist/Transfer/Transfer.d.ts +2 -2
  323. package/dist/Transfer/Transfer.js +84 -70
  324. package/dist/Transfer/index.d.ts +1 -1
  325. package/dist/Transfer/operation.js +8 -10
  326. package/dist/Transfer/typings/index.d.ts +49 -38
  327. package/dist/Transfer/typings/list.d.ts +11 -11
  328. package/dist/Transfer/typings/listBody.d.ts +2 -2
  329. package/dist/Transition/Transition.d.ts +1 -0
  330. package/dist/Transition/Transition.js +8 -7
  331. package/dist/Tree/Tree.js +1 -0
  332. package/dist/Tree/model/tree-store.js +4 -4
  333. package/dist/Tree/typings.d.ts +3 -1
  334. package/dist/TreeSelect/typings.d.ts +1 -1
  335. package/dist/TreeSelect/useSelect.d.ts +38 -85
  336. package/dist/TreeSelect/useSelect.js +1 -1
  337. package/dist/TreeSelect/useTree.d.ts +47 -52
  338. package/dist/TreeSelect/useTree.js +2 -2
  339. package/dist/Upload/UploadContent.js +1 -1
  340. package/dist/Upload/typings.d.ts +1 -1
  341. package/dist/Util/PopupManager.js +1 -1
  342. package/dist/Util/aria.d.ts +1 -1
  343. package/dist/Util/base.d.ts +33 -8
  344. package/dist/Util/base.js +44 -16
  345. package/dist/Util/easings.d.ts +1 -0
  346. package/dist/Util/easings.js +8 -0
  347. package/dist/Util/error.d.ts +3 -0
  348. package/dist/Util/error.js +39 -0
  349. package/dist/Util/icons.d.ts +2 -0
  350. package/dist/Util/icons.js +15 -0
  351. package/dist/Util/index.d.ts +6 -2
  352. package/dist/Util/index.js +6 -2
  353. package/dist/Util/position.d.ts +9 -0
  354. package/dist/Util/position.js +53 -0
  355. package/dist/Util/raf.d.ts +4 -0
  356. package/dist/Util/raf.js +10 -0
  357. package/dist/Util/scroll.d.ts +9 -0
  358. package/dist/Util/scroll.js +72 -0
  359. package/dist/Util/throttleByRaf.d.ts +4 -0
  360. package/dist/Util/throttleByRaf.js +21 -0
  361. package/dist/VirtualList/builders/build-grid.d.ts +5 -0
  362. package/dist/VirtualList/builders/build-grid.js +561 -0
  363. package/dist/VirtualList/builders/build-list.d.ts +7 -0
  364. package/dist/VirtualList/builders/build-list.js +408 -0
  365. package/dist/VirtualList/components/dynamic-size-grid.d.ts +15 -0
  366. package/dist/VirtualList/components/dynamic-size-grid.js +242 -0
  367. package/dist/VirtualList/components/dynamic-size-list.d.ts +7 -0
  368. package/dist/VirtualList/components/dynamic-size-list.js +186 -0
  369. package/dist/VirtualList/components/fixed-size-grid.d.ts +4 -0
  370. package/dist/VirtualList/components/fixed-size-grid.js +161 -0
  371. package/dist/VirtualList/components/fixed-size-list.d.ts +7 -0
  372. package/dist/VirtualList/components/fixed-size-list.js +103 -0
  373. package/dist/VirtualList/components/scrollbar.d.ts +5 -0
  374. package/dist/VirtualList/components/scrollbar.js +272 -0
  375. package/dist/VirtualList/defaults.d.ts +26 -0
  376. package/dist/VirtualList/defaults.js +24 -0
  377. package/dist/VirtualList/hooks/use-cache.d.ts +1 -0
  378. package/dist/VirtualList/hooks/use-cache.js +16 -0
  379. package/dist/VirtualList/hooks/use-grid-touch.d.ts +8 -0
  380. package/dist/VirtualList/hooks/use-grid-touch.js +58 -0
  381. package/dist/VirtualList/hooks/use-grid-wheel.d.ts +12 -0
  382. package/dist/VirtualList/hooks/use-grid-wheel.js +48 -0
  383. package/dist/VirtualList/hooks/use-wheel.d.ts +12 -0
  384. package/dist/VirtualList/hooks/use-wheel.js +41 -0
  385. package/dist/VirtualList/index.d.ts +9 -0
  386. package/dist/VirtualList/index.js +6 -0
  387. package/dist/VirtualList/props.d.ts +95 -0
  388. package/dist/VirtualList/props.js +42 -0
  389. package/dist/VirtualList/types.d.ts +151 -0
  390. package/dist/VirtualList/types.js +1 -0
  391. package/dist/VirtualList/utils.d.ts +11 -0
  392. package/dist/VirtualList/utils.js +56 -0
  393. package/dist/Watermark/Watermark.d.ts +4 -0
  394. package/dist/Watermark/Watermark.js +257 -0
  395. package/dist/Watermark/helper.d.ts +50 -0
  396. package/dist/Watermark/helper.js +253 -0
  397. package/dist/Watermark/index.d.ts +2 -0
  398. package/dist/Watermark/index.js +1 -0
  399. package/dist/Watermark/typings.d.ts +93 -0
  400. package/dist/Watermark/typings.js +1 -0
  401. package/dist/hooks/index.d.ts +1 -0
  402. package/dist/hooks/useClassNames.d.ts +1 -0
  403. package/dist/hooks/useClickOutside.js +25 -9
  404. package/dist/hooks/useCommonProps.d.ts +4 -0
  405. package/dist/hooks/useCommonProps.js +12 -3
  406. package/dist/hooks/useLockscreen.d.ts +6 -0
  407. package/dist/hooks/useLockscreen.js +45 -0
  408. package/dist/hooks/useResizeObserver.d.ts +1 -1
  409. package/dist/hooks/useResizeObserver.js +1 -1
  410. package/dist/index.css +1 -1
  411. package/dist/index.d.ts +33 -12
  412. package/dist/index.js +17 -6
  413. package/dist/locale/en.d.ts +4 -1
  414. package/dist/locale/en.js +4 -1
  415. package/dist/locale/zhCn.d.ts +4 -1
  416. package/dist/locale/zhCn.js +4 -1
  417. package/package.json +5 -3
  418. package/theme-chalk/affix.scss +7 -0
  419. package/theme-chalk/alert.scss +115 -115
  420. package/theme-chalk/anchor-link.scss +45 -0
  421. package/theme-chalk/anchor.scss +93 -0
  422. package/theme-chalk/backtop.scss +29 -0
  423. package/theme-chalk/breadcrumb-item.scss +58 -0
  424. package/theme-chalk/breadcrumb.scss +5 -61
  425. package/theme-chalk/cascader-panel.scss +57 -82
  426. package/theme-chalk/cascader.scss +206 -160
  427. package/theme-chalk/checkbox.scss +4 -0
  428. package/theme-chalk/collapse-item.scss +72 -0
  429. package/theme-chalk/collapse.scss +21 -76
  430. package/theme-chalk/common/popup.scss +47 -0
  431. package/theme-chalk/common/var.scss +62 -6
  432. package/theme-chalk/dialog.scss +145 -137
  433. package/theme-chalk/drawer.scss +252 -247
  434. package/theme-chalk/form-item.scss +437 -0
  435. package/theme-chalk/form.scss +23 -361
  436. package/theme-chalk/index.scss +17 -1
  437. package/theme-chalk/input/input.scss +19 -0
  438. package/theme-chalk/input-number.scss +179 -192
  439. package/theme-chalk/message-box.scss +160 -133
  440. package/theme-chalk/message.scss +104 -104
  441. package/theme-chalk/mixins/mixins.scss +148 -151
  442. package/theme-chalk/notification.scss +109 -109
  443. package/theme-chalk/overlay.scss +17 -0
  444. package/theme-chalk/page-header.scss +60 -0
  445. package/theme-chalk/popper.scss +1 -1
  446. package/theme-chalk/radio.scss +3 -3
  447. package/theme-chalk/segmented.scss +186 -0
  448. package/theme-chalk/slider.scss +212 -0
  449. package/theme-chalk/space.scss +20 -20
  450. package/theme-chalk/statistic.scss +35 -35
  451. package/theme-chalk/step.scss +320 -0
  452. package/theme-chalk/steps.scss +22 -0
  453. package/theme-chalk/table-v2.scss +237 -0
  454. package/theme-chalk/table.scss +461 -482
  455. package/theme-chalk/time-range-picker.scss +1 -1
  456. package/theme-chalk/tooltip.scss +2 -2
  457. package/theme-chalk/tour.scss +170 -0
  458. package/theme-chalk/transfer.scss +38 -12
  459. package/theme-chalk/tree-select.scss +41 -41
  460. package/theme-chalk/virtual-list.scss +40 -0
  461. package/theme-chalk/button/_mixins.scss +0 -317
  462. package/theme-chalk/button/button-group.scss +0 -83
  463. package/theme-chalk/button/button.scss +0 -382
  464. package/theme-chalk/button/index.scss +0 -2
  465. package/theme-chalk/button--bak/_mixins.scss +0 -317
  466. package/theme-chalk/button--bak/button-group.scss +0 -83
  467. package/theme-chalk/button--bak/button.scss +0 -382
  468. package/theme-chalk/button--bak/index.scss +0 -2
  469. package/theme-chalk/calendar/date-table.scss--bak +0 -156
  470. package/theme-chalk/input/input.scss--bak +0 -578
  471. package/theme-chalk/input-number.bak +0 -172
  472. package/theme-chalk/link.scss--bak +0 -99
  473. package/theme-chalk/notification.bak +0 -156
  474. package/theme-chalk/popper.scss--bak +0 -86
  475. package/theme-chalk/radio-button.scss--bak +0 -128
  476. package/theme-chalk/select/index.scss--bak +0 -247
  477. package/theme-chalk/switch.scss--bak +0 -273
  478. package/theme-chalk/tag.scss--bak +0 -203
  479. package/theme-chalk/tree/_directory.scss +0 -73
  480. package/theme-chalk/tree/_tree.scss +0 -401
  481. package/theme-chalk/tree/index.scss +0 -2
  482. /package/dist/TreeSelect/{utils.d.ts → Utils.d.ts} +0 -0
  483. /package/dist/TreeSelect/{utils.js → Utils.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import './locale/i18n';
2
- export { Button as ElButton } from './Button';
3
- export type { ButtonGroupProps, ButtonProps } from './Button';
2
+ export { Button as ElButton, ButtonGroup as ElButtonGroup } from './Button';
3
+ export type { ButtonGroupProps, ButtonProps, ButtonRef } from './Button';
4
4
  export { Aside as ElAside, Container as ElContainer, Footer as ElFooter, Header as ElHeader, Main as ElMain } from './Container';
5
5
  export type { AsideProps, ContainerProps, FooterProps, HeaderProps, MainProps } from './Container';
6
6
  export { Col as ElCol } from './Col';
@@ -22,19 +22,19 @@ export { Popper as ElPopper } from './Popper';
22
22
  export type { PopperOptionRef, PopperOptions, PopperProps } from './Popper';
23
23
  export { Transition as ElTransition } from './Transition';
24
24
  export type { TransitionProps } from './Transition';
25
- export { Cascader as ElCascader } from './Cascader';
26
- export type { CascaderMenuProps, CascaderProps } from './Cascader';
25
+ export { Cascader as ElCascader, CascaderPanel as ElCascaderPanel } from './Cascader';
26
+ export type { CascaderMenuProps, CascaderProps, CascaderRef } from './Cascader';
27
27
  export { Checkbox as ElCheckbox, CheckboxButton as ElCheckboxButton } from './Checkbox';
28
28
  export type { CheckboxProps, ValueType as CheckboxValueType } from './Checkbox';
29
29
  export { CheckboxGroup as ElCheckboxGroup } from './CheckboxGroup';
30
30
  export type { CheckboxGroupContextValue, CheckboxGroupProps } from './CheckboxGroup';
31
31
  export { ColorPicker as ElColorPicker } from './ColorPicker';
32
32
  export type { ColorPickerProps } from './ColorPicker';
33
- export { Radio as ElRadio } from './Radio';
33
+ export { Radio as ElRadio, RadioButton as ElRadioButton } from './Radio';
34
34
  export type { RadioProps, ValueType } from './Radio';
35
35
  export { RadioGroup as ElRadioGroup } from './RadioGroup';
36
36
  export type { RadioContextProps, RadioGroupProps } from './RadioGroup';
37
- export { Input as ElInput } from './Input';
37
+ export { Input as ElInput, InputGroup as ElInputGroup, InputRange as ElInputRange, TextArea as ElTextArea } from './Input';
38
38
  export type { InputProps, InputRangeProps, InputRef, TextareaProps, TextareaRef } from './Input';
39
39
  export { InputNumber as ElInputNumber } from './InputNumber';
40
40
  export type { InputNumberProps, InputNumberRef } from './InputNumber';
@@ -48,10 +48,14 @@ export { TimePicker as ElTimePicker } from './TimePicker';
48
48
  export type { TimePickerProps, TimePickerRef } from './TimePicker';
49
49
  export { Switch as ElSwitch } from './Switch';
50
50
  export type { ChangeValue, ISwitchProps, ValueType as SwitchValueType } from './Switch';
51
+ export { Slider as ElSlider } from './Slider';
52
+ export type { SliderMarkerItem, SliderMarks, SliderProps, SliderRef, SliderValue } from './Slider';
53
+ export { Segmented as ElSegmented } from './Segmented';
54
+ export type { Option, SegmentedComponentProps, SegmentedProps } from './Segmented';
51
55
  export { Transfer as ElTransfer } from './Transfer';
52
- export type { ListStyle, SelectAllLabel, TransferDirection, TransferItem, TransferLocale, TransferProps, TransferRender } from './Transfer';
53
- export { Form as ElForm, useForm } from './Form';
54
- export type { FormInstance, FormItemProps, FormProps, FormRules, InternalFormInstance, InternalNamePath, NamePath, Rule, RuleType, ValidateErrorEntity, ValidateMessages, ValidateOptions, } from './Form';
56
+ export type { ListStyle, TransferDataItem, TransferDirection, TransferFormat, TransferKey, TransferLocale, TransferProps, TransferPropsAlias, TransferRender } from './Transfer';
57
+ export { Form as ElForm, FormItem as ElFormItem, List as ElFormList, useForm, useWatch } from './Form';
58
+ export type { FormContextProps, FormInstance, FormItemProps, FormProps, FormRules, InternalNamePath, NamePath, Rule, RuleType, ValidateErrorEntity, ValidateMessages, ValidateOptions, } from './Form';
55
59
  export { Upload as ElUpload } from './Upload';
56
60
  export type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRef, UploadStatus, UploadUserFile } from './Upload';
57
61
  export { Avatar as ElAvatar } from './Avatar';
@@ -63,17 +67,22 @@ export type { CardProps } from './Card';
63
67
  export { Carousel as ElCarousel, CarouselItem as ElCarouselItem } from './Carousel';
64
68
  export type { CarouselItemProps, CarouselProps, CarouselRef } from './Carousel';
65
69
  export { Collapse as ElCollapse, CollapseItem as ElCollapseItem } from './Collapse';
66
- export type { CollapseItemProps, CollapseProps } from './Collapse';
70
+ export type { CollapseActiveName, CollapseItemProps, CollapseItemRef, CollapseProps, CollapseRef } from './Collapse';
67
71
  export { Descriptions as ElDescriptions, DescriptionsItem as ElDescriptionsItem } from './Descriptions';
68
72
  export type { DescriptionsItemProps, DescriptionsProps } from './Descriptions';
69
73
  export { Pagination as ElPagination } from './Pagination';
70
74
  export type { PageType, PaginationProps, PaginationRef } from './Pagination';
71
75
  export { Progress as ElProgress } from './Progress';
72
76
  export type { PropgressProps } from './Progress';
77
+ export { Countdown as ElCountdown } from './Countdown';
78
+ export type { CountdownProps, CountdownRef } from './Countdown';
73
79
  export { Statistic as ElStatistic } from './Statistic';
74
80
  export type { StatisticProps, StatisticRef } from './Statistic';
75
81
  export { Table as ElTable, TableColumn as ElTableColumn } from './Table';
76
82
  export type { RenderCell, TableColumnCtx, TableColumnProps, TableProps, TableRef, TableSort } from './Table';
83
+ export { Tour as ElTour, TourStep as ElTourStep } from './Tour';
84
+ export type { PosInfo, TourBtnProps, TourContentProps, TourContextType, TourGap, TourMask, TourProps, TourStepProps } from './Tour';
85
+ export { AutoResizer as ElAutoResizer, TableV2 as ElTableV2 } from './TableV2';
77
86
  export { Tag as ElTag } from './Tag';
78
87
  export type { TagProps } from './Tag';
79
88
  export { TimeLine as ElTimeLine, TimeLineItem as ElTimeLineItem } from './TimeLine';
@@ -81,16 +90,26 @@ export type { TimeLineItemProps, TimeLineProps } from './TimeLine';
81
90
  export { Tree as ElTree } from './Tree';
82
91
  export type { AllowDragFunction, AllowDropFunction, AllowDropType, FilterNodeMethodFunction, LoadFunction, NodeDropType, TreeNode, TreeNodeData, TreeNodeProps, TreeOptionProps, TreeProps, TreeRef, TreeStore, } from './Tree';
83
92
  export { TreeSelect as ElTreeSelect } from './TreeSelect';
93
+ export { Affix as ElAffix } from './Affix';
94
+ export type { AffixProps, AffixRef } from './Affix';
95
+ export { Anchor as ElAnchor, AnchorLink as ElAnchorLink } from './Anchor';
96
+ export type { AnchorContext, AnchorLinkProps, AnchorLinkState, AnchorProps, AnchorRef } from './Anchor';
97
+ export { Backtop as ElBacktop } from './Backtop';
98
+ export type { BacktopProps } from './Backtop';
84
99
  export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from './Breadcrumb';
85
100
  export type { BreadcrumbItemProps, BreadcrumbProps } from './Breadcrumb';
101
+ export { Step as ElStep, Steps as ElSteps } from './Steps';
102
+ export type { StepItemState, StepProps, StepsContextProps, StepsProps, StepsStatus } from './Steps';
86
103
  export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from './Dropdown';
87
104
  export type { DropdownItemProps, DropdownMenuProps, DropdownProps } from './Dropdown';
88
105
  export { Menu as ElMenu, MenuItem as ElMenuItem, MenuItemGroup as ElMenuItemGroup, SubMenu as ElSubMenu } from './Menu';
89
106
  export type { MenuCloseEvent, MenuItemClicked, MenuItemGroupProps, MenuItemProps, MenuItemRegistered, MenuOpenEvent, MenuProps, MenuRef, SubMenuProps } from './Menu';
90
107
  export { TabPane as ElTabPane, Tabs as ElTabs } from './Tabs';
91
- export type { TabPaneProps, TabsPaneContext, TabsProps } from './Tabs';
108
+ export type { TabPaneName, TabPaneProps, TabsPaneContext, TabsProps } from './Tabs';
92
109
  export { Empty as ElEmpty } from './Empty';
93
110
  export type { IEmptyProps } from './Empty';
111
+ export { PageHeader as ElPageHeader } from './PageHeader';
112
+ export type { PageHeaderProps } from './PageHeader';
94
113
  export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from './Skeleton';
95
114
  export type { SkeletonItemProps, SkeletonProps } from './Skeleton';
96
115
  export { Alert as ElAlert } from './Alert';
@@ -115,8 +134,10 @@ export { Popover as ElPopover } from './Popover';
115
134
  export type { PopoverProps } from './Popover';
116
135
  export { Divider as ElDivider } from './Divider';
117
136
  export type { DividerProps } from './Divider';
118
- export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from './Util';
137
+ export { Watermark as ElWatermark } from './Watermark';
138
+ export type { WatermarkFontType, WatermarkProps } from './Watermark';
119
139
  export { htmlInputAttrs, htmlInputEvents, htmlInputProps, partitionAnimationProps, partitionHTMLProps, partitionPopperPropsUtils, partitionTreePropsUtils, prefix, useChildrenInstance, useClassNames, useClickOutside, useComponentWillMount, useConfigProvider, useControlled, useDisabled, useForceUpdate, useSize, } from './hooks';
140
+ export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from './Util';
120
141
  export type { AnimationEventProps, BaseProps, FormControlBaseProps, NativeProps, StandardProps, TooltipBaseProps, TypeAttributes } from './types/common';
121
142
  /** 全局配置 */
122
143
  export { ConfigProvider as ElConfigProvider } from './ConfigProvider';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./locale/i18n";
2
2
 
3
3
  /* Basic 基础组件 */
4
- export { Button as ElButton } from "./Button";
4
+ export { Button as ElButton, ButtonGroup as ElButtonGroup } from "./Button";
5
5
  export { Aside as ElAside, Container as ElContainer, Footer as ElFooter, Header as ElHeader, Main as ElMain } from "./Container";
6
6
  export { Col as ElCol } from "./Col";
7
7
  export { Row as ElRow, RowContext } from "./Row";
@@ -14,21 +14,23 @@ export { Space as ElSpace } from "./Space";
14
14
  export { Popper as ElPopper } from "./Popper";
15
15
  export { Transition as ElTransition } from "./Transition";
16
16
  /* Form 表单组件 */
17
- export { Cascader as ElCascader } from "./Cascader";
17
+ export { Cascader as ElCascader, CascaderPanel as ElCascaderPanel } from "./Cascader";
18
18
  export { Checkbox as ElCheckbox, CheckboxButton as ElCheckboxButton } from "./Checkbox";
19
19
  export { CheckboxGroup as ElCheckboxGroup } from "./CheckboxGroup";
20
20
  export { ColorPicker as ElColorPicker } from "./ColorPicker";
21
- export { Radio as ElRadio } from "./Radio";
21
+ export { Radio as ElRadio, RadioButton as ElRadioButton } from "./Radio";
22
22
  export { RadioGroup as ElRadioGroup } from "./RadioGroup";
23
- export { Input as ElInput } from "./Input";
23
+ export { Input as ElInput, InputGroup as ElInputGroup, InputRange as ElInputRange, TextArea as ElTextArea } from "./Input";
24
24
  export { InputNumber as ElInputNumber } from "./InputNumber";
25
25
  export { Option as ElOption, OptionGroup as ElOptionGroup, Select as ElSelect } from "./Select";
26
26
  export { Calendar, CalendarContext } from "./Calendar";
27
27
  export { DatePicker as ElDatePicker } from "./DatePicker";
28
28
  export { TimePicker as ElTimePicker } from "./TimePicker";
29
29
  export { Switch as ElSwitch } from "./Switch";
30
+ export { Slider as ElSlider } from "./Slider";
31
+ export { Segmented as ElSegmented } from "./Segmented";
30
32
  export { Transfer as ElTransfer } from "./Transfer";
31
- export { Form as ElForm, useForm } from "./Form";
33
+ export { Form as ElForm, FormItem as ElFormItem, List as ElFormList, useForm, useWatch } from "./Form";
32
34
  export { Upload as ElUpload } from "./Upload";
33
35
  /* Data 数据展示 */
34
36
  export { Avatar as ElAvatar } from "./Avatar";
@@ -39,8 +41,11 @@ export { Collapse as ElCollapse, CollapseItem as ElCollapseItem } from "./Collap
39
41
  export { Descriptions as ElDescriptions, DescriptionsItem as ElDescriptionsItem } from "./Descriptions";
40
42
  export { Pagination as ElPagination } from "./Pagination";
41
43
  export { Progress as ElProgress } from "./Progress";
44
+ export { Countdown as ElCountdown } from "./Countdown";
42
45
  export { Statistic as ElStatistic } from "./Statistic";
43
46
  export { Table as ElTable, TableColumn as ElTableColumn } from "./Table";
47
+ export { Tour as ElTour, TourStep as ElTourStep } from "./Tour";
48
+ export { AutoResizer as ElAutoResizer, TableV2 as ElTableV2 } from "./TableV2";
44
49
  export { Tag as ElTag } from "./Tag";
45
50
  export { TimeLine as ElTimeLine, TimeLineItem as ElTimeLineItem } from "./TimeLine";
46
51
  export { Tree as ElTree } from "./Tree";
@@ -51,11 +56,16 @@ export { TreeSelect as ElTreeSelect } from "./TreeSelect";
51
56
  // export type { ListProps, ListRef, ScrollTo } from './VirtualList';
52
57
 
53
58
  /* Navigation 导航 */
59
+ export { Affix as ElAffix } from "./Affix";
60
+ export { Anchor as ElAnchor, AnchorLink as ElAnchorLink } from "./Anchor";
61
+ export { Backtop as ElBacktop } from "./Backtop";
54
62
  export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from "./Breadcrumb";
63
+ export { Step as ElStep, Steps as ElSteps } from "./Steps";
55
64
  export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from "./Dropdown";
56
65
  export { Menu as ElMenu, MenuItem as ElMenuItem, MenuItemGroup as ElMenuItemGroup, SubMenu as ElSubMenu } from "./Menu";
57
66
  export { TabPane as ElTabPane, Tabs as ElTabs } from "./Tabs";
58
67
  export { Empty as ElEmpty } from "./Empty";
68
+ export { PageHeader as ElPageHeader } from "./PageHeader";
59
69
  export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from "./Skeleton";
60
70
  /* Feedback 反馈组件 */
61
71
  export { Alert as ElAlert } from "./Alert";
@@ -70,9 +80,10 @@ export { Popconfirm as ElPopconfirm } from "./Popconfirm";
70
80
  export { Popover as ElPopover } from "./Popover";
71
81
  /* Others 其他 */
72
82
  export { Divider as ElDivider } from "./Divider";
83
+ export { Watermark as ElWatermark } from "./Watermark";
73
84
  /* 工具库与hooks */
74
- export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from "./Util";
75
85
  export { htmlInputAttrs, htmlInputEvents, htmlInputProps, partitionAnimationProps, partitionHTMLProps, partitionPopperPropsUtils, partitionTreePropsUtils, prefix, useChildrenInstance, useClassNames, useClickOutside, useComponentWillMount, useConfigProvider, useControlled, useDisabled, useForceUpdate, useSize } from "./hooks";
86
+ export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from "./Util";
76
87
 
77
88
  /* 通用types */
78
89
 
@@ -171,7 +171,10 @@ declare const _default: {
171
171
  transfer: {
172
172
  noMatch: string;
173
173
  noData: string;
174
- titles: string[];
174
+ titles: {
175
+ 0: string;
176
+ 1: string;
177
+ };
175
178
  filterPlaceholder: string;
176
179
  noCheckedFormat: string;
177
180
  hasCheckedFormat: string;
package/dist/locale/en.js CHANGED
@@ -171,7 +171,10 @@ export default {
171
171
  transfer: {
172
172
  noMatch: 'No matching data',
173
173
  noData: 'No data',
174
- titles: ['List 1', 'List 2'],
174
+ titles: {
175
+ 0: 'List 1',
176
+ 1: 'List 2'
177
+ },
175
178
  filterPlaceholder: 'Enter keyword',
176
179
  noCheckedFormat: '{total} items',
177
180
  hasCheckedFormat: '{checked}/{total} checked'
@@ -170,7 +170,10 @@ declare const _default: {
170
170
  transfer: {
171
171
  noMatch: string;
172
172
  noData: string;
173
- titles: string[];
173
+ titles: {
174
+ 0: string;
175
+ 1: string;
176
+ };
174
177
  filterPlaceholder: string;
175
178
  noCheckedFormat: string;
176
179
  hasCheckedFormat: string;
@@ -170,7 +170,10 @@ export default {
170
170
  transfer: {
171
171
  noMatch: '无匹配数据',
172
172
  noData: '无数据',
173
- titles: ['列表 1', '列表 2'],
173
+ titles: {
174
+ 0: '列表 1',
175
+ 1: '列表 2'
176
+ },
174
177
  filterPlaceholder: '请输入搜索内容',
175
178
  noCheckedFormat: '共 {total} 项',
176
179
  hasCheckedFormat: '已选 {checked}/{total} 项'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qsxy/element-plus-react",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "element-plus-react",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,11 +18,12 @@
18
18
  ],
19
19
  "peerDependencies": {
20
20
  "react": ">=18.0.0",
21
- "react-router-dom": ">=6.22.1",
22
- "react-dom": ">=18.0.0"
21
+ "react-dom": ">=18.0.0",
22
+ "react-router-dom": ">=6.22.1"
23
23
  },
24
24
  "dependencies": {
25
25
  "@ctrl/tinycolor": "^4.1.0",
26
+ "@floating-ui/dom": "^1.7.6",
26
27
  "@popperjs/core": "^2.11.8",
27
28
  "ahooks": "^3.7.10",
28
29
  "async-validator": "^4.2.5",
@@ -32,6 +33,7 @@
32
33
  "escape-html": "^1.0.3",
33
34
  "i18next": "^25.2.1",
34
35
  "lodash": "^4.17.21",
36
+ "memoize-one": "^6.0.0",
35
37
  "rc-resize-observer": "^1.4.0",
36
38
  "rc-util": "^5.38.1",
37
39
  "rc-virtual-list": "3.18.5",
@@ -0,0 +1,7 @@
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(affix) {
4
+ @include m(fixed) {
5
+ position: fixed;
6
+ }
7
+ }
@@ -1,115 +1,115 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/var' as *;
3
- @use 'common/var' as *;
4
-
5
- @include b(alert) {
6
- @include set-component-css-var('alert', $alert);
7
-
8
- width: 100%;
9
- padding: getCssVar('alert', 'padding');
10
- margin: 0;
11
- box-sizing: border-box;
12
- border-radius: getCssVar('alert', 'border-radius-base');
13
- position: relative;
14
- background-color: getCssVar('color', 'white');
15
- overflow: hidden;
16
- opacity: 1;
17
- display: flex;
18
- align-items: center;
19
- transition: opacity getCssVar('transition-duration', 'fast');
20
-
21
- @include when(light) {
22
- .#{$namespace}-alert__close-btn {
23
- color: getCssVar('text-color', 'placeholder');
24
- }
25
- }
26
-
27
- @include when(dark) {
28
- .#{$namespace}-alert__close-btn {
29
- color: getCssVar('color', 'white');
30
- }
31
- .#{$namespace}-alert__description {
32
- color: getCssVar('color', 'white');
33
- }
34
- }
35
-
36
- @include when(center) {
37
- justify-content: center;
38
- }
39
-
40
- @each $type in (primary, success, info, warning, error) {
41
- @include m($type) {
42
- @include css-var-from-global(
43
- ('alert', 'bg-color'),
44
- ('color', $type, 'light-9')
45
- );
46
-
47
- &.is-light {
48
- background-color: getCssVar('alert', 'bg-color');
49
- color: getCssVar('color', $type);
50
-
51
- .#{$namespace}-alert__description {
52
- color: getCssVar('color', $type);
53
- }
54
- }
55
-
56
- &.is-dark {
57
- background-color: getCssVar('color', $type);
58
- color: getCssVar('color', 'white');
59
- }
60
- }
61
- }
62
-
63
- @include e(content) {
64
- display: flex;
65
- flex-direction: column;
66
- gap: 4px;
67
- }
68
-
69
- & .#{$namespace}-alert__icon {
70
- font-size: getCssVar('alert', 'icon-size');
71
- width: getCssVar('alert', 'icon-size');
72
- margin-right: 8px;
73
-
74
- @include when(big) {
75
- font-size: getCssVar('alert', 'icon-large-size');
76
- width: getCssVar('alert', 'icon-large-size');
77
- margin-right: 12px;
78
- }
79
- }
80
-
81
- @include e(title) {
82
- font-size: getCssVar('alert', 'title-font-size');
83
- line-height: 24px;
84
-
85
- &.with-description {
86
- font-size: getCssVar('alert', 'title-with-description-font-size');
87
- }
88
- }
89
-
90
- & .#{$namespace}-alert__description {
91
- font-size: getCssVar('alert', 'description-font-size');
92
- margin: 0;
93
- }
94
-
95
- & .#{$namespace}-alert__close-btn {
96
- font-size: getCssVar('alert', 'close-font-size');
97
- opacity: 1;
98
- position: absolute;
99
- top: 12px;
100
- right: 16px;
101
- cursor: pointer;
102
-
103
- @include when(customed) {
104
- font-style: normal;
105
- font-size: getCssVar('alert', 'close-customed-font-size');
106
- line-height: 24px;
107
- top: 8px;
108
- }
109
- }
110
- }
111
-
112
- .#{$namespace}-alert-fade-enter-from,
113
- .#{$namespace}-alert-fade-leave-active {
114
- opacity: 0;
115
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(alert) {
6
+ @include set-component-css-var('alert', $alert);
7
+
8
+ width: 100%;
9
+ padding: getCssVar('alert', 'padding');
10
+ margin: 0;
11
+ box-sizing: border-box;
12
+ border-radius: getCssVar('alert', 'border-radius-base');
13
+ position: relative;
14
+ background-color: getCssVar('color', 'white');
15
+ overflow: hidden;
16
+ opacity: 1;
17
+ display: flex;
18
+ align-items: center;
19
+ transition: opacity getCssVar('transition-duration', 'fast');
20
+
21
+ @include when(light) {
22
+ .#{$namespace}-alert__close-btn {
23
+ color: getCssVar('text-color', 'placeholder');
24
+ }
25
+ }
26
+
27
+ @include when(dark) {
28
+ .#{$namespace}-alert__close-btn {
29
+ color: getCssVar('color', 'white');
30
+ }
31
+ .#{$namespace}-alert__description {
32
+ color: getCssVar('color', 'white');
33
+ }
34
+ }
35
+
36
+ @include when(center) {
37
+ justify-content: center;
38
+ }
39
+
40
+ @each $type in (primary, success, info, warning, error) {
41
+ @include m($type) {
42
+ @include css-var-from-global(
43
+ ('alert', 'bg-color'),
44
+ ('color', $type, 'light-9')
45
+ );
46
+
47
+ &.is-light {
48
+ background-color: getCssVar('alert', 'bg-color');
49
+ color: getCssVar('color', $type);
50
+
51
+ .#{$namespace}-alert__description {
52
+ color: getCssVar('color', $type);
53
+ }
54
+ }
55
+
56
+ &.is-dark {
57
+ background-color: getCssVar('color', $type);
58
+ color: getCssVar('color', 'white');
59
+ }
60
+ }
61
+ }
62
+
63
+ @include e(content) {
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: 4px;
67
+ }
68
+
69
+ & .#{$namespace}-alert__icon {
70
+ font-size: getCssVar('alert', 'icon-size');
71
+ width: getCssVar('alert', 'icon-size');
72
+ margin-right: 8px;
73
+
74
+ @include when(big) {
75
+ font-size: getCssVar('alert', 'icon-large-size');
76
+ width: getCssVar('alert', 'icon-large-size');
77
+ margin-right: 12px;
78
+ }
79
+ }
80
+
81
+ @include e(title) {
82
+ font-size: getCssVar('alert', 'title-font-size');
83
+ line-height: 24px;
84
+
85
+ &.with-description {
86
+ font-size: getCssVar('alert', 'title-with-description-font-size');
87
+ }
88
+ }
89
+
90
+ & .#{$namespace}-alert__description {
91
+ font-size: getCssVar('alert', 'description-font-size');
92
+ margin: 0;
93
+ }
94
+
95
+ & .#{$namespace}-alert__close-btn {
96
+ font-size: getCssVar('alert', 'close-font-size');
97
+ opacity: 1;
98
+ position: absolute;
99
+ top: 12px;
100
+ right: 16px;
101
+ cursor: pointer;
102
+
103
+ @include when(customed) {
104
+ font-style: normal;
105
+ font-size: getCssVar('alert', 'close-customed-font-size');
106
+ line-height: 24px;
107
+ top: 8px;
108
+ }
109
+ }
110
+ }
111
+
112
+ .#{$namespace}-alert-fade-enter-from,
113
+ .#{$namespace}-alert-fade-leave-active {
114
+ opacity: 0;
115
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(anchor) {
8
+ @include e(item) {
9
+ display: flex;
10
+ flex-direction: column;
11
+ }
12
+
13
+ @include e(link) {
14
+ font-size: getCssVar('anchor-font-size');
15
+ line-height: getCssVar('anchor-line-height');
16
+ padding: 4px 0;
17
+ color: getCssVar('anchor-color');
18
+ transition: color getCssVar('transition-duration');
19
+ white-space: nowrap;
20
+ text-decoration: none;
21
+ text-overflow: ellipsis;
22
+ overflow: hidden;
23
+ max-width: 100%;
24
+ outline: none;
25
+ cursor: pointer;
26
+
27
+ &:hover,
28
+ &:focus {
29
+ color: getCssVar('hover-color');
30
+ }
31
+
32
+ &:focus-visible {
33
+ border-radius: getCssVar('border-radius', 'base');
34
+ outline: 2px solid getCssVar('color-primary');
35
+ }
36
+
37
+ @include when(active) {
38
+ color: getCssVar('anchor-active-color');
39
+ }
40
+ }
41
+
42
+ & .#{$namespace}-anchor__list .#{$namespace}-anchor__item a {
43
+ display: inline-block;
44
+ }
45
+ }
@@ -0,0 +1,93 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(anchor) {
8
+ @include set-component-css-var('anchor', $anchor);
9
+
10
+ position: relative;
11
+ background-color: getCssVar('anchor-bg-color');
12
+
13
+ @include e(marker) {
14
+ position: absolute;
15
+ background-color: getCssVar('anchor-marker-bg-color');
16
+ border-radius: 4px;
17
+ opacity: 0;
18
+ z-index: 0;
19
+ }
20
+
21
+ &.#{$namespace}-anchor--vertical {
22
+ @include e(marker) {
23
+ width: 4px;
24
+ height: 14px;
25
+ top: 8px;
26
+ left: 0;
27
+ transition:
28
+ top 0.25s ease-in-out,
29
+ opacity 0.25s;
30
+ }
31
+
32
+ @include e(list) {
33
+ padding-left: getCssVar('anchor-padding-indent');
34
+ }
35
+
36
+ &.#{$namespace}-anchor--underline {
37
+ &::before {
38
+ position: absolute;
39
+ left: 0;
40
+ width: 2px;
41
+ height: 100%;
42
+ background-color: rgba(5, 5, 5, 0.06);
43
+ content: '';
44
+ }
45
+
46
+ @include e(marker) {
47
+ width: 2px;
48
+ border-radius: unset;
49
+ }
50
+ }
51
+ }
52
+
53
+ &.#{$namespace}-anchor--horizontal {
54
+ @include e(marker) {
55
+ height: 2px;
56
+ width: 20px;
57
+ bottom: 0;
58
+ transition:
59
+ left 0.25s ease-in-out,
60
+ opacity 0.25s,
61
+ width 0.25s;
62
+ }
63
+
64
+ @include e(list) {
65
+ display: flex;
66
+ padding-bottom: 4px;
67
+
68
+ @include e(item) {
69
+ padding-left: 16px;
70
+
71
+ &:first-child {
72
+ padding-left: 0;
73
+ }
74
+ }
75
+ }
76
+
77
+ &.#{$namespace}-anchor--underline {
78
+ &::before {
79
+ position: absolute;
80
+ bottom: 0;
81
+ width: 100%;
82
+ height: 2px;
83
+ background-color: rgba(5, 5, 5, 0.06);
84
+ content: '';
85
+ }
86
+
87
+ @include e(marker) {
88
+ height: 2px;
89
+ border-radius: unset;
90
+ }
91
+ }
92
+ }
93
+ }