39 lines
588 B
TypeScript
39 lines
588 B
TypeScript
import { h } from 'vue';
|
|
|
|
export const columns = [
|
|
{
|
|
type: 'selection',
|
|
width: 50,
|
|
fixed: 'left',
|
|
},
|
|
{
|
|
title: 'ID',
|
|
key: 'id',
|
|
fixed: 'left',
|
|
width: 50,
|
|
},
|
|
{
|
|
title: '消息标题',
|
|
key: 'title',
|
|
width: 250,
|
|
},
|
|
{
|
|
title: '消息状态',
|
|
key: 'status',
|
|
width: 100,
|
|
customRender({ record }) {
|
|
return h('span', record.status === 1 ? '已读' : '未读');
|
|
},
|
|
},
|
|
{
|
|
title: '创建人',
|
|
key: 'createUser',
|
|
width: 100,
|
|
},
|
|
{
|
|
title: '创建时间',
|
|
key: 'createTime',
|
|
width: 180,
|
|
},
|
|
];
|