Skip to content

Commit 56118c4

Browse files
authored
fix(Table): colspan with expand (#2217)
1 parent 28ad5cf commit 56118c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/runtime/components/data/Table.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</thead>
4545
<tbody :class="ui.tbody">
4646
<tr v-if="loadingState && loading && !rows.length">
47-
<td :colspan="columns.length + (modelValue ? 1 : 0)">
47+
<td :colspan="columns.length + (modelValue ? 1 : 0) + ($slots.expand ? 1 : 0)">
4848
<slot name="loading-state">
4949
<div :class="ui.loadingState.wrapper">
5050
<UIcon v-if="loadingState.icon" :name="loadingState.icon" :class="ui.loadingState.icon" aria-hidden="true" />
@@ -57,7 +57,7 @@
5757
</tr>
5858

5959
<tr v-else-if="emptyState && !rows.length">
60-
<td :colspan="columns.length + (modelValue ? 1 : 0)">
60+
<td :colspan="columns.length + (modelValue ? 1 : 0) + ($slots.expand ? 1 : 0)">
6161
<slot name="empty-state">
6262
<div :class="ui.emptyState.wrapper">
6363
<UIcon v-if="emptyState.icon" :name="emptyState.icon" :class="ui.emptyState.icon" aria-hidden="true" />

0 commit comments

Comments
 (0)