Fixed #7123 - Dialog close button when label is empty

pull/7131/head
tugcekucukoglu 2025-01-22 12:36:21 +03:00
parent 682caf013d
commit a77e375e4f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<slot v-else name="icon" :class="[cx('icon')]" v-bind="ptm('icon')">
<span v-if="icon" :class="[cx('icon'), icon, iconClass]" v-bind="ptm('icon')"></span>
</slot>
<span :class="cx('label')" v-bind="ptm('label')">{{ label || '&nbsp;' }}</span>
<span v-if="!hasIcon || !!label" :class="cx('label')" v-bind="ptm('label')">{{ label || '&nbsp;' }}</span>
<Badge v-if="badge" :value="badge" :class="badgeClass" :severity="badgeSeverity" :unstyled="unstyled" :pt="ptm('pcBadge')"></Badge>
</slot>
</component>