Commit b06a3c78 authored by 罗林杰's avatar 罗林杰

修改文件上传样式

parent e0a376de
import { BasicColumn, FormSchema } from '@/components/Table';
import {uploadApi} from "@/api/sys/upload";
export const columns: BasicColumn[] = [
{
......@@ -111,15 +112,10 @@ export const formSchema: FormSchema[] = [
},
{
field: 'file',
label: '上传文件',
colProps: { lg: 24, md: 24 },
component: 'Upload',
componentProps: {
accept: '.doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx,.txt,.zip,.rar',
maxSize: 1024 * 1024 * 10,
helpText: '支持jpg、jpeg、png格式,不超过2M,最多可选择10张图片,。',
},
required: true,
label: '上传',
colProps: { lg: 24, md: 24 },
rules: [{ required: true, message: '请选择上传文件' }],
},
];
......@@ -140,15 +136,10 @@ export const importFormSchema: FormSchema[] = [
},
{
field: 'file',
label: '导入文件',
colProps: { lg: 24, md: 24 },
component: 'Upload',
componentProps: {
accept: '.doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx,.txt,.zip,.rar',
maxSize: 1024 * 1024 * 10,
helpText: '支持上传多个文件',
},
required: true,
label: '上传',
colProps: { lg: 24, md: 24 },
rules: [{ required: true, message: '请选择上传文件' }],
},
{
field: 'flag',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment