Skip to content

antd 3.10.0

  • 🌟 Upload adds openFileDialogOnClick prop to allow setting whether to open the upload dialog when the component is clicked. #12347 @hengkx
  • 🌟 InputNumber adds decimalSeparator prop to allow setting a custom decimal. #12329 @amedora
  • 🌟 TreeSelect adds the treeExpandedKeys and onTreeExpand props to control the expansion of the tree. #12145
  • Transfer
    • 🌟 Adds disabled prop. #12066
  • Modal
    • 🌟 Adds autoFocusButton prop to allow specifying a button that automatically gets focus when Modal opens. #11756 @erwin-k
    • 🌟 confirm added okButtonProps and cancelButtonProps prop to allow setting custom props on buttons. #12425 @Whoaa512
  • Table
    • 🌟 column.title accepts function now. #11246
    • 🌟 onChange adds a new parameter extra to allow you getting filtered data. #12369
    • 🌟 Improve the sort and filter UX, You can now sort by clicking on the entire header. #12264
  • 🌟 Alert adds icon prop to allow setting a custom icon. Demo
  • 🌟 The following components add a suffixIcon prop, which is used to set the icon behind the input box. For details, please refer to the documentation.
    • Cascader
    • DatePicker
    • Select
    • TreeSelect
    • TimePicker
  • 🌟 Add some new less variables. f237eff
  • 🐞 Fix Icon.createFromIconfontCN prepending https to the scriptUrl. #12316
  • 🐞 Fix the issue with the gutter props of Row that doesn't work when using nested Col. #12320
  • 🐞 Fix the issue where the Tree.DirectoryTree component could not properly expand the node when the 'expandedKeys` prop had initial values. #12396
  • 🐞 Fix the issue when the render prop of the Transfer component returns a ReactNode, the title property of the list item shows an unexpected value. #12399
  • 🐞 Fix Tooltip not working with CheckboxGroup. #12427
  • 🐞 Fix the issue that Button can still be clicked in IE9 under loading state. #12466 @snail
  • 🐞 Fix the issue with mouse hover when using non-Input components in Input.Group. #12407 @hengkx
  • 🐞 Fix some TypeScript type definitions. #12374 #12370 #12354 #12473

  • 📝 更新了图标动效两篇设计指引。
  • 🌟 Upload 组件新增 openFileDialogOnClick 属性,用于设置点击组件时是否打开上传对话框。#12347 @hengkx
  • 🌟 InputNumber 组件新增 decilamSeparator 属性,用于设置自定义的小数点。#12329 @amedora
  • 🌟 TreeSelect 组件新增 treeExpandedKeysonTreeExpand 属性,用于控制树的展开收起。#12145
  • Transfer
    • 🌟 新增 disabled 属性。#12066
  • Modal
    • 🌟 新增 autoFocusButton 属性,用于指定 Modal 打开时自动获取焦点的按钮。#11756 @erwin-k
    • 🌟 confirm 方法的参数新增 okButtonPropscancelButtonProps,用户设置对应按钮的属性。#12425 @Whoaa512
  • Table
    • 🌟 现在可以把 column.title 设置为一个方法了。#11246
    • 🌟 onChange 属性新增第四个参数 extra,用于获取当前显示的筛选后的数据。#12369
    • 🌟 优化了排序和筛选交互,现在整个列表头都可以点击排序了。#12264
  • 🌟 Alert 新增 icon 属性,用户设置自定义图标。例子:自定义图标
  • 🌟 以下组件均新增了 suffixIcon 属性,用于设置输入框后面的图标,具体用法可以参考文档。
    • Cascader
    • DatePicker
    • Select
    • TreeSelect
    • TimePicker
  • 🌟 新增 less 变量 f237eff
  • 🐞 修复 Icon.createFromIconfontCN 方法会自动给 scriptUrlhttps 的问题。#12316
  • 🐞 修复 Row 的 gutter 属性,在使用嵌套的 Col 时不生效的问题。#12320
  • 🐞 修复 Tree.DirectoryTree 组件在设置的 expandedKeys 有初始值时不能正确展开节点的问题。#12396
  • 🐞 修复 Transfer 组件使用 render 属性返回 ReactNode 时,列表项的 title 属性显示错误的问题。#12399
  • 🐞 修复 Tooltip 在 CheckboxGroup 上不工作的问题。#12427
  • 🐞 修复 Button 组件 loading 状态下在 IE9 里依然可以被点击的问题。#12466 @snail
  • 🐞 修复 Input.Group 中使用非 Input 组件时,鼠标 hover 时会产生抖动的问题。#12407 @hengkx
  • 🐞 修复 TypeScript 类型定义 #12374 #12370 #12354 #12473