-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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
fix: custom table filterDropdown #28850
fix: custom table filterDropdown #28850
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2295bce:
|
Size Change: -370 B (0%) Total Size: 788 kB
|
修复 Table 自定义过滤器和多级过滤器时 这样描述是不是准确? |
const keys = flattenKeys(filters); | ||
keys?.forEach(originKey => { | ||
if (filteredKeys.includes(String(originKey))) { | ||
originKeys.push(originKey); | ||
} | ||
}); |
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.
originKeys = keys.filter(originKey => filteredKeys.includes(String(originKey)));
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.
nice 我改一下。
描述为错误,是因为在自定义组件时做了不必要的转换,在多级过滤器时为空数组。 我更新了 changelog 的描述。 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #28801
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge