限制输入框的字数

This commit is contained in:
熊丽君
2021-10-11 17:07:51 +08:00
parent cac4463c0e
commit f343df198f
2 changed files with 42 additions and 5 deletions

View File

@ -9,16 +9,32 @@
style="width:514px"
>
<el-form-item label="企业全称">
<el-input v-model="form.companyName"></el-input>
<el-input
v-model="form.companyName"
maxlength="25"
show-word-limit
></el-input>
</el-form-item>
<el-form-item label="企业行业">
<el-input v-model="form.companyType"></el-input>
<el-input
v-model="form.companyType"
maxlength="25"
show-word-limit
></el-input>
</el-form-item>
<el-form-item label="用户姓名">
<el-input v-model="form.nickName"></el-input>
<el-input
v-model="form.nickName"
maxlength="25"
show-word-limit
></el-input>
</el-form-item>
<el-form-item label="用户职位">
<el-input v-model="form.note"></el-input>
<el-input
v-model="form.note"
maxlength="25"
show-word-limit
></el-input>
</el-form-item>
<el-form-item label="企业地址" required>
<el-col :span="10">
@ -58,7 +74,11 @@
</el-col>
</el-form-item>
<el-form-item label="详细地址">
<el-input v-model="form.address"></el-input>
<el-input
v-model="form.address"
maxlength="25"
show-word-limit
></el-input>
</el-form-item>
<el-form-item label="企业画像" prop="labelIdList">
<el-button size="small" @click="open">设置</el-button>
@ -273,6 +293,11 @@ export default {
align-items: center;
.el-image {
margin-bottom: 30px;
/deep/.el-image-viewer__wrapper {
.el-image-viewer__close {
color: #fff;
}
}
}
/deep/.el-upload-list {
display: none;