From 034d67da2988e16c0fb325ef4b0b2200590d58bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cjonyshi=E2=80=9D?= Date: Thu, 6 Dec 2018 18:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3ie11=E4=B8=AD=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Table.scss | 11 +++++++++++ src/TableHeader.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Table.scss b/src/Table.scss index a2d4498..5c26e7d 100644 --- a/src/Table.scss +++ b/src/Table.scss @@ -294,6 +294,17 @@ $table-move-in-color: $bg-color-base; } th{ background: $table-head-background-color; + background-clip:padding-box; + //禁止选中文字 + -moz-user-select: -moz-none; + -khtml-user-select: none; + -webkit-user-select: none; + /* + Introduced in IE 10. + */ + -ms-user-select: none; + user-select: none; + // overflow: hidden; // white-space: nowrap; // text-overflow: ellipsis; diff --git a/src/TableHeader.js b/src/TableHeader.js index 23eb826..5e9d9ee 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -292,7 +292,7 @@ class TableHeader extends Component { event.dataTransfer.effectAllowed = "move"; event.dataTransfer.setData("Text", currentKey); this.currentObj = this.props.rows[0][currentIndex]; - event.dataTransfer.setDragImage(event.target, 0, 0); + // event.dataTransfer.setDragImage(event.target, 0, 0); }; onDragOver = (e) => {