校验步骤
1.下载插件
npm i vee-validate@4.0.3
2.导入组件,注册组件
import { Form , Field } from 'vee-validate',
components: {
Form,
Field
},
3.Form代替表单,Field代替input
<Form class="form" >
<template >
<Field class="form-item" >
<div class="input">
<i class="iconfont icon-user"></i>
<input type=&#