|
@@ -240,6 +240,12 @@ class MultSpread extends Component{
|
|
});
|
|
});
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
+ handleMouseUp(){
|
|
|
|
+ const {select_start,i,setSelectArea,boxMark}= this.props;
|
|
|
|
+ if(select_start!==undefined){
|
|
|
|
+ setSelectArea({i,boxMark,dir:'end'});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
componentDidMount(){
|
|
componentDidMount(){
|
|
//挂载完成保存有加号的项目数据
|
|
//挂载完成保存有加号的项目数据
|
|
const {saveAddItem,fullData,copyId,showAdd} = this.props;
|
|
const {saveAddItem,fullData,copyId,showAdd} = this.props;
|
|
@@ -261,7 +267,8 @@ class MultSpread extends Component{
|
|
render(){
|
|
render(){
|
|
const {showAdd,addLabelItem,ikey,copyId,textPrefix,textSuffix,isExtBlue} = this.props;
|
|
const {showAdd,addLabelItem,ikey,copyId,textPrefix,textSuffix,isExtBlue} = this.props;
|
|
return (<div className={this.getContClass()}
|
|
return (<div className={this.getContClass()}
|
|
- style={{display:'inline-block'}}>
|
|
|
|
|
|
+ style={{display:'inline-block'}}
|
|
|
|
+ onMouseUp={this.handleMouseUp.bind(this)}>
|
|
{textPrefix?<span className="prefixUnset">{textPrefix}</span>:''}
|
|
{textPrefix?<span className="prefixUnset">{textPrefix}</span>:''}
|
|
<div className={this.getClass()}>
|
|
<div className={this.getClass()}>
|
|
{this.getLabels()}
|
|
{this.getLabels()}
|