Skip to content

Commit

Permalink
pkp/pkp-lib#9744 Update how no-content slot is rendered in TableBody …
Browse files Browse the repository at this point in the history
…component
  • Loading branch information
blesildaramirez committed Sep 4, 2024
1 parent 8029ead commit 469a8fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/TableNext/TableBody.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<tbody class="">
<slot></slot>
<slot v-if="slots['no-content'] && noContent" name="no-content" />
<tr v-else-if="noContent" class="">
<tr v-if="noContent">
<td
:colspan="tableContext.columnsCount.value"
class="border-x border-b border-light p-4 text-center text-base-normal"
class="border-x border-b border-light p-5 text-base-normal"
>
{{ emptyText }}
<slot v-if="slots['no-content']" name="no-content" />
<span v-else>{{ emptyText }}</span>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 469a8fc

Please sign in to comment.