|
@@ -47,6 +47,7 @@
|
|
|
<tr v-for="(item,index) in synonymous">
|
|
|
<td class="ind">{{index+1}}</td>
|
|
|
<td :title="item.name&&item.name.length>9?item.name:''">
|
|
|
+ <!-- 使用原生input,输入限制 -->
|
|
|
<!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
|
|
|
<input type="text" v-model="item.name" placeholder="请输入术语" maxlength="30" @input="handleInput(2,index)">
|
|
|
</td>
|
|
@@ -164,7 +165,7 @@ import api from '@api/icss.js';
|
|
|
});
|
|
|
},
|
|
|
// handleInput(index,name){
|
|
|
- handleInput(type,index){console.log(555,type,index,this.data.name);
|
|
|
+ handleInput(type,index){
|
|
|
// 可输入内容:字母、数字、汉字、特殊字符:% —— 其余不可输入;
|
|
|
// if(!name){//标准词输入
|
|
|
if(type==1){//标准词输入
|
|
@@ -274,7 +275,11 @@ import api from '@api/icss.js';
|
|
|
}
|
|
|
input{
|
|
|
border:none;
|
|
|
- width: 100%;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ width: 89%;
|
|
|
+ height: 30px;
|
|
|
+ padding: 0 7px;
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
|
.ind{
|
|
|
width: 55px;
|