This is mainly for input Add one before the form label Reserve space of specified width ,
The code is as follows
<el-form ref="login-form" :model="form" label-width="80px"
class="login-form"> <h2 class="login-title"> Certificate management system </h2> <el-form-item
label=" user name :" prop="username"> <el-input autocomplete="on" name="mobile"
type="text" v-model="form.username" placeholder=" user name "/> </el-form-item>
<el-form-item label=" password :" prop="username"> <el-input autocomplete="on"
name="mobile" type="password" v-model="form.pass" placeholder=" password "/>
</el-form-item> <el-button type="primary" style="width:100%;"
:loading="loading"> Sign in </el-button> </el-form>
If not required label Cancel label-width Parameter setting , Otherwise, there will be blank space in front of the form .
Technology