Commit 8b84500b by 曾经

输入框 最大长度

parent 2490cd25
......@@ -10,7 +10,7 @@
<li class="list-group-item" v-for="(item, idx) in list" :key="idx">
<el-form-item :prop="idx + '.categoryName'" :rules="rules.categoryName">
<!-- <p class="show-name" v-show="!item.isEdit">{{list[idx].categoryName}}</p> -->
<el-input v-model="list[idx].categoryName" style="width: 466px"> </el-input>
<el-input v-model="list[idx].categoryName" style="width: 466px" maxlength="8"> </el-input>
</el-form-item>
<div class="btn-wrap" v-if="list.length > 1">
<span class="icon-span" @click="onDeleteItem(idx)"><i class="iconfont-components3 icon-cp-DeleteOutlined" /></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment