@jlgj/antd-jl 0.5.0 → 0.5.2

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 (559) hide show
  1. package/README.md +4 -100
  2. package/es/_util/ActionButton.d.ts +28 -0
  3. package/es/_util/colors.d.ts +1 -1
  4. package/es/_util/colors.js +1 -1
  5. package/es/_util/statusUtils.d.ts +1 -1
  6. package/es/_util/statusUtils.js +1 -1
  7. package/es/_util/util.d.ts +9 -0
  8. package/es/_util/util.js +15 -0
  9. package/es/alert/style/index.js +11 -11
  10. package/es/app/style/index.js +2 -2
  11. package/es/auto-complete/index.d.ts +4 -4
  12. package/es/badge/Badge.d.ts +6 -6
  13. package/es/badge/index.d.ts +6 -6
  14. package/es/badge/style/index.js +7 -4
  15. package/es/breadcrumb/BreadcrumbItem.d.ts +13 -0
  16. package/es/breadcrumb/BreadcrumbItem.js +15 -3
  17. package/es/breadcrumb/style/index.js +17 -4
  18. package/es/button/button.d.ts +9 -0
  19. package/es/button/button.js +12 -6
  20. package/es/button/buttonTypes.d.ts +6 -2
  21. package/es/button/buttonTypes.js +9 -0
  22. package/es/button/index.d.ts +15 -0
  23. package/es/button/style/index.js +133 -118
  24. package/es/calendar/style/index.js +4 -2
  25. package/es/card/style/index.js +9 -5
  26. package/es/cascader/index.d.ts +4 -4
  27. package/es/cascader/index.js +3 -1
  28. package/es/cascader/style/index.js +38 -7
  29. package/es/checkbox/style/index.d.ts +1 -0
  30. package/es/checkbox/style/index.js +17 -9
  31. package/es/collapse/style/index.d.ts +1 -0
  32. package/es/collapse/style/index.js +15 -10
  33. package/es/components.d.ts +2 -1
  34. package/es/components.js +1 -1
  35. package/es/config-provider/context.d.ts +1 -0
  36. package/es/config-provider/cssVariables.js +4 -0
  37. package/es/custom-picker/PickerButton.d.ts +4 -0
  38. package/es/custom-picker/PickerButton.js +13 -0
  39. package/es/custom-picker/PickerTag.d.ts +5 -0
  40. package/es/custom-picker/PickerTag.js +11 -0
  41. package/es/custom-picker/custom.d.ts +935 -0
  42. package/es/custom-picker/custom.js +13 -0
  43. package/es/custom-picker/generatePicker/generateSinglePicker.d.ts +769 -0
  44. package/es/custom-picker/generatePicker/generateSinglePicker.js +188 -0
  45. package/es/custom-picker/generatePicker/index.d.ts +404 -0
  46. package/es/custom-picker/generatePicker/index.js +18 -0
  47. package/es/custom-picker/generatePicker/interface.d.ts +20 -0
  48. package/es/custom-picker/generatePicker/interface.js +1 -0
  49. package/es/custom-picker/generatePicker/props.d.ts +229 -0
  50. package/es/custom-picker/generatePicker/props.js +63 -0
  51. package/es/custom-picker/index.d.ts +9 -0
  52. package/es/custom-picker/index.js +3 -0
  53. package/es/custom-picker/locale/en_US.d.ts +3 -0
  54. package/es/custom-picker/locale/en_US.js +11 -0
  55. package/es/custom-picker/locale/zh_CN.d.ts +3 -0
  56. package/es/custom-picker/locale/zh_CN.js +9 -0
  57. package/es/custom-picker/locale/zh_TW.d.ts +3 -0
  58. package/es/custom-picker/locale/zh_TW.js +9 -0
  59. package/es/custom-picker/style/index.d.ts +35 -0
  60. package/es/custom-picker/style/index.js +1053 -0
  61. package/es/custom-picker/util.d.ts +10 -0
  62. package/es/custom-picker/util.js +48 -0
  63. package/es/date-picker/date-fns.d.ts +59 -59
  64. package/es/date-picker/dayjs.d.ts +59 -59
  65. package/es/date-picker/generatePicker/generateRangePicker.d.ts +10 -10
  66. package/es/date-picker/generatePicker/generateRangePicker.js +6 -2
  67. package/es/date-picker/generatePicker/generateSinglePicker.d.ts +60 -60
  68. package/es/date-picker/generatePicker/generateSinglePicker.js +13 -1
  69. package/es/date-picker/generatePicker/index.d.ts +74 -70
  70. package/es/date-picker/generatePicker/interface.d.ts +1 -1
  71. package/es/date-picker/generatePicker/props.d.ts +2 -2
  72. package/es/date-picker/moment.d.ts +59 -59
  73. package/es/date-picker/style/index.d.ts +1 -0
  74. package/es/date-picker/style/index.js +107 -62
  75. package/es/descriptions/style/index.js +6 -4
  76. package/es/drawer/index.js +4 -4
  77. package/es/drawer/style/index.js +9 -5
  78. package/es/dropdown/style/index.js +4 -2
  79. package/es/empty/index.d.ts +44 -12
  80. package/es/empty/index.js +37 -10
  81. package/es/empty/net-error.d.ts +2 -0
  82. package/es/empty/net-error.js +132 -0
  83. package/es/empty/{simple.d.ts → no-data.d.ts} +2 -2
  84. package/es/empty/no-data.js +101 -0
  85. package/{lib/empty/simple.d.ts → es/empty/no-page.d.ts} +2 -2
  86. package/es/empty/no-page.js +114 -0
  87. package/es/empty/style/index.js +2 -2
  88. package/es/float-button/BackTop.d.ts +9 -0
  89. package/es/float-button/BackTop.js +4 -1
  90. package/es/float-button/FloatButton.d.ts +9 -0
  91. package/es/float-button/FloatButton.js +11 -5
  92. package/es/float-button/FloatButtonGroup.d.ts +9 -0
  93. package/es/float-button/FloatButtonGroup.js +7 -3
  94. package/es/float-button/context.d.ts +2 -1
  95. package/es/float-button/context.js +2 -1
  96. package/es/float-button/index.d.ts +15 -0
  97. package/es/float-button/interface.d.ts +14 -1
  98. package/es/float-button/interface.js +2 -1
  99. package/es/float-button/style/index.js +158 -40
  100. package/es/form/style/index.js +7 -7
  101. package/es/input/ClearableLabeledInput.d.ts +2 -2
  102. package/es/input/Input.d.ts +6 -2
  103. package/es/input/Input.js +8 -5
  104. package/es/input/Password.d.ts +6 -2
  105. package/es/input/ResizableTextArea.d.ts +6 -2
  106. package/es/input/Search.d.ts +6 -2
  107. package/es/input/TextArea.d.ts +6 -2
  108. package/es/input/index.d.ts +9 -3
  109. package/es/input/inputProps.d.ts +6 -2
  110. package/es/input/style/index.js +53 -16
  111. package/es/input-number/index.d.ts +30 -11
  112. package/es/input-number/index.js +8 -2
  113. package/es/input-number/src/InputNumber.d.ts +16 -0
  114. package/es/input-number/src/InputNumber.js +37 -7
  115. package/es/input-number/src/StepHandlerOutSide.d.ts +31 -0
  116. package/es/input-number/src/StepHandlerOutSide.js +89 -0
  117. package/es/input-number/style/index.js +76 -13
  118. package/es/list/style/index.js +7 -5
  119. package/es/locale/en_US.js +1 -0
  120. package/es/locale/index.d.ts +2 -0
  121. package/es/locale/index.js +1 -0
  122. package/es/locale/zh_CN.js +3 -0
  123. package/es/locale/zh_HK.js +1 -0
  124. package/es/locale/zh_TW.js +1 -0
  125. package/es/mentions/index.d.ts +4 -4
  126. package/es/mentions/style/index.js +7 -4
  127. package/es/menu/style/index.js +2 -2
  128. package/es/message/style/index.js +3 -1
  129. package/es/modal/Modal.d.ts +73 -1
  130. package/es/modal/Modal.js +18 -2
  131. package/es/modal/index.d.ts +87 -0
  132. package/es/modal/style/index.js +5 -3
  133. package/es/notification/style/index.js +6 -4
  134. package/es/page-header/style/index.js +1 -1
  135. package/es/pagination/Select.d.ts +10 -10
  136. package/es/pagination/style/index.js +36 -11
  137. package/es/popconfirm/index.d.ts +64 -0
  138. package/es/popconfirm/index.js +1 -1
  139. package/es/popconfirm/style/index.js +6 -1
  140. package/es/popover/style/index.js +3 -1
  141. package/es/progress/Circle.d.ts +27 -14
  142. package/es/progress/Circle.js +1 -1
  143. package/es/progress/Line.d.ts +27 -14
  144. package/es/progress/Line.js +5 -5
  145. package/es/progress/Steps.d.ts +27 -14
  146. package/es/progress/index.d.ts +33 -18
  147. package/es/progress/progress.d.ts +19 -10
  148. package/es/progress/progress.js +8 -3
  149. package/es/progress/props.d.ts +9 -5
  150. package/es/progress/props.js +3 -2
  151. package/es/progress/style/index.js +39 -0
  152. package/es/progress/utils.js +7 -7
  153. package/es/qrcode/style/index.js +1 -1
  154. package/es/radio/style/index.js +62 -41
  155. package/es/rate/index.d.ts +23 -0
  156. package/es/rate/index.js +19 -3
  157. package/es/rate/style/index.js +14 -4
  158. package/es/result/style/index.js +7 -6
  159. package/es/select/index.d.ts +11 -11
  160. package/es/select/index.js +3 -1
  161. package/es/select/style/dropdown.js +33 -7
  162. package/es/select/style/index.js +21 -1
  163. package/es/select/style/multiple.js +3 -7
  164. package/es/select/style/single.js +7 -6
  165. package/es/steps/style/index.js +6 -7
  166. package/es/steps/style/inline.js +1 -1
  167. package/es/steps/style/label-placement.js +2 -2
  168. package/es/steps/style/progress-dot.js +2 -2
  169. package/es/style/index.js +1 -1
  170. package/es/switch/index.d.ts +5 -5
  171. package/es/switch/index.js +2 -1
  172. package/es/switch/style/index.js +170 -36
  173. package/es/table/Table.d.ts +13 -0
  174. package/es/table/Table.js +33 -3
  175. package/es/table/hooks/useFilter/FilterDropdown.js +11 -7
  176. package/es/table/hooks/useFilter/index.d.ts +4 -1
  177. package/es/table/hooks/useFilter/index.js +18 -1
  178. package/es/table/index.d.ts +15 -0
  179. package/es/table/style/expand.js +3 -1
  180. package/es/table/style/filter.js +1 -1
  181. package/es/table/style/fixed.js +4 -0
  182. package/es/table/style/index.d.ts +2 -0
  183. package/es/table/style/index.js +26 -20
  184. package/es/table/style/size.js +3 -2
  185. package/es/tabs/style/index.js +4 -2
  186. package/es/tag/index.d.ts +81 -4
  187. package/es/tag/index.js +30 -1
  188. package/es/tag/style/index.d.ts +2 -0
  189. package/es/tag/style/index.js +179 -13
  190. package/es/theme/interface/alias.d.ts +5 -0
  191. package/es/theme/interface/components.d.ts +2 -0
  192. package/es/theme/interface/maps/colors.d.ts +120 -54
  193. package/es/theme/interface/maps/font.d.ts +8 -0
  194. package/es/theme/interface/presetColors.d.ts +1 -1
  195. package/es/theme/interface/presetColors.js +1 -1
  196. package/es/theme/interface/seeds.d.ts +45 -8
  197. package/es/theme/themes/dark/colors.js +25 -24
  198. package/es/theme/themes/default/colors.js +8 -5
  199. package/es/theme/themes/default/index.js +46 -2
  200. package/es/theme/themes/seed.js +29 -19
  201. package/es/theme/themes/shared/genColorMapToken.js +25 -12
  202. package/es/theme/themes/shared/genFontMapToken.js +10 -1
  203. package/es/theme/themes/shared/genFontSizes.d.ts +1 -0
  204. package/es/theme/themes/shared/genFontSizes.js +3 -1
  205. package/es/theme/themes/shared/genRadius.js +2 -2
  206. package/es/theme/util/alias.js +9 -4
  207. package/es/time-picker/time-picker.d.ts +2 -2
  208. package/es/timeline/Timeline.d.ts +29 -0
  209. package/es/timeline/Timeline.js +43 -15
  210. package/es/timeline/TimelineItem.d.ts +16 -0
  211. package/es/timeline/TimelineItem.js +19 -9
  212. package/es/timeline/index.d.ts +27 -0
  213. package/es/timeline/style/index.js +217 -70
  214. package/es/tooltip/style/index.js +3 -3
  215. package/es/tour/interface.d.ts +1 -0
  216. package/es/tour/panelRender.js +13 -13
  217. package/es/tour/style/index.js +37 -30
  218. package/es/transfer/index.d.ts +11 -11
  219. package/es/transfer/style/index.js +5 -2
  220. package/es/tree/style/index.js +19 -8
  221. package/es/tree-select/index.d.ts +11 -11
  222. package/es/typography/style/index.js +1 -1
  223. package/es/upload/style/index.js +3 -1
  224. package/es/upload/style/list.js +9 -5
  225. package/es/vc-input/BaseInput.d.ts +4 -0
  226. package/es/vc-input/BaseInput.js +20 -3
  227. package/es/vc-input/Input.d.ts +6 -2
  228. package/es/vc-input/inputProps.d.ts +7 -1
  229. package/es/vc-input/inputProps.js +2 -0
  230. package/es/vc-input/utils/commonUtils.d.ts +1 -0
  231. package/es/vc-input/utils/commonUtils.js +3 -0
  232. package/es/vc-picker/Picker.d.ts +7 -3
  233. package/es/vc-picker/Picker.js +39 -6
  234. package/es/vc-picker/PickerPanel.d.ts +12 -4
  235. package/es/vc-picker/PickerPanel.js +29 -6
  236. package/es/vc-picker/RangePicker.d.ts +2 -0
  237. package/es/vc-picker/RangePicker.js +6 -3
  238. package/es/vc-picker/hooks/useValueTexts.d.ts +4 -1
  239. package/es/vc-picker/hooks/useValueTexts.js +7 -0
  240. package/es/vc-picker/interface.d.ts +2 -2
  241. package/es/vc-picker/panels/CustomPanel/BasePanelBody.d.ts +84 -0
  242. package/es/vc-picker/panels/CustomPanel/BasePanelBody.js +179 -0
  243. package/es/vc-picker/panels/CustomPanel/CustomPanelBody.d.ts +19 -0
  244. package/es/vc-picker/panels/CustomPanel/CustomPanelBody.js +21 -0
  245. package/es/vc-picker/panels/CustomPanel/CustomPanelHeader.d.ts +11 -0
  246. package/es/vc-picker/panels/CustomPanel/CustomPanelHeader.js +18 -0
  247. package/es/vc-picker/panels/CustomPanel/index.d.ts +20 -0
  248. package/es/vc-picker/panels/CustomPanel/index.js +41 -0
  249. package/es/vc-picker/utils/getRanges.js +1 -1
  250. package/es/vc-picker/utils/uiUtil.js +2 -1
  251. package/es/vc-select/OptionList.js +8 -1
  252. package/es/vc-select/SelectTrigger.js +4 -4
  253. package/es/vc-table/Body/index.js +20 -1
  254. package/es/vc-table/Table.js +2 -1
  255. package/es/vc-tour/Mask.js +76 -60
  256. package/es/vc-tour/Tour.js +4 -2
  257. package/es/vc-tour/hooks/useTarget.js +2 -2
  258. package/es/vc-tree/TreeNode.js +7 -3
  259. package/es/version/token-meta.json +1 -1
  260. package/es/version/token.json +1 -1
  261. package/es/version/version.d.ts +1 -1
  262. package/es/version/version.js +1 -1
  263. package/lib/_util/ActionButton.d.ts +28 -0
  264. package/lib/_util/colors.d.ts +1 -1
  265. package/lib/_util/colors.js +1 -1
  266. package/lib/_util/statusUtils.d.ts +1 -1
  267. package/lib/_util/statusUtils.js +1 -1
  268. package/lib/_util/util.d.ts +9 -0
  269. package/lib/_util/util.js +16 -0
  270. package/lib/alert/style/index.js +11 -11
  271. package/lib/app/style/index.js +2 -2
  272. package/lib/auto-complete/index.d.ts +4 -4
  273. package/lib/badge/Badge.d.ts +6 -6
  274. package/lib/badge/index.d.ts +6 -6
  275. package/lib/badge/style/index.js +7 -4
  276. package/lib/breadcrumb/BreadcrumbItem.d.ts +13 -0
  277. package/lib/breadcrumb/BreadcrumbItem.js +15 -3
  278. package/lib/breadcrumb/style/index.js +17 -4
  279. package/lib/button/button.d.ts +9 -0
  280. package/lib/button/button.js +12 -6
  281. package/lib/button/buttonTypes.d.ts +6 -2
  282. package/lib/button/buttonTypes.js +9 -0
  283. package/lib/button/index.d.ts +15 -0
  284. package/lib/button/style/index.js +133 -118
  285. package/lib/calendar/style/index.js +4 -2
  286. package/lib/card/style/index.js +9 -5
  287. package/lib/cascader/index.d.ts +4 -4
  288. package/lib/cascader/index.js +3 -1
  289. package/lib/cascader/style/index.js +38 -7
  290. package/lib/checkbox/style/index.d.ts +1 -0
  291. package/lib/checkbox/style/index.js +17 -9
  292. package/lib/collapse/style/index.d.ts +1 -0
  293. package/lib/collapse/style/index.js +15 -10
  294. package/lib/components.d.ts +2 -1
  295. package/lib/components.js +7 -7
  296. package/lib/config-provider/context.d.ts +1 -0
  297. package/lib/config-provider/cssVariables.js +4 -0
  298. package/lib/custom-picker/PickerButton.d.ts +4 -0
  299. package/lib/custom-picker/PickerButton.js +20 -0
  300. package/lib/custom-picker/PickerTag.d.ts +5 -0
  301. package/lib/custom-picker/PickerTag.js +18 -0
  302. package/lib/custom-picker/custom.d.ts +935 -0
  303. package/lib/custom-picker/custom.js +20 -0
  304. package/lib/custom-picker/generatePicker/generateSinglePicker.d.ts +769 -0
  305. package/lib/custom-picker/generatePicker/generateSinglePicker.js +196 -0
  306. package/lib/custom-picker/generatePicker/index.d.ts +404 -0
  307. package/lib/custom-picker/generatePicker/index.js +39 -0
  308. package/lib/custom-picker/generatePicker/interface.d.ts +20 -0
  309. package/lib/custom-picker/generatePicker/interface.js +5 -0
  310. package/lib/custom-picker/generatePicker/props.d.ts +229 -0
  311. package/lib/custom-picker/generatePicker/props.js +69 -0
  312. package/lib/custom-picker/index.d.ts +9 -0
  313. package/lib/custom-picker/index.js +21 -0
  314. package/lib/custom-picker/locale/en_US.d.ts +3 -0
  315. package/lib/custom-picker/locale/en_US.js +17 -0
  316. package/lib/custom-picker/locale/zh_CN.d.ts +3 -0
  317. package/lib/custom-picker/locale/zh_CN.js +15 -0
  318. package/lib/custom-picker/locale/zh_TW.d.ts +3 -0
  319. package/lib/custom-picker/locale/zh_TW.js +15 -0
  320. package/lib/custom-picker/style/index.d.ts +35 -0
  321. package/lib/custom-picker/style/index.js +1062 -0
  322. package/lib/custom-picker/util.d.ts +10 -0
  323. package/lib/custom-picker/util.js +54 -0
  324. package/lib/date-picker/date-fns.d.ts +59 -59
  325. package/lib/date-picker/dayjs.d.ts +59 -59
  326. package/lib/date-picker/generatePicker/generateRangePicker.d.ts +10 -10
  327. package/lib/date-picker/generatePicker/generateRangePicker.js +6 -2
  328. package/lib/date-picker/generatePicker/generateSinglePicker.d.ts +60 -60
  329. package/lib/date-picker/generatePicker/generateSinglePicker.js +13 -1
  330. package/lib/date-picker/generatePicker/index.d.ts +74 -70
  331. package/lib/date-picker/generatePicker/interface.d.ts +1 -1
  332. package/lib/date-picker/generatePicker/props.d.ts +2 -2
  333. package/lib/date-picker/moment.d.ts +59 -59
  334. package/lib/date-picker/style/index.d.ts +1 -0
  335. package/lib/date-picker/style/index.js +107 -62
  336. package/lib/descriptions/style/index.js +6 -4
  337. package/lib/drawer/index.js +4 -4
  338. package/lib/drawer/style/index.js +9 -5
  339. package/lib/dropdown/style/index.js +4 -2
  340. package/lib/empty/index.d.ts +44 -12
  341. package/lib/empty/index.js +38 -11
  342. package/lib/empty/net-error.d.ts +2 -0
  343. package/lib/empty/net-error.js +138 -0
  344. package/lib/empty/no-data.d.ts +2 -0
  345. package/lib/empty/no-data.js +107 -0
  346. package/lib/empty/no-page.d.ts +2 -0
  347. package/lib/empty/no-page.js +120 -0
  348. package/lib/empty/style/index.js +2 -2
  349. package/lib/float-button/BackTop.d.ts +9 -0
  350. package/lib/float-button/BackTop.js +4 -1
  351. package/lib/float-button/FloatButton.d.ts +9 -0
  352. package/lib/float-button/FloatButton.js +11 -5
  353. package/lib/float-button/FloatButtonGroup.d.ts +9 -0
  354. package/lib/float-button/FloatButtonGroup.js +7 -3
  355. package/lib/float-button/context.d.ts +2 -1
  356. package/lib/float-button/context.js +2 -1
  357. package/lib/float-button/index.d.ts +15 -0
  358. package/lib/float-button/interface.d.ts +14 -1
  359. package/lib/float-button/interface.js +2 -1
  360. package/lib/float-button/style/index.js +158 -40
  361. package/lib/form/style/index.js +7 -7
  362. package/lib/input/ClearableLabeledInput.d.ts +2 -2
  363. package/lib/input/Input.d.ts +6 -2
  364. package/lib/input/Input.js +8 -5
  365. package/lib/input/Password.d.ts +6 -2
  366. package/lib/input/ResizableTextArea.d.ts +6 -2
  367. package/lib/input/Search.d.ts +6 -2
  368. package/lib/input/TextArea.d.ts +6 -2
  369. package/lib/input/index.d.ts +9 -3
  370. package/lib/input/inputProps.d.ts +6 -2
  371. package/lib/input/style/index.js +53 -16
  372. package/lib/input-number/index.d.ts +30 -11
  373. package/lib/input-number/index.js +8 -2
  374. package/lib/input-number/src/InputNumber.d.ts +16 -0
  375. package/lib/input-number/src/InputNumber.js +37 -7
  376. package/lib/input-number/src/StepHandlerOutSide.d.ts +31 -0
  377. package/lib/input-number/src/StepHandlerOutSide.js +95 -0
  378. package/lib/input-number/style/index.js +76 -13
  379. package/lib/list/style/index.js +7 -5
  380. package/lib/locale/en_US.js +1 -0
  381. package/lib/locale/index.d.ts +2 -0
  382. package/lib/locale/index.js +1 -0
  383. package/lib/locale/zh_CN.js +3 -0
  384. package/lib/locale/zh_HK.js +1 -0
  385. package/lib/locale/zh_TW.js +1 -0
  386. package/lib/mentions/index.d.ts +4 -4
  387. package/lib/mentions/style/index.js +7 -4
  388. package/lib/menu/style/index.js +2 -2
  389. package/lib/message/style/index.js +3 -1
  390. package/lib/modal/Modal.d.ts +73 -1
  391. package/lib/modal/Modal.js +18 -2
  392. package/lib/modal/index.d.ts +87 -0
  393. package/lib/modal/style/index.js +5 -3
  394. package/lib/notification/style/index.js +6 -4
  395. package/lib/page-header/style/index.js +1 -1
  396. package/lib/pagination/Select.d.ts +10 -10
  397. package/lib/pagination/style/index.js +36 -11
  398. package/lib/popconfirm/index.d.ts +64 -0
  399. package/lib/popconfirm/index.js +1 -1
  400. package/lib/popconfirm/style/index.js +6 -1
  401. package/lib/popover/style/index.js +3 -1
  402. package/lib/progress/Circle.d.ts +27 -14
  403. package/lib/progress/Circle.js +1 -1
  404. package/lib/progress/Line.d.ts +27 -14
  405. package/lib/progress/Line.js +5 -5
  406. package/lib/progress/Steps.d.ts +27 -14
  407. package/lib/progress/index.d.ts +33 -18
  408. package/lib/progress/progress.d.ts +19 -10
  409. package/lib/progress/progress.js +8 -3
  410. package/lib/progress/props.d.ts +9 -5
  411. package/lib/progress/props.js +3 -2
  412. package/lib/progress/style/index.js +39 -0
  413. package/lib/progress/utils.js +7 -7
  414. package/lib/qrcode/style/index.js +1 -1
  415. package/lib/radio/style/index.js +62 -41
  416. package/lib/rate/index.d.ts +23 -0
  417. package/lib/rate/index.js +19 -3
  418. package/lib/rate/style/index.js +14 -4
  419. package/lib/result/style/index.js +7 -6
  420. package/lib/select/index.d.ts +11 -11
  421. package/lib/select/index.js +3 -1
  422. package/lib/select/style/dropdown.js +33 -7
  423. package/lib/select/style/index.js +21 -1
  424. package/lib/select/style/multiple.js +3 -7
  425. package/lib/select/style/single.js +7 -6
  426. package/lib/steps/style/index.js +6 -7
  427. package/lib/steps/style/inline.js +1 -1
  428. package/lib/steps/style/label-placement.js +2 -2
  429. package/lib/steps/style/progress-dot.js +2 -2
  430. package/lib/style/index.js +1 -1
  431. package/lib/switch/index.d.ts +5 -5
  432. package/lib/switch/index.js +2 -1
  433. package/lib/switch/style/index.js +170 -36
  434. package/lib/table/Table.d.ts +13 -0
  435. package/lib/table/Table.js +33 -4
  436. package/lib/table/hooks/useFilter/FilterDropdown.js +11 -7
  437. package/lib/table/hooks/useFilter/index.d.ts +4 -1
  438. package/lib/table/hooks/useFilter/index.js +18 -1
  439. package/lib/table/index.d.ts +15 -0
  440. package/lib/table/style/expand.js +3 -1
  441. package/lib/table/style/filter.js +1 -1
  442. package/lib/table/style/fixed.js +4 -0
  443. package/lib/table/style/index.d.ts +2 -0
  444. package/lib/table/style/index.js +26 -20
  445. package/lib/table/style/size.js +3 -2
  446. package/lib/tabs/style/index.js +4 -2
  447. package/lib/tag/index.d.ts +81 -4
  448. package/lib/tag/index.js +30 -1
  449. package/lib/tag/style/index.d.ts +2 -0
  450. package/lib/tag/style/index.js +178 -12
  451. package/lib/theme/interface/alias.d.ts +5 -0
  452. package/lib/theme/interface/components.d.ts +2 -0
  453. package/lib/theme/interface/maps/colors.d.ts +120 -54
  454. package/lib/theme/interface/maps/font.d.ts +8 -0
  455. package/lib/theme/interface/presetColors.d.ts +1 -1
  456. package/lib/theme/interface/presetColors.js +1 -1
  457. package/lib/theme/interface/seeds.d.ts +45 -8
  458. package/lib/theme/themes/dark/colors.js +25 -24
  459. package/lib/theme/themes/default/colors.js +8 -5
  460. package/lib/theme/themes/default/index.js +46 -2
  461. package/lib/theme/themes/seed.js +29 -19
  462. package/lib/theme/themes/shared/genColorMapToken.js +25 -12
  463. package/lib/theme/themes/shared/genFontMapToken.js +10 -1
  464. package/lib/theme/themes/shared/genFontSizes.d.ts +1 -0
  465. package/lib/theme/themes/shared/genFontSizes.js +3 -1
  466. package/lib/theme/themes/shared/genRadius.js +2 -2
  467. package/lib/theme/util/alias.js +9 -4
  468. package/lib/time-picker/time-picker.d.ts +2 -2
  469. package/lib/timeline/Timeline.d.ts +29 -0
  470. package/lib/timeline/Timeline.js +43 -15
  471. package/lib/timeline/TimelineItem.d.ts +16 -0
  472. package/lib/timeline/TimelineItem.js +19 -9
  473. package/lib/timeline/index.d.ts +27 -0
  474. package/lib/timeline/style/index.js +217 -70
  475. package/lib/tooltip/style/index.js +3 -3
  476. package/lib/tour/interface.d.ts +1 -0
  477. package/lib/tour/panelRender.js +12 -12
  478. package/lib/tour/style/index.js +37 -30
  479. package/lib/transfer/index.d.ts +11 -11
  480. package/lib/transfer/style/index.js +5 -2
  481. package/lib/tree/style/index.js +19 -8
  482. package/lib/tree-select/index.d.ts +11 -11
  483. package/lib/typography/style/index.js +1 -1
  484. package/lib/upload/style/index.js +3 -1
  485. package/lib/upload/style/list.js +9 -5
  486. package/lib/vc-input/BaseInput.d.ts +4 -0
  487. package/lib/vc-input/BaseInput.js +19 -2
  488. package/lib/vc-input/Input.d.ts +6 -2
  489. package/lib/vc-input/inputProps.d.ts +7 -1
  490. package/lib/vc-input/inputProps.js +2 -0
  491. package/lib/vc-input/utils/commonUtils.d.ts +1 -0
  492. package/lib/vc-input/utils/commonUtils.js +4 -0
  493. package/lib/vc-picker/Picker.d.ts +7 -3
  494. package/lib/vc-picker/Picker.js +39 -6
  495. package/lib/vc-picker/PickerPanel.d.ts +12 -4
  496. package/lib/vc-picker/PickerPanel.js +29 -6
  497. package/lib/vc-picker/RangePicker.d.ts +2 -0
  498. package/lib/vc-picker/RangePicker.js +6 -3
  499. package/lib/vc-picker/hooks/useValueTexts.d.ts +4 -1
  500. package/lib/vc-picker/hooks/useValueTexts.js +7 -0
  501. package/lib/vc-picker/interface.d.ts +2 -2
  502. package/lib/vc-picker/panels/CustomPanel/BasePanelBody.d.ts +84 -0
  503. package/lib/vc-picker/panels/CustomPanel/BasePanelBody.js +185 -0
  504. package/lib/vc-picker/panels/CustomPanel/CustomPanelBody.d.ts +19 -0
  505. package/lib/vc-picker/panels/CustomPanel/CustomPanelBody.js +28 -0
  506. package/lib/vc-picker/panels/CustomPanel/CustomPanelHeader.d.ts +11 -0
  507. package/lib/vc-picker/panels/CustomPanel/CustomPanelHeader.js +25 -0
  508. package/lib/vc-picker/panels/CustomPanel/index.d.ts +20 -0
  509. package/lib/vc-picker/panels/CustomPanel/index.js +48 -0
  510. package/lib/vc-picker/utils/getRanges.js +1 -1
  511. package/lib/vc-picker/utils/uiUtil.js +2 -1
  512. package/lib/vc-select/OptionList.js +8 -1
  513. package/lib/vc-select/SelectTrigger.js +4 -4
  514. package/lib/vc-table/Body/index.js +20 -1
  515. package/lib/vc-table/Table.js +2 -1
  516. package/lib/vc-tour/Mask.js +76 -60
  517. package/lib/vc-tour/Tour.js +4 -2
  518. package/lib/vc-tour/hooks/useTarget.js +2 -2
  519. package/lib/vc-tree/TreeNode.js +7 -3
  520. package/lib/version/token-meta.json +1 -1
  521. package/lib/version/token.json +1 -1
  522. package/lib/version/version.d.ts +1 -1
  523. package/lib/version/version.js +1 -1
  524. package/package.json +2 -1
  525. package/typings/global.d.ts +2 -0
  526. package/es/buttonA/LoadingIcon.d.ts +0 -12
  527. package/es/buttonA/LoadingIcon.js +0 -68
  528. package/es/buttonA/button-group.d.ts +0 -33
  529. package/es/buttonA/button-group.js +0 -64
  530. package/es/buttonA/button.d.ts +0 -112
  531. package/es/buttonA/button.js +0 -221
  532. package/es/buttonA/buttonTypes.d.ts +0 -58
  533. package/es/buttonA/buttonTypes.js +0 -53
  534. package/es/buttonA/index.d.ts +0 -197
  535. package/es/buttonA/index.js +0 -11
  536. package/es/buttonA/style/group.d.ts +0 -4
  537. package/es/buttonA/style/group.js +0 -68
  538. package/es/buttonA/style/index.d.ts +0 -10
  539. package/es/buttonA/style/index.js +0 -423
  540. package/es/empty/empty.d.ts +0 -2
  541. package/es/empty/empty.js +0 -69
  542. package/es/empty/simple.js +0 -51
  543. package/lib/buttonA/LoadingIcon.d.ts +0 -12
  544. package/lib/buttonA/LoadingIcon.js +0 -75
  545. package/lib/buttonA/button-group.d.ts +0 -33
  546. package/lib/buttonA/button-group.js +0 -72
  547. package/lib/buttonA/button.d.ts +0 -112
  548. package/lib/buttonA/button.js +0 -233
  549. package/lib/buttonA/buttonTypes.d.ts +0 -58
  550. package/lib/buttonA/buttonTypes.js +0 -63
  551. package/lib/buttonA/index.d.ts +0 -197
  552. package/lib/buttonA/index.js +0 -23
  553. package/lib/buttonA/style/group.d.ts +0 -4
  554. package/lib/buttonA/style/group.js +0 -74
  555. package/lib/buttonA/style/index.d.ts +0 -10
  556. package/lib/buttonA/style/index.js +0 -430
  557. package/lib/empty/empty.d.ts +0 -2
  558. package/lib/empty/empty.js +0 -74
  559. package/lib/empty/simple.js +0 -56
