element & vue trigger: blur输入内容后任然提示
检查:一_rulesref<el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">二 prop值与绑定的属性一致<el-form-item label="名称" prop="archiveName">三 绑定属性addFormRules: {archiveName: [
·
检查:
一_rules ref
<el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">
二 prop值与绑定的属性一致
<el-form-item label="名称" prop="archiveName">
三 绑定属性
addFormRules: {
archiveName: [
{ required: true, message: '请输入档案名称', trigger: 'blur' }
]
}
四 addForm 一致
<el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">
<el-form-item label="名称" prop="archiveName">
<el-input v-model="addForm.archiveName" auto-complete="off"></el-input>
</el-form-item>
更多推荐
已为社区贡献2条内容
所有评论(0)