import { FormSchema } from '/@/components/Table';
import { phoneRule, emailRule } from '/@/utils/rules';

export const formSchema: FormSchema[] = [
  {
    field: 'realName',
    label: '用户昵称',
    colProps: { span: 13 },
    required: true,
    component: 'Input',
    componentProps: {
      placeholder: '请输入用户昵称',
    },
  },
  {
    field: 'phoneNumber',
    label: '手机号码',
    colProps: { span: 13 },
    required: true,
    component: 'Input',
    componentProps: {
      placeholder: '请输入手机号码',
    },
    rules: phoneRule,
  },
  {
    field: 'email',
    label: '邮箱',
    colProps: { span: 13 },
    required: true,
    component: 'Input',
    componentProps: {
      placeholder: '请输入邮箱',
    },
    rules: emailRule,
  },
];
