Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add 5.14.0 changlog #47307

Merged
merged 27 commits into from
Feb 3, 2024
Merged

docs: add 5.14.0 changlog #47307

merged 27 commits into from
Feb 3, 2024

Conversation

chenshuai2144
Copy link
Contributor

@chenshuai2144 chenshuai2144 commented Feb 2, 2024

5.14.0

2024-02-03

  • 🔥 重构了 DatePicker 组件,详细改动如下。#46982
    • 🆕 DatePicker 新增 multiple 支持多选能力。
    • 🆕 DatePicker 支持 showWeek 属性。
    • 🆕 DatePicker 下的 id 属性支持分别设置 startend 输入框的 id
    • 🆕 DatePicker 的 onFocusonBlur 事件会额外提供一个 info.range 告知当前的焦点来自于哪个输入框。
    • 🆕 DatePicker 支持 order 属性。
    • 🆕 DatePicker 新增配套 pickerValuedefaultPickerValue 属性用于受控管理展开面板所在日期。
    • 🆕 DatePicker 新增 preserveInvalidOnBlur 属性用于无障碍时失去焦点需要保留输入内容的场景。
    • 🆕 DatePicker format 支持 align 属性,允许通过掩码模式输入内容。
    • 🆕 DatePicker 支持 required 属性。
    • 🆕 DatePicker 时间面板支持 scrollOnChange 设置滚动时间时自动选择对应的时间。
    • 🆕 DatePicker 添加 needConfirm 属性,允许设置需要确认、或者不确认的提交模式。
    • 🆕 DatePicker 添加 components 属性,允许自定义部分面板。
    • 🆕 DatePicker 面板中所有的日期相关信息都会允许通过 locale 进行配置。
    • 🆕 DatePicker format 支持 LTLTS 日期格式。
    • 🆕 DatePicker 新增 minDatemaxDate 用于设置面板切换范围。
    • 🐞 DatePicker 的defaultPickerValue 现在会在每次面板展开时都进行重置。
    • 🐞 DatePicker 修复输入框功能按键会唤起弹出框的问题,现在只有在交互按键、以及输入内容变化时唤起。
    • 🐞 DatePicker 通过输入框输入日期后失去焦点会提交变更,而不是丢失输入内容(即不再强制需要按下回车提交)。
    • 🐞 DatePicker 修复 use12Hours 下,disabledTime 获取的 hour 也会被裁剪成 0~12 的问题。
    • 🐞 DatePicker 修复某些交互下,禁用日期没有生效依然可以提交的问题。
    • ⚡️ DatePicker 优化 disabledDate 检查逻辑,现在会提供 info.type 告知当前面板信息。
    • 🛠 DatePicker 的 allowClear 触发事件从 onMouseDown 切换为 onClick
    • 🛠 移除 DatePicker 的键盘对面板交互,它需要基于无障碍重新设计。
    • 🛠 DatePicker 废弃 onKeyDownpreventDefault 参数,请直接通过 event.preventDefault 进行调用。
    • 💄 DatePicker 移除虚线样式,减少视觉干扰。
    • 💄 DatePicker 移除在选择开始或者结束时间时的禁用范围,优化交互体验。
  • 🔥 Table 支持堆叠固定列。#47245
  • 🆕 Table 支持 virtual 下的 components.body#47098 @linxianxi
  • 🆕 Segmented value 类型支持泛型。#47091 @madocto
  • 🆕 InputNumber 组件支持 changeOnWheel 属性,以启用鼠标滚轮控制。#47158 @MadCcc
  • 🆕 Button 添加 defaultHoverBgdefaultHoverColordefaultHoverBorderColordefaultActiveBgdefaultActiveColordefaultActiveBorderColor 六个 token。#47075 @madocto
  • 🆕 Notification useNotification 支持 duration 配置,该更新同样适用于 App 组件的 notification 配置。#47141
  • 🆕 Grid 支持为响应式布局配置 flex 属性。#47124
  • 🐞 改进 Transfer 组件分页器的内边距。#47231 @qmhc
  • 🐞 修复 Avatar 组件当高度小于 16px 内容不居中的问题。#47236 @lcgash
  • 🐞 修复 Input 组件禁用时鼠标指针不正确的问题。#47280 @MadCcc
  • 🐞 修复 Input 组件 hoverBorderColoractiveBorderColor token 定制无效的问题。#47243 @MadCcc
  • 💄 修复 Menu 组件子菜单 hover 样式在边缘消失的问题。#47227 @MadCcc
  • 💄 修复 Menu 在无 hash 模式下的组件样式问题。#46609 @MadCcc
  • 💄 Card 组件增加 classNamesstyles 属性。#46811 @zh-lx
  • ConfigProvider

