Create worker date label
This commit is contained in:
parent
aa8e052633
commit
3d1e34a5b0
|
@ -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>
|
Loading…
Reference in New Issue