🐛 fix: bug fixed

This commit is contained in:
Paul Valerie GOMA 2025-07-24 02:32:35 +02:00
parent 8a43684027
commit 574d2da025

View File

@ -23,11 +23,11 @@ const severity = computed(() => {
const icon = computed(() => {
switch (props.type) {
case 'error': return 'ri-close-circle-line';
case 'warning' : return 'ri-alert-line';
case 'success' : return 'ri-checkbox-circle-line';
case 'info': return 'ri-information-line';
case 'new': return 'ri-flashlight-line';
case 'error': return 'ri-spam-fill';
case 'warning' : return 'ri-alert-fill';
case 'success' : return 'ri-checkbox-circle-fill';
case 'info': return 'ri-information-fill';
case 'new': return 'ri-flashlight-fill';
default:
return undefined;
}
@ -45,7 +45,7 @@ const limit = computed(() => props.maxWidth);
class="p-tag"
:class="{'small': props.small}"
>
<i v-if="!props.noIcon || props.type === undefined" :class="icon"></i>
<i v-if="!props.noIcon || props.type === undefined" :class="icon" style="font-weight: 100;"></i>
<span :class="{'limit': props.maxWidth}">{{ props.label }}</span>
</Tag>
</template>