Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
v5.17.0
New Features
- fcf05d2 Picker: Add loading & loadingContent props (#5404)
- c152cf3 Image: Add
onContainerClick
prop (#5419)
Enhancements
Bug Fixes
- 4a81b83 CapsuleTab & JumboTab: Animation does not work when content height change (#5421)
- 05b1814 Cascader & CascaderView: Fix
onTabsChange
not being triggered when jump to next level - 6177784
onChange
prop should only be called when the previous and next values are different - 1b78356 Empty: Fix svg image too high on iOS 11.4
- 86c70fc TextArea: Fix
autoSize
may cause blinking in some browsers
特性
- fcf05d2 Picker: 增加了
loading
和loadingContent
属性,用来控制 Picker 的加载状态 (#5404) - c152cf3 Image: 增加了
onContainerClick
属性 (#5419)
优化
修复
v5.16.1
v5.16.0
New Features
- ee41ac0 Cascader: Add a new actions param to children render function (#5375)
- 3fe936a List: Support nativeElement ref (#5369)
- 7e07480 ProgressBar: Add
text
prop and--text-width
CSS variable - 333d5e8 ProgressBar: Add
rounded
prop - afec81c Popup: Add
disableBodyScroll
prop - 72ba539 Popup & CenterPopup: Add
closeOnMaskClick
onClose
showCloseButton
props - ef1cbf0 Modal: Change
Action.text
type toReactNode
(#5354) - 9d59d4b Add id-ID locale (#5357)
- 0cdd57c Add kk-KZ locale (#5355)
Enhancements
- 429424d ProgressBar: Adjust the default track width to 8px
- b972f75 Stepper: Use aria propss to improve a11y (#5365)
- 3576b64 Slider: Use aria props to improve a11y (#5359)
- da26fbb Popup: Refactor the implementation and now it will render with
ShouldRender
(#5338)
Bug Fixes
- e0d2c44 Picker: Fix some accessibility issues on android (#5370)
- 35642f1 Steps: Icon background should be black in dark mode (#5371)
特性
- ee41ac0 Cascader:
children
的 render 函数增加了 actions 参数 (#5375) - 3fe936a List: 支持了
ref
,暴露出了 nativeElement (#5369) - 7e07480 ProgressBar: 增加了
text
属性和--text-width
CSS 变量 - 333d5e8 ProgressBar: 增加了
rounded
属性 - afec81c Popup: 增加了
disableBodyScroll
属性 - 72ba539 Popup & CenterPopup: 增加了
closeOnMaskClick
onClose
showCloseButton
属性 - ef1cbf0 Modal: 调整了
Action.text
的类型为ReactNode
(#5354) - 9d59d4b 增加了 id-ID 翻译 (#5357)
- 0cdd57c 增加了 kk-KZ 翻译 (#5355)
优化
- 429424d ProgressBar: 调整了默认的轨道宽度为 8px
- b972f75 Stepper: 使用 aria 属性优化了组件的无障碍支持 (#5365)
- 3576b64 Slider: 使用 aria 属性优化了组件的无障碍支持 (#5359)
- da26fbb Popup: 重构了底层实现,使用了统一的
ShouldRender
(#5338)
修复
v5.15.1
v5.15.0
New Features
- 05c6215 List: Add
max-width
limit toextra
part for preventing overflow & add--extra-max-width
- 6b4b6a4 Checkbox: Add
ref
for Checkbox which supportscheck
uncheck
toggle
methods - 87533ec TextArea: Support nativeElement ref (#5307)
- 2ebede5 Badge: Add
wrapperClassName
andwrapperStyle
props (#5302)
Enhancements
- 22b03da Star: Adjust the star icon
- 6412725 InfiniteScroll: Add throttle logic for scroll position check to have better performance
- 2262837 Icon: Upgrade
antd-mobile-icons
to 0.3.0 so that the svg elements won't have the nonsense titles - 2feb9c4 Toast: Refactor the implementation of
Toast.show
(#5296) - c3bc2b6 Badge: Change the class name of the wrapper element to
adm-badge-wrapper
(used to beadm-badge-wrap
)
Bug Fixes
- 7686a15 SafeArea: Fix SafeArea becoming too high in some rem layout projects. Add
--multiple
and--adm-safe-area-multiple
for manually adjusting the height. - 12328b2 Form: Avoid rendering an empty description node (#5320)
- 53f36ec List: Revert #5277 to prevent unexpected line breaks in extra part
- 434b980 InfiniteScroll: Prevent dropping into the infinite loop trap for React 18 apps
- b841bde ImageUploader: Fix some images may be skipped when multiple images accomplish upload process at the same time
特性
- 05c6215 List:
extra
部分增加了max-width
限制,避免文字过长时溢出容器 & 增加了--extra-max-width
用来自由设置上述的max-width
- 6b4b6a4 Checkbox: 增加了
ref
,支持check
uncheck
toggle
方法 - 87533ec TextArea: ref 中支持了 nativeElement (#5307)
- 2ebede5 Badge: 增加了
wrapperClassName
和wrapperStyle
属性 (#5302)
优化
- 22b03da Star: 调整了默认的星形图标
- 6412725 InfiniteScroll: 增加了限流逻辑,避免出现性能影响
- 2262837 Icon: 升级
antd-mobile-icons
到 0.3.0 版本,现在的 svg 元素上不会出现无意义的 title 了 - 2feb9c4 Toast: 重构了
Toast.show
的实现 (#5296) - c3bc2b6 Badge: 外层容器的 className 从
adm-badge-wrap
调整为了adm-badge-wrapper
修复
- 7686a15 SafeArea: 修复了在一些高清模式的项目中,SafeArea 可能高度过高的问题,并且新增了
--multiple
和--adm-safe-area-multiple
CSS 变量用于手动设置放大倍数 - 12328b2 Form: 修复了可能会意外渲染一个 description 节点的问题 (#5320)
- 53f36ec List: 回退了 #5277 的改动,避免 extra 部分出现意外的折行
- 434b980 InfiniteScroll: 修复了在 React 18 的应用中,InfiniteScroll 在部分失败状态下可能进入死循环的问题
- b841bde ImageUploader: 修复了在 React 18 的应用中,同时上传多张图片可能会导致部分上传任务无法正确的触发完成的问题
v5.14.3
v5.14.2
v5.14.1
v5.14.0
New Features
- 1c9c814 Add dark mode support (experimental)
- 8a29b17 Add
css-vars-patch.css
for CSS variables auto fallback (#5289) - 351dec0 Expose some new global CSS variables for theming
- 183e7ed Add a new component CenterPopup
- f6444f4 InfiniteScroll: Supports retry when load more failed and
children
supports render function - c1a4964 CascaderView & Cascader: Add onTabsChange prop (#5266)
- bec179d Slider: Add
popover
prop
Enhancement
- 1161185 Slider: Adjust style
- c2e60c0 TabBar: Adjust style with larger icon
- 4505418 Dialog & Modal: Reimplement Dialog and Modal with CenterPopup under the hood
Bug Fixes
- ed33d50 Picker: Fix Picker body height over-exceeds in iOS 11.4 Safari (#5287)
- 3cecd63 List: Fix
extra
content can not break lines (#5277) - 9f48dec Cascader: Fix
isLeaf
may get wrong value (#5259)
特性
- 1c9c814 增加了暗黑模式(试验性)
- 8a29b17 增加了
css-vars-patch.css
支持 CSS 变量的自动降级 (#5289) - 351dec0 增加了更多的全局 CSS 变量,用于定制主题
- 183e7ed 增加了新组件 CenterPopup
- f6444f4 InfiniteScroll: 当请求失败时,支持点击重试,同时 children 支持了 render function
- c1a4964 CascaderView & Cascader: 增加了
onTabsChange
属性 (#5266) - bec179d Slider: 增加了
popover
属性
优化
- 1161185 Slider: 调整了外观
- c2e60c0 TabBar: 调整了外观,现在的图标更大一些了
- 4505418 Dialog & Modal: 基于新的 CenterPopup 组件重构了 Dialog 和 Modal 的底层实现