Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
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)
修复
v5.33.0
Features
- 🔬 CalendarPicker: New design for component CalendarPicker & CalendarPickerView. Origin Calendar is deprecated. (#6173)
- Selector: Support
fieldNames
mapping. (#6303) - CascaderView: Support
fieldNames
mapping. (#6242) - ActionSheet: Support semantic
styles
for popup node. (#6246) - Locale: Add
tr-TR
locale support. (#6382) - Tabs: support RTL mode. (#6314)
- ImageUploader: Support trigger uploader by
ref
callback. (#6316) - Popover: Popover.Menu support
maxCount
for scroll. (#6373)
Enhancements
- Result: Do not render extra DOM if related prop leaves empty. (#6387)
- ImageViewer: Zoomed image also support switch to other image now. (#5701)
Bug Fixes
- MISC: Bump
@use-gesture/react
deps to resolve draggable issue in Windows. (#6379)
特性
- 🔬 CalendarPicker: 日历组件设计升级新增 CalendarPicker 和 CalendarPickerView 组件。原 Calendar 组件废弃。(#6173)
- Selector: 支持
fieldNames
进行字段映射。(#6303) - CascaderView: 支持
fieldNames
进行字段映射。(#6242) - ActionSheet: 支持语义化
styles
属性用于对弹层样式进行定制。(#6246) - Locale: 添加
tr-TR
本地化支持。(#6382) - Tabs: 支持 RTL 模式。(#6314)
- ImageUploader: 支持通过
ref
手动唤起。(#6316) - Popover: Popover.Menu 支持
maxCount
属性以配置超出滚动。(#6373)
优化
修复
- MISC: 提升
@use-gesture/react
依赖以解决在 Windows 下部分拖拽交互失效的问题。(#6379)
v5.32.4
Enhancements
- Global: Move
--adm-color-background-body
to dark theme only to avoid override customizehtml
style in some case. (#6368)
Bug Fixes
- WaterMark: Fix first mount throw
404
not found error in console. (#6331) - ResultPage: Fix footer Button not align in center. (#6355)
- Modal: Fix Modal confirm can still be click when hide out. (#6358)
优化
- Global: 将
--adm-color-background-body
变量移至暗黑模式,以避免默认主题下对html
的覆盖。(#6368)