|
@@ -384,22 +384,19 @@ export const insertSearch = (state,action)=>{
|
|
if(index < 1){//前
|
|
if(index < 1){//前
|
|
if(data[focusIndex].value==searchStr){//为空标签则替换
|
|
if(data[focusIndex].value==searchStr){//为空标签则替换
|
|
res.data.splice(focusIndex,1,nText);
|
|
res.data.splice(focusIndex,1,nText);
|
|
- res.saveText.splice(focusIndex,1,searchData);
|
|
|
|
}else{
|
|
}else{
|
|
res.data.splice(focusIndex,0,nText);
|
|
res.data.splice(focusIndex,0,nText);
|
|
- res.saveText.splice(focusIndex,0,searchData);
|
|
|
|
res.data[focusIndex+1].value = value;
|
|
res.data[focusIndex+1].value = value;
|
|
res.saveText[focusIndex+1] = value;
|
|
res.saveText[focusIndex+1] = value;
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
res.data.splice(focusIndex+1,0,nText);
|
|
res.data.splice(focusIndex+1,0,nText);
|
|
- res.saveText.splice(focusIndex+1,0,searchData);
|
|
|
|
res.data[focusIndex].value = value;
|
|
res.data[focusIndex].value = value;
|
|
}
|
|
}
|
|
span.current.innerText?(span.current.innerText = value):(span.current.innerHTML=value);
|
|
span.current.innerText?(span.current.innerText = value):(span.current.innerHTML=value);
|
|
res.mainIds.push(id);
|
|
res.mainIds.push(id);
|
|
}
|
|
}
|
|
- // console.log(456,res,action);
|
|
|
|
|
|
+ res.saveText = fullfillText(res.data).saveText;
|
|
res.update=Math.random();
|
|
res.update=Math.random();
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|