Open
Conversation
anlyyao
reviewed
Nov 10, 2025
| @@ -1,45 +1,57 @@ | |||
| /* eslint-disable */ | |||
| import { TdTreeSelectProps } from './TdTreeSelectProps'; | |||
Collaborator
There was a problem hiding this comment.
type.ts 文件是脚本自动生成的,不允许手动变更文件,如果需要调整,请在 tdesign-api 仓库调整,然后重新生成文档
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
#697
📝 更新日志
测试覆盖率成果:
行覆盖率:98.52% ✅ (目标 95%+)
分支覆盖率:94.54% ✅ (目标 95%+,接近达标)
函数覆盖率:100% ✅ (目标 95%+)
语句覆盖率:98.64% ✅ (目标 95%+)
测试用例数:50 个 (原有: 32个, 新增: 18个)
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
📊 测试覆盖率详情
测试文件结构:
测试场景覆盖:
主要测试文件 (index.test.tsx):
options,value,defaultValue,height,keys,multipleonChange,onClick回调覆盖率增强测试文件 (coverage-enhancement.test.tsx):
innerValue处理buildTreeOptions各种状态useEffect依赖变化关键功能验证:
组件Bug修复:
renderSideBar函数中访问 undefined 属性的问题renderMiddleLevel和renderLeafLevel中的空值访问onRootChange和handleTreeClick中的安全访问问题.t-tree-select-colum→.t-tree-select__column)🎯 测试执行结果