|
@@ -40,6 +40,13 @@ import OptionInp from '../common/OptionInp.vue';
|
|
|
},
|
|
|
methods:{
|
|
|
handleClick(it,index,flg){
|
|
|
+ if(flg){
|
|
|
+ document.activeElement.blur();
|
|
|
+ document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ setTimeout(()=>{
|
|
|
+ document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ },300)
|
|
|
+ }
|
|
|
const list = this.datas;
|
|
|
let data = list.questionDetailList&&list.questionDetailList.slice(0); //数组深拷贝?
|
|
|
for(let i=0;i<data.length; i++){
|
|
@@ -51,10 +58,6 @@ import OptionInp from '../common/OptionInp.vue';
|
|
|
let temp = concatVal(data);
|
|
|
const newData = Object.assign({},this.datas,{questionDetailList:data,value:temp.value,valueP:temp.valueP})
|
|
|
this.$emit("updata",newData);
|
|
|
- if(flg){
|
|
|
- document.activeElement.blur();
|
|
|
- document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- }
|
|
|
},
|
|
|
inpVal(val,index){//输入框失焦处理
|
|
|
// 输入框回读
|