import { BasicColumn, FormSchema } from '@/components/Table';

// 专栏管理-table
export const columns: BasicColumn[] = [
  {
    title: 'id',
    dataIndex: 'id',
    ifShow: false,
  },
  {
    title: '图片地址',
    dataIndex: 'imgUrl',
    ifShow: false,
  },
  {
    title: '名称',
    dataIndex: 'title',
    width: 200,
  },
  {
    title: '类型',
    dataIndex: 'isExternal',
    width: 200,
  },
  {
    title: '链接',
    dataIndex: 'linkOrApi',
    ifShow: false,
  },
  {
    title: '状态',
    dataIndex: 'isShow',
    width: 200,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 200,
  },
];

// 专栏管理-搜索
export const searchFormSchema: FormSchema[] = [
  {
    field: 'keyword',
    label: '名称',
    component: 'Input',
    colProps: { span: 8 },
  },
];
