github ant-design/ant-design-mobile v5.0.0-beta.14
5.0.0-beta.14

latest releases: v5.37.1, v5.37.0, v5.36.1...
pre-release2 years ago
  • 特性
    • Stepper 增加了 onFocusonBlur 属性 #4056
    • Swiper 增加了 --track-offset CSS 变量,从而支持了居中布局 #4059
    • 新增了试验性的 NumberKeyboard 组件 #4067
    • Input 增加了 minLength max min 属性
    • TabBar.Itemicon 属性支持了 render props #4079
  • 优化
    • Badgecontent 属性逻辑调整,TabBar.Itembadge 属性也同步进行了调整 ⚠️
    • Badge 移除了 offset 属性,增加了 --right--top CSS 变量 ⚠️
    • Buttonloading 时现在会自动 disabled 了 ⚠️
    • 避免 Result 在没有传 status 属性时出现错误
  • 修复
    • 修复了 Collapse.Panel 的动画和高度在内容动态变化时异常的问题
    • 修复了 Swiper.Item 中内容区域换行样式异常的问题
    • 修复了 Swiper--border-radius CSS 变量未生效的问题

迁移建议

  • 本次发布对 Badge 做了比较大的 API 调整,所以需要检查是否有用到 Badge 组件
    • 对于之前没有传递 content 属性的情况,现在需要改为 content={Badge.dot} 来明确声明显示一个没有内容的小红点
    • 对于之前传递了 offset 属性的情况,现在需要改为用 --right--top CSS 变量来调整定位
  • 由于 TabBar.Itembadge 是和 Badge 相关联的,所以需要同步进行调整,调整方式同上

Don't miss a new ant-design-mobile release

NewReleases is sending notifications on new releases.