这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
752 B

<script setup lang="ts">
import { defineAsyncComponent, ref } from 'vue';
const FolderTree = defineAsyncComponent(() => import('./FolderTree.vue'));
const FileList = defineAsyncComponent(() => import('./FileList.vue'));
const bucket = ref('');
const path = ref('');
function onBucketChange(val: string) {
bucket.value = val;
path.value = '';
}
function onFolderChange(val: string) {
path.value = val;
}
</script>
<template>
<div class="flex flex-row gap-2">
<div style="width: 30%">
<FolderTree
@bucket-change="onBucketChange"
@folder-change="onFolderChange"
/>
</div>
<div style="width: 70%">
<FileList :bucket="bucket" :path="path" />
</div>
</div>
</template>
<style scoped></style>