2020-04-01 20:13:57 +00:00
|
|
|
<template>
|
|
|
|
<div class="label-wrapper">
|
2023-08-29 10:33:43 +00:00
|
|
|
<XLabel
|
|
|
|
v-for="label in labels"
|
2020-09-05 20:35:52 +00:00
|
|
|
:key="label.id"
|
2024-02-07 11:18:19 +00:00
|
|
|
:label="label"
|
2023-08-29 10:33:43 +00:00
|
|
|
/>
|
2020-04-01 20:13:57 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-02-15 12:07:59 +00:00
|
|
|
<script setup lang="ts">
|
2022-09-06 09:36:01 +00:00
|
|
|
import type {PropType} from 'vue'
|
|
|
|
import type {ILabel} from '@/modelTypes/ILabel'
|
2022-06-23 01:08:35 +00:00
|
|
|
|
2023-08-29 10:33:43 +00:00
|
|
|
import XLabel from '@/components/tasks/partials/label.vue'
|
|
|
|
|
2022-02-15 12:07:59 +00:00
|
|
|
defineProps({
|
|
|
|
labels: {
|
2022-07-20 22:42:36 +00:00
|
|
|
type: Array as PropType<ILabel[]>,
|
2022-02-15 12:07:59 +00:00
|
|
|
required: true,
|
2020-09-05 20:35:52 +00:00
|
|
|
},
|
2022-02-15 12:07:59 +00:00
|
|
|
})
|
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;
|
2024-02-06 14:34:22 +00:00
|
|
|
|
|
|
|
:deep(.tag) {
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
2020-09-05 20:35:52 +00:00
|
|
|
}
|
2020-04-01 20:13:57 +00:00
|
|
|
</style>
|