Releases: Tencent/tdesign-react
Releases · Tencent/tdesign-react
tdesign-react@1.16.2
🌈 1.16.2 2025-12-30
🐞 Bug Fixes
Popup:Select:
🐞 Bug Fixes
Popup:- Fixed an issue where the popup would unexpectedly close when
'trigger='hover'was enabled and external elements were dynamically updated, due to the restructuring in version1.16.0@RylanBot (#4046) - Fixed an issue where the position of the popup became unstable in certain scenarios after the restructuring in version
1.16.0@xiaody (#4046) - Improved the optimization for arrow offset when there is not enough space, implemented in version
1.16.0@RylanBot (#4042)
- Fixed an issue where the popup would unexpectedly close when
Select:- Fixed an issue where the
onClosecallback function ofvalueDisplaywould receiveundefinedas a value @RSS1102 (#4047) - Fixed an issue where values that were not included in the
optionslist could not be rendered when themultipleoption was enabled after version1.15.7@RylanBot (#4037) - Fixed an issue where, after the
filterableoption was enabled, the highlighted items in the keyboard navigation would not update even when the options changed @RylanBot (#4037)
- Fixed an issue where the
1.16.1
1.16.0
🌈 1.16.0 2025-12-15
🚨 Breaking Changes
MessagePlugin: 移除消息容器的id='tdesign-message-container--${placement}',之前依赖该属性的业务注意此变更⚠️ @RylanBot (#3820)
🚀 Features
- 支持
readonly的组件新增 APIreadOnly,与readonly效果一致。原有的readonly会被保留,未来版本将废弃,建议及时更换⚠️ @RylanBot (#3955) - 支持
.dark类名,丰富切换深色模式的方式 @liweijie0812 (common#2355) Dialog: 优化渲染阶段,避免子元素计算异常的问题,此前有在 Dialog 内进行复杂内容渲染的请注意此变更⚠️ @HaixingOoO (#3705)Form: 保留原始 HTML 效果,当输入框按下 Enter 键自动触发 submit 事件,如果需要拦截该行为,可以给输入框绑定onEnter={(e)=>e.preventDefault()},此前有依赖此内置特性请注意此变更⚠️ MessagePlugin: 新增开启和关闭时的动画效果 @RylanBot (#3820)Textarea: 支持countAPI,用于自定义计数元素的渲染 @RylanBot (#4003)ImageViewer:
🐞 Bug Fixes
Textarea: 更正status对应的初始值与 class 名为default,内部 class 进行了相应调整,之前有覆盖 tips 类名请注意此变更⚠️ @RylanBot (#4007)Avatar: 修复样式与设计稿不一致的问题 @liweijie0812 (common#2364)ConfigProvider: 修复tag.closeIcon不生效的问题 @RylanBot (#4004)Form: 修复初始化表单值时引入多余组件,导致未使用组件也被打包的问题 @RylanBot (#3965)Menu: 修复菜单选项默认边距和图标大小的问题 @liweijie0812 (common#2369)Select: 优化键盘操作过程中再次进行回车操作的使用体验 @uyarn (#3989)Tree: 修复子节点为自定义的 Input 等元素时,选中文本的高亮样式被隐藏的问题 @RylanBot (common#2370)MessagePlugin: @RylanBot (#3820)- 修复自定义
attach后,后续其它全局消息也被绑定到该节点中的异常 - 修复
closeAll无法关闭所有消息的异常
- 修复自定义
EnhancedTable: 修复子节点收缩时,表头全选状态异常的问题 @liweijie0812 (#3988)Table:Popup:PopupPlugin: 修复classPrefix不生效的问题 @RylanBot (#3940)
1.15.9
🌈 1.15.9 2025-11-28
🚀 Features
Cascader: 支持当valueMode为all或者parentFirst时,在filterable选项中显示非叶子节点 @lifeiFront (#3964)Popup: 新增多个组件实例方法,getOverlay用于获取浮层元素,getOverlayState用于获取浮层悬浮状态,getPopper用于获取当前组件 popper 实例,update用于更新浮层内容 @RSS1102 (#3925)Select: 支持通过键盘进行选项操作 @uyarn (#3969)Swiper: 支持cardScaleAPI,用于控制卡片的缩放比例 @RylanBot (#3978)
🐞 Bug Fixes
Cascader: 修复reserveKeyword不生效的问题 @RylanBot (#3984)Description: 修复无边框模式下itemLayout='vertical'的间距问题 @mikasayw (common#2321)Table: 表格内容未渲染时,设置dragSort相关拖动事件报错的问题 @lifeiFront (#3958)Title: 添加兜底机制,避免错误使用level导致页面直接白屏的问题 @RylanBot (#3975)Select: 修复使用backspace键删除标签时,没有触发onRemove的问题 @RylanBot (#3961)Slider: 修复浮点误差导致的滑块位置异常问题 @RylanBot (#3947)Swiper: 修复受控模式下current初始化错误的问题 @HaixingOoO (#3959)Upload: 修复不支持文件数组上传的问题 @GATING (common#2078)Calendar: @shumuuu (#3938)- 修复当
range为同一年内时,终止月份之后的月份选项没有正常禁用的问题 - 修复年份选项错误地使用了月份选项禁用范围判定逻辑的问题
- 修复当
Form: 修复readonly属性在不同组件中的兼容问题 @RylanBot (#3986)Form: @RylanBot (#3957)- 修复嵌套三层及以上的 FormList 相关方法失效的问题
- 修复
reset时没有触发onValueChange的问题 - 修复初始化调用
setFieldsValue时没有触发onValuesChange的问题 - 修复非动态表单场景下,
name为数字或含有数字时setFieldValues失败的问题 - 优化
key的生成,更新值与当前表单值相同时不刷新元素
Tree:- 修复过滤节点被意外禁用的问题 @RylanBot (#3984)
- 修复
setData没有自动触发 UI 刷新的问题 @RylanBot (common#2283)
TreeSelect: @RylanBot (#3984)- 修复过滤节点的父节点也可以被选中的问题
- 修复
blur时,输入框内容没有清空的问题
🚧 Others
1.15.8
🌈 1.15.8 2025-11-04
🚀 Features
Popup: 添加onOverlayClick事件以支持内容面板点击触发 @RSS1102 (#3927)CheckboxGroup: 支持readonlyAPI @RylanBot (#3885)Form: @RylanBot (#3885)- 支持
readonlyAPI - 支持
FormRule.pattern的类型为string
- 支持
🐞 Bug Fixes
Select: 修复1.15.7版本中全选功能在分组模式下功能异常的问题 @uyarn (#3941)Form: 修复嵌套FormList无法使用setFields更新表单的问题 @RylanBot (#3930)CheckboxGroup: 修复被设为disabled的选项会被checkAll篡改状态的问题 @RylanBot (#3885)SubMenu: 修复自定义popupProps的visible和onVisibleChange不生效的问题 @RylanBot (#3912)DatePicker: 修复同时开启enableTimePicker与needConfirm={false}时,选择日期后未选时间就关闭弹窗的问题 @RylanBot (#3860)DateRangePicker: 修复同时开启enableTimePicker与needConfirm={false}时,仍需手动确认的问题 @achideal (#3860)Progress: 修复开启theme='plump'时,自定义label被隐藏的问题 @RylanBot (#3931)RadioGroup: @RylanBotTree: @RylanBot
🚧 Others
1.15.7
🌈 1.15.7 2025-10-24
🚀 Features
Divider: 支持size控制间距大小 @HaixingOoO (#3893)
🐞 Bug Fixes
TreeSelect: 修复删除不在data中的选项时产生的报错 @RylanBot (#3886)EnhancedTable: 修复拖拽后动态关闭dragSort,行无法正常展开的异常 @RylanBot (#3896)Menu: 避免在菜单折叠时隐藏span包裹的图标 @QuentinHsu(common#2303)Textarea: 修复内容超长情况下,设置autosize没有完整自动撑开高度,存在有滚动条的问题 @engvuchen (#3856)RadioGroup: 修复键盘操作时读取到null产生的报错 @RylanBot (#3906)Loading: 修复delay不生效的问题 @RylanBot (#3859)Form:- 修复错误消息
max和min英文翻译错误 @liweijie0812(common#2304) - 修复嵌套
FormList无法使用add正确新增表单的问题 @RylanBot (#3881)
- 修复错误消息
Select: @RylanBot (#3879)- 修复开启
multiple时,disabled的选项依旧能被删除的问题 - 修复
disabled且被选中的选项会被checkAll修改状态的问题 - 修复存在
disabled项时,checkAll可选框的checked与indeterminate状态不合理的问题
- 修复开启
VirtualScroll: @RylanBot (#3878)- 修复数据在非虚拟滚动和虚拟滚动的
threshold切换时,无法正确刷新的问题 - 修复没开启
scroll={{type:'virtual'}},也启动了相关计算的问题
- 修复数据在非虚拟滚动和虚拟滚动的
1.15.6
1.15.5
🌈 1.15.5 2025-10-05
🐞 Bug Fixes
Watermark: 修复1.15.2版本 SSR 场景下使用的问题 @Wesley-0808(#3873)Descriptions: 修复无边框模式下的边距问题 @liweijie0812 (#3873)