feat: upload file

pull/5/MERGE
xingyu 2023-04-27 13:03:10 +08:00
parent 611825b0f7
commit b4d2b61201
2 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export const columns: BasicColumn[] = [
},
{
title: '文件名',
dataIndex: 'module',
dataIndex: 'name',
width: 200
},
{
@ -19,7 +19,10 @@ export const columns: BasicColumn[] = [
{
title: '文件 URL',
dataIndex: 'url',
width: 300
width: 300,
customRender: ({ text }) => {
return useRender.renderImg(text)
}
},
{
title: '文件路径',

View File

@ -5,6 +5,7 @@
<BasicUpload
:maxSize="20"
:maxNumber="10"
:emptyHidePreview="true"
@change="handleChange"
:uploadParams="uploadParams"
:api="uploadApi"