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

export const formOptions: VbenFormProps = {
  // 默认展开
  collapsed: false,
  schema: [
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入名称',
      },
      defaultValue: '',
      fieldName: 'name',
      label: '角色名称',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入角色代码',
      },
      defaultValue: '',
      fieldName: 'value',
      label: '角色代码',
    },
  ],
  // 控制表单是否显示折叠按钮
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  // 是否在字段值改变时提交表单
  submitOnChange: true,
  // 按下回车时是否提交表单
  submitOnEnter: false,
};
