表单
This commit is contained in:
parent
fb62ecaf8b
commit
38e1cfd450
|
@ -4,12 +4,12 @@
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img src="../assets/logo.png" alt="logo">
|
<img src="../assets/logo.png" alt="logo">
|
||||||
</div>
|
</div>
|
||||||
<el-form class="login-from">
|
<el-form class="login-from" :model="loginForm">
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
<el-input prefix-icon="iconfont icon-user"></el-input>
|
<el-input v-model="loginForm.username" prefix-icon="iconfont icon-user"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
<el-input prefix-icon="iconfont icon-3702mima"></el-input>
|
<el-input v-model="loginForm.password" type="password" prefix-icon="iconfont icon-3702mima"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="btns">
|
<el-form-item class="btns">
|
||||||
<el-button type="primary">登录</el-button>
|
<el-button type="primary">登录</el-button>
|
||||||
|
@ -22,7 +22,15 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Login'
|
name: 'Login',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
loginForm: {
|
||||||
|
username: '',
|
||||||
|
password: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user