-
Notifications
You must be signed in to change notification settings - Fork 2.8k
perf: the form collection component optimized when displaying it on t… #2501
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -419,6 +419,6 @@ | |
| color: var(--el-checkbox-text-color); | ||
| } | ||
|
|
||
| .el-popper { | ||
| .el-table .el-popper { | ||
| max-width: 500px !important; | ||
| } | ||
|
||
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.
There are no significant irregularities or major issues with the provided code. However, there are a few minor improvements you can consider:
Remove Duplicated Comments: The comments
/* */at positions -5 to 9 do not add any value and should be removed to clean up the code.Use Consistent Naming Conventions: Ensure that all variable names and class names use consistent naming conventions (e.g., camelCase).
Optimize
break-allClass Usage: If the intention behind using thebreak-allclass is to allow text to wrap, it might need more precise control over where it breaks. Consider customizing its CSS if needed.Consider Dynamic Styling for Height: While specifying a static height (
height: 38px) is usually sufficient, dynamically setting the height based on other properties like padding could make sense depending on layout requirements.Here's an optimized version of the relevant section of the code:
Notes:
modelValue.overflow-wrap: break-wordinstead of justline-heightfor better word breaking behavior within the box.--el-dialog-footer-width: auto;)rule adjusts according to parent container constraints. Adjust as necessary for specific design needs.These changes enhance readability and functionality without introducing new bugs.