import type { VbenFormProps } from '#/adapter/form';

export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入名称',
      },
      defaultValue: '',
      fieldName: 'name',
      label: '药名称',
    },
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择状态',
        options: [
          {
            label: '下架',
            value: 1,
          },
          {
            label: '上架',
            value: 2,
          },
        ],
      },
      fieldName: 'status',
      label: '上架状态',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  submitOnChange: true,
  submitOnEnter: false,
};
