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.
frontend/src/components/tasks/partials/labels.vue

33 lines
523 B
Vue
Raw Normal View History

<template>
<div class="label-wrapper">
<XLabel
v-for="label in labels"
:key="label.id"
2024-02-07 11:18:19 +00:00
:label="label"
/>
</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
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,
},
2022-02-15 12:07:59 +00:00
})
</script>
2021-10-20 12:33:52 +00:00
<style lang="scss" scoped>
.label-wrapper {
display: inline;
2024-02-06 14:34:22 +00:00
:deep(.tag) {
margin-bottom: .25rem;
}
}
</style>