5.14.0

2024-02-03

  • 🔥 Refactored the DatePicker component, details are follows. #46982
    • 🆕 DatePicker adds multiple to support multiple selection capabilities.
    • 🆕 DatePicker supports showWeek attribute.
    • 🆕 DatePicker supports order attribute.
    • 🆕 DatePicker id attribute under RangePicker supports setting the id of the start and end input boxes separately.
    • 🆕 DatePicker onFocus and onBlur events of RangePicker will additionally provide an info.range to inform which input box the current focus comes from.
    • 🆕 DatePicker add matching pickerValue and defaultPickerValue attributes to control the date where the expanded panel is located.
    • 🆕 DatePicker add the preserveInvalidOnBlur attribute to keep the input content when losing focus in the case of accessibility.
    • 🆕 DatePicker format supports the align attribute, allowing input content through the mask mode.
    • 🆕 DatePicker Support required attribute.
    • 🆕 DatePicker time panel supports scrollOnChange to automatically select the corresponding time when scrolling.
    • 🆕 DatePicker add the needConfirm attribute to allow setting the confirmation or non-confirmation submission mode.
    • 🆕 DatePicker add the components attribute to allow customizing some panels.
    • 🆕 DatePicker all date-related information in the panel will allow configuration through locale.
    • 🆕 DatePicker format supports LT and LTS date formats.
    • 🆕 DatePicker add minDate and maxDate to set the panel switching range.
    • 🐞 DatePicker defaultPickerValue will now be reset each time the panel is expanded.
    • 🐞 DatePicker fix the problem that the input box function key will trigger the pop-up box, now it will only be triggered when the interactive key and the input content change.
    • 🐞 DatePicker Losing focus after entering the date through the input box will submit the change instead of losing the input content (that is, it is no longer necessary to press Enter to submit).
    • 🐞 DatePicker fix the problem that the hour obtained by disabledTime under use12Hours will also be clipped to 0~12.
    • 🐞 DatePicker fix the problem that the disabled date is not effective and can still be submitted under some interactions.
    • ⚡️ DatePicker Optimize disabledDate check logic, now it will provide info.type to inform the current panel information.
    • 🛠 DatePicker allowClear trigger event from onMouseDown to onClick.
    • 🛠 DatePicker Deprecate the preventDefault parameter of onKeyDown, please call it directly through event.preventDefault.
    • 🛠 DatePicker Remove the keyboard interaction with the panel, it needs to be redesigned based on accessibility.
    • 💄 DatePicker Remove the dotted line style of RangePicker to reduce visual interference.
    • 💄 DatePicker Remove the disabled range of RangePicker when selecting start or end time to optimize the interaction experience.
  • 🔥 Added support for stacked fixed columns in the Table component. #47245
  • 🆕 Added support for components.body in the Table component under the virtual mode. #47098 by @linxianxi
  • 🆕 Added support for generics in the Segmented value type. #47091 by @madocto
  • 🆕 Added the changeOnWheel property to the InputNumber component to enable mouse wheel control. #47158 by @MadCcc
  • 🆕 Added six tokens (defaultHoverBg, defaultHoverColor, defaultHoverBorderColor, defaultActiveBg, defaultActiveColor, and defaultActiveBorderColor) to the Button component. #47075 by @madocto
  • 🆕 Added duration configuration support to the useNotification function in the Notification component. This update also applies to the notification configuration of the App component. #47141
  • 🆕 Added support for configuring flex property in responsive layouts of the Grid component. #47124
  • 🐞 Improved the Transfer internal padding of the Pagination component. #47231 by @qmhc
  • 🐞 Fixed the alignment issue in the Avatar component when the height is less than 16px. #47236 by @lcgash
  • 🐞 Fixed the incorrect mouse pointer when the Input component is disabled. #47280 by @MadCcc
  • 🐞 Fixed the issue where the hoverBorderColor and activeBorderColor token customization didn't work in the Input component. #47243 by @MadCcc
  • 💄 Fixed the issue where the hover style of submenus in the Menu component disappears at the edges. #47227 by @MadCcc
  • 💄 Menu fixed component styling issues in non-hash mode. #46609 by @MadCcc
  • 💄 Added classNames and styles properties to the Card component. #46811 by @zh-lx
  • ConfigProvider
    • 🆕 Added support for selectionsIcon in the Transfer component to ConfigProvide. #47301 by @li-jia-nan
    • 🆕 Added support for addIcon and moreIcon in the Tabs component to ConfigProvide. #47274 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Image component to ConfigProvide. #47252 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Tag component to ConfigProvide. #47250 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Notification component to ConfigProvide. #47244 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Modal component to ConfigProvide. #47226 by @li-jia-nan
    • 🆕 Added support for expandIcon in the Table component to ConfigProvide. #47225 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Tour component to ConfigProvide. #47200 by @li-jia-nan
    • 🆕 Added support for icons in the Drawer component to ConfigProvide. #46894 by @li-jia-nan
    • 🆕 Added support for closeIcon in the Alert component to ConfigProvide. #47235 by @li-jia-nan

