Skip to content

Commit

Permalink
feat: 文件夹名称增加完整路径展示 (#5097)
Browse files Browse the repository at this point in the history
Refs #5094
  • Loading branch information
zhengkunwang223 authored May 22, 2024
1 parent 5cd59c7 commit 260fbb6
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions frontend/src/views/host/file-management/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 260fbb6

Please sign in to comment.