import type { VbenFormProps } from '@vben/common-ui';

// 列表搜索：按名称模糊、类型精确、状态精确
export const formOptions: VbenFormProps = {
  layout: 'inline',
  showResetButton: true,
  showSubmitButton: true,
  schemas: [
    {
      fieldName: 'name',
      component: 'Input',
      label: '名称',
      componentProps: {
        placeholder: '请输入名称',
        allowClear: true,
      },
    },
    {
      fieldName: 'type',
      component: 'Select',
      label: '类型',
      componentProps: {
        placeholder: '请选择类型',
        allowClear: true,
        options: [
          { label: '回访结果', value: 1 },
          { label: '回访标签', value: 2 },
        ],
      },
    },
    {
      fieldName: 'status',
      component: 'Select',
      label: '状态',
      componentProps: {
        placeholder: '请选择状态',
        allowClear: true,
        options: [
          { label: '启用', value: 1 },
          { label: '禁用', value: 0 },
        ],
      },
    },
  ],
};
