config.ts 871 Bytes
import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 120,
  },
  {
    title: '标题',
    dataIndex: 'title',
    width: 120,
  },
  {
    title: '版本',
    dataIndex: 'version',
    width: 120,
  },
  {
    title: '版本标签',
    dataIndex: 'versionLabel',
    width: 120,
  },
  {
    title: '包类型',
    dataIndex: 'pkgType',
    width: 120,
  },
  {
    title: '直接URL',
    dataIndex: 'url',
    width: 120,
  },
  {
    title: '文件大小',
    dataIndex: 'fileSize',
    width: 120,
  },
  {
    title: '校验和',
    dataIndex: 'vaildateTotal',
    width: 120,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '标题',
    component: 'Input',
    colProps: { span: 8 },
  },
];