This commit is contained in:
parent
53558c4b46
commit
c74032d1d0
16 changed files with 702 additions and 44 deletions
27
src/components/LabelDotTemplate.vue
Normal file
27
src/components/LabelDotTemplate.vue
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue