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: 'category_id',
      component: 'InputNumber',
      label: '分类ID',
      componentProps: {
        placeholder: '分类ID',
        allowClear: true,
        min: 1,
      },
    },
    {
      fieldName: 'status',
      component: 'Select',
      label: '状态',
      componentProps: {
        placeholder: '请选择状态',
        allowClear: true,
        options: [
          { label: '上架', value: 1 },
          { label: '下架', value: 0 },
        ],
      },
    },
  ],
};
