We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
colspan
loading
empty
1 parent cd2bb8d commit bdcc8c4Copy full SHA for bdcc8c4
src/runtime/components/Table.vue
@@ -490,13 +490,13 @@ defineExpose({
490
</template>
491
492
<tr v-else-if="loading && !!slots['loading']">
493
- <td :colspan="columns?.length" :class="ui.loading({ class: props.ui?.loading })">
+ <td :colspan="tableApi.getAllLeafColumns().length" :class="ui.loading({ class: props.ui?.loading })">
494
<slot name="loading" />
495
</td>
496
</tr>
497
498
<tr v-else>
499
- <td :colspan="columns?.length" :class="ui.empty({ class: props.ui?.empty })">
+ <td :colspan="tableApi.getAllLeafColumns().length" :class="ui.empty({ class: props.ui?.empty })">
500
<slot name="empty">
501
{{ empty || t('table.noData') }}
502
</slot>
0 commit comments