Ant Design 5.28.0 發佈,企業級 UI 設計語言和 React 實現 - News Detail

Ant Design 5.28.0 現已發佈,主要更新內容如下:

  • Drawer 支持 closable.placement 屬性,用於指定關閉按鈕的位置。#54067
  • Image 組件支持 fallback 全局配置。#54702
  • QRCode 組件支持 boostLevel 屬性。#55063
  • Splitter 支持 onCollapse 屬性。#54673
  • Statistic 設置為 loading 時默認展現動畫效果。#55398
  • TreeSelect 支持切換器圖標的全局配置。#54821
  • Segmented
    • Segmented 的主題變量 itemSelectedBg 支持背景漸變。#55391
    • 修復 Segmented 切換動畫總是從第一項移動閃爍的問題。#55438
  • 修復 Tree 和 Transfer 組件的 disabled 繼承問題。#54831
  • 修復 Tree.DirectoryTree 定義 fieldNamesdefaultExpandAll 不生效的問題。#55420
  • Upload
    • Upload 組件 customRequest 參數中增加 info.defaultRequest。#55146
    • Upload 組件支持 pictureCardSize token。#54756
  • Notification 支持配置背景顏色的 token。#54802
  • Pagination 支持通過 itemActiveColoritemActiveColorHover token 修改高亮項的文字顏色。#55195
  • 修復 Select、DatePicker、TreeSelect、Cascader 等組件 suffixIcon 配置值為 undefined 時沒有默認後綴圖標的問題。#54790
  • 修復 Mentions 組件沒有繼承外部 Form 的 disabled 的問題。#54829
  • 修復 Watermark 組件內包裹 Modal 使用 modalRender 會導致崩潰的問題。#55435
  • Input 組件廢棄 addonAfteraddonBefore 屬性,使用 Space.Compact 替換。#55315
  • Row 組件 gutter 屬性支持 string 類型定義。#54628

更新説明:https://github.com/ant-design/ant-design/releases/tag/5.28.0