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