Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
v5.41.1
v5.41.0
Features
- Ellipsis: Support
onEllipsiscallback. #6893 - Tabs: Support keyboard navigation for a11y. #6895
- Calendar: Support
cellRenderfor customize cell content. #6924 - ImageViewer:
imageRendersupport additionalrefparam for pass to customize content. #6904
Enhancements
- VirtualInput: Caret position compatible with controlled mode. #6891 #6897 #6926 #6948 #6949
- Swiper: Optimize the render logic to not to re-mount content when
keyreorder. #6929 - Calendar: Not show switch button when
prevMonthButtonnextMonthButtonprevYearButtonnextYearButtonis null. #6944
Bug Fixes
- DatePicker: Fix format string not correct when `precision="week" with some case. #6906
- Swiper: Fix vertical virtual scroll not working as expect/ #6882
- Ellipsis: Fix warning for
useLayoutEffectwhen in SSR. #6923 - TextArea: Fix
enterKeyHintnot working for the first focus. #6917 - Avatar: Fix not show fallback when
srcis empty text. #6935
特性
- Ellipsis:支持
onEllipsis回调。#6893 - Tabs:支持无障碍(a11y)的键盘导航。#6895
- Calendar:支持
cellRender自定义单元格内容。#6924 - ImageViewer:
imageRender额外支持传入ref参数用于自定义内容。#6904
优化
- VirtualInput:光标位置在受控模式下保持兼容。#6891 #6897 #6926 #6948 #6949
- Swiper:优化渲染逻辑,
key重新排序时不重新挂载内容。#6929 - Calendar:当
prevMonthButton、nextMonthButton、prevYearButton、nextYearButton为null时不显示切换按钮。#6944
修复
v5.40.0
Features
- React: Support
unstableSetRenderto compatible with React 19. #6860 - VirtualInput: Support change cursor position. #6843
- Locale: Improve Calendar & other mistake Russian locale. #6838
- DatePicker:
renderLabelsupport third param for selected state. #6880
Enhancements
- NumberKeyboard: Support css variable config
--adm-safe-area-multiple. #6844 - Button: Support
formprops. #6855 - Calendar: Adjust description to show that user can select range for the same date. #6886
Bug Fixes
- Space: Fix style issue about additional margin at last element. #6841
特性
- React: 支持
unstableSetRender属性以配置兼容 React 19。#6860 - VirtualInput: 支持设置光标位置。6843
- Locale: 国际化改进俄语相关翻译。#6838
- DatePicker:
renderLabel属性支持额外参数获取选中状态。#6880 - Calendar: 范围选择调整描述以让用户感知可以选择同一天。#6886
优化
修复
- Space: 修复最后一个元素后方有额外空间占位的问题。#6841
v5.39.0
Features
- CalendarPickerView:
renderTop&renderBottomsupportfalseto skip render. #6735 - PasscodeInput: Add
inputModeto support customize keyboard mode. #6780 - SwipeAction: Support
onCloseevent. #6812 - FloatingPanel: Support
placementfortoporbottomposition. #6829 - ImageViewer: Support
imageRenderfor customize popup view. #6825
Bug Fixes
- ImageUploader: Fix
onChangenot correct trigger when part of file upload failed. #6779 - Popover: Fix
autoUpdatenot working whendefaultVisibleisfalse. 679e974 - DatePicker: Fix the edge case for week select that date selection not correct. #6808
- Ellipsis: Fix ellipsis sometime not take fully line width for multiple rows. #6797
特性
- CalendarPickerView:
renderTop&renderBottom支持通过false跳过渲染。#6735 - PasscodeInput: 新增
inputMode属性,用于支持自定义输入法模式。#6780 - SwipeAction: 支持
onClose事件。#6812 - FloatingPanel: 支持
placement属性,可设置面板弹出位置为顶部或底部。#6829 - ImageViewer: 支持
imageRender属性,用于自定义弹出视图。#6825
修复
v5.38.1
v5.38.0
Features
- Segmented: 🔥 New Segmented component. #6697
- DatePicker: Add
quarterprecision support. #6664 - CalendarPickerView:
titlesupport boolean type to hide the title element. #6676 - Card: Add
iconto support customize icon. #6683 - NoticeBar: Support
shape&borderedprops. #6691 - TabBar: Support item
onClickprop. #6702 - SearchBar: Support
autoFocus. #6714 - Input: Support
onPasteprop. #6719 - Locale: Support hr-HR, sr-RS, cnr-ME locale. #6730
Enhancements
- ImageUploader: Resolve the a11y warning with
aria-hiddenwhen click. #6688 - Locale: Adjust kk-KZ locale. #6681
- Toast: Multiple Toast will always show the latest one. #6729
Bug Fixes
- Tabs: Fix
rtlmissing the animation. #6686 - CalendarPickerView: Fix the default pick range will be affected by
currentand not scrolling tocurrentwhen opened. #6760
特性
- Segmented: 🔥 新增 Segmented 组件。#6697
- DatePicker: 添加
quarter维度支持。#6664 - CalendarPickerView:
title支持 boolean 类型以隐藏。#6676 - Card: 添加
icon以支持自定义图标。#6683 - NoticeBar: 添加
shape与bordered以支持自定义形状与边框展示。#6691 - TabBar: 支持
onClick事件。#6702 - SearchBar: 添加
autoFocus以支持自动聚焦。#6714 - Input: 支持
onPaste事件。#6719 - Locale: 添加 hr-HR, sr-RS, cnr-ME 本地化支持。#6730
优化
- ImageUploader: 解决在点击时触发 a11y 的
aria-hidden警告。#6688 - Locale: 优化 kk-KZ 本地化。#6681
- Toast: 多个弹出提示现在总会展示最后一个。#6729
修复
v5.37.1
v5.37.0
Features
- ConfigProvider: Add an
iconsconfiguration to support global definition for all components that have icon configuration. #6587 - Card: Add
borderandpaddingrelated CSS variables for custom styling. #6583
Bug Fixes
- NumberKeyboard: Fix an issue on iOS where accidental touches at the edge of the screen would cause abnormal deletion behavior. #6651
特性
- ConfigProvider: 添加
icons配置以支持全局定义所有拥有图标配置的组件。#6587 - Card: 添加
border与padding相关 CSS 变量以供自定义样式。#6583
修复
- NumberKeyboard: 修复 IOS 下当手指在屏幕边缘操作时,误触会导致删除异常的问题。#6651
v5.36.1
v5.36.0
Features
- TextArea: Add
enterKeyHintandonEnterPresssupport. #6598 - Swiper:
autoplaysupportreverseprops. #6589 - i18n: Add
pt-BRlocale support. #6562 - i18n: Add
fr-FRde-DEms-MYar-SAvi-VNlocale support and adjustpt-BRlocale. #6613
Enhancements
- Button: Adjust
onClicktype to remove uselessunknownreturn type. #6588 - bundle: Reduce
zh-CNlocale bundle size. #6592
Bug Fixes
- Input: Fix
enterKeyHintnot show the correct submit button on IOS. #6607
特性
- TextArea: 添加
enterKeyHint与onEnterPress属性支持。#6598 - Swiper:
autoplay支持reverse属性以逆序播放。#6589 - i18n: 添加
pt-BR国际化支持。#6562 - i18n: 添加
fr-FRde-DEms-MYar-SAvi-VN国际化支持,调整pt-BR国际化。#6613
优化
修复
- Input: 修复
enterKeyHint在 IOS 下没有正确展示提交按钮的问题。#6607