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

export const formOptions: VbenFormProps = {
  layout: 'inline',
  showResetButton: true,
  showSubmitButton: true,
  schemas: [
    {
      fieldName: 'title',
      component: 'Input',
      label: '标题',
      componentProps: {
        placeholder: '请输入标题关键字',
        allowClear: true,
      },
    },
    {
      fieldName: 'type',
      component: 'Select',
      label: '类型',
      componentProps: {
        placeholder: '请选择类型',
        allowClear: true,
        options: [
          { label: 'OTC专区', value: 'otc' },
          { label: '处方药专区', value: 'prescription' },
          { label: '保健食品专区', value: 'health_food' },
          { label: '产品服务包专区', value: 'service_package' },
        ],
      },
    },
    {
      fieldName: 'status',
      component: 'Select',
      label: '状态',
      componentProps: {
        placeholder: '请选择状态',
        allowClear: true,
        options: [
          { label: '启用', value: 1 },
          { label: '禁用', value: 0 },
        ],
      },
    },
  ],
};

