From 9cc3112df3d5de61fa5485030b5df1ea3e6b0648 Mon Sep 17 00:00:00 2001 From: jonyshi Date: Tue, 27 Nov 2018 17:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E6=8D=A2=E5=88=97=E7=9A=84=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=BD=B1=E5=8D=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/TableHeader.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/TableHeader.js b/src/TableHeader.js index 5a20185..cbfcae7 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -561,19 +561,21 @@ class TableHeader extends Component { thClassName += `${fixedStyle}`; if(!da.fixed){ thLineObj = { - //---------------- onMouseMove:(e)=>{ e.stopPropagation();this.onMouseMove(e, da)}, onMouseOut:(e)=>{this.onMouseOut(e, da)}, onMouseDown:(e)=>{ e.stopPropagation();this.onMouseDown(e, da)}, onMouseUp:(e)=>{this.onMouseUp(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 ( + return ( {da.children} { - da.fixed ? "":
(this.gap = el)} {...thLineObj} >
+ da.fixed ? "":
(this.gap = el)} {...thLineObj} >
} ) }else{