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

View File

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