Skip to content

Commit

Permalink
refactor: update ListHeaderItem.vue to use slot for item label
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed May 22, 2024
1 parent 5c0513c commit ee65405
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ListView/ListHeaderItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
:class="$attrs.class"
>
<slot name="prefix" v-bind="{ item }" />
<div class="truncate">
{{ item.label }}
</div>
<slot>
<div class="truncate">
{{ item.label }}
</div>
</slot>
<slot name="suffix" v-bind="{ item }" />
</div>
<slot v-if="list.options.resizeColumn" name="resizer" v-bind="{ item }">
Expand Down

0 comments on commit ee65405

Please sign in to comment.