Skip to content

Releases: ant-design/ant-design-mobile

v5.22.0

18 Aug 09:59
ff004bd
Compare
Choose a tag to compare

New Features

  • 4ff80b4 ActionSheet: Add new property bold to type Action and adjust some styles (#5582)
  • b118e4c Add dev and prod bundle (#5576)
  • 4066eb7 Selector: Add gap related CSS variables (#5554)

Enhancements

Bug Fixes

  • eeaf900 The new umd bundle should load antdMobile variable onto window
  • 3b6d3ec Ellipsis: Fix error when using with display flex (#5568)
  • 222ff2b ImageViewer: Should reset the transform when viewer is reshowed (#5569)
  • ca85f76 FloatingPanel: Fix rendering gaps caused by decimal point (#5551)

特性

  • 4ff80b4 ActionSheet: Action 支持了新属性 bold,同时微调了一些样式 (#5582)
  • b118e4c 各种预购建产物都支持了 dev 和 prod 两种版本 (#5576)
  • 4066eb7 Selector: 增加了一些 gap 相关的 CSS 变量 (#5554)

优化

  • 630e0dd CheckList: 微调了图标大小 (#5566)
  • 056746a TabBar: 微调了文字颜色和图标大小 (#5562)
  • e94b4d4 IndexBar: 气泡现在距离屏幕右边缘更远一些了,避免手指遮挡 (#5561)
  • e40827d PageIndicator: 调整了默认的 --dot-color (#5556)

修复

  • eeaf900 预购建产物中的 umd 版本之前没有正确的挂载到 window 上,现在正常了
  • 3b6d3ec Ellipsis: 修复了当被放置在 flex 容器中时可能显示异常的问题 (#5568)
  • 222ff2b ImageViewer: 当关闭后重新打开时,现在会自动重置缩放比例到初始状态了 (#5569)
  • ca85f76 FloatingPanel: 修复了部分情况下由于浏览器渲染精度问题导致出现缝隙的问题 (#5551)

v5.21.0

09 Aug 07:46
6b5cf3a
Compare
Choose a tag to compare

New Features

Enhancements

Bug Fixes

  • 43a359e Rate: Rate value will reset when drag stop on PC (#5524)
  • f7413d4 Swiper: Add swiper count dependency when autoplay (#5521)
  • cd150e3 Picker: wheel is not updated when renderLabel or mouseWheel is updated (#5520)

特性

  • d08c419 新增了 ResultPage 组件 (#5494)
  • dfa63e6 Form: FormItemProps 现在开放了更多的 RcFieldProps 上的属性 (#5527)

优化

修复

  • 43a359e Rate: 修复了在桌面端浏览器上对 Rate 进行拖动时行为异常的问题 (#5524)
  • f7413d4 Swiper: 当 Swiper 内容数量发生变化时,现在会触发 autoplay 逻辑的重新计算了 (#5521)
  • cd150e3 Picker: 修复了部分情况下,选项没有触发重新渲染的问题 (#5520)

v5.20.0

28 Jul 09:16
c61ce94
Compare
Choose a tag to compare

New Features

Enhancements

Bug Fixes

  • f580110 830b96b SwipeAction: Fix position blink sometimes (like #5490) (#5514)
  • be90116 Swiper: Fix a dragging gesture bug when imperatively call jumpTo in the onClick event of Swiper.Item
  • 88b0fea useResizeEffect: Avoid ResizeObserver loop limit exceeded error (#5491)

特性

优化

修复

  • f580110 830b96b SwipeAction: 修复了在某些情况下可能位置出现闪烁偏移的问题 (参见 #5490) (#5514)
  • be90116 Swiper: 修复了当手动在 Swiper.ItemonClick 事件中调用 jumpTo 方法时,可能会导致手势异常的问题
  • 88b0fea useResizeEffect: 避免出现 ResizeObserver loop limit exceeded 报错 (#5491)

v5.19.0

19 Jul 12:36
bafad20
Compare
Choose a tag to compare

New Features

  • a102c4b Add .umd.js and .compatible.umd.js bundles
  • 34502ca Cascader & CascaderView: Add activeIcon prop (#5462)
  • 82a35de Modal & Dialog & ActionSheet: Omit destroyOnClose and forceRender types in imperatively show mode (#5475)
  • d21b9ef NumberKeyboard: Support multiple customKeys (#5458)

Enhancements

  • 710f301 PasscodeInput: Export type PasscodeInputRef
  • 0569fa9 PasscodeInput: Use aria labels to imporve a11y and adjust classname (#5476)
  • eccdcb3 NumberKeyboard: Adjust className with prefix (#5454) ⚠️
  • 2ad7b75 Result: Add default value for status prop (#5480)
  • 01d27e0 SearchBar: Use aria labels to imporve a11y (#5465)
  • b175374 Calendar: Replace renderLabel type string to ReactNode (#5450)

Bug Fixes

  • ebd9a91 SearchBar: Prevent getting duplicated value on enter press with some IMEs (#5466)
  • bc56b48 ImageViewer: Scale origin is inaccurate when pinching (#5461)
  • 5338920 Button: Fix React's bug when the browser translation function is enabled (#5460)

特性

  • a102c4b 增加了 .umd.js.compatible.umd.js 的预构建产物
  • 34502ca Cascader & CascaderView: 增加了 activeIcon 属性 (#5462)
  • 82a35de Modal & Dialog & ActionSheet: 在指令式的 show 方法的 ts 类型定义中,去除了 destroyOnCloseforceRender 属性 (#5475)
  • d21b9ef NumberKeyboard: 支持配置两个自定义按键 (#5458)

优化

  • 710f301 PasscodeInput: export 了 PasscodeInputRef 类型
  • 0569fa9 PasscodeInput: 优化了可访问性,并且调整了一些 CSS 类名 (#5476) ⚠️
  • eccdcb3 NumberKeyboard: 调整了一些 CSS 类名 (#5454) ⚠️
  • 2ad7b75 Result: 为 status 属性增加了默认值 (#5480)
  • 01d27e0 SearchBar: 优化了可访问性 (#5465)
  • b175374 Calendar: renderLabel 属性的类型从 string 调整为了 ReactNode (#5450)

修复

  • ebd9a91 SearchBar: 避免在输入法中按下回车键会导致插入重复的值 (#5466)
  • bc56b48 ImageViewer: 修复了缩放时中心偏移的问题 (#5461)
  • 5338920 Button: 修复了和浏览器翻译功能的兼容性问题 (#5460)

v5.18.0

08 Jul 06:17
6724eb8
Compare
Choose a tag to compare

New Features

  • 7be2bb0 Switch: Deprecate beforeChange prop and onChange supports promise (#5456) ⚠️

Enhancements

  • ea463ee Rate: Use aria labels to imporve a11y (#5449)
  • d2afb1f NoticeBar: Adjust the clickable area of close icon (#5448)
  • 4ecbbf2 A minor refactor to reduce bundle size
  • c7aeec4 Upgrade rc-field-form to 1.27 and @use-gesture/react to 10.2.16

Bug Fixes

  • 9fec063 Tabs: Fix the background color in dark mode
  • c7a772b Form: Form.Item now supports native props (aka style className aria-* data-*)
  • 6393aa9 fee2ff5 Calendar: CalendarRef used to be misspelled as CalenderRef (#5443) ⚠️

特性

  • 7be2bb0 Switch: 弃用了 beforeChange 属性,同时 onChange 属性支持了返回 promise (#5456) ⚠️

优化

  • ea463ee Rate: 增加了一些 aria 标记,优化可访问性 (#5449)
  • d2afb1f NoticeBar: 扩大了关闭图标的点击范围 (#5448)
  • 4ecbbf2 底层做了一些重构,稍微减少了一些包体积
  • c7aeec4 rc-field-form 升级到了 1.27,@use-gesture/react 升级到了 10.2.16

修复

  • 9fec063 Tabs: 修复了深色模式下的背景色
  • c7a772b Form: Form.Item 支持了 native props(也就是 style className aria-* data-*
  • 6393aa9 fee2ff5 Calendar: ts 类型 CalenderRef 之前拼写错误了,现在纠正为 CalendarRef 了 (#5443) ⚠️

v5.17.2

05 Jul 01:55
d32d2be
Compare
Choose a tag to compare

Bug Fixes

  • 6abb71e FloatingPanel: Fix the background color in dark mode
  • 1146296 FloatingPanel: Fix --border-radius applying to the wrong element (#5432)
  • 18443f2 TextArea: Revert 86c70fc to fix the problem of height not changing when content get deleted (#5427)
  • fae4554 Picker: In some circumstances wheel may not scroll to the correct position

修复

  • 6abb71e FloatingPanel: 修复了深色模式下的背景色
  • 1146296 FloatingPanel: 修复了 --border-radius 应用到了错误的元素上的问题 (#5432)
  • 18443f2 TextArea: 回退了 86c70fc 的改动,以修复当内容变化时 TextArea 高度可能不会降低的问题 (#5427)
  • fae4554 Picker: 修复了在某些情况下拨轮所滚动的位置异常的问题

v5.17.1

30 Jun 02:54
cbaaa98
Compare
Choose a tag to compare

Bug Fixes

  • Fix the broken npm package of v5.17.0.

修复

  • 5.17.0 发布的 npm 包有误,重新发布

v5.17.0

30 Jun 02:46
abeaefe
Compare
Choose a tag to compare

New Features

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: 增加了 loadingloadingContent 属性,用来控制 Picker 的加载状态 (#5404)
  • c152cf3 Image: 增加了 onContainerClick 属性 (#5419)

优化

修复

  • 4a81b83 CapsuleTab & JumboTab: 修复了当内容高度变化时,tab 切换的动画效果缺失的问题 (#5421)
  • 05b1814 Cascader & CascaderView: 修复了当自动进入下一级选项时,onTabsChange 事件没有触发的问题
  • 6177784 各种组件的 onChange 事件现在只会在前后两次值不一样时才进行触发了
  • 1b78356 Empty: 修复了在 iOS 11.4 上 svg 元素高度异常的问题
  • 86c70fc TextArea: 修复了当开启 autoSize 时,输入框可能出现闪烁的问题

v5.16.1

23 Jun 12:03
f3cda99
Compare
Choose a tag to compare

Bug Fixes

  • 829d873 Popup: The default value of getContainer should be () => document.body instead of null (#5388)

修复

  • 829d873 Popup: getContainer 属性的默认值应该是 () => document.body 而非 null (#5388)

v5.16.0

23 Jun 03:39
d068f21
Compare
Choose a tag to compare

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 to ReactNode (#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)

修复

  • e0d2c44 Picker: 修复了一些安卓环境下的无障碍问题 (#5370)
  • 35642f1 Steps: 修复了在深色模式下图标的背景颜色不正确的问题 (#5371)