feat: use withDefaults for Labels
This commit is contained in:
parent
1dbd8b6c37
commit
dea051010d
@ -9,17 +9,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type {PropType} from 'vue'
|
|
||||||
import type {ILabel} from '@/modelTypes/ILabel'
|
import type {ILabel} from '@/modelTypes/ILabel'
|
||||||
|
|
||||||
import XLabel from '@/components/tasks/partials/Label.vue'
|
import XLabel from '@/components/tasks/partials/Label.vue'
|
||||||
|
|
||||||
defineProps({
|
defineProps<{
|
||||||
labels: {
|
labels: ILabel[],
|
||||||
type: Array as PropType<ILabel[]>,
|
}>()
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user