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

export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenInput',
      componentProps: { placeholder: '订单ID', allowClear: true },
      fieldName: 'order_id',
      label: '订单ID',
    },
    {
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: [
          { label: '成功', value: 0 },
          { label: '失败', value: 1 },
        ],
        placeholder: '全部',
      },
      fieldName: 'is_success',
      label: '结果',
    },
    {
      component: 'VbenInput',
      componentProps: { placeholder: '内容关键词', allowClear: true },
      fieldName: 'keyword',
      label: '关键词',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: { content: '查询' },
  submitOnChange: false,
  submitOnEnter: true,
};
