Commit 9743c8b4 authored by qingwei.li's avatar qingwei.li

Table: fix trigger double selectionchange

parent 5954d989
...@@ -131,7 +131,6 @@ export default { ...@@ -131,7 +131,6 @@ export default {
if (grid.selectionMode === 'single') { if (grid.selectionMode === 'single') {
grid.selected = row; grid.selected = row;
grid.$emit('selectionchange', row);
} }
grid.$emit('rowclick', row, event); grid.$emit('rowclick', row, event);
......
...@@ -251,8 +251,9 @@ ...@@ -251,8 +251,9 @@
gridWrapper.style.height = bodyHeight + 'px'; gridWrapper.style.height = bodyHeight + 'px';
this.$el.style.height = height + 'px'; this.$el.style.height = height + 'px';
this.$refs.fixed.style.height = height + 'px'; if (this.$refs.fixed) {
this.$refs.fixed.style.height = height + 'px';
}
const fixedBodyWrapper = this.$el.querySelector('.el-table__fixed-body-wrapper'); const fixedBodyWrapper = this.$el.querySelector('.el-table__fixed-body-wrapper');
if (fixedBodyWrapper) { if (fixedBodyWrapper) {
fixedBodyWrapper.style.height = (this.showHScrollBar ? gridWrapper.offsetHeight - this.currentGutterWidth : gridWrapper.offsetHeight) + 'px'; fixedBodyWrapper.style.height = (this.showHScrollBar ? gridWrapper.offsetHeight - this.currentGutterWidth : gridWrapper.offsetHeight) + 'px';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment