Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
v5.38.1
v5.38.0
Features
- Segmented: 🔥 New Segmented component. #6697
- DatePicker: Add
quarter
precision support. #6664 - CalendarPickerView:
title
support boolean type to hide the title element. #6676 - Card: Add
icon
to support customize icon. #6683 - NoticeBar: Support
shape
&bordered
props. #6691 - TabBar: Support item
onClick
prop. #6702 - SearchBar: Support
autoFocus
. #6714 - Input: Support
onPaste
prop. #6719 - Locale: Support hr-HR, sr-RS, cnr-ME locale. #6730
Enhancements
- ImageUploader: Resolve the a11y warning with
aria-hidden
when click. #6688 - Locale: Adjust kk-KZ locale. #6681
- Toast: Multiple Toast will always show the latest one. #6729
Bug Fixes
- Tabs: Fix
rtl
missing the animation. #6686 - CalendarPickerView: Fix the default pick range will be affected by
current
and not scrolling tocurrent
when 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
icons
configuration to support global definition for all components that have icon configuration. #6587 - Card: Add
border
andpadding
related 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
enterKeyHint
andonEnterPress
support. #6598 - Swiper:
autoplay
supportreverse
props. #6589 - i18n: Add
pt-BR
locale support. #6562 - i18n: Add
fr-FR
de-DE
ms-MY
ar-SA
vi-VN
locale support and adjustpt-BR
locale. #6613
Enhancements
- Button: Adjust
onClick
type to remove uselessunknown
return type. #6588 - bundle: Reduce
zh-CN
locale bundle size. #6592
Bug Fixes
- Input: Fix
enterKeyHint
not show the correct submit button on IOS. #6607
特性
- TextArea: 添加
enterKeyHint
与onEnterPress
属性支持。#6598 - Swiper:
autoplay
支持reverse
属性以逆序播放。#6589 - i18n: 添加
pt-BR
国际化支持。#6562 - i18n: 添加
fr-FR
de-DE
ms-MY
ar-SA
vi-VN
国际化支持,调整pt-BR
国际化。#6613
优化
修复
- Input: 修复
enterKeyHint
在 IOS 下没有正确展示提交按钮的问题。#6607
v5.35.0
Features
- PickerView: Add active className. #6427
- MISC:
stopPropagation
supporttouchstart
event. #6578 - MISC: Export
useConfig
for consuming the config context. #6501 - i18n: Add hungarian locale. #6555
- i18n: Add Thai locale. #6533
Enhancements
- Form: Help icon add stopPropagation to prevent native active trigger. #6549
- Refactor: Replace lodash to reduce bundle size. #6581 #6542 #6524 #6526
Bug Fixes
- Button: Fix css variables fallback style not handle danger button. #6568
- Result: Fix dark theme style not correct. #6557
- ErrorBlock: Fix tree shaking makes style missing. #6551
- Radio: Fix mistake hidden all the
input
element in it. #6492 - TextArea: Fix not scrollable when
disabled
. #6509 - InfiniteScroll: Fix error throw when scrolling. #6531
特性
- PickerView: 添加激活态 className。#6427
- MISC:
stopPropagation
支持touchstart
事件。#6578 - MISC: 导出
useConfig
方法以供开发者消费全局 context。#6501 - i18n: 添加匈牙利语本地化支持。#6555
- i18n: 添加泰语本地化支持。#6533
优化
- Form: 帮助按钮添加 stopPropagation 逻辑以防止点击时触发原生聚焦行为。#6549
- Refactor: 替换 lodash 以降低打包体积。#6581 #6542 #6524 #6526
修复
v5.34.0
v5.33.2
Enhancements
- a11y: Improve NumberKeyboard & VirtualInput accessibility experience. (#6494)
- Tabs: 🔬 Add
autoScroll
to disable auto scroll behavior when tab content changed. Note this is experimental prop which maybe rename in future. (#6497)
Bug Fixes
- Dropdown: Fix Dropdown.Item not trigger
onClick
event. (#6481) - MISC: Resolve where measuring elements would cause the browser to print an extra blank page. (#6488)
优化
- a11y: 优化 NumberKeyboard 和 VirtualInput 的无障碍体验。(#6494)
- Tabs: 🔬 添加
autoScroll
以支持标题内容变化时不要滚动的需求。注意这是一个实验性属性,命名未来可能会被改变。(#6497)
修复
v5.33.1
Enhancements
- ImageViewer: Add semantic
classNames
formask
andbody
. (#6407) - Popover: Prevent event interactive when animating. (#6416)
- CalendarPicker: support
getContainer
. (#6460)
Bug Fixes
- Switch: Fix the width flick even when
checkedText
&uncheckedText
is the same. (#6421) - VirtualInput: Fix long press the button on the popup panel will make the panel un-closable. (#6477)
- NumberKeyboard: Fix title node always render even when
title
is empty. (#6475) - CascaderView: Fix
onChange
not correct for some special case. (#6444)
优化
- ImageViewer: 更新语义化
classNames
支持,添加mask
与body
。(#6407) - Popover: 在动画过渡时阻止点击交互事件。(#6416)
- CalendarPicker: 支持传递
getContainer
属性。(#6460)