Skip to content

Releases: ant-design/ant-design-mobile

v5.14.3

10 Jun 03:52
d8a4b2b
Compare
Choose a tag to compare

Bug Fixes

  • 773a675 InfiniteScroll: Fix loadMore can not be triggered after retry from failed state
  • 8a968d4 Form: setFieldsValue should trigger the rerender of Form.Subscribe now

修复

  • 773a675 InfiniteScroll: 修复了当某次加载失败点击重试之后,loadMore 无法再被继续触发的问题
  • 8a968d4 Form: 当调用 setFieldsValue 更新表单数据时,Form.Subscribe 现在可以正确的触发重渲染了

v5.14.2

09 Jun 04:28
Compare
Choose a tag to compare

Bug Fixes

  • a5389b6 css-vars-patch.css in 2x directory should be multiplied

修复

  • a5389b6 2x 目录下的 css-vars-patch.css 现在会被正确地乘 2 倍大小了

v5.14.1

09 Jun 02:10
Compare
Choose a tag to compare

Bug Fixes

  • 0f1b262 Modal & Dialog: Fix className and style props doesn't take effect

Bug Fixes

  • 0f1b262 Modal & Dialog: 修复 classNamestyle 属性没有生效的问题

v5.14.0

08 Jun 11:28
Compare
Choose a tag to compare

