Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Esvalirion committed Dec 30, 2020
1 parent c0b6acb commit 512db70
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/qComponents/QTable/src/QTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,19 @@
cellspacing="0"
cellpadding="0"
>
<colgroup v-if="selectable">
<col width="64" />
</colgroup>
<template v-for="(group, groupIndex) in groupsOfColumns">
<colgroup>
<col
v-for="(column, index) in group.columns"
:key="`fixCol${groupIndex}${index}`"
:style="getColWidth(column)"
v-if="selectable"
style="width: 64px"
/>
</template>
<template v-for="(group, groupIndex) in groupsOfColumns">
<col
v-for="(column, index) in group.columns"
:key="`fixCol${groupIndex}${index}`"
:style="getColWidth(column)"
/>
</template>
</colgroup>

<thead>
<tr>
Expand Down Expand Up @@ -786,7 +789,7 @@ export default {
if (!this.isSeparated || !group) return {};
return {
borderColor: group.color ?? 'transparent'
borderColor: group.color ?? ''
};
},
Expand Down

0 comments on commit 512db70

Please sign in to comment.