diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index 41027bc1..ba428185 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -249,7 +249,7 @@ const tableLeft = tableEl.getBoundingClientRect().left; const columnEl = this.$el.querySelector(`th.ivu-table-column-${column.__id}`); const columnRect = columnEl.getBoundingClientRect(); - const minLeft = columnRect.left - tableLeft + 60; + const minLeft = columnRect.left - tableLeft + 30; table.showResizeLine = true; diff --git a/src/styles/components/table.less b/src/styles/components/table.less index 5f8aebeb..d6aa5427 100644 --- a/src/styles/components/table.less +++ b/src/styles/components/table.less @@ -103,6 +103,8 @@ tr{ th{ position: relative; + height: 100%; + padding: 8px 0; } } }