New Features

  • 1c9c814 Add dark mode support (experimental)
  • 8a29b17 Add css-vars-patch.css for CSS variables auto fallback (#5289)
  • 351dec0 Expose some new global CSS variables for theming
  • 183e7ed Add a new component CenterPopup
  • f6444f4 InfiniteScroll: Supports retry when load more failed and children supports render function
  • c1a4964 CascaderView & Cascader: Add onTabsChange prop (#5266)
  • bec179d Slider: Add popover prop

Enhancement

  • 1161185 Slider: Adjust style
  • c2e60c0 TabBar: Adjust style with larger icon
  • 4505418 Dialog & Modal: Reimplement Dialog and Modal with CenterPopup under the hood

Bug Fixes

  • ed33d50 Picker: Fix Picker body height over-exceeds in iOS 11.4 Safari (#5287)
  • 3cecd63 List: Fix extra content can not break lines (#5277)
  • 9f48dec Cascader: Fix isLeaf may get wrong value (#5259)

特性

  • 1c9c814 增加了暗黑模式(试验性)
  • 8a29b17 增加了 css-vars-patch.css 支持 CSS 变量的自动降级 (#5289)
  • 351dec0 增加了更多的全局 CSS 变量,用于定制主题
  • 183e7ed 增加了新组件 CenterPopup
  • f6444f4 InfiniteScroll: 当请求失败时,支持点击重试,同时 children 支持了 render function
  • c1a4964 CascaderView & Cascader: 增加了 onTabsChange 属性 (#5266)
  • bec179d Slider: 增加了 popover 属性

优化

  • 1161185 Slider: 调整了外观
  • c2e60c0 TabBar: 调整了外观,现在的图标更大一些了
  • 4505418 Dialog & Modal: 基于新的 CenterPopup 组件重构了 Dialog 和 Modal 的底层实现

修复

  • ed33d50 Picker: 修复了在 iOS 11.4 下,主内容区域的高度可能超出整体容器的问题 (#5287)
  • 3cecd63 List: 修复了 extra 内容超长时无法换行的问题 (#5277)
  • 9f48dec Cascader: 修复了 isLeaf 值可能不正确的问题 (#5259)

v5.13.1

02 Jun 13:02
Compare
Choose a tag to compare

Bug Fixes

  • fa84843 Popover: fix Popover may cause render error in some lower version OSs due to the use of ResizeObserver

修复

  • fa84843 Popover: 修复了 Popover 在一些低版本系统(例如 iOS < 13.1)中可能导致页面渲染报错的问题,由于底层调用了 ResizeObserver

v5.12.7

02 Jun 13:02
Compare
Choose a tag to compare

Bug Fixes

  • fa84843 Popover: fix Popover may cause render error in some lower version OSs due to the use of ResizeObserver

修复

  • fa84843 Popover: 修复了 Popover 在一些低版本系统(例如 iOS < 13.1)中可能导致页面渲染报错的问题,由于底层调用了 ResizeObserver

v5.13.0

31 May 07:44
Compare
Choose a tag to compare

Features

  • b159354 add fr-FR locale (#5216)
  • 5235443 IndexBar: add onIndexChange prop (#5223)
  • 9663bc8 Modal & Dialog: add destroyOnClose and forceRender props (#5217)
  • 51ea559 ImageViewer: add renderFooter prop (#5228)
  • 8eb12cb ErrorBlock: add createErrorBlock function for generating more light-weighted or customized ErrorBlock
  • e813593 add reduceMotion and restoreMotion
  • 3c05796 Ellipsis: move Ellipsis out of experimental components, now it is stable
  • ffeb084 move HD out of the experimental features, now it is stable

Enhancements

  • a0e5405 Mask: adjust animation config
  • ffe3ca0 Modal & Dialog: remove the whole DOM element after hidden if destroyOnClose is true
  • d120a35 upgrade @use-gesture/react to 10.2.15
  • b0bd5ee improve some error messages about measuring css length

Bug Fixes

  • 09135d2 Input: may can't enter values when click the clear button in ios (#5247)
  • fc623d6 ImageViewer: remove unused max-height: -webkit-fill-available style to prevent eslint errors
  • b07d5e6 Ellipsis: middle mode has more characters on right than on left (#5253)

特性

  • b159354 增加了 fr-FR 翻译 (#5216)
  • 5235443 IndexBar: 增加了 onIndexChange 属性 (#5223)
  • 9663bc8 Modal & Dialog: 增加了 destroyOnCloseforceRender 属性 (#5217)
  • 51ea559 ImageViewer: 增加了 renderFooter 属性 (#5228)
  • 8eb12cb ErrorBlock: 增加了 createErrorBlock 函数,你可以使用它创建更轻量化的或者是定制化的 ErrorBlock
  • e813593 增加了 reduceMotionrestoreMotion 函数,你可以使用它们来减弱组件的动画效果
  • 3c05796 Ellipsis: 将 Ellipsis 移出了试验性范围,现在它是一个常规的稳定组件了
  • ffeb084 将高清方案移除了试验性范围,现在它是一个常规的稳定特性了

优化

  • a0e5405 Mask: 调整了动画效果
  • ffe3ca0 Modal & Dialog: 当 destroyOnClosetrue 时,现在会在组件隐藏后移除整个 DOM 节点了,而不仅仅是只移除内容部分的 DOM
  • d120a35 升级 @use-gesture/react10.2.15
  • b0bd5ee 优化了一些关于 css 长度计算的报错提示信息

修复

  • 09135d2 Input: 修复了在 iOS 下点击清除按钮时输入框可能卡住的问题 (#5247)
  • fc623d6 ImageViewer: 移除了无效的 max-height: -webkit-fill-available 样式,避免出现 lint 报错
  • b07d5e6 Ellipsis: 修复了 middle 模式下,右侧内容可能比左侧内容更多的问题 (#5253)

v5.12.6

23 May 10:02
Compare
Choose a tag to compare

Bug Fixes

  • f8d66d8 fix: downgrade @use-gesture/react to 10.2.12 due to bugs in 10.2.14

修复

  • f8d66d8 fix: 把 @use-gesture/react 降到了 10.2.12 版本,由于 10.2.14 版本中存在 bug

v5.12.5

20 May 07:29
Compare
Choose a tag to compare

Features

  • 747fa23 [Calendar] Add shouldDisableDate prop (#5198)
  • 08562ec [Image] Add draggable props which defaults to false

Enhancements

  • e7632d2 [ActionSheet] Refactor the implementation and adjust style
  • 481f0a5 [ActionSheet] Adjust DOM structure and update tests
  • 84923eb Upgrade @floating-ui/dom to 0.5

Bug Fixes

  • 94b5b8f [Popover] Fix position not correct when target element is position fixed and popover content is very long
  • e8e2810 [Form] Fallback label to empty string in validation messages
  • 88bba8f [TextArea] Input Chinese in firefox when maxLength is set (#5209)

特性

  • 747fa23 [Calendar] 增加了 shouldDisableDate 属性 (#5198)
  • 08562ec [Image] 增加了 draggable 属性,默认为 false

优化

  • e7632d2 481f0a5 [ActionSheet] 调整了样式和 DOM 结构,底层不再依赖 Button 组件
  • 84923eb 升级 @floating-ui/dom 到 0.5

修复

  • 94b5b8f [Popover] 修复了当目标元素是 fixed 定位且 Popover 内容很长时,可能出现定位错误的问题
  • e8e2810 [Form] 当 label 为 ReactNode 时,校验信息中的 label内容会自动 fallback 为空字符串,避免出现undefined` 文案
  • 88bba8f [TextArea] 修复了在 FireFox 中,当 TextArea 设置了 maxLength 时,无法输入中文的问题 (#5209)

v5.12.4

17 May 07:27
Compare
Choose a tag to compare

Features

  • [Button] supports native onMouseDown onMouseUp onTouchStart onTouchEnd props d94c692

Enhancements

  • [Badge] adjust the implementation of Badge.dot to prevent ts errors 81d6491
  • [Image] update the loading and broken placeholder icon 1aee619
  • [Button] adjust the type of onClick 7b2d503
  • [Toast] update max-width af26f62

Bug Fixes

  • [InfiniteScroll] if the scroll parent changes, InfiniteScroll should move the event handler to the new scroll parent f188a2b
  • [SearchBar] onCancel should be able to trigger now #5201 b66911e 8337f70

特性

  • [Button] 支持了原生 button 元素的 onMouseDown onMouseUp onTouchStart onTouchEnd 属性 d94c692

优化

  • [Badge] 调整了 Badge.dot 的实现方式,避免出现 ts 报错 81d6491
  • [Image] 更新了加载和错误时的占位图 1aee619
  • [Button] 调整了 onClick 的类型 7b2d503
  • [Toast] 调整了 max-width af26f62

修复

  • [InfiniteScroll] 当外层滚动元素发生变化时,现在 InfiniteScroll 可以正常切换事件绑定的对象并且触发加载逻辑了 f188a2b
  • [SearchBar] 修复了 onCancel 事件无法触发的问题 #5201 b66911e 8337f70