jq
2020-11-18 815250ed341ccaec23e7ea34db6cc478a47ad065
提交 | 用户 | age
661db0 1 import { UploadApiResult } from '/@/api/sys/model/uploadModel';
746d4a 2
J 3 export enum UploadResultStatus {
4   SUCCESS = 'success',
5   ERROR = 'error',
6   UPLOADING = 'uploading',
7 }
8
9 export interface FileItem {
10   thumbUrl?: string;
11   name: string;
12   size: string | number;
13   type?: string;
14   percent: number;
15   file: File;
16   status?: UploadResultStatus;
17   responseData?: UploadApiResult;
18   uuid: string;
19 }
20
21 export interface PreviewFileItem {
22   url: string;
23   name: string;
24   type: string;
25 }
815250 26
J 27 export interface FileBasicColumn {
28   /**
29    * Renderer of the table cell. The return value should be a VNode, or an object for colSpan/rowSpan config
30    * @type Function | ScopedSlot
31    */
32   customRender?: Function;
33   /**
34    * Title of this column
35    * @type any (string | slot)
36    */
37   title: string;
38
39   /**
40    * Width of this column
41    * @type string | number
42    */
43   width?: number;
44   /**
45    * Display field of the data record, could be set like a.b.c
46    * @type string
47    */
48   dataIndex: string;
49   /**
50    * specify how content is aligned
51    * @default 'left'
52    * @type string
53    */
54   align?: 'left' | 'right' | 'center';
55 }