mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[new feature] Tab: add scroll event (#1730)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user