import { FormOption } from '@/types'

const option: FormOption = {
  span: 24,
  btn: false,
  columns: [
    {
      prop: 'host',
      name: '邮箱服务器地址',
      placeholder: '例如：smtp.qq.com',
      rules: [{ required: true, message: '不能为空' }]
    },
    {
      prop: 'port',
      name: '邮箱服务器端口',
      type: 'number',
      placeholder: '例如：25',
      rules: [{ required: true, message: '不能为空' }]
    },
    {
      prop: 'ssl',
      name: '是否开启ssl',
      type: 'switch',
      value: true,
      rules: [{ required: true, message: '不能为空' }]
    },
    {
      prop: 'from',
      name: '发件人邮箱',
      placeholder: '例如：hcm@edpfm.cn',
      rules: [{ required: true, message: '不能为空' }]
    },
    {
      prop: 'user',
      name: '用户名',
      placeholder: '一般为发件人邮箱前缀或完整邮箱，如果使用foxmail邮箱，此处为qq号',
      rules: [{ required: true, message: '不能为空' }]
    },
    {
      prop: 'pass',
      name: '密码',
      placeholder: '某些邮箱需要为SMTP服务单独设置授权码',
      rules: [{ required: true, message: '不能为空' }]
    }
  ]
}
export default option
