some css button disable

This commit is contained in:
Andreani Jean
2023-06-12 21:59:49 +02:00
parent aa4b93d3d5
commit e8b8921cc0
2 changed files with 11 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
:disabled="isLoading || disabled"
type="button"
@click="$emit('trigger')"
:class="[look, 'default']"
:class="[look, 'default', { disabled }]"
>
<i v-if="icon" :class="[icon, 'icon']"></i>
<span v-if="text.length" class="text">{{ text }}</span>
@@ -82,6 +82,10 @@ defineProps({
.text {
margin-left: 1rem;
}
&.disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
.no-text {
height: 3rem;