Skip to content

Releases: ant-design/ant-design-mobile

v5.33.0

20 Oct 03:58
Compare
Choose a tag to compare

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)

优化

  • Result: 当相关属性为空时,不再渲染无必要的 DOM 节点。(#6387)
  • ImageViewer: 缩放中的图片也支持滑动到其他图片了。(#5701)

修复

  • MISC: 提升 @use-gesture/react 依赖以解决在 Windows 下部分拖拽交互失效的问题。(#6379)

v5.32.4

15 Sep 07:42
Compare
Choose a tag to compare

Enhancements

  • Global: Move --adm-color-background-body to dark theme only to avoid override customize html 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)

修复

  • WaterMark: 修复初始加载时由于水印未生成会在控制台报错 404 的问题。(#6331)
  • ResultPage: 修复底部按钮没有居中对齐的问题。(#6355)
  • Modal: 修复确认按钮在淡出动画时还能点击的问题。(#6358)

v5.32.3

14 Sep 03:59
815e272
Compare
Choose a tag to compare

Enhancements

  • Global: Move body background reset to html instead to enable developer override. (#6364)

Bug Fixes

  • Toast: Fix content align not correct. (#6345)

优化

  • Global: 将 body background 重置样式迁移至 html 以允许开发者覆盖。(#6364)

修复

  • Toast: 修复内容对齐不正确的问题。(#6345)

v5.32.2

06 Sep 06:43
Compare
Choose a tag to compare

Enhancements

  • CheckList: Support number as value type. (#6335)
  • DesignToken: Replace part of hardcode color with css variables. (#6340)

Bug Fixes

  • Ellipsis: Fix when contains \n , ellipsis calculation not work as expect. (#6342)

优化

  • CheckList: 类型定义支持 number 的值类型。(#6335)
  • DesignToken: 将部分写死颜色值替换为 css variables。(#6340)

修复

  • Ellipsis: 修复包含 \n 换行符时,省略计算不正确的问题。(#6342)

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)