<template>
	<el-form :model="formModel" :rules="formRules">
    	
    <el-form>
</template>
<script>
	export default {
    	data(){
        	return {
            	formRules: {name: [// Use expression verification
                    	{pattern: / ^ (? ! _)[a-zA-Z]/,message:'Check with expression'.trigger:'blur'}].dateTime: [// Check the array
                    	{type: 'array'.message:'Check array type'.trigger:'change'}].address: [// Use custom verification
                    	{required:true.validator:(rule,value,callback) = > callback()}
                    ]
                }
            }
        }
    }
</script>
Copy the code