feat: folder

This commit is contained in:
wangdan-fit2cloud 2025-06-19 17:24:35 +08:00
parent 2e15552853
commit 004f78c2ba
3 changed files with 33 additions and 3 deletions

View File

@ -91,4 +91,29 @@ export default {
])
},
},
'app-add-folder': {
iconReader: () => {
return h('i', [
h(
'svg',
{
style: { height: '100%', width: '100%' },
viewBox: '0 0 16 16',
version: '1.1',
xmlns: 'http://www.w3.org/2000/svg',
},
[
h('path', {
d: 'M42.666667 170.666667a42.666667 42.666667 0 0 1 42.666666-42.666667h357.632a42.666667 42.666667 0 0 1 38.144 23.594667L512 213.333333h426.666667a42.666667 42.666667 0 0 1 42.666666 42.666667v597.333333a42.666667 42.666667 0 0 1-42.666666 42.666667H85.333333a42.666667 42.666667 0 0 1-42.666666-42.666667V170.666667zM5.33317 8.33333C5.33317 8.14924 5.48241 8 5.6665 8H7.33317V6.33333C7.33317 6.14924 7.48241 6 7.6665 6H8.33317C8.51726 6 8.6665 6.14924 8.6665 6.33333V8H10.3332C10.5173 8 10.6665 8.14924 10.6665 8.33333V9C10.6665 9.18409 10.5173 9.33333 10.3332 9.33333H8.6665V11C8.6665 11.1841 8.51726 11.3333 8.33317 11.3333H7.6665C7.48241 11.3333 7.33317 11.1841 7.33317 11V9.33333H5.6665C5.48241 9.33333 5.33317 9.18409 5.33317 9V8.33333Z',
fill: 'currentColor',
}),
h('path', {
d: 'M0.666504 13.3333V2.66667C0.666504 2.29848 0.964981 2 1.33317 2H6.92115C7.17366 2 7.4045 2.14267 7.51743 2.36852L7.99984 3.33333H14.6348C15.0205 3.33333 15.3332 3.63181 15.3332 4V13.3333C15.3332 13.7015 15.0205 14 14.6348 14H1.36492C0.979194 14 0.666504 13.7015 0.666504 13.3333ZM1.99984 4.66667V12.6667H13.9998V4.66667H1.99984Z',
fill: 'currentColor',
}),
],
),
])
},
},
}

View File

@ -51,14 +51,18 @@
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click.stop="openCreateFolder(data)">
<el-icon><EditPen /></el-icon>
<AppIcon iconName="app-add-folder"></AppIcon>
{{ '添加子文件夹' }}
</el-dropdown-item>
<el-dropdown-item @click.stop="openEditFolder(data)">
<el-icon><EditPen /></el-icon>
{{ $t('common.edit') }}
</el-dropdown-item>
<el-dropdown-item divided @click.stop="deleteFolder(data)">
<el-dropdown-item
divided
@click.stop="deleteFolder(data)"
:disabled="data.id === 'default'"
>
<el-icon><Delete /></el-icon>
{{ $t('common.delete') }}
</el-dropdown-item>
@ -212,7 +216,7 @@ function refreshFolder() {
}
:deep(.overflow-inherit_node__children) {
.el-tree-node__children {
overflow: inherit;
overflow: inherit !important;
}
}
</style>

View File

@ -17,6 +17,7 @@ export default defineConfig(({ mode }) => {
const prefix = process.env.VITE_DYNAMIC_PREFIX || ENV.VITE_BASE_PATH
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/api'] = {
// target: 'http://43.166.1.146:8080',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path: string) => path.replace(ENV.VITE_BASE_PATH, '/'),