frontend/src/components/LabelDotTemplate.vue
nquidox c74032d1d0
All checks were successful
/ Make image (push) Successful in 47s
labels added
2025-10-29 20:59:03 +03:00

27 lines
499 B
Vue

<script setup>
const props = defineProps({
color: {
type: String,
default: '#EF2D56FF'
},
bg_color: {
type: String,
default: '#FFFFFF'
}
})
</script>
<template>
<span class="color-dot" :style="{ borderColor: color, backgroundColor: bg_color }"></span>
</template>
<style scoped>
.color-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid; /* чтобы border-color работал */
vertical-align: middle;
}
</style>