npm antd 5.1.0

latest releases: 5.21.0, 5.20.6, 5.20.5...
21 months ago
  • 🔥 New App Component which provide global style & static function replacement. #39046
  • 🔥 New QRCode Component. #38948
  • 🔥 New Watermark Component. #39064 @JarvisArt
  • 🆕 Mentions support options prop. #38630 @heiyu4585
  • 🆕 FloatButton support clickOutAutoClose. #39501 @BoyYangzai
  • 🆕 Popconfirm support description prop. #39250 @xhh0223
  • 🆕 Modal.confirm support footer prop. #39048 @owjs3901
  • 🆕 Table support rowScope to set the column range. #39571
  • 🆕 Anchor support items data configuration option content, which supports nesting through children. #39034 @foryuki
  • 🆕 Breakpoints can now follow theme token config. #39105 @azro352
  • 🆕 Tour prevButtonProps nextButtonProps support style classname prop. #38939 @ONLY-yours
  • 🆕 ConfigProvider support config select.showSearch. #39531 @YinDongFang
  • 🐞 Fix Tabs inkBar not show in StrictMode. #39653
  • 🐞 Fix Badge component width not being affected by parent element. #39605 @AydenGen
  • Select
    • 🐞 Fix wrong usage of icon color token in Select. #39644
    • 💄 Optimize Select a11y to bind real option element when virtual=false. #39550
  • 🐞 Fix Tour steps set type=‘primary’ not work. #39382 @heiyu4585
  • 🐞 Fix disabled style miss when has href on Button. #39456 @BoyYangzai
  • 🐞 Fix Segmented icon unexpected margin. #39575
  • 🐞 Fix Drawer unexpected warning about DefaultProps. #39562
  • Menu
    • 🐞 Fix Menu.Submenu will flicker when use createRoot to render. #38855 @JarvisArt
    • 🛠 Refactor MenuItem to Function Component. #38751
    • 💄 Optimize Menu item style when selected. #39439
  • 🛠 LocaleProvider has been deprecated in 4.x (use <ConfigProvider locale /> instead), we removed the related folder antd/es/locale-provider and antd/lib/locale-provider in 5.x. #39373
  • 🛠 Simplified lodash method introduction. #39599 #39602
  • TypeScript
    • 🤖 Optimize Button DropDown Modal Popconfirm Select Transfer mouse event type definition. #39533
    • 🤖 New export type FloatButtonGroupProps. #39553
  • 🌐 Localization

  • 🔥 新增 App 包裹组件,提供重置样式和提供消费上下文的默认环境。#39046
  • 🔥 新增 QRCode 二维码组件。#38948
  • 🔥 新增 Watermark 水印组件。#39064 @JarvisArt
  • 🆕 Mentions 新增 options 配置。#38630 @heiyu4585
  • 🆕 FloatButton 新增支持点击外侧自动关闭功能。#39501 @BoyYangzai
  • 🆕 Popconfirm 组件新增 description 属性。#39250 @xhh0223
  • 🆕 Modal.confirm 新增 footer 属性以自定义按钮列表。#39048 @owjs3901
  • 🆕 Table 新增 rowScope 以设置列范围。#39571
  • 🆕 Anchor 新增 items 数据化配置选项内容,支持通过 children 嵌套。#39034 @foryuki
  • 🆕 Grid 组件的响应式断点现在会消费主题 token 配置。#39105 @azro352
  • 🆕 Tour 的 prevButtonProps nextButtonProps 新增 styleclassname 设置。#38939 @ONLY-yours
  • 🆕 ConfigProvider 支持配置 select.showSearch#39531 @YinDongFang
  • 🐞 修复 Tabs inkBar 在 StrictMode 下不展示的问题。#39653
  • 🐞 修复 Badge 组件宽度不受父元素影响。#39605 @AydenGen
  • Select
    • 🐞 修复 Select 组件 icon 颜色使用的 token。#39644
    • 💄 优化 Select 无障碍体验,当 virtual=false 时,将会绑定无障碍访问到实际选项元素上。#39550
  • 🐞 修复 Tour steps 设置 type="primary" 无效的问题。#39382 @heiyu4585
  • 🐞 修复带有 href 的 Button 组件 disabled 时 style 不生效的问题。#39456 @BoyYangzai
  • 🐞 修复 Segmented 组件 icon 与文字间距消失的问题。#39575
  • 🐞 修复 Drawer 组件关于 DefaultProps 的警告。#39562
  • Menu
    • 🐞 修复 React18 中使用 createRoot 渲染 Menu.Submenu 会闪烁的问题。#38855 @JarvisArt
    • 🛠 重构 MenuItem 为 Function Component。#38751
    • 💄 优化 Menu 组件选中样式。#39439
  • 🛠 LocaleProvider 在 4.x 中已经废弃(使用 <ConfigProvider locale /> 替代),我们在 5.x 里彻底移除了相关目录 antd/es/locale-provider、antd/lib/locale-provider。#39373
  • 🛠 简化 lodash 方法引用。#39599 #39602
  • TypeScript
    • 🤖 优化 Button DropDown Modal Popconfirm Select Transfer 鼠标事件类型定义。#39533
    • 🤖 新增导出类型 FloatButtonGroupProps#39553
  • 🌐 国际化

Don't miss a new antd release

NewReleases is sending notifications on new releases.