fix: tabs trigger nextClick event (#1489)

pull/1496/head
言肆 2019-12-02 14:11:02 +08:00 committed by tangjinzhou
parent 82ea4bbb82
commit b2717bccda
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ export default {
this.setOffset(offset + navWrapNodeWH);
},
nextClick() {
// this.__emit('nextClick', e)
nextClick(e) {
this.__emit('nextClick', e);
const navWrapNode = this.$props.getRef('navWrap');
const navWrapNodeWH = this.getOffsetWH(navWrapNode);
const { offset } = this;