You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
929 B
36 lines
929 B
4 years ago
|
<template>
|
||
|
<el-form ref="form" :model="form" label-width="80px">
|
||
|
<el-form-item :label="$t('user')">
|
||
|
<el-input v-model="form.user" placeholder="请输入帐号"></el-input>
|
||
|
</el-form-item>
|
||
|
<el-form-item label="密码">
|
||
|
<el-input v-model="form.password" type="password" placeholder="请输入密码"></el-input>
|
||
|
</el-form-item>
|
||
|
<el-form-item label="确认密码">
|
||
|
<el-input v-model="form.confirmPwd" type="password" placeholder="请确认密码"></el-input>
|
||
|
</el-form-item>
|
||
|
<el-form-item>
|
||
|
<el-button type="primary" @click="onRegister(form.user,form.password)">注册</el-button>
|
||
|
</el-form-item>
|
||
|
</el-form>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
|
||
|
export default {
|
||
|
name: 'register',
|
||
|
data(){
|
||
|
return {
|
||
|
form:{
|
||
|
user:'',
|
||
|
password:'',
|
||
|
confirmPwd:''
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
props:{
|
||
|
onRegister:Function
|
||
|
}
|
||
|
}
|
||
|
</script>
|