Tag - show icon whether slot is used or not
parent
f9bca655e5
commit
5fc80d2365
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<span :class="containerClass" v-bind="$attrs">
|
||||
<span :class="iconClass" v-if="icon"></span>
|
||||
<slot>
|
||||
<span :class="iconClass" v-if="icon"></span>
|
||||
<span class="p-tag-value">{{value}}</span>
|
||||
</slot>
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue