Skip to content

Commit

Permalink
fix: use tfoot instead of tfooter
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Sep 5, 2024
1 parent 1c2448f commit 0cdd570
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/PageTable/PageTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const slots = useSlots()
const hasColgroup = computed(() => !!slots.colgroup)
const hasThead = computed(() => !!slots.thead)
const hasTbody = computed(() => !!slots.default)
const hasTfooter = computed(() => !!slots.tfooter)
const hasTfoot = computed(() => !!slots.tfoot)
const classList = computed(() => {
return {
Expand Down Expand Up @@ -58,9 +58,9 @@ provide('orderBy', orderBy)
<tbody v-if="hasTbody">
<slot v-bind="{ selectMode, sortBy, orderBy }" />
</tbody>
<tfooter v-if="hasTfooter">
<slot v-bind="{ selectMode, sortBy, orderBy }" name="tfooter" />
</tfooter>
<tfoot v-if="hasTfoot">
<slot v-bind="{ selectMode, sortBy, orderBy }" name="tfoot" />
</tfoot>
</b-table-simple>
</template>

Expand Down

0 comments on commit 0cdd570

Please sign in to comment.