import type { FormItem } from '@/components/search-form/types'

export const searchFormConfig: FormItem[] = [
  {
    field: 'keyword',
    label: '关键词',
    type: 'input',
    placeholder: '请输入名称/IP/厂商/型号',
    span: 6,
  },
  {
    field: 'enabled',
    label: '启用状态',
    type: 'select',
    placeholder: '全部',
    options: [
      { label: '已启用', value: true },
      { label: '已停用', value: false },
    ],
    span: 6,
  },
  {
    field: 'status',
    label: '设备状态',
    type: 'select',
    placeholder: '全部',
    options: [
      { label: '在线', value: 'online' },
      { label: '离线', value: 'offline' },
      { label: '异常', value: 'error' },
      { label: '未知', value: 'unknown' },
    ],
    span: 6,
  },
  {
    field: 'protocol',
    label: '采集协议',
    type: 'select',
    placeholder: '全部',
    options: [
      { label: 'SNMP', value: 'snmp' },
      { label: 'SSH', value: 'ssh' },
      { label: 'Telnet', value: 'telnet' },
    ],
    span: 6,
  },
]
