Skip to content

Commit

Permalink
feat: 文件名支持缩略显示
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 26, 2024
1 parent 2b0f8a5 commit 3c75c1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/views/file/ListTable.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { NButton, NInput, NPopconfirm, NPopselect, NSpace, NTag } from 'naive-ui'
import { NButton, NEllipsis, NFlex, NInput, NPopconfirm, NPopselect, NTag } from 'naive-ui'
import type { DataTableColumns, DropdownOption } from 'naive-ui'
import type { RowData } from 'naive-ui/es/data-table/src/interface'
Expand Down Expand Up @@ -89,7 +89,7 @@ const columns: DataTableColumns<RowData> = [
}
return h(
NSpace,
NFlex,
{
class: 'table-name',
onClick: () => {
Expand All @@ -103,7 +103,7 @@ const columns: DataTableColumns<RowData> = [
},
() => [
h(TheIcon, { icon, size: 24, color: `var(--primary-color)` }),
h('span', null, {
h(NEllipsis, null, {
default: () => {
if (row.symlink) {
return row.name + ' -> ' + row.link
Expand Down Expand Up @@ -166,7 +166,7 @@ const columns: DataTableColumns<RowData> = [
width: 340,
render(row) {
return h(
NSpace,
NFlex,
{},
{
default: () => [
Expand Down

0 comments on commit 3c75c1c

Please sign in to comment.