Skip to content

Commit

Permalink
Add slot for tag wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholasbrown committed Apr 10, 2024
1 parent 8f3d0f1 commit 08156c8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/TagWrapper/PTagWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@


<div ref="overflowTag" class="p-tag-wrapper__tag-overflow" :class="classes.overflowTag">
<PTooltip :text="hiddenText">
<slot name="overflow-tags" :overflowed-children="overflowCount">
<PTag>
+{{ overflowCount }}
</PTag>
</slot>
</PTooltip>
<slot name="overflow" v-bind="{ hiddenText, overflowCount }">
<PTooltip :text="hiddenText">
<slot name="overflow-tags" :overflowed-children="overflowCount">
<PTag>
+{{ overflowCount }}
</PTag>
</slot>
</PTooltip>
</slot>
</div>
</div>
</template>
Expand Down

0 comments on commit 08156c8

Please sign in to comment.