config.ts 1.02 KB
import { BasicColumn, FormSchema } from '/@/components/Table';
import { PackageField } from './packageDetail.config';
export const columns: BasicColumn[] = [
  {
    title: '创建时间',
    dataIndex: PackageField.CREATE_TIME,
    width: 120,
  },
  {
    title: '标题',
    dataIndex: PackageField.TITLE,
    width: 120,
  },
  {
    title: '版本',
    dataIndex: PackageField.VERSION,
    width: 120,
  },
  {
    title: '版本标签',
    dataIndex: PackageField.VERSION_LABEL,
    width: 120,
  },
  {
    title: '包类型',
    dataIndex: PackageField.PACKAGE_TYPE,
    width: 120,
  },
  {
    title: '直接URL',
    dataIndex: PackageField.PACKAGE_EXTERNAL_URL,
    width: 120,
  },
  {
    title: '文件大小',
    dataIndex: PackageField.FILE_SIZE,
    width: 120,
  },
  {
    title: '校验和',
    dataIndex: PackageField.CHECK_SUM,
    width: 120,
  },
];

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