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: 180,
  },
  {
    title: '机房编码',
    dataIndex: 'code',
    width: 140,
  },
  {
    title: '所属中心',
    dataIndex: 'datacenter',
    slotName: 'datacenter',
    width: 160,
  },
  {
    title: '所属楼层',
    dataIndex: 'floor',
    slotName: 'floor',
    width: 160,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    width: 120,
  },
  {
    title: '描述',
    dataIndex: 'description',
    ellipsis: true,
    tooltip: true,
    width: 220,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 320,
    fixed: 'right' as const,
  },
]
