交换列的操作影印问题

This commit is contained in:
jonyshi 2018-11-27 17:11:15 +08:00
parent bcb82706c1
commit 9cc3112df3
1 changed files with 6 additions and 4 deletions

View File

@ -561,19 +561,21 @@ class TableHeader extends Component {
thClassName += `${fixedStyle}`; thClassName += `${fixedStyle}`;
if(!da.fixed){ if(!da.fixed){
thLineObj = { thLineObj = {
//----------------
onMouseMove:(e)=>{ e.stopPropagation();this.onMouseMove(e, da)}, onMouseMove:(e)=>{ e.stopPropagation();this.onMouseMove(e, da)},
onMouseOut:(e)=>{this.onMouseOut(e, da)}, onMouseOut:(e)=>{this.onMouseOut(e, da)},
onMouseDown:(e)=>{ e.stopPropagation();this.onMouseDown(e, da)}, onMouseDown:(e)=>{ e.stopPropagation();this.onMouseDown(e, da)},
onMouseUp:(e)=>{this.onMouseUp(e, da)}, onMouseUp:(e)=>{this.onMouseUp(e, da)},
onMouseOver:(e)=>{this.onMouseOver(e, da)}, onMouseOver:(e)=>{this.onMouseOver(e, da)},
className:`${clsPrefix}-thead-th-drag-gap th-drag-gap`, // className:`${clsPrefix}-thead-th-drag-gap th-drag-gap`,
}; };
if(dragAbleOrBordStart !== 'ableStart'){
thLineObj.className = `${clsPrefix}-thead-th-drag-gap th-drag-gap`;
}
} }
return (<th key={Math.random()} {...thAbleObj} {...thBorObj} className={thClassName} > return (<th key={Math.random()+new Date().getTime()} {...thAbleObj} {...thBorObj} className={thClassName} >
{da.children} {da.children}
{ {
da.fixed ? "":<div ref={el => (this.gap = el)} {...thLineObj} ><div id='th-online' className='online' /></div> da.fixed ? "":<div ref={el => (this.gap = el)} {...thLineObj} ><div id='th-online' className='online' /></div>
} }
</th>) </th>)
}else{ }else{