feat: oss

This commit is contained in:
dap
2024-10-05 16:38:47 +08:00
parent 8f66be32c1
commit a7512adcec
6 changed files with 502 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
import type { FormSchemaGetter } from '#/adapter';
import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
export const querySchema: FormSchemaGetter = () => [
{
@@ -27,3 +27,46 @@ export const querySchema: FormSchemaGetter = () => [
label: '创建时间',
},
];
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '文件名',
field: 'fileName',
showOverflow: true,
},
{
title: '文件原名',
field: 'originalName',
showOverflow: true,
},
{
title: '文件拓展名',
field: 'fileSuffix',
},
{
title: '文件预览',
field: 'url',
showOverflow: true,
slots: { default: 'url' },
},
{
title: '创建时间',
field: 'createTime',
},
{
title: '上传人',
field: 'createByName',
},
{
title: '服务商',
field: 'service',
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
},
];