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