Skip to content

Releases: ant-design/ant-design-mobile

v5.38.1

29 Oct 07:16
Compare
Choose a tag to compare

Bug Fixes

  • Ellipsis: Refactor with React life cycle hooks to avoid render not correct in Suspense. #6770
  • Ellipsis: Add word-break style to fix long text not take ellipsis. #6771

修复

  • Ellipsis: 改用 React 生命周期方法以避免 Suspense 下渲染不一致的问题。#6770
  • Ellipsis: 添加 word-break 样式以修复部分长文本不会省略的问题。#6771

v5.38.0

28 Oct 03:58
Compare
Choose a tag to compare

Features

  • Segmented: 🔥 New Segmented component. #6697
  • DatePicker: Add quarter precision support. #6664
  • CalendarPickerView: title support boolean type to hide the title element. #6676
  • Card: Add icon to support customize icon. #6683
  • NoticeBar: Support shape & bordered props. #6691
  • TabBar: Support item onClick prop. #6702
  • SearchBar: Support autoFocus. #6714
  • Input: Support onPaste prop. #6719
  • Locale: Support hr-HR, sr-RS, cnr-ME locale. #6730

Enhancements

  • ImageUploader: Resolve the a11y warning with aria-hidden when click. #6688
  • Locale: Adjust kk-KZ locale. #6681
  • Toast: Multiple Toast will always show the latest one. #6729

Bug Fixes

  • Tabs: Fix rtl missing the animation. #6686
  • CalendarPickerView: Fix the default pick range will be affected by current and not scrolling to current when opened. #6760

特性

  • Segmented: 🔥 新增 Segmented 组件。#6697
  • DatePicker: 添加 quarter 维度支持。#6664
  • CalendarPickerView: title 支持 boolean 类型以隐藏。#6676
  • Card: 添加 icon 以支持自定义图标。#6683
  • NoticeBar: 添加 shapebordered 以支持自定义形状与边框展示。#6691
  • TabBar: 支持 onClick 事件。#6702
  • SearchBar: 添加 autoFocus 以支持自动聚焦。#6714
  • Input: 支持 onPaste 事件。#6719
  • Locale: 添加 hr-HR, sr-RS, cnr-ME 本地化支持。#6730

优化

  • ImageUploader: 解决在点击时触发 a11y 的 aria-hidden 警告。#6688
  • Locale: 优化 kk-KZ 本地化。#6681
  • Toast: 多个弹出提示现在总会展示最后一个。#6729

修复

  • Tabs: 修复 rtl 下丢失动画的问题。#6686
  • CalendarPickerView: 修复 current 变化会导致选择边界变化的问题,以及开启时不会滚动到当前值的问题。#6760

v5.37.1

03 Jul 04:00
0313082
Compare
Choose a tag to compare

Bug Fixes

  • NavBar: Fix backArrow not working as expect. #6657
  • CalendarPicker: Fix jumpTo & jumpToToday not trigger scroll. #6660
  • CalendarPickerView: Fix sometime has empty line in view. #6661

修复

  • NavBar: 修复废弃属性 backArrow 不生效的问题。#6657
  • CalendarPicker: 修复 jumpTojumpToToday API 不会触发滚动到目标位置的问题。#6660
  • CalendarPickerView: 修复在某些情况下会出现空白行的问题。#6661

v5.37.0

28 Jun 09:48
Compare
Choose a tag to compare

Features

  • ConfigProvider: Add an icons configuration to support global definition for all components that have icon configuration. #6587
  • Card: Add border and padding related CSS variables for custom styling. #6583

Bug Fixes

  • NumberKeyboard: Fix an issue on iOS where accidental touches at the edge of the screen would cause abnormal deletion behavior. #6651

特性

  • ConfigProvider: 添加 icons 配置以支持全局定义所有拥有图标配置的组件。#6587
  • Card: 添加 borderpadding 相关 CSS 变量以供自定义样式。#6583

修复

  • NumberKeyboard: 修复 IOS 下当手指在屏幕边缘操作时,误触会导致删除异常的问题。#6651

v5.36.1

27 May 03:59
Compare
Choose a tag to compare

Enhancements

  • MISC: Add react-dom to peer dependencies. #6611
  • i18n: Optimized lots of i18n language translations. #6632

优化

  • MISC: 添加 react-dompeerDependencies 中。#6611
  • i18n: 优化大量国际化语言翻译。#6632

v5.36.0

28 Apr 11:31
Compare
Choose a tag to compare

Features

  • TextArea: Add enterKeyHint and onEnterPress support. #6598
  • Swiper: autoplay support reverse props. #6589
  • i18n: Add pt-BR locale support. #6562
  • i18n: Add fr-FR de-DE ms-MY ar-SA vi-VN locale support and adjust pt-BR locale. #6613

Enhancements

  • Button: Adjust onClick type to remove useless unknown return type. #6588
  • bundle: Reduce zh-CN locale bundle size. #6592

Bug Fixes

  • Input: Fix enterKeyHint not show the correct submit button on IOS. #6607

