Skip to content

Commit

Permalink
修复引导页滚动条依然可以滚动的问题、修复bottom位置的话,文字无法显完整显示的问题、新增自定义样式、新增自定义底部按钮插槽
Browse files Browse the repository at this point in the history
  • Loading branch information
Mjhuu committed May 25, 2022
1 parent e304743 commit 5ec1c34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ export default {
resolve(true);
});
},
onNext: () => {
return new Promise((resolve) => {
// 当页面很长,下一步的内容不在此可视区域内时,可进行下面操作
document.body.style.overflow = 'auto';
// 让body滚动到顶部
window.scrollTo(0,0)
resolve(true);
});
}
},
{
el: '#intro_user',
Expand Down

0 comments on commit 5ec1c34

Please sign in to comment.