import type { TableColumnProps } from '@/types/basic-table';

// 基础表格样式配置
export const TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  maxHeight: 'calc(70vh - 150px)',
};

// 隐患类别管理表格列
export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '编号',
    type: 'index',
    align: 'center',
    width: '100px',
  },
  {
    label: '类别名称',
    prop: 'categoryName',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '类别描述',
    prop: 'description',
    align: 'left',
    minWidth: '200px',
    showOverflowTooltip: true,
  },
  {
    label: '创建时间',
    prop: 'createdAt',
    align: 'left',
    minWidth: '180px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '200px',
    align: 'left',
  },
];

