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: 'code',
    width: 200,
  },
  {
    title: '所属中心',
    dataIndex: 'datacenter',
    slotName: 'datacenter',
    width: 180,
  },
  {
    title: '所属楼层',
    dataIndex: 'floor',
    slotName: 'floor',
    width: 120,
  },
  {
    title: '机柜类型',
    dataIndex: 'rack_type',
    slotName: 'rack_type',
    width: 120,
  },
  {
    title: '高度(U)',
    dataIndex: 'height',
    width: 100,
  },
  {
    title: '总U位',
    dataIndex: 'total_units',
    width: 100,
  },
  {
    title: '已用U位',
    dataIndex: 'used_units',
    width: 100,
  },
  {
    title: '可用U位',
    dataIndex: 'available_units',
    width: 100,
  },
  {
    title: '使用率',
    dataIndex: 'utilization_rate',
    slotName: 'utilization_rate',
    width: 100,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    width: 120,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 320,
    fixed: 'right' as const,
  },
]
