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: 150,
  },
  {
    title: '层级',
    dataIndex: 'level',
    slotName: 'level',
    width: 80,
  },
  {
    title: '父级分类',
    dataIndex: 'parent',
    slotName: 'parent',
    width: 150,
  },
  {
    title: '资产数量',
    dataIndex: 'asset_count',
    slotName: 'asset_count',
    width: 100,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 80,
  },
  {
    title: '状态',
    dataIndex: 'enabled',
    slotName: 'enabled',
    width: 100,
  },
  {
    title: '描述',
    dataIndex: 'description',
    ellipsis: true,
    tooltip: true,
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'created_at',
    slotName: 'created_at',
    width: 180,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 320,
    fixed: 'right' as const,
  },
]