CaiYuanYiTiHua/src/views/demo/system/specialcolumn/index.data.ts

66 lines
1.0 KiB
TypeScript

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: 'LOGO名称',
dataIndex: 'logoTitle',
width: 200,
},
{
title: '类型',
dataIndex: 'isExternal',
width: 200,
},
{
title: '链接',
dataIndex: 'linkOrApi',
ifShow: false,
},
{
title: '状态',
dataIndex: 'isShow',
width: 200,
},
{
title: '是否开放',
dataIndex: 'isDevelop',
width: 200,
},
{
title: '排序',
dataIndex: 'sort',
width: 200,
},
{
title: '操作',
dataIndex: 'action',
width: 200,
},
];
// 专栏管理-搜索
export const searchFormSchema: FormSchema[] = [
{
field: 'keyword',
label: '名称',
component: 'Input',
colProps: { span: 8 },
},
];