nicer filemanager and layout

This commit is contained in:
2024-11-09 17:10:24 +00:00
parent 08489ed67b
commit eb6abbb97d
16 changed files with 671 additions and 52 deletions

View File

@@ -14,11 +14,13 @@
v-if="file.type === 'directory'"
:dir="file"
@openFile="$emit('openFile', $event)"
@filePreview="$emit('filePreview', $event)"
/>
<FileManagerFile
v-else
:file="file"
@openFile="$emit('openFile', $event)"
@filePreview="$emit('filePreview', $event)"
/>
</template>
</ul>
@@ -37,6 +39,7 @@ const isCollapsed = ref(true);
const emit = defineEmits<{
'openFile': [value: VirtualFile]
'filePreview': [value: VirtualFile]
}>();
const content = ref<(VirtualFile | VirtualDirectory)[]>([]);