Table: fix trigger double selectionchange

pull/2/head
qingwei.li 2016-08-25 15:08:15 +08:00
parent 5954d9899f
commit 9743c8b4a3
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,6 @@ export default {
if (grid.selectionMode === 'single') {
grid.selected = row;
grid.$emit('selectionchange', row);
}
grid.$emit('rowclick', row, event);

View File

@ -251,8 +251,9 @@
gridWrapper.style.height = bodyHeight + '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');
if (fixedBodyWrapper) {
fixedBodyWrapper.style.height = (this.showHScrollBar ? gridWrapper.offsetHeight - this.currentGutterWidth : gridWrapper.offsetHeight) + 'px';