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

import { logTimeRangeSchema } from '../../shared/normalizeLogFilters';

export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: [
          { label: '业务', value: 0 },
          { label: '消息队列', value: 1 },
        ],
        placeholder: '全部',
      },
      fieldName: 'type',
      label: '类型',
    },
    { ...logTimeRangeSchema },
  ],
  showCollapseButton: true,
  submitButtonOptions: { content: '查询' },
  submitOnChange: false,
  submitOnEnter: true,
};
