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-04-12 21:54:46 +00:00
|
|
|
<span class="tag" v-for="label in labels" :style="{'background': label.hexColor, 'color': label.textColor}" :key="label.id">
|
2020-04-01 20:13:57 +00:00
|
|
|
<span>{{ label.title }}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'labels',
|
|
|
|
props: {
|
|
|
|
labels: {
|
|
|
|
required: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.label-wrapper {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
</style>
|