-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/panel default expand keys #547
Open
lihongxiangfrontend
wants to merge
9
commits into
react-component:master
Choose a base branch
from
lihongxiangfrontend:feature/panel-default-expand-keys
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f28a6fb
feat: Cascader.Panel support default expand cells
lihongxiangfrontend 18dd680
fix: 修复Panel 单测报错
lihongxiangfrontend ae7f322
refactor: panel demo support defaultActiveValueCells
lihongxiangfrontend 23e8b4f
fix: remove redundance dependency
lihongxiangfrontend 9d60e08
test: 补齐 Panel multiple with defaultActiveValueCells test suites
lihongxiangfrontend 8f75363
refactor: panel demo add a button for setDefaultActiveValueCells
lihongxiangfrontend 8895a35
refactor: Panel 默认展开属性重命名 & 移除在effect中使用 defaultActiveKey
lihongxiangfrontend a29a6e4
fix: 删除defaultActiveKey多余声明
lihongxiangfrontend 173d4de
fix: 删除重复声明
lihongxiangfrontend File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
需要为 selector.spec.tsx 添加 defaultActiveKey 相关的测试用例
经过验证,当前 selector.spec.tsx 中虽然更新了 mock 函数以支持 defaultActiveKey 参数,但缺少对该功能的具体测试。Panel.spec.tsx 中已有相关测试,但范围有限。
建议在 selector.spec.tsx 中添加以下测试场景:
🔗 Analysis chain
代码更改看起来没有问题,但建议增加测试用例
mock 函数的更新正确地支持了新增的
defaultActiveKey
参数,并且保持了与原始 hook 的一致性。建议添加以下测试场景:
defaultActiveKey
的默认行为defaultActiveKey
时的处理defaultActiveKey
与已有value
属性的交互🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 81
Script:
Length of output: 4770