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

/**
 * 场景搜索表单配置
 */
export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入场景编码',
      },
      defaultValue: '',
      fieldName: 'scene_code',
      label: '场景编码',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入场景名称',
      },
      defaultValue: '',
      fieldName: 'scene_name',
      label: '场景名称',
    },
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择状态',
        options: [
          { label: '启用', value: '1' },
          { label: '禁用', value: '0' },
        ],
      },
      defaultValue: '',
      fieldName: 'status',
      label: '状态',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  submitOnChange: true,
  submitOnEnter: false,
};
