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

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