<el-col :span="12" :xs="24">
<!-- 登录的表单 -->
<el-form class="login_form" :model="loginForm" :rules="rules" ref="loginForms">
<h1>Hello</h1>
<h2>欢迎来到管理后台工时系统</h2>
<el-form-item prop="username">
<el-input :prefix-icon="User" v-model="loginForm.username"></el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
type="password"
:prefix-icon="Lock"
v-model="loginForm.password"
show-passwo
VUE3 form表单校验,自定义校验
最新推荐文章于 2024-06-16 22:03:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)