Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
v5.24.0
Features
- 12dbee8 Calendar: Support
minPage
andmaxPage
prop (#5650) - 66b1725 Form: Add CSS variable
--prefix-width
of Form.Item label width (#5665)
Enhancements
- 5772d64 Stepper: Default input use
decimal
mode (#5676) - 0b96c9d Swiper: Support nested Swiper (#5669)
Bug Fixes
- ef9ae66 Popover: Should auto close when user move screen (#5677)
- 1c04f03 Ellipsis: Use runes to prevent emoji being split unexpectedly (#5678)
特性
- 12dbee8 Calendar: 支持
minPage
与maxPage
属性 (#5650) - 66b1725 Form: 添加 CSS 变量
--prefix-width
以控制 Form.Item 标签宽度 (#5665)
优化
修复
v5.23.0
Features
- f288a05 ImageUploader: Add
onUploadQueueChange
prop (#5640) - d42a0e1 ImageUploader: Add
itemRender
prop (#5642) - fad7568 Slider: Add
residentPopover
prop (#5662) - 6aede42 Footer: Add footer component (#5611)
Enhancements
- 5dbbab3 Slider: Update disabled style (#5589)
- 6547326 ImageUploader: Optimize image preview memory (#5627)
- 7675065 ImageViewer: Use index as the key (#5641)
- eba2073 Rate: Optimise the style in half-selected mode (#5601)
- 22fa4e1 Dialog: Action text support ReactNode (#5584)
- 923a359 PageIndicator: Adjust dot color in white mode (#5607)
- 4085126 Toast: Adjust some styles (#5595)
Bug Fixes
- 92d6290 fix(Picker): Fix
getPropertyValue
compatibility issue on iOS 10 - e151e07 fix(Avatar): Adjust
Image
import path to prevent issue in HD mode (#5664) - 3a9d3f4 fix(Slider): Fix crash when
range
andvalue
don't match (#5591)
特性
- f288a05 ImageUploader: 增加了
onUploadQueueChange
属性 (#5640) - d42a0e1 ImageUploader: 增加了
itemRender
属性 (#5642) - fad7568 Slider: 增加了
residentPopover
属性 (#5662) - 6aede42 Footer: 增加了新组件 Footer (#5611)
优化
- 5dbbab3 Slider: 优化了禁用状态下的样式 (#5589)
- 6547326 ImageUploader: 优化了内存占用 (#5627)
- 7675065 ImageViewer: 避免图片 url 相同时出现 key 重复 (#5641)
- eba2073 Rate: 优化了半选模式下的样式 (#5601)
- 22fa4e1 Dialog: Action 的 text 属性支持了 ReactNode 类型 (#5584)
- 923a359 PageIndicator: 调整了 white 模式下的指示器颜色 (#5607)
- 4085126 Toast: 优化了一些样式 (#5595)
修复
v5.22.0
New Features
- 4ff80b4 ActionSheet: Add new property
bold
to typeAction
and adjust some styles (#5582) - b118e4c Add dev and prod bundle (#5576)
- 4066eb7 Selector: Add gap related CSS variables (#5554)
Enhancements
- 630e0dd CheckList: Change icon size (#5566)
- 056746a TabBar: Adjust text color and font size (#5562)
- e94b4d4 IndexBar: Adjust bubble distance (#5561)
- e40827d PageIndicator: Adjust default
--dot-color
(#5556)
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)
修复
v5.21.0
New Features
- d08c419 Add ResultPage component (#5494)
- dfa63e6 Form:
FormItemProps
complements moreRcFieldProps
(#5527)
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
ormouseWheel
is updated (#5520)
特性
优化
修复
v5.20.0
New Features
- 560c291 5a696c5 Rate: Support slide gesture (#5497) (#5505)
- 6b0c107 SwipeAction: Add
onActionsReveal
prop (#5484) - ea21796 Form: Add new
requiredMarkStyle
optionnone
(#5486)
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 theonClick
event ofSwiper.Item
- 88b0fea useResizeEffect: Avoid
ResizeObserver loop limit exceeded
error (#5491)
特性
- 560c291 5a696c5 Rate: 支持了滑动手势 (#5497) (#5505)
- 6b0c107 SwipeAction: 新增了
onActionsReveal
属性 (#5484) - ea21796 Form:
requiredMarkStyle
属性新增了可选项none
,用于完全不显示必填标记 (#5486)
优化
修复
v5.19.0
New Features
- a102c4b Add
.umd.js
and.compatible.umd.js
bundles - 34502ca Cascader & CascaderView: Add
activeIcon
prop (#5462) - 82a35de Modal & Dialog & ActionSheet: Omit
destroyOnClose
andforceRender
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 类型定义中,去除了destroyOnClose
和forceRender
属性 (#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)
修复
v5.18.0
New Features
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 (akastyle
className
aria-*
data-*
) - 6393aa9 fee2ff5 Calendar:
CalendarRef
used to be misspelled asCalenderRef
(#5443)⚠️
特性
优化
- ea463ee Rate: 增加了一些 aria 标记,优化可访问性 (#5449)
- d2afb1f NoticeBar: 扩大了关闭图标的点击范围 (#5448)
- 4ecbbf2 底层做了一些重构,稍微减少了一些包体积
- c7aeec4
rc-field-form
升级到了 1.27,@use-gesture/react
升级到了 10.2.16
修复
v5.17.2
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
修复
v5.17.1
v5.17.0
New Features
- fcf05d2 Picker: Add loading & loadingContent props (#5404)
- c152cf3 Image: Add
onContainerClick
prop (#5419)
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: 增加了
loading
和loadingContent
属性,用来控制 Picker 的加载状态 (#5404) - c152cf3 Image: 增加了
onContainerClick
属性 (#5419)