Skip to content

Commit

Permalink
feat: 添加更新日期
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 14, 2024
1 parent 31ab4f0 commit e640a3c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion web/src/views/backup/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { renderIcon } from '@/utils'
import type { MessageReactive } from 'naive-ui'
import { NButton, NInput, NPopconfirm } from 'naive-ui'
import { formatDateTime } from '@/utils'
import type { Backup } from './types'
const type = defineModel<string>('type', { type: String, required: true })
Expand All @@ -18,7 +19,16 @@ const restoreModel = ref({
const columns: any = [
{ title: '文件名', key: 'name', fixed: 'left', resizable: true, ellipsis: { tooltip: true } },
{ title: '大小', key: 'size', width: 200, ellipsis: { tooltip: true } },
{ title: '大小', key: 'size', width: 160, ellipsis: { tooltip: true } },
{
title: '更新日期',
key: 'time',
width: 200,
ellipsis: { tooltip: true },
render(row: any) {
return formatDateTime(row.time)
}
},
{
title: '操作',
key: 'actions',
Expand Down

0 comments on commit e640a3c

Please sign in to comment.