2.12.0
2021-12-24
⚠️ Important Attention
- modal: Modify the way the wrapper layer displays modal, and add the
width
andtop
attributes (#454) - textarea: The calculation of max-length no longer excludes carriage returns, which is consistent with the React version (#452)
- input: The change event is only triggered when the value changes (#452)
- input-number: Modify the change event to be triggered only when out of focus and press Enter to solve the problem that the control cannot be input (#452)
💎 Optimization
- badge: No longer render the logo when count is 0 (#445)
🆕 Feature
- Icon component adds size attribute (#455)
- input:
max-length
addserrorOnly
attribute andword-slice
attribute (#451) - textarea:
max-length
addserrorOnly
attribute andword-slice
attribute (#451) - input-number: Add support for input slot (#451)
- link: Add click event (#450)
- drawer: Add unmount-on-close attribute (#449)
- switch: Added
checked-value
andunchecked-value
attributes (#444) - switch: Added
checked-color
andunchecked-color
attributes (#444)
🐛 BugFix
- modal: Fix the problem that the button content cannot be modified dynamically (#453)
- affix: Fix the problem of displaying warning when used in combination with the anchor component (#448)
- progress: Fix the display value precision problem (#447)
- upload: Fix the problem that tip is not displayed in button mode (#446)
- upload: Fix the bug that the disabled style of the
upload
component does not take effect (#430)
💅 Style
- table: Fix the problem of extra border on the last row in table scroll mode (#456)
2021-12-24
⚠️ 重点注意
- modal: 修改 wrapper 层展示 modal 的方式,并添加
width
和top
属性 (#454) - textarea: max-length 的计算不再排除回车情况,同 React 版本保持一致 (#452)
- input: 修改 change 事件仅在值发生改变时触发 (#452)
- input-number: 修改 change 事件仅在失焦和按下回车时触发,解决受控不能输入的问题 (#452)
💎 功能优化
- badge: count 为 0 时不再渲染徽标 (#445)
🆕 新增功能
- 图标类组件增加 size 属性 (#455)
- input:
max-length
增加errorOnly
属性,增加word-slice
属性 (#451) - textarea:
max-length
增加errorOnly
属性,增加word-slice
属性 (#451) - input-number: 增加对 input 插槽的支持 (#451)
- link: 增加 click 事件 (#450)
- drawer: 增加 unmount-on-close 属性 (#449)
- switch: 增加
checked-value
和unchecked-value
属性 (#444) - switch: 增加
checked-color
和unchecked-color
属性 (#444)
🐛 问题修复
- modal: 修复按钮内容不能动态修改的问题 (#453)
- affix: 修复与 anchor 组件组合使用,显示 warning 的问题 (#448)
- progress: 修复显示数值精度问题 (#447)
- upload: 修复按钮模式下 tip 没有显示的问题 (#446)
- upload: 修复
upload
组件的禁用样式不生效的 bug (#430)
💅 样式更新
- table: 修复 table 滚动模式下最后一行多余边框的问题 (#456)