import type { BasicColumn } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    minWidth: 30,
    type: 'selection',
    fixed: 'left',
    selectable(row, _) {
      return row.name === 'SHGD-XDJS-0003';
    },
  },
  {
    label: '序号',
    minWidth: 40,
    type: 'index',
    fixed: 'left',
  },
  {
    label: 'IP地址',
    prop: 'cameraIp',
    minWidth: 80,
  },
  {
    label: '协议类型',
    prop: 'protocal',
    minWidth: 60,
  },
  {
    label: '端口地址',
    prop: 'cameraPort',
    minWidth: 60,
  },
  {
    label: 'MAC地址',
    prop: 'mac',
    minWidth: 100,
  },
  {
    label: '设备ID',
    prop: 'name',
    minWidth: 110,
  },
  {
    label: '车间场景',
    prop: 'workshopId',
    minWidth: 100,
  },
  {
    label: '工位场景',
    prop: 'workspaceId',
    minWidth: 60,
  },
];
