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

export const formOptions: VbenFormProps = {
  // 默认展开
  collapsed: false,
  schema: [
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择审核状态',
        options: [
          {
            label: '审核中',
            value: 1,
          },
          {
            label: '已通过',
            value: 2,
          },
          {
            label: '已拒绝',
            value: 3,
          },
          {
            label: '提现失败',
            value: 4,
          },
        ],
      },
      defaultValue: '',
      fieldName: 'check_status',
      label: '审核状态',
    },
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择打款状态',
        options: [
          {
            label: '失败',
            value: -1,
          },
          {
            label: '未知',
            value: 0,
          },
          {
            label: '成功',
            value: 1,
          },
        ],
      },
      defaultValue: '',
      fieldName: 'dakuan_status',
      label: '打款状态',
    },
  ],
  // 控制表单是否显示折叠按钮
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  // 是否在字段值改变时提交表单
  submitOnChange: true,
  // 按下回车时是否提交表单
  submitOnEnter: false,
};
