-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix: a-directory-tree bug #2890
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
Conversation
components/tree/util.js
Outdated
@@ -88,13 +88,14 @@ export function convertDirectoryKeysToNodes(rootChildren, keys) { | |||
return nodes; | |||
} | |||
|
|||
export function getFullKeyListByTreeData(treeData) { | |||
export function getFullKeyListByTreeData(treeData,replaceFields) { |
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.
replaceFields 为 undefined 的时候会报错
|
||
(treeData || []).forEach(item => { | ||
const { key, children } = replaceFields; |
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.
why?
@@ -94,6 +96,17 @@ export default { | |||
selectedKeys(val) { | |||
this.setState({ _selectedKeys: val }); | |||
}, | |||
defaultExpandAll(val) { |
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.
?
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
First of all, thank you for your contribution! 😄
New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!
[中文版模板 / Chinese template]
This is a ...
What's the background?
API Realization (Optional if not new feature)
What's the effect? (Optional if not new feature)
Changelog description (Optional if not new feature)
Self Check before Merge
Additional Plan? (Optional if not new feature)