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

export const accountChangeSearchOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '来源类型',
        allowClear: true,
        options: [
          { label: '分账', value: 'settle' },
          { label: '提现', value: 'withdraw' },
          { label: '退款', value: 'refund' },
        ],
      },
      defaultValue: '',
      fieldName: 'source_type',
      label: '来源类型',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入订单号',
      },
      defaultValue: '',
      fieldName: 'order_no',
      label: '订单号',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  submitOnChange: true,
  submitOnEnter: false,
};
