[new feature] Tab: add scroll event (#1730)

This commit is contained in:
fenghou
2018-08-31 10:02:37 +08:00
committed by neverland
parent d293047164
commit d32f9a42f3
4 changed files with 14 additions and 1 deletions

View File

@@ -231,6 +231,11 @@ export default create({
} else {
this.position = '';
}
const scrollParams = {
scrollTop,
isFixed: this.position === 'top'
};
this.$emit('scroll', scrollParams);
},
// update nav bar style