Skip to content

Commit

Permalink
fix(VsTable): modify the width defined in the table header to be appl…
Browse files Browse the repository at this point in the history
…ied as max-width (#282)
  • Loading branch information
yeriiiii committed Sep 24, 2024
1 parent 8c5f320 commit ba4fc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vlossom/src/components/vs-table/VsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default defineComponent({
return {};
}
const gridColumns = headers.value.map((h) => {
return h.width || 'minmax(20rem, 1fr)';
return h.width ? `minmax(5rem, ${h.width})` : 'minmax(5rem, 1fr)';
});
if (hasSelectable.value) {
gridColumns.unshift('3.4rem');
Expand Down

0 comments on commit ba4fc13

Please sign in to comment.