import type { VbenFormProps } from '@vben/common-ui';

import { STATUS_OPTIONS, VIP_TIER_GROUP_OPTIONS } from './constants';

export const formOptions: VbenFormProps = {
  layout: 'inline',
  showResetButton: true,
  showSubmitButton: true,
  schemas: [
    {
      fieldName: 'code',
      component: 'Input',
      label: '编码',
      componentProps: { placeholder: '如 V5', allowClear: true },
    },
    {
      fieldName: 'name',
      component: 'Input',
      label: '名称',
      componentProps: { placeholder: '等级名称', allowClear: true },
    },
    {
      fieldName: 'tier_group',
      component: 'Select',
      label: '等级组',
      componentProps: {
        placeholder: '请选择',
        allowClear: true,
        options: VIP_TIER_GROUP_OPTIONS,
      },
    },
    {
      fieldName: 'status',
      component: 'Select',
      label: '状态',
      componentProps: {
        placeholder: '请选择',
        allowClear: true,
        options: STATUS_OPTIONS,
      },
    },
  ],
};
