|
@@ -201,7 +201,7 @@ class SpreadDrop extends Component{
|
|
this.clearState();
|
|
this.clearState();
|
|
}
|
|
}
|
|
handleConfirm(e){
|
|
handleConfirm(e){
|
|
- e.stopPropagation();
|
|
|
|
|
|
+ // e.stopPropagation();
|
|
const {handleConfirm,ikey,type,tagType,order,mainSaveText,copyType,value,mainData} = this.props;
|
|
const {handleConfirm,ikey,type,tagType,order,mainSaveText,copyType,value,mainData} = this.props;
|
|
const params = Object.assign({},this.state,{ikey,type,tagType,order,mainSaveText,copyType,value,mainData});
|
|
const params = Object.assign({},this.state,{ikey,type,tagType,order,mainSaveText,copyType,value,mainData});
|
|
delete params.tmpDom; //避免上面deepClone selecteds报错
|
|
delete params.tmpDom; //避免上面deepClone selecteds报错
|
|
@@ -437,7 +437,7 @@ class ListItems extends Component{
|
|
|
|
|
|
{boxMark==1 && tagType==11 && <div className="search">
|
|
{boxMark==1 && tagType==11 && <div className="search">
|
|
<div className={style["line"]}></div>
|
|
<div className={style["line"]}></div>
|
|
- <SearchBox show={show} cliIndex={cliIndex}/>
|
|
|
|
|
|
+ <SearchBox show={show} cliIndex={cliIndex} onSelect={handleConfirm}/>
|
|
</div>}
|
|
</div>}
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
@@ -542,9 +542,9 @@ class ListItem extends Component{
|
|
}*/
|
|
}*/
|
|
return <li onClick={(e)=>this.handleClick(e,it,i)}
|
|
return <li onClick={(e)=>this.handleClick(e,it,i)}
|
|
className={this.getClass(it.id)}
|
|
className={this.getClass(it.id)}
|
|
- title={it.name.length>8?it.name:''}
|
|
|
|
- style={{'width':'85px','display':'inline-block'}}>
|
|
|
|
- {it.name&&it.name.length>8?it.name.slice(0,8)+'...':it.name}
|
|
|
|
|
|
+ title={it.name.length>4?it.name:''}
|
|
|
|
+ style={{'width':'55px','display':'inline-block'}}>
|
|
|
|
+ {it.name&&it.name.length>4?it.name.slice(0,4)+'...':it.name}
|
|
</li>
|
|
</li>
|
|
});
|
|
});
|
|
}
|
|
}
|