Copy link

stackblitz bot commented Feb 2, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Visual Regression Build for PR #47307 Failed ❌

Potential causes:

  • upstream workflow status: cancelled upstream job link
  • download report artifact status: skipped
  • report upload status: failure

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Preview Is ready

Copy link
Contributor

github-actions bot commented Feb 2, 2024

size-limit report 📦

Path Size
./dist/antd.min.js 333.4 KB (-11 B 🔽)
./dist/antd-with-locales.min.js 379.41 KB (+135 B 🔺)

CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
chenshuai2144 and others added 3 commits February 2, 2024 15:06
Co-authored-by: MadCcc <madccc@foxmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: MadCcc <madccc@foxmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
chenshuai2144 and others added 3 commits February 2, 2024 15:14
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
@li-jia-nan
Copy link
Member

@zombieJ 重构 DataPicker 要不要说一下详细改动呢?

CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
Co-authored-by: Amumu <yoyo837@hotmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
chenshuai2144 and others added 6 commits February 3, 2024 13:48
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
chenshuai2144 and others added 4 commits February 3, 2024 14:08
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 陈帅 <qixian.cs@outlook.com>
CHANGELOG.zh-CN.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
CHANGELOG.en-US.md Outdated Show resolved Hide resolved
Copy link

codesandbox-ci bot commented Feb 3, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c97820b:

Sandbox Source
antd reproduction template (forked) Configuration

Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1da53ec) 100.00% compared to head (c97820b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #47307   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          734       734           
  Lines        12588     12588           
  Branches      3293      3293           
=========================================
  Hits         12588     12588           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@li-jia-nan
Copy link
Member

@chenshuai2144 @afc163 CI 跑过了大佬们,可以发了

@chenshuai2144 chenshuai2144 merged commit df63ee8 into master Feb 3, 2024
105 of 106 checks passed
@chenshuai2144 chenshuai2144 deleted the changlog-5.14.0 branch February 3, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants