Releases: ant-design/ant-design-mobile
Releases · ant-design/ant-design-mobile
v5.12.5
Features
- 747fa23 [Calendar] Add
shouldDisableDate
prop (#5198) - 08562ec [Image] Add
draggable
props which defaults tofalse
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)
特性
优化
修复
v5.12.4
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
修复
v5.12.3
Enhancements
- [Badge] adjust ts definition #5195
Bug Fixes
- downgrade @use-gesture/react to 10.2.12 to fix body get scroll locked after open a new page #5190 f7f1fc4
- more strict scroll element check in getScrollParent to prevent issues like #5187 0d83349
- [Calendar] click the date in prev or next month should jump to the target month and trigger select 0030bd4
优化
- [Badge] 调整了 ts 定义 #5195
修复
v5.12.2
- 特性
- Tabs 增加了
--active-title-color
和--active-line-color
CSS 变量 #5185
- Tabs 增加了
- 优化
- 修复
v5.12.1
v5.12.0
- 特性
- Calendar 支持了配置年月切换按钮的内容 #5149
- Picker 增加了
popupClassName
和popupStyle
属性 #5156 - Input 和 TextArea 支持了原生的
name
属性 74a1d28 - Picker DatePicker CascadePicker 支持了 ref,同时
children
渲染函数增加了第二个参数actions
,现在可以很方便的控制 Picker 组件的展开收起了,详见 Picker 文档 #5161 - 对 React 18 做了一些最基本的兼容处理 #5046
- Picker 增加了
forceRender
和destroyOnClose
属性 #5164 - Form 的
onClick
事件函数中,增加了第二个参数widgetRef
,可以用来直接获取到内部表单控件组件的 ref,配合 Picker 使用可以很大程度上简化逻辑,详见 Form 文档 #5166 ac5a862
- 优化
- 修复
v5.11.2
v5.11.1
v5.11.0
- 特性
- 优化
- 修复