-
Notifications
You must be signed in to change notification settings - Fork 330
fix(demos): [select,popeditor,slider] fix problem and optimization demo #2435
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 |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,7 +82,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,7 +82,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,7 +129,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,7 +75,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ const gridOp = ref({ | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default { | |
| { | ||
| field: 'id', | ||
| title: 'ID', | ||
| width: 40 | ||
| width: 50 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider using CSS variables for consistent column widths. Since this width change is being applied across multiple files, consider defining it as a CSS variable for better maintainability. This would make future width adjustments easier and ensure consistency. - width: 50
+ width: var(--tiny-grid-id-column-width, 50)You can define the variable in your global CSS: :root {
--tiny-grid-id-column-width: 50px;
} |
||
| }, | ||
| { | ||
| field: 'name', | ||
|
|
||
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
Width inconsistency found across ID columns - needs attention
The search results reveal inconsistent ID column widths across the codebase:
width: 40for ID columns:dialog-select/nest-grid-single.vuedialog-select/nest-grid-single-composition-api.vuedialog-select/nest-grid-multi.vuedialog-select/nest-grid-multi-composition-api.vueselect/init-label.vueuseswidth: 60width: 50This suggests the width standardization is incomplete and needs to be aligned across all ID columns for consistency.
🔗 Analysis chain
LGTM! Verify visual alignment across different ID lengths.
The width increase from 40 to 50 for the ID column aligns with similar changes across other files, likely fixing truncation issues.
Let's verify the consistency of this change across other files:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 93
Script:
Length of output: 151
Script:
Length of output: 6843