Skip to content

Releases: ant-design/ant-design-mobile

v5.32.1

25 Aug 02:32
Compare
Choose a tag to compare

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 by autoSize. (#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 or description not support 0. (#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: 修复 autoSizerows 同时配置时,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: 修复 titledescription 不支持 0 的问题。(#6309)
  • Popup: 修复弹出层在某些边界情况下滚动异常的问题。(#6254)

v5.32.0

12 Jul 11:25
Compare
Choose a tag to compare

Features

  • Locale: Russian language support. (#6224)
  • DatePickerView: Support tillNow. (#6236)

Enhancements

  • Radio: Support onClick event. (#6228)
  • Checkbox: Support onClick event. (#6235)

Bug Fixes

  • Input: Fix type="number" can not type number start with 0. (#6217)
  • VirtualInput: Fix when value is 0 not hide placeholder. (#6231)
  • TextArea: Fix autoSize calculation not correct in some case. (#6239)

特性

  • Locale: 支持俄罗斯语。(#6224)
  • DatePickerView: 支持 tillNow 配置 至今 选项。(#6236)

优化

  • Radio: 支持 onClick 事件。(#6228)
  • Checkbox: 支持 onClick 事件。(#6235)

修复

  • Input: 修复当 type="number" 时,输入数字无法以 0 开头的问题。(#6217)
  • VirtualInput: 修复当值为数字 0 时,占位提示不会消失的问题。(#6231)
  • TextArea: 修复 autoSize 计算异常的问题。(#6239)

v5.31.1

16 Jun 03:56
Compare
Choose a tag to compare

Bug Fixes

  • Form: Fix Subscribe not update when use dynamic renderProps. (#6207)
  • Swiper: Fix onIndexChange trigger when parent component force render. (#6208)
  • NoticeBar: Fix using extra and closable in same time cause UI break line. (#6206)

修复

  • Form: 修复 Subscribe 在动态改变 renderProps 时不会更新的问题。(#6207)
  • Swiper: 修复父组件强制刷新时会导致 onIndexChange 事件被跳过的问题。(#6208)
  • NoticeBar: 修复同时设置 extraclosable 会折行的样式问题。(#6206)

v5.31.0

13 Jun 03:47
Compare
Choose a tag to compare

Features

  • Ellipsis: collapseText & expandText support ReactNode. (#6134)
  • NoticeBar: support onClick event. (#6140)
  • Swiper: Add active className for current active item. (#6159)
  • Button, Image, Input: support id prop. (#6176)
  • CascaderView: support loading prop. (#6190)
  • Popup: support closeOnSwipe prop. (#6203)

Enhancements

  • PullToRefresh: Fix shaking when in high resolution screen. (#6153)
  • Ellipsis: Fix glint when calculation finished. (#6155)
  • List: Enhance onClick ts definition. (#6158)
  • Slider: Optimize performance when min & max in a huge range. (#6204)

Bug Fixes

  • Swiper: Fix onIndexChange sometime not sync with correct value. (#6144)
  • Util: Fix ssr warning. (#6177)

特性

  • Ellipsis: collapseTextexpandText 支持 ReactNode。(#6134)
  • NoticeBar: 支持 onClick 事件。(#6140)
  • Swiper: 为当前项添加 active className。(#6159)
  • List: 优化 onClick ts 定义。(#6158)
  • Button, Image, Input: 支持 id 属性。(#6176)
  • CascaderView: 支持 loading 属性。(#6190)
  • Popup: 支持 closeOnSwipe 属性以允许配置拖动关闭(现在是默认不开启)。(#6203)

优化

  • PullToRefresh: 修复高清分辨率屏下拖动抖动问题。(#6153)
  • Ellipsis: 修复在完成省略计算时会出现闪动的问题。(#6155)
  • Slider: 优化大范围区间下的渲染性能。(#6204)

修复

  • Swiper: 修复 onIndexChange 在某些场景返回值不正确的问题。(#6144)
  • Util: 优化底层通用逻辑以修复 SSR 报错问题。(#6177)

v5.30.0

05 May 02:31
Compare
Choose a tag to compare

Features

  • Dropdown: Support getContainer prop. (#6053)
  • SearchBar: Support onCompositionStart and onCompositionEnd prop. (#6086)
  • Popup: Support gesture close. (#6056)

Enhancements

  • Design Token: Update batch of components design token. (#6108 #6109)
  • Picker: Adjust PickerColumnItem value type to support number. (#6089)
  • Form: Optimize Form.Subscribe do not call useless rerender. (#6113)
  • Collapse: Add active className when panel is active. (#6124)
  • Swiper: Adjust onIndexChange trigger time which is align with motion now. (#6131)

Bug Fixes

  • ActionSheet: Fix nest with Popup blink issue. (#6097)
  • TextArea: Fix emoji maxLength edge case. (#6101)
  • Steps: Fix dot display over the element which cover the Steps component. (#6095)
  • Image: Fix onLoad not trigger in Next.js. (#6116)
  • Upload: Fix list order not follow upload order when upload multiple files at one time. (#6122)

特性

  • Dropdown: 添加 getContainer 支持。(#6053)
  • SearchBar: 添加 onCompositionStartonCompositionEnd 支持。(#6086)
  • Popup: 支持滑动关闭。(#6056)
  • Swiper: 调整 onIndexChange 触发时机与动画时机保持一致。(#6131)

优化

  • Design Token: 统一文本颜色相关的 Design Token。(#6108 #6109)
  • Picker: 优化 PickerColumnItem 的 value 类型支持 number。(#6089)
  • Form: 优化 Form.Subscribe 如果数值不变化则不再进行额外渲染。(#6113)
  • Collapse: 当面板激活时添加激活 className。(#6124)

修复

  • ActionSheet: 修复嵌套 Popup 时跳动的问题。(#6097)
  • TextArea: 修复 emoji maxLength 的边界计算问题。(#6101)
  • Steps: 修复其他元素在 Steps 之上,小圆点仍然会展示在最上层的问题。(#6095)
  • Image: 修复 Next.js 下不触发 onLoad 的问题。(#6116)
  • Upload: 修复同时上传多份文件时,列表顺序和上传顺序不一致的问题。(#6122)

v5.29.1

10 Apr 10:48
Compare
Choose a tag to compare

Features

  • Locale: Adding Italian, Danish, Norwegian and Dutch locales. (#6085)

Bug Fixes

  • Popup: Fix nested Popup position conflict. (#6052)
  • TextArea: Fix rows prop not working. (#6092)
  • VirtualInput: Fix VirtualInput can not close by click down arrow. (#6093)

特性

  • 国际化: 添加 意大利、丹麦、挪威 和 荷兰 语言支持。(#6085)

优化

修复

  • Popup: 修复嵌套 Popup 动画位置问题。(#6052)
  • TextArea: 修复 rows 属性不生效的问题。(#6092)
  • VirtualInput: 修复 VirtualInput 点击收起不能被关闭的问题。(#6093)

v5.29.0

03 Apr 07:11
Compare
Choose a tag to compare

Features

  • A11y: Enhance ActionSheet, NumberKeyboard, Selector, Tabs and VirtualInput accessibility. (#6070 #6078)
  • CheckList: Add extra prop support. (#6067)
  • Avatar: Add onLoad prop support. (#6047)
  • Popover: Support custom arrow size. (#6072)

Enhancements

Bug Fixes

  • Ellipsis: Fix default expand not show the expand icon after collapse. (#6082)

特性

  • A11y: 改进 ActionSheet, NumberKeyboard, Selector, Tabs and VirtualInput 无障碍体验。(#6070 #6078)
  • CheckList: 添加 extra 属性以支持额外渲染能力。(#6067)
  • Avatar: 添加 onLoad 属性支持加载触发事件。(#6047)
  • Popover: 支持自定义箭头尺寸。(#6072)

优化

修复

  • Ellipsis: 修复默认展开时,收起后无法展开的问题。(#6082)

v5.28.2

24 Mar 07:16
Compare
Choose a tag to compare

Enhancements

  • Stepper: support ref. (#5997)
  • Locale: Update Korean locale. (#6011)
  • Popover: Use global css variables to control font color. (#6045)

Bug Fixes

  • PullToRefresh: Fix cannot back to pulling status after complete in reduceMotion mode. (#6040)
  • TextArea: Fix the height not adapting when setting autoSize. (#6059)
  • Toast: Fix Toast cannot be closed when calling Toast.show and immediately calling Toast.clear. (#6060)

优化

  • Stepper: 支持 ref。(#5997)
  • Locale: 更新韩国本地化语言。(#6011)
  • Popover: 调整文字颜色现在会跟随 CSS Variable 设置。(#6045)

修复

  • PullToRefresh: 修复在 reduceMotion 模式下,拖拽更新状态不同步的问题。(#6040)
  • TextArea: 修复配置 autoSize 时,高度不更新的问题。(#6059)
  • Toast: 修复调用 Toast.show 后立即调用 Toast.clear 时,提示内容不消失的问题。(#6060)

v5.28.1

24 Feb 07:40
Compare
Choose a tag to compare

Features

  • Ellipsis: support defaultExpand prop. (#5955)

Enhancements

  • Popup: Improve accessibility experience. (#5949)
  • Steps: Remove icon background to support the usage with colorful background. (#5978)

Bug Fixes

  • Swiper: Fix auto play speed not stable when browser is busy. (#5957)
  • TextArea: Fix autoSize not work as expect in part Android browser. (#5968)
  • Lock @react-spring version to resolve compile error. (#5989)

特性

  • Ellipsis: 支持 defaultExpand 用以默认展开。(#5955)

优化

  • Popup: 提升无障碍体验。(#5949)
  • Steps: 移除 icon 的背景色以适配设置非纯白背景色的场景。(#5978)

修复

  • Swiper: 修复当游览器繁忙时,切换速度不稳定的问题。(#5957)
  • TextArea: 修复部分安卓机型 autoSize 会出现异常滚动的问题。(#5968)
  • 锁定 @react-spring 版本以修复编译报错的问题。(#5989)

v5.28.0

12 Jan 07:32
Compare
Choose a tag to compare

Features

  • Input: Support native step prop. (#5895)
  • Calendar: Support renderDate for customize date cell. (#5910)
  • Swiper: Support stopPropagation to config preventing event bubble. (#5906)

Enhancements

  • Cascader: Patch style fallback support. (#5887)

Bug Fixes

  • Footer: Fix missing divider style import. (#5909)

特性

  • Input: 支持原生 step 属性。(#5895)
  • Calendar: 支持 renderDate 以自定义日期单元。(#5910)
  • Swiper: 支持 stopPropagation 配置以阻止事件冒泡。(#5906)

优化

  • Cascader: 添加降低样式支持。(#5887)

修复

  • Footer: 修复丢失 divider 样式引入的问题。(#5909)