export default class Offcfg { constructor() { this.data = { inr: '', switchcode: '', switchname:'', switchflg:'', remark:'', uil:"EN" } } } export const Pattern = { inr: [ { required: true, message: '必输项', type: 'string', trigger: 'blur' }, { max: 8, message: '最大长度8个字符', trigger: 'blur' }, ], switchcode: [ { required: true, message: '必输项', type: 'string', trigger: 'blur' }, { max: 20, message: '最大长度20个字符', trigger: 'blur' }, ], switchname: [ { required: true, message: '必输项', type: 'string', trigger: 'blur' }, { max: 80, message: '最大长度80个字符', trigger: 'blur' }, ], remark: [ { required: false, message: '非必输项', type: 'string', trigger: 'blur' }, { max: 200, message: '最大长度200个字符', trigger: 'blur' }, ], }