特性

  • TextArea: 添加 enterKeyHintonEnterPress 属性支持。#6598
  • Swiper: autoplay 支持 reverse 属性以逆序播放。#6589
  • i18n: 添加 pt-BR 国际化支持。#6562
  • i18n: 添加 fr-FR de-DE ms-MY ar-SA vi-VN 国际化支持,调整 pt-BR 国际化。#6613

优化

  • Button: 移除 onClick 返回类型中无用的 unknown 定义。#6588
  • bundle: 降低 zh-CN 国际化的打包尺寸。#6592

修复

  • Input: 修复 enterKeyHint 在 IOS 下没有正确展示提交按钮的问题。#6607

v5.35.0

28 Mar 07:40
Compare
Choose a tag to compare

Features

  • PickerView: Add active className. #6427
  • MISC: stopPropagation support touchstart event. #6578
  • MISC: Export useConfig for consuming the config context. #6501
  • i18n: Add hungarian locale. #6555
  • i18n: Add Thai locale. #6533

Enhancements

  • Form: Help icon add stopPropagation to prevent native active trigger. #6549
  • Refactor: Replace lodash to reduce bundle size. #6581 #6542 #6524 #6526

Bug Fixes

  • Button: Fix css variables fallback style not handle danger button. #6568
  • Result: Fix dark theme style not correct. #6557
  • ErrorBlock: Fix tree shaking makes style missing. #6551
  • Radio: Fix mistake hidden all the input element in it. #6492
  • TextArea: Fix not scrollable when disabled. #6509
  • InfiniteScroll: Fix error throw when scrolling. #6531

特性

  • PickerView: 添加激活态 className。#6427
  • MISC: stopPropagation 支持 touchstart 事件。#6578
  • MISC: 导出 useConfig 方法以供开发者消费全局 context。#6501
  • i18n: 添加匈牙利语本地化支持。#6555
  • i18n: 添加泰语本地化支持。#6533

优化

  • Form: 帮助按钮添加 stopPropagation 逻辑以防止点击时触发原生聚焦行为。#6549
  • Refactor: 替换 lodash 以降低打包体积。#6581 #6542 #6524 #6526

修复

  • Button: 修复 css variables 降低样式不支持危险按钮的问题。#6568
  • Result: 修复暗色主题样式不正确的问题。#6557
  • ErrorBlock: 修复 tree shaking 下样式会丢失的问题。#6551
  • Radio: 修复错误的将所有 input 元素隐藏的问题。#6492
  • TextArea: 修复设置 disabled 时无法滚动的问题。#6509
  • InfiniteScroll: 修复滚动时偶尔会报错的问题。#6531

v5.34.0

03 Jan 08:02
Compare
Choose a tag to compare

Features

  • Swiper: Support horizontal virtual scroll. (#6504)

特性

  • Swiper: 支持水平方向虚拟滚动。(#6504)

v5.33.2

22 Dec 09:36
Compare
Choose a tag to compare

Enhancements

  • a11y: Improve NumberKeyboard & VirtualInput accessibility experience. (#6494)
  • Tabs: 🔬 Add autoScroll to disable auto scroll behavior when tab content changed. Note this is experimental prop which maybe rename in future. (#6497)

Bug Fixes

  • Dropdown: Fix Dropdown.Item not trigger onClick event. (#6481)
  • MISC: Resolve where measuring elements would cause the browser to print an extra blank page. (#6488)

优化

  • a11y: 优化 NumberKeyboard 和 VirtualInput 的无障碍体验。(#6494)
  • Tabs: 🔬 添加 autoScroll 以支持标题内容变化时不要滚动的需求。注意这是一个实验性属性,命名未来可能会被改变。(#6497)

修复

  • Dropdown: 修复 Dropdown.Item 不触发 onClick 事件的问题。(#6481)
  • MISC: 解决内部的测量元素会导致浏览器打印功能出现额外的空白页的问题。(#6488)

v5.33.1

13 Dec 08:22
Compare
Choose a tag to compare

Enhancements

  • ImageViewer: Add semantic classNames for mask and body. (#6407)
  • Popover: Prevent event interactive when animating. (#6416)
  • CalendarPicker: support getContainer. (#6460)

Bug Fixes

  • Switch: Fix the width flick even when checkedText & uncheckedText is the same. (#6421)
  • VirtualInput: Fix long press the button on the popup panel will make the panel un-closable. (#6477)
  • NumberKeyboard: Fix title node always render even when title is empty. (#6475)
  • CascaderView: Fix onChange not correct for some special case. (#6444)

优化

  • ImageViewer: 更新语义化 classNames 支持,添加 maskbody。(#6407)
  • Popover: 在动画过渡时阻止点击交互事件。(#6416)
  • CalendarPicker: 支持传递 getContainer 属性。(#6460)

修复

  • Switch: 修复在 checkedTextuncheckedText 相同时,切换状态宽度会抖动的问题。(#6421)
  • VirtualInput: 修复弹出面板长按后,面板无法关闭的问题。(#6477)
  • NumberKeyboard: 修复 title 为空时,title 节点仍然会渲染的问题。(#6475)
  • CascaderView: 修复在一些特殊情况下 onChange 返回值内容不正确的问题。(#6444)