export const modalConfig = {
  formItems: [
    {
      field: 'mobilePrefix',
      type: 'input',
      label: '号段',
      required: true,
      placeholder: '请输入号段',
      rules:[{validator:(rule,value,callback)=>{
        const reg = /^1\d{6}$/
          
        if(reg.test(value)) {
          callback()
        }else{
          callback(new Error('请输入正确的格式'))
        }
      }
    }]
    },
    {
      field: 'locationCode',
      type: 'input',
      label: '区号',
      required: true,
      placeholder: '请输入区号'
    },
    {
      field: 'locationName',
      type: 'input',
      label: '城市',
      required: true,
      placeholder: '城市'
    },
    {
      field: 'cardName',
      type: 'input',
      label: '卡类型',
      placeholder: '请输入卡类型'
    },
  ],
  colLayout: { span: 24 },
  itemStyle: {},
}
