Create worker date label

This commit is contained in:
Kevin Martinez 2024-03-24 16:05:04 -03:00
parent aa8e052633
commit 3d1e34a5b0
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<script setup>
defineProps({
color: {
type: String,
default: null,
},
avatarClass: {
type: String,
default: null,
},
selected: {
type: Boolean,
default: undefined,
},
});
defineEmits(['update:selected']);
</script>
<template>
<QChip
class="chip"
:selected="selected"
:style="selected ? { backgroundColor: color } : null"
:text-color="selected ? 'white' : null"
@update:selected="$emit('update:selected', $event)"
>
<QAvatar
:color="color"
:class="avatarClass"
:style="{ backgroundColor: color }"
/>
<slot />
</QChip>
</template>
<style scoped lang="scss">
.chip {
background-color: var(--vn-light-gray);
}
</style>