1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

feat: 文件夹名称增加完整路径展示 (#5097)

Refs https://github.com/1Panel-dev/1Panel/issues/5094
This commit is contained in:
zhengkunwang 2024-05-22 18:34:47 +08:00 committed by GitHub
parent 5cd59c7f39
commit 260fbb6e19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,23 +128,30 @@
<el-table :data="favorites">
<el-table-column prop="name">
<template #default="{ row }">
<span
class="table-link text-ellipsis"
@click="toFavorite(row)"
type="primary"
<el-tooltip
class="box-item"
effect="dark"
:content="row.path"
placement="top"
>
<svg-icon
v-if="row.isDir"
className="table-icon"
iconName="p-file-folder"
></svg-icon>
<svg-icon
v-else
className="table-icon"
iconName="p-file-normal"
></svg-icon>
{{ row.name }}
</span>
<span
class="table-link text-ellipsis"
@click="toFavorite(row)"
type="primary"
>
<svg-icon
v-if="row.isDir"
className="table-icon"
iconName="p-file-folder"
></svg-icon>
<svg-icon
v-else
className="table-icon"
iconName="p-file-normal"
></svg-icon>
{{ row.name }}
</span>
</el-tooltip>
</template>
</el-table-column>
</el-table>