Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
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)
修复
v5.32.3
v5.32.2
v5.32.1
Enhancements
- PickerView: align the
mouseWheel
direction with real world. (#6240) - Toast: support
rtl
mode. (#6287) - Calendar: Refactor
locale
field from method to string to be cache-able. (#6276) - Design Token: Replace some style with css variables. (#6320)
Bug Fixes
- TextArea: Fix
rows
not limited byautoSize
. (#6256) - Form: Fix Form.Item
className
repeat issue. (#6278) - PullToRefresh: Fix some time not pull-able. (#6296)
- FloatingPanel: Fix
Unable to preventDefault inside passive event listener invocation
warning. (#6284) - FloatingPanel: Fix
prefixCls
not fully apply on the component. (#6297) - PickView: Fix
prefixCls
not fully apply on the component. (#6304) - CenterPopup: Fix
prefixCls
not fully apply on the component. (#6305) - WaterMark: Fix css variable
--adm-water-mark-z-index
not working. (#6330) - ErrorBlock: Fix
title
ordescription
not support0
. (#6309) - Popup: Fix scroll issue when in some edge case. (#6254)
优化
- PickerView: 将
mouseWheel
触发的鼠标滚动方向与实际方向一致。(#6240) - Toast: 支持
rtl
模式。(#6287) - Calendar: 重构
locale
内容从方法为字符串以支持缓存。(#6276) - Design Token: 替换部分颜色为 css 变量。(#6320)
修复
- TextArea: 修复
autoSize
与rows
同时配置时,rows
可以超出范围的问题。(#6256) - Form: 修复 Form.Item
className
重复的问题。(#6278) - PullToRefresh: 修复偶尔下拉失效的问题。(#6296)
- FloatingPanel: 修复出现
Unable to preventDefault inside passive event listener invocation
警告信息。(#6284) - FloatingPanel: 修复部分子组件没有应用
prefixCls
的问题。(#6297) - PickView: 修复部分子组件没有应用
prefixCls
的问题。(#6304) - CenterPopup: 修复部分子组件没有应用
prefixCls
的问题。(#6305) - WaterMark: 修复 css 变量
--adm-water-mark-z-index
不生效的问题。(#6330) - ErrorBlock: 修复
title
与description
不支持0
的问题。(#6309) - Popup: 修复弹出层在某些边界情况下滚动异常的问题。(#6254)