2024-12-01 17:20:21 +01:00
|
|
|
<template>
|
2025-08-28 07:41:51 +02:00
|
|
|
<FilePreview v-for="(file, index) in files" :key="file.apiId" :file="file" @update:file="files[index] = $event" :composer-key="composerKey"
|
2025-06-27 00:28:14 +02:00
|
|
|
@remove="files.splice(index, 1)" />
|
2024-12-01 17:20:21 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2025-08-28 07:41:51 +02:00
|
|
|
import type { ComposerStateKey } from "~/stores/composer";
|
2024-12-01 17:20:21 +01:00
|
|
|
import FilePreview from "./file-preview.vue";
|
|
|
|
|
|
2025-08-28 07:41:51 +02:00
|
|
|
const { composerKey } = defineProps<{
|
|
|
|
|
composerKey: ComposerStateKey;
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
const files = defineModel<ComposerFile[]>("files", {
|
2024-12-01 17:20:21 +01:00
|
|
|
required: true,
|
|
|
|
|
});
|
2025-05-28 21:16:22 +02:00
|
|
|
</script>
|