Browse Source

👣 重写前端上传组件,以及编写文件模块

master
wangxiang 3 years ago
parent
commit
9d011c0c77
  1. 4
      kicc-ui/src/views/system/file/file.data.ts

4
kicc-ui/src/views/system/file/file.data.ts

@ -7,6 +7,7 @@
import { BasicColumn } from '/@/components/Table'; import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table'; import { FormSchema } from '/@/components/Table';
import { getFileSize } from '/@/utils/file/download';
/** 表格列配置 */ /** 表格列配置 */
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
@ -28,7 +29,8 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '文件大小', title: '文件大小',
dataIndex: 'fileSize' dataIndex: 'fileSize',
customRender: ({ record }) => getFileSize(record.fileSize)
}, },
{ {
title: '上传人', title: '上传人',

Loading…
Cancel
Save