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) => {