forked from JavaScript/bee-table
fix: 表头拖拽修改
This commit is contained in:
parent
b81dcbc3ef
commit
9dcc149966
|
@ -785,8 +785,8 @@ var _initialiseProps = function _initialiseProps() {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this7.drag.tableWidth + diff) - scrollbarWidth;
|
var dargTableWidth = parseFloat(window.getComputedStyle(_this7.table.table).width);
|
||||||
|
var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (dargTableWidth + diff) - scrollbarWidth;
|
||||||
//表头滚动条处理
|
//表头滚动条处理
|
||||||
if (headerScroll) {
|
if (headerScroll) {
|
||||||
if (showScroll < 0) {
|
if (showScroll < 0) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "2.3.15-beta.28",
|
"version": "2.3.15-beta.29",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
|
@ -432,8 +432,8 @@ class TableHeader extends Component {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
let showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (this.drag.tableWidth + diff) - scrollbarWidth ;
|
let dargTableWidth = parseFloat(window.getComputedStyle(this.table.table).width)
|
||||||
|
let showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (dargTableWidth + diff) - scrollbarWidth;
|
||||||
//表头滚动条处理
|
//表头滚动条处理
|
||||||
if(headerScroll){
|
if(headerScroll){
|
||||||
if(showScroll < 0){ //小于 0 出现滚动条
|
if(showScroll < 0){ //小于 0 出现滚动条
|
||||||
|
|
Loading…
Reference in New Issue