@@ -83,6 +83,7 @@ class NumberDrop extends Component{
});
const {handleSelect,ikey,suffix,prefix,mainSaveText,placeholder} = this.props;
const text = e.target.innerText===placeholder?'':e.target.innerText;
+ e.target.innerText = ''; //避免出现重复输入值
handleSelect&&handleSelect({ikey,text,suffix,prefix,mainSaveText});
}
handleSpanInp(e){ //数字框输入事件
@@ -61,7 +61,7 @@ class SpreadDrop extends Component{
boxTop:boxTop
})
// window.event? window.event.cancelBubble = true : e.stopPropagation();
- // this.setStateInit(); //恢复初始选中状态
+ this.setStateInit(); //恢复初始选中状态
const {ikey,handleShow,placeholder,flag,id,value,tagType,type} = this.props;
const that = this;
this.btnClickFlag = false;
@@ -8,7 +8,7 @@ import {billing} from '@store/async-actions/pushMessage';
import {fullfillText} from '@common/js/func';
import {didPushParamChange} from '@utils/tools.js';
-function mapStateToProps(state){ console.log(state)
+function mapStateToProps(state){
const {otherHistory,homePage,typeConfig,mainSuit} = state;
const hasMain = mainSuit.saveText.join('');//||mainSuit.data.length;
return {
@@ -193,8 +193,8 @@ export const changeNumLabelVal = (state,action)=>{
if(newVal.trim()){
if(item){
item.value = newVal;
- res.saveText[index] = totalVal;
+ res.saveText[index] = newVal;
}else{//删除完标签内容则删除该标签
res.data.splice(index,1);
res.saveText = fullfillText(res.data).saveText;