♻️ refactor: Component updated
This commit is contained in:
parent
8b138d905e
commit
f3e6a540ce
|
@ -39,21 +39,28 @@ const severity = computed(() => {
|
||||||
<Message
|
<Message
|
||||||
variant="simple"
|
variant="simple"
|
||||||
:severity="severity"
|
:severity="severity"
|
||||||
|
class="p-message"
|
||||||
:class="[styles['text-body-XS-mention-text-Regular'], {'disabled': props.disabled }]"
|
:class="[styles['text-body-XS-mention-text-Regular'], {'disabled': props.disabled }]"
|
||||||
:icon="props.icon ? iconClass: undefined"
|
|
||||||
:closable="false"
|
:closable="false"
|
||||||
size="small"
|
size="small"
|
||||||
role="alert"
|
role="alert"
|
||||||
>
|
>
|
||||||
{{ props.title }}
|
{{ props.title }}
|
||||||
|
<template #icon v-if="props.icon">
|
||||||
|
<i :class="[iconClass]" style="font-size: var(--text-body-SM-detail-text-Regular-size);"></i>
|
||||||
|
</template>
|
||||||
</Message>
|
</Message>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.p-message.disabled {color: var(--text-disabled-grey);}
|
.p-message.disabled {color: var(--text-disabled-grey);}
|
||||||
|
|
||||||
.p-message-icon{
|
.p-message {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: row;
|
||||||
|
align-items: baseline;
|
||||||
|
padding: 0px;
|
||||||
|
gap: var(--p-message-content-gap);
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user