- 特性
- 优化
Badge
的content
属性逻辑调整,TabBar.Item
的badge
属性也同步进行了调整 ⚠️Badge
移除了offset
属性,增加了--right
和--top
CSS 变量 ⚠️Button
在loading
时现在会自动disabled
了 ⚠️- 避免
Result
在没有传status
属性时出现错误
- 修复
- 修复了
Collapse.Panel
的动画和高度在内容动态变化时异常的问题 - 修复了
Swiper.Item
中内容区域换行样式异常的问题 - 修复了
Swiper
的--border-radius
CSS 变量未生效的问题
- 修复了
迁移建议
- 本次发布对
Badge
做了比较大的 API 调整,所以需要检查是否有用到Badge
组件- 对于之前没有传递
content
属性的情况,现在需要改为content={Badge.dot}
来明确声明显示一个没有内容的小红点 - 对于之前传递了
offset
属性的情况,现在需要改为用--right
和--top
CSS 变量来调整定位
- 对于之前没有传递
- 由于
TabBar.Item
的badge
是和Badge
相关联的,所以需要同步进行调整,调整方式同上