package/README.md CHANGED
@@ -1,106 +1,10 @@
1
1
  <p align="center">
2
- <a href="https://www.antdv.com/">
3
- <img width="200" src="https://aliyuncdn.antdv.com/logo.png">
2
+ <a href="https://jielong.com/">
3
+ <img width="200" src="https://resoure-cos.jielong.com/console/image-webp/logo.webp">
4
4
  </a>
5
5
  </p>
6
6
 
7
7
  <h1 align="center">
8
- <a href="https://www.antdv.com/" target="_blank">Ant Design Vue</a>
8
+ <a href="https://jielong.com/" target="_blank">Antd-JL</a>
9
9
  </h1>
10
-
11
- <div align="center">
12
-
13
- An enterprise-class UI components based on Ant Design and Vue.
14
-
15
- ![test](https://github.com/vueComponent/ant-design-vue/workflows/test/badge.svg) [![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design-vue) [![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue) [![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue) [![backers](https://opencollective.com/ant-design-vue/backers/badge.svg)](#backers) [![sponsors](https://opencollective.com/ant-design-vue/sponsors/badge.svg)](#sponsors) [![extension-for-VSCode](https://img.shields.io/badge/extension%20for-VSCode-blue.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=ant-design-vue.vscode-ant-design-vue-helper) [![issues-helper](https://img.shields.io/badge/Issues%20Manage%20By-issues--helper-orange?style=flat-square)](https://github.com/actions-cool/issues-helper)
16
-
17
- </div>
18
-
19
- [![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://www.antdv.com/)
20
-
21
- English | [简体中文](./README-zh_CN.md)
22
-
23
- ## Features
24
-
25
- - An enterprise-class UI design system for desktop applications.
26
- - A set of high-quality Vue components out of the box.
27
- - Shared [Ant Design of React](https://ant.design/docs/spec/introduce) design resources.
28
-
29
- ## Getting started & staying tuned with us.
30
-
31
- Star us, and you will receive all releases notifications from GitHub without any delay!
32
-
33
- ![star us](https://user-images.githubusercontent.com/6937879/261937060-e0501ab3-9388-4712-a25d-3f2ba2271865.gif)
34
-
35
- ## Environment Support
36
-
37
- - Modern browsers. v1.x support Internet Explorer 9+ (with [polyfills](https://www.antdv.com/docs/vue/getting-started/#compatibility))
38
- - Server-side Rendering
39
- - Support Vue 2 & Vue 3
40
- - [Electron](https://electronjs.org/)
41
-
42
- | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
43
- | --- | --- | --- | --- | --- | --- |
44
- | Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
45
-
46
- ## Using npm or yarn
47
-
48
- **We recommend using npm or yarn to install**, it not only makes development easier, but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
49
-
50
- ```bash
51
- $ npm install ant-design-vue --save
52
- ```
53
-
54
- ```bash
55
- $ yarn add ant-design-vue
56
- ```
57
-
58
- If you are in a bad network environment, you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
59
-
60
- ## Links
61
-
62
- - [Home page](https://www.antdv.com/)
63
- - [Vue](https://vuejs.org/)
64
- - [Ant Design Of React](http://ant.design/)
65
-
66
- ## Ecosystem
67
-
68
- | Project | Description |
69
- | --- | --- |
70
- | [vue-ref](https://github.com/vueComponent/vue-ref) | You can use the callback to get a reference like react |
71
- | [ant-design-vue-helper](https://marketplace.visualstudio.com/items?itemName=ant-design-vue.vscode-ant-design-vue-helper) | A vscode extension for ant-design-vue |
72
- | [vue-cli-plugin-ant-design](https://github.com/vueComponent/vue-cli-plugin-ant-design) | Vue-cli 3 plugin to add ant-design-vue |
73
- | [vue-dash-event](https://github.com/vueComponent/vue-dash-event) | The library function, implemented in the DOM template, can use the custom event of the ant-design-vue component (camelCase) |
74
- | [@formily/antdv](https://github.com/formilyjs/antdv) | The Library with Formily and ant-design-vue |
75
- | [@ant-design-vue/nuxt](https://github.com/vueComponent/ant-design-vue-nuxt) | A nuxt module for ant-design-vue |
76
- | [ant-design-x-vue](https://github.com/wzc520pyfm/ant-design-x-vue) | A Vue AI interface solutions base on the Ant Design X design specification |
77
-
78
- ## Donation
79
-
80
- ant-design-vue is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more [backers](https://github.com/vueComponent/ant-design-vue/blob/master/BACKERS.md). You can support us in any of the following ways:
81
-
82
- - [Patreon](https://www.patreon.com/tangjinzhou)
83
- - [opencollective](https://opencollective.com/ant-design-vue)
84
- - [paypal](https://www.paypal.me/tangjinzhou)
85
- - [支付宝或微信](https://aliyuncdn.antdv.com/alipay-and-wechat.png)
86
- - ETH: 0x30cc48515d8ae9fefa20ab87226ad7e8ab9c3bc2
87
-
88
- ## Sponsors
89
-
90
- Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/ant-design-vue#sponsor)]
91
-
92
- <a href="http://www.jeecg.com/" target="_blank"><img src="https://aliyuncdn.antdv.com/jeecg-logo.png" height="64"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/0/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/0/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/1/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/1/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/2/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/2/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/3/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/3/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/4/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/4/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/5/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/5/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/6/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/6/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/7/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/7/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/8/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/8/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/9/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/9/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/10/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/10/avatar.svg"></a>
93
-
94
- ## [More Sponsor (From Patreon、alipay、wechat、paypal...)](https://github.com/vueComponent/ant-design-vue/blob/master/BACKERS.md)
95
-
96
- ## Contributors
97
-
98
- Thank you to all the people who already contributed to ant-design-vue!
99
-
100
- <a href="https://github.com/vueComponent/ant-design-vue/graphs/contributors">
101
- <img src="https://contrib.rocks/image?repo=vueComponent/ant-design-vue&max=100&columns=15" />
102
- </a>
103
-
104
- [![Let's fund issues in this repository](https://issuehunt.io/static/embed/issuehunt-button-v1.svg)](https://issuehunt.io/repos/104172832)
105
-
106
- This project is tested with BrowserStack.
10
+ <h2 align="center">基于antd封装的jl组件库</h2>
@@ -46,6 +46,10 @@ declare const actionButtonProps: {
46
46
  type: BooleanConstructor;
47
47
  default: any;
48
48
  };
49
+ secondary: {
50
+ type: BooleanConstructor;
51
+ default: any;
52
+ };
49
53
  icon: import("vue-types").VueTypeValidableDef<any>;
50
54
  href: StringConstructor;
51
55
  target: StringConstructor;
@@ -94,6 +98,10 @@ declare const actionButtonProps: {
94
98
  type: BooleanConstructor;
95
99
  default: any;
96
100
  };
101
+ secondary: {
102
+ type: BooleanConstructor;
103
+ default: any;
104
+ };
97
105
  icon: import("vue-types").VueTypeValidableDef<any>;
98
106
  href: StringConstructor;
99
107
  target: StringConstructor;
@@ -156,6 +164,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
156
164
  type: BooleanConstructor;
157
165
  default: any;
158
166
  };
167
+ secondary: {
168
+ type: BooleanConstructor;
169
+ default: any;
170
+ };
159
171
  icon: import("vue-types").VueTypeValidableDef<any>;
160
172
  href: StringConstructor;
161
173
  target: StringConstructor;
@@ -204,6 +216,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
204
216
  type: BooleanConstructor;
205
217
  default: any;
206
218
  };
219
+ secondary: {
220
+ type: BooleanConstructor;
221
+ default: any;
222
+ };
207
223
  icon: import("vue-types").VueTypeValidableDef<any>;
208
224
  href: StringConstructor;
209
225
  target: StringConstructor;
@@ -264,6 +280,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
264
280
  type: BooleanConstructor;
265
281
  default: any;
266
282
  };
283
+ secondary: {
284
+ type: BooleanConstructor;
285
+ default: any;
286
+ };
267
287
  icon: import("vue-types").VueTypeValidableDef<any>;
268
288
  href: StringConstructor;
269
289
  target: StringConstructor;
@@ -312,6 +332,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
312
332
  type: BooleanConstructor;
313
333
  default: any;
314
334
  };
335
+ secondary: {
336
+ type: BooleanConstructor;
337
+ default: any;
338
+ };
315
339
  icon: import("vue-types").VueTypeValidableDef<any>;
316
340
  href: StringConstructor;
317
341
  target: StringConstructor;
@@ -365,6 +389,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
365
389
  type: BooleanConstructor;
366
390
  default: any;
367
391
  };
392
+ secondary: {
393
+ type: BooleanConstructor;
394
+ default: any;
395
+ };
368
396
  icon: import("vue-types").VueTypeValidableDef<any>;
369
397
  href: StringConstructor;
370
398
  target: StringConstructor;
@@ -1,6 +1,6 @@
1
1
  import type { PresetColorKey } from '../theme/interface';
2
2
  type InverseColor = `${PresetColorKey}-inverse`;
3
- export declare const PresetStatusColorTypes: readonly ["success", "processing", "error", "default", "warning"];
3
+ export declare const PresetStatusColorTypes: readonly ["success", "processing", "error", "default", "warning", "primary"];
4
4
  export type PresetColorType = PresetColorKey | InverseColor;
5
5
  export type PresetStatusColorType = (typeof PresetStatusColorTypes)[number];
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { PresetColors } from '../theme/interface';
2
2
  const inverseColors = PresetColors.map(color => `${color}-inverse`);
3
- export const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning'];
3
+ export const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning', 'primary'];
4
4
  /**
5
5
  * determine if the color keyword belongs to the `Ant Design` {@link PresetColors}.
6
6
  * @param color color to be judged
@@ -1,5 +1,5 @@
1
1
  import type { ValidateStatus } from '../form/FormItem';
2
- declare const InputStatuses: readonly ["warning", "error", ""];
2
+ declare const InputStatuses: readonly ["warning", "error", "success", ""];
3
3
  export type InputStatus = (typeof InputStatuses)[number];
4
4
  export declare function getStatusClassNames(prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean): string;
5
5
  export declare const getMergedStatus: (contextStatus?: ValidateStatus, customStatus?: InputStatus) => "" | "error" | "validating" | "success" | "warning";
@@ -1,5 +1,5 @@
1
1
  import classNames from './classNames';
2
- const InputStatuses = ['warning', 'error', ''];
2
+ const InputStatuses = ['warning', 'error', 'success', ''];
3
3
  export function getStatusClassNames(prefixCls, status, hasFeedback) {
4
4
  return classNames({
5
5
  [`${prefixCls}-status-success`]: status === 'success',
@@ -15,4 +15,13 @@ export declare function getDataAndAriaProps(props: any): {};
15
15
  export declare function toPx(val: any): any;
16
16
  export declare function renderHelper<T = Record<string, any>>(v: VueNode | ((arg0: T) => VueNode), props?: T, defaultV?: any): any;
17
17
  export declare function wrapPromiseFn(openFn: (resolve: VoidFunction) => VoidFunction): any;
18
+ /**
19
+ * @name roundToNearest
20
+ * @function
21
+ * @param num
22
+ * @param precision
23
+ * @description 精确处理lineHeight数值问题,2.99->3 14.445->14.5H
24
+ * @returns number
25
+ */
26
+ export declare function roundToNearest(num: number): number;
18
27
  export { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue };
package/es/_util/util.js CHANGED
@@ -79,4 +79,19 @@ export function wrapPromiseFn(openFn) {
79
79
  result.promise = closePromise;
80
80
  return result;
81
81
  }
82
+ /**
83
+ * @name roundToNearest
84
+ * @function
85
+ * @param num
86
+ * @param precision
87
+ * @description 精确处理lineHeight数值问题,2.99->3 14.445->14.5H
88
+ * @returns number
89
+ */
90
+ export function roundToNearest(num) {
91
+ const decimalPart = num - Math.floor(num);
92
+ // 整数还是半整数
93
+ const factor = decimalPart >= 0.4 && decimalPart < 0.5 ? 2 : 1;
94
+ // 四舍五入到最近的整数,再还原步长
95
+ return Math.round(num * factor) / factor;
96
+ }
82
97
  export { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue };
@@ -16,8 +16,8 @@ export const genBaseStyle = token => {
16
16
  marginSM,
17
17
  fontSize,
18
18
  fontSizeLG,
19
- lineHeight,
20
- borderRadiusLG: borderRadius,
19
+ lineHeightPx,
20
+ borderRadius,
21
21
  motionEaseInOutCirc,
22
22
  alertIconSizeLG,
23
23
  colorText,
@@ -48,7 +48,7 @@ export const genBaseStyle = token => {
48
48
  [`&-description`]: {
49
49
  display: 'none',
50
50
  fontSize,
51
- lineHeight
51
+ lineHeight: lineHeightPx
52
52
  },
53
53
  '&-message': {
54
54
  color: colorText
@@ -98,24 +98,24 @@ export const genTypeStyle = token => {
98
98
  const {
99
99
  componentCls,
100
100
  colorSuccess,
101
- colorSuccessBorder,
101
+ colorSuccessDisabled,
102
102
  colorSuccessBg,
103
103
  colorWarning,
104
- colorWarningBorder,
104
+ colorWarningDisabled,
105
105
  colorWarningBg,
106
106
  colorError,
107
- colorErrorBorder,
107
+ colorErrorDisabled,
108
108
  colorErrorBg,
109
109
  colorInfo,
110
- colorInfoBorder,
110
+ colorInfoDisabled,
111
111
  colorInfoBg
112
112
  } = token;
113
113
  return {
114
114
  [componentCls]: {
115
- '&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
116
- '&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
117
- '&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
118
- '&-error': _extends(_extends({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), {
115
+ '&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessDisabled, colorSuccess, token, componentCls),
116
+ '&-info': genAlertTypeStyle(colorInfoBg, colorInfoDisabled, colorInfo, token, componentCls),
117
+ '&-warning': genAlertTypeStyle(colorWarningBg, colorWarningDisabled, colorWarning, token, componentCls),
118
+ '&-error': _extends(_extends({}, genAlertTypeStyle(colorErrorBg, colorErrorDisabled, colorError, token, componentCls)), {
119
119
  [`${componentCls}-description > pre`]: {
120
120
  margin: 0,
121
121
  padding: 0
@@ -5,14 +5,14 @@ const genBaseStyle = token => {
5
5
  componentCls,
6
6
  colorText,
7
7
  fontSize,
8
- lineHeight,
8
+ lineHeightPx,
9
9
  fontFamily
10
10
  } = token;
11
11
  return {
12
12
  [componentCls]: {
13
13
  color: colorText,
14
14
  fontSize,
15
- lineHeight,
15
+ lineHeight: lineHeightPx,
16
16
  fontFamily
17
17
  }
18
18
  };
@@ -39,7 +39,7 @@ export declare const autoCompleteProps: () => {
39
39
  type: BooleanConstructor;
40
40
  default: boolean;
41
41
  };
42
- status: PropType<"" | "error" | "warning">;
42
+ status: PropType<"" | "error" | "success" | "warning">;
43
43
  size: {
44
44
  type: PropType<import("../config-provider").SizeType>;
45
45
  default: import("../config-provider").SizeType;
@@ -209,7 +209,7 @@ declare const _default: {
209
209
  type: BooleanConstructor;
210
210
  default: boolean;
211
211
  };
212
- status: PropType<"" | "error" | "warning">;
212
+ status: PropType<"" | "error" | "success" | "warning">;
213
213
  size: {
214
214
  type: PropType<import("../config-provider").SizeType>;
215
215
  default: import("../config-provider").SizeType;
@@ -410,7 +410,7 @@ declare const _default: {
410
410
  type: BooleanConstructor;
411
411
  default: boolean;
412
412
  };
413
- status: PropType<"" | "error" | "warning">;
413
+ status: PropType<"" | "error" | "success" | "warning">;
414
414
  size: {
415
415
  type: PropType<import("../config-provider").SizeType>;
416
416
  default: import("../config-provider").SizeType;
@@ -601,7 +601,7 @@ declare const _default: {
601
601
  type: BooleanConstructor;
602
602
  default: boolean;
603
603
  };
604
- status: PropType<"" | "error" | "warning">;
604
+ status: PropType<"" | "error" | "success" | "warning">;
605
605
  size: {
606
606
  type: PropType<import("../config-provider").SizeType>;
607
607
  default: import("../config-provider").SizeType;
@@ -22,13 +22,13 @@ export declare const badgeProps: () => {
22
22
  prefixCls: StringConstructor;
23
23
  scrollNumberPrefixCls: StringConstructor;
24
24
  status: {
25
- type: PropType<"default" | "error" | "success" | "processing" | "warning">;
25
+ type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
26
26
  };
27
27
  size: {
28
28
  type: PropType<"default" | "small">;
29
29
  default: string;
30
30
  };
31
- color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
31
+ color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
32
32
  text: import("vue-types").VueTypeValidableDef<any>;
33
33
  offset: PropType<[string | number, string | number]>;
34
34
  numberStyle: {
@@ -60,13 +60,13 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
60
60
  prefixCls: StringConstructor;
61
61
  scrollNumberPrefixCls: StringConstructor;
62
62
  status: {
63
- type: PropType<"default" | "error" | "success" | "processing" | "warning">;
63
+ type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
64
64
  };
65
65
  size: {
66
66
  type: PropType<"default" | "small">;
67
67
  default: string;
68
68
  };
69
- color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
69
+ color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
70
70
  text: import("vue-types").VueTypeValidableDef<any>;
71
71
  offset: PropType<[string | number, string | number]>;
72
72
  numberStyle: {
@@ -96,13 +96,13 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
96
96
  prefixCls: StringConstructor;
97
97
  scrollNumberPrefixCls: StringConstructor;
98
98
  status: {
99
- type: PropType<"default" | "error" | "success" | "processing" | "warning">;
99
+ type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
100
100
  };
101
101
  size: {
102
102
  type: PropType<"default" | "small">;
103
103
  default: string;
104
104
  };
105
- color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
105
+ color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
106
106
  text: import("vue-types").VueTypeValidableDef<any>;
107
107
  offset: PropType<[string | number, string | number]>;
108
108
  numberStyle: {
@@ -22,13 +22,13 @@ declare const _default: {
22
22
  prefixCls: StringConstructor;
23
23
  scrollNumberPrefixCls: StringConstructor;
24
24
  status: {
25
- type: import("vue").PropType<"default" | "error" | "success" | "processing" | "warning">;
25
+ type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
26
26
  };
27
27
  size: {
28
28
  type: import("vue").PropType<"default" | "small">;
29
29
  default: string;
30
30
  };
31
- color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
31
+ color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
32
32
  text: import("vue-types").VueTypeValidableDef<any>;
33
33
  offset: import("vue").PropType<[string | number, string | number]>;
34
34
  numberStyle: {
@@ -73,13 +73,13 @@ declare const _default: {
73
73
  prefixCls: StringConstructor;
74
74
  scrollNumberPrefixCls: StringConstructor;
75
75
  status: {
76
- type: import("vue").PropType<"default" | "error" | "success" | "processing" | "warning">;
76
+ type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
77
77
  };
78
78
  size: {
79
79
  type: import("vue").PropType<"default" | "small">;
80
80
  default: string;
81
81
  };
82
- color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
82
+ color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
83
83
  text: import("vue-types").VueTypeValidableDef<any>;
84
84
  offset: import("vue").PropType<[string | number, string | number]>;
85
85
  numberStyle: {
@@ -117,13 +117,13 @@ declare const _default: {
117
117
  prefixCls: StringConstructor;
118
118
  scrollNumberPrefixCls: StringConstructor;
119
119
  status: {
120
- type: import("vue").PropType<"default" | "error" | "success" | "processing" | "warning">;
120
+ type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
121
121
  };
122
122
  size: {
123
123
  type: import("vue").PropType<"default" | "small">;
124
124
  default: string;
125
125
  };
126
- color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
126
+ color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
127
127
  text: import("vue-types").VueTypeValidableDef<any>;
128
128
  offset: import("vue").PropType<[string | number, string | number]>;
129
129
  numberStyle: {
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { Keyframes } from '../../_util/cssinjs';
3
3
  import { genComponentStyleHook, mergeToken } from '../../theme/internal';
4
4
  import { genPresetColor, resetComponent } from '../../style';
5
+ import { roundToNearest } from 'ant-design-vue/es/_util/util';
6
+ import { getAlphaColor } from '../../theme/themes/dark/colorAlgorithm';
5
7
  const antStatusProcessing = new Keyframes('antStatusProcessing', {
6
8
  '0%': {
7
9
  transform: 'scale(0.8)',
@@ -109,7 +111,7 @@ const genSharedBadgeStyle = token => {
109
111
  textAlign: 'center',
110
112
  background: token.badgeColor,
111
113
  borderRadius: token.badgeHeight / 2,
112
- boxShadow: `0 0 0 ${badgeShadowSize}px ${token.badgeShadowColor}`,
114
+ // boxShadow: `0 0 0 ${badgeShadowSize}px ${token.badgeShadowColor}`,
113
115
  transition: `background ${token.motionDurationMid}`,
114
116
  a: {
115
117
  color: token.badgeTextColor
@@ -334,16 +336,17 @@ export default genComponentStyleHook('Badge', token => {
334
336
  marginXS,
335
337
  colorBorderBg
336
338
  } = token;
337
- const badgeFontHeight = Math.round(fontSize * lineHeight);
339
+ // TODO:lineheight
340
+ const badgeFontHeight = roundToNearest(fontSize * lineHeight);
338
341
  const badgeShadowSize = lineWidth;
339
342
  const badgeZIndex = 'auto';
340
343
  const badgeHeight = badgeFontHeight - 2 * badgeShadowSize;
341
- const badgeTextColor = token.colorBgContainer;
344
+ const badgeTextColor = getAlphaColor(token.colorBgContainer, 0.9);
342
345
  const badgeFontWeight = 'normal';
343
346
  const badgeFontSize = fontSizeSM;
344
347
  const badgeColor = token.colorError;
345
348
  const badgeColorHover = token.colorErrorHover;
346
- const badgeHeightSm = fontSize;
349
+ const badgeHeightSm = token.fontSizeLG;
347
350
  const badgeDotSize = fontSizeSM / 2;
348
351
  const badgeFontSizeSm = fontSizeSM;
349
352
  const badgeStatusSize = fontSizeSM / 2;
@@ -423,6 +423,10 @@ export declare const breadcrumbItemProps: () => {
423
423
  onClick: {
424
424
  type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
425
425
  };
426
+ disabled: {
427
+ type: BooleanConstructor;
428
+ default: any;
429
+ };
426
430
  };
427
431
  export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>;
428
432
  declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
@@ -847,6 +851,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
847
851
  onClick: {
848
852
  type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
849
853
  };
854
+ disabled: {
855
+ type: BooleanConstructor;
856
+ default: any;
857
+ };
850
858
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
851
859
  prefixCls: StringConstructor;
852
860
  href: StringConstructor;
@@ -1269,7 +1277,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
1269
1277
  onClick: {
1270
1278
  type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
1271
1279
  };
1280
+ disabled: {
1281
+ type: BooleanConstructor;
1282
+ default: any;
1283
+ };
1272
1284
  }>> & Readonly<{}>, {
1285
+ disabled: boolean;
1273
1286
  dropdownProps: Partial<ExtractPropTypes<{
1274
1287
  arrow: {
1275
1288
  type: import("vue").PropType<boolean | import("../dropdown/props").DropdownArrowOptions>;
@@ -20,7 +20,11 @@ export const breadcrumbItemProps = () => ({
20
20
  separator: PropTypes.any,
21
21
  dropdownProps: objectType(),
22
22
  overlay: PropTypes.any,
23
- onClick: eventType()
23
+ onClick: eventType(),
24
+ disabled: {
25
+ type: Boolean,
26
+ default: undefined
27
+ }
24
28
  });
25
29
  export default defineComponent({
26
30
  compatConfig: {
@@ -59,6 +63,10 @@ export default defineComponent({
59
63
  return breadcrumbItem;
60
64
  };
61
65
  const handleClick = e => {
66
+ if (props.disabled) {
67
+ e.preventDefault();
68
+ return;
69
+ }
62
70
  emit('click', e);
63
71
  };
64
72
  return () => {
@@ -73,12 +81,16 @@ export default defineComponent({
73
81
  let link;
74
82
  if (props.href !== undefined) {
75
83
  link = _createVNode("a", _objectSpread({
76
- "class": `${prefixCls.value}-link`,
84
+ "class": [`${prefixCls.value}-link`, {
85
+ disabled: props.disabled
86
+ }],
77
87
  "onClick": handleClick
78
88
  }, restAttrs), [children]);
79
89
  } else {
80
90
  link = _createVNode("span", _objectSpread({
81
- "class": `${prefixCls.value}-link`,
91
+ "class": [`${prefixCls.value}-link`, {
92
+ disabled: props.disabled
93
+ }],
82
94
  "onClick": handleClick
83
95
  }, restAttrs), [children]);
84
96
  }
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { genComponentStyleHook, mergeToken } from '../../theme/internal';
3
3
  import { genFocusStyle, resetComponent } from '../../style';
4
+ import { roundToNearest } from 'ant-design-vue/es/_util/util';
4
5
  const genBreadcrumbStyle = token => {
5
6
  const {
6
7
  componentCls,
@@ -25,12 +26,13 @@ const genBreadcrumbStyle = token => {
25
26
  transition: `color ${token.motionDurationMid}`,
26
27
  padding: `0 ${token.paddingXXS}px`,
27
28
  borderRadius: token.borderRadiusSM,
28
- height: token.lineHeight * token.fontSize,
29
+ // TODO:lineheight
30
+ height: roundToNearest(token.lineHeight * token.fontSize),
29
31
  display: 'inline-block',
30
32
  marginInline: -token.marginXXS,
31
33
  '&:hover': {
32
34
  color: token.breadcrumbLinkColorHover,
33
- backgroundColor: token.colorBgTextHover
35
+ backgroundColor: token.colorSecondary
34
36
  }
35
37
  }, genFocusStyle(token)),
36
38
  [`li:last-child`]: {
@@ -49,11 +51,22 @@ const genBreadcrumbStyle = token => {
49
51
  > ${iconCls} + a
50
52
  `]: {
51
53
  marginInlineStart: token.marginXXS
54
+ },
55
+ [`&.disabled`]: {
56
+ a: {
57
+ color: token.colorTextQuaternary,
58
+ cursor: 'not-allowed',
59
+ '&:hover': {
60
+ color: token.colorTextQuaternary,
61
+ backgroundColor: 'transparent'
62
+ }
63
+ }
52
64
  }
53
65
  },
54
66
  [`${componentCls}-overlay-link`]: {
55
67
  borderRadius: token.borderRadiusSM,
56
- height: token.lineHeight * token.fontSize,
68
+ // TODO:lineheight
69
+ height: roundToNearest(token.lineHeight * token.fontSize),
57
70
  display: 'inline-block',
58
71
  padding: `0 ${token.paddingXXS}px`,
59
72
  marginInline: -token.marginXXS,
@@ -91,7 +104,7 @@ export default genComponentStyleHook('Breadcrumb', token => {
91
104
  breadcrumbLinkColorHover: token.colorText,
92
105
  breadcrumbLastItemColor: token.colorText,
93
106
  breadcrumbSeparatorMargin: token.marginXS,
94
- breadcrumbSeparatorColor: token.colorTextDescription
107
+ breadcrumbSeparatorColor: token.colorTextSecondary
95
108
  });
96
109
  return [genBreadcrumbStyle(BreadcrumbToken)];
97
110
  });