Skip to content

antd 4.0.2

  • Form
    • 🐞 Fix nest Form.Item dynamic remove will warning in React. #21896
    • ⚡️ Form useForm now return same instance for perfermance. #21927
    • ⚡️ Refactor Form.Item render logic that will only render once when children is a pure component. #21991
    • ⚡️ FormContext use a memoized value to avoid trigger FormItem's unintentional renders. #21980 @qiqiboy
  • Table
    • 🐞 Fix Table dropdown popup at abnormal direction. #21905
    • 🐞 Fix Table expandIconColumnIndex display order with rowSelection. #21915
    • 🐞 Fix Table size="small" header background color is not same as other size. #21942
    • 🐞 Fix Table className and style works on wrong node. #21974
  • Select
    • 🐞 Fix Select align issue with empty string value. #21880
    • 🐞 Fix small size Select tag text not align middle. #21940 @xrkffgg
  • Menu
    • 🐞 Fix Menu bottom margin is missing. #21867
    • 🐞 Fix horizontal Menu extra margin of Menu.Item with only icon. #21925
    • 🐞 Fix Menu popup menu overflow issue when contains too many items. #21930
  • 🐞 Fix Badge animation when switch between 10 and 11. #21834 @wendellhu95
  • 🐞 Fix Radio.Button inside Tooltip throws Function components cannot be given refs warning. #21895 @AshoneA
  • 🐞 Fix Descriptions miss style when content is falsy. #21901
  • 🐞 Fix DatePicker cursor style on seperator. #21937 @xrkffgg
  • 🐞 Fix ConfigProvider prefixCls not working on Input.Password. #21953 @tdida
  • 🐞 Fix Carousel dots not align center. #21960 @liusiasi
  • 🐞 Fix Input.Search border style in rtl mode. #21946 @xrkffgg
  • Less
    • 🆕 Add @outline-fade variable. #20227 @Satloff
    • 🆕 Add @form-item-label-height variable. #21912
  • TypeScript
    • 🌟 Improve Form.Item renderProps definite. #21911

  • Form
    • 🐞 修复嵌套 Form.Item 移除会导致 React 报警告的问题。#21896
    • ⚡️ Form.useForm 现在将返回相同的实例以优化重复渲染的问题。#21927
    • ⚡️ 重构 Form.Item 渲染逻辑以使其子元素为纯组件时值变更只会渲染一次。#21991
    • ⚡️ FormContext 使用 memoized 值避免 Form.Item 产生额外的渲染。#21980 @qiqiboy
  • Table
    • 🐞 修复 Table 内浮层组件弹出方向异常的问题。#21905
    • 🐞 修复 Table classNamestyle 作用在了错误的元素上的问题。#21974
    • 🐞 修复 Table expandIconColumnIndexrowSelection 共用时的展示顺序问题。#21915
    • 🐞 修复 Table size="small" 时表头颜色和其他尺寸不一致的问题。#21942
  • Select
    • 🐞 修复 Select 在空字符串值时的样式对齐问题。#21880
    • 🐞 修复小号 Select 在多选模式下 tag 文字不居中的问题。#21940 @xrkffgg
  • Menu
    • 🐞 修复 Menu 弹出菜单底部边距丢失的问题。#21867
    • 🐞 修复 Menu 水平模式下 Menu.Item 只有一个 Icon 时仍然有额外 margin 的问题。#21925
    • 🐞 修复 Menu 弹出菜单超出屏幕高度的问题。#21930
  • 🐞 修复 Badge 数字在 10 和 11 切换时的动画错误。#21834 @wendellhu95
  • 🐞 修复 Radio.Button 上使用 Tooltip 会报 Function components cannot be given refs 警告。#21895
  • 🐞 修复 Descriptions 内容为 falsy 值时样式丢失的问题。#21901
  • 🐞 修复 DatePicker 在分隔符上的鼠标手型。#21937 @xrkffgg
  • 🐞 修复 ConfigProvider prefixCls 在 Input.Password 上不生效的问题。#21953 @tdida
  • 🐞 修复 Carousel dots 控件不居中的问题。#21960 @liusiasi
  • 🐞 修复 Input.Search 边框高亮样式在 rtl 模式下丢失的问题。#21946 @xrkffgg
  • Less
    • 🆕 新增 @outline-fade 变量。#20227 @Satloff
    • 🆕 新增 @form-item-label-height 变量。#21912
  • TypeScript
    • 🌟 增强 Form.Item renderProps 定义。#21911