-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
37 lines (35 loc) · 1.04 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<meta charset="utf-8">
<title>login demo</title>
<script src="./dist/hoo.umd.min.js"></script>
<body>
<div id="root" style="height: 100px;width: 120px;background-color: green;"></div>
<script>
let opts = {
curStep: 1,
bottom: 0,
stepList: [
{
step: 1,
classId: '#root',
title: "技术中台1",
content: "技术中台1",
prevText: '跳过'
},
{
step: 2,
classId: '',
title: "技术中台2",
content: "技术中台2",
nextText: '下一步',
prevText: '跳过'
}
]
}
let instance = new hoo(opts, () => { }, step => {
console.log('步骤回调>>>>', step);
opts.curStep = step + 1
instance.renderDom(opts)
})
console.log(hoo)
</script>
</body>