mirror of https://github.com/ElemeFE/element
Table: fix trigger double selectionchange
parent
5954d9899f
commit
9743c8b4a3
|
@ -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 @@
|
||||||
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';
|
||||||
|
|
Loading…
Reference in New Issue