update AutoComplete
This commit is contained in:
parent
fed3e09d15
commit
7af00356a9
4 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
<Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="80">
|
||||
<Form-item prop="name">
|
||||
<span slot="label"><Icon type="ionic"></Icon></span>
|
||||
<Input v-model="formValidate.name" placeholder="请输入姓名"></Input>
|
||||
<AutoComplete v-model="formValidate.name" :data="['Li','Liang','Zhang']" placeholder="请输入姓名"></AutoComplete>
|
||||
</Form-item>
|
||||
<Form-item label="邮箱" prop="mail">
|
||||
<Input v-model="formValidate.mail" placeholder="请输入邮箱"></Input>
|
||||
|
@ -56,6 +56,7 @@
|
|||
export default {
|
||||
data () {
|
||||
return {
|
||||
name: '',
|
||||
formValidate: {
|
||||
name: '',
|
||||
mail: '',
|
||||
|
@ -68,7 +69,7 @@
|
|||
},
|
||||
ruleValidate: {
|
||||
name: [
|
||||
{ required: true, message: '姓名不能为空', trigger: 'blur' }
|
||||
{ required: true, message: '姓名不能为空', trigger: 'change' }
|
||||
],
|
||||
mail: [
|
||||
{ required: true, message: '邮箱不能为空', trigger: 'blur' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue