Tag - show icon whether slot is used or not

pull/2002/head
sid-6581 2022-01-15 15:15:05 -06:00 committed by Tuğçe Küçükoğlu
parent f9bca655e5
commit 5fc80d2365
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<span :class="containerClass" v-bind="$attrs"> <span :class="containerClass" v-bind="$attrs">
<slot>
<span :class="iconClass" v-if="icon"></span> <span :class="iconClass" v-if="icon"></span>
<slot>
<span class="p-tag-value">{{value}}</span> <span class="p-tag-value">{{value}}</span>
</slot> </slot>
</span> </span>