Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
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)
优化
修复
v5.16.1
v5.16.0
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 toReactNode
(#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)