github ant-design/ant-design-mobile v5.15.0

latest releases: v5.37.1, v5.37.0, v5.36.1...
2 years ago

New Features

  • 05c6215 List: Add max-width limit to extra part for preventing overflow & add --extra-max-width
  • 6b4b6a4 Checkbox: Add ref for Checkbox which supports check uncheck toggle methods
  • 87533ec TextArea: Support nativeElement ref (#5307)
  • 2ebede5 Badge: Add wrapperClassName and wrapperStyle 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 be adm-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: 增加了 wrapperClassNamewrapperStyle 属性 (#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 的应用中,同时上传多张图片可能会导致部分上传任务无法正确的触发完成的问题

Don't miss a new ant-design-mobile release

NewReleases is sending notifications on new releases.