import { h } from 'vue';

export const columns = [
  {
    type: 'selection',
    width: 50,
    fixed:"left"
  },
  {
    title: 'ID',
    key: 'id',
    fixed: 'left',
    width: 50,
  },
  {
    title: '消息标题',
    key: 'title',
  },
  {
    title: '消息状态',
    key: 'status',
    customRender({ record }) {
      return h('span', record.status === 1 ? '已读' : '未读')
    },
  },
  {
    title: '创建人',
    key: 'createUser',
  },
  {
    title: '创建时间',
    key: 'createTime',
  },
];
