import type { TableColumnData } from '@arco-design/web-vue/es/table/interface'

export const columns: TableColumnData[] = [
  {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 80,
  },
  {
    title: '级别名称',
    dataIndex: 'name',
    width: 150,
  },
  {
    title: '图标',
    dataIndex: 'icon',
    slotName: 'icon',
    width: 100,
  },
  {
    title: '颜色标识',
    dataIndex: 'color',
    slotName: 'color',
    width: 120,
  },
  {
    title: '描述',
    dataIndex: 'description',
    ellipsis: true,
    tooltip: true,
    width: 200,
  },
  {
    title: '状态',
    dataIndex: 'enabled',
    slotName: 'enabled',
    width: 120,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 240,
    fixed: 'right' as const,
  },
]
