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

export function createAdminSearchOptions(): VbenFormProps {
  return {
    collapsed: false,
    schema: [
      {
        component: 'VbenInput',
        componentProps: {
          placeholder: '输入名称',
        },
        defaultValue: '',
        fieldName: 'nick_name',
        label: '管理员名称',
      },
      {
        component: 'VbenInput',
        componentProps: {
          placeholder: '输入手机号码',
        },
        defaultValue: '',
        fieldName: 'phone',
        label: '手机号码',
      },
    ],
    showCollapseButton: true,
    submitButtonOptions: {
      content: '查询',
    },
    submitOnChange: true,
    submitOnEnter: false,
  };
}
