This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-01 20:13:57 +00:00
|
|
|
<template>
|
|
|
|
<div class="label-wrapper">
|
2020-09-05 20:35:52 +00:00
|
|
|
<span
|
|
|
|
:key="label.id"
|
|
|
|
:style="{'background': label.hexColor, 'color': label.textColor}"
|
|
|
|
class="tag"
|
|
|
|
v-for="label in labels">
|
2020-04-01 20:13:57 +00:00
|
|
|
<span>{{ label.title }}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-02-15 12:07:34 +00:00
|
|
|
<script lang="ts">
|
2020-09-05 20:35:52 +00:00
|
|
|
export default {
|
|
|
|
name: 'labels',
|
|
|
|
props: {
|
|
|
|
labels: {
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2020-04-01 20:13:57 +00:00
|
|
|
</script>
|
|
|
|
|
2021-10-20 12:33:52 +00:00
|
|
|
<style lang="scss" scoped>
|
2020-09-05 20:35:52 +00:00
|
|
|
.label-wrapper {
|
|
|
|
display: inline;
|
|
|
|
}
|
2021-10-20 12:33:52 +00:00
|
|
|
|
|
|
|
.tag {
|
|
|
|
& + & {
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 20:13:57 +00:00
|
|
|
</style>
|