fix(Table): colspan of empty and loading is wrong when selection enabled (#284)

This commit is contained in:
9uenther
2023-06-13 17:06:06 +02:00
committed by GitHub
parent a733c13866
commit 786d7765f5

View File

@@ -35,7 +35,7 @@
</tr>
<tr v-if="loadingState && loading">
<td :colspan="columns.length">
<td :colspan="columns.length + (modelValue ? 1 : 0)">
<slot name="loading-state">
<div :class="ui.loadingState.wrapper">
<UIcon v-if="loadingState.icon" :name="loadingState.icon" :class="ui.loadingState.icon" aria-hidden="true" />
@@ -48,7 +48,7 @@
</tr>
<tr v-else-if="emptyState && !rows.length">
<td :colspan="columns.length">
<td :colspan="columns.length + (modelValue ? 1 : 0)">
<slot name="empty-state">
<div :class="ui.emptyState.wrapper">
<UIcon v-if="emptyState.icon" :name="emptyState.icon" :class="ui.emptyState.icon" aria-hidden="true" />