We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bs.value = new BScroll(wrapper.value, { scrolly: true, probeType: 3, click: true, pullDownRefresh: { stop: 30, threshold: 40, }, // 动画 bounce: { top: true, bottom: true, left: true, right: true, }, }); bs.value.on('scrollStart', () => { console.log('scrollStart-'); // 完成下拉刷新事件,不写下次就没反应了 // bs1.value.finishPullDown(); }); bs.value.on('scroll', ({}) => { console.log('scrolling-'); }); bs.value.on('scrollEnd', (pos) => { console.log(pos); }); // 重新计算bettercsroll 当数据变化dom变化的时候,必须要重新调用 bs.value.refresh();
// ---------------------------------------*****************// ---------------------------------------************************* bs1.value = new BScroll(scroll.value, { scrolly: true, // specifiedIndexAsContent: 1, probeType: 3, click: true, pullDownRefresh: { stop: 30, threshold: 40, }, }); bs1.value.on('scrollStart', () => { console.log('scrollStart-'); }); bs1.value.on('scroll', ({}) => { console.log('scrolling-'); }); bs1.value.on('scrollEnd', (pos) => { console.log(pos); }); bs1.value.refresh();
如上代码。有两个tab切换只会生效1个
The text was updated successfully, but these errors were encountered:
1.给BS组件传入name 2.初始化BS组件时,采用传入的name. new BScroll(props.name, options)
Sorry, something went wrong.
No branches or pull requests
bs.value = new BScroll(wrapper.value, {
scrolly: true,
probeType: 3,
click: true,
pullDownRefresh: {
stop: 30,
threshold: 40,
},
// 动画
bounce: {
top: true,
bottom: true,
left: true,
right: true,
},
});
bs.value.on('scrollStart', () => {
console.log('scrollStart-');
// 完成下拉刷新事件,不写下次就没反应了
// bs1.value.finishPullDown();
});
bs.value.on('scroll', ({}) => {
console.log('scrolling-');
});
bs.value.on('scrollEnd', (pos) => {
console.log(pos);
});
// 重新计算bettercsroll 当数据变化dom变化的时候,必须要重新调用
bs.value.refresh();
如上代码。有两个tab切换只会生效1个
The text was updated successfully, but these errors were encountered: