-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44088af
commit ad31676
Showing
3 changed files
with
101 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import introJs from "intro.js"; | ||
import "intro.js/introjs.css"; | ||
|
||
const intro = introJs.tour(); | ||
// 更多配置参数请到官方文档查看 | ||
intro.setOptions({ | ||
nextLabel: "下一个", // 下一个按钮文字 | ||
prevLabel: "上一个", // 上一个按钮文字 | ||
// skipLabel: '跳过', // 跳过按钮文字 | ||
doneLabel: "🎉 立即体验", // 完成按钮文字 | ||
autoPosition: false, | ||
tooltipPosition: "right", | ||
exitOnOverlayClick: false, | ||
// hidePrev: true, // 在第一步中是否隐藏上一个按钮 | ||
// hideNext: true, // 在最后一步中是否隐藏下一个按钮 | ||
// exitOnOverlayClick: false, // 点击叠加层时是否退出介绍 | ||
// showStepNumbers: false, // 是否显示红色圆圈的步骤编号 | ||
// showBullets: false // 是否显示面板指示点 | ||
}); | ||
|
||
export default intro; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters