Vben
authored
|
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
38
39
40
41
42
43
|
export default defineComponent({
components: { PageWrapper },
setup() {
const { prefixVar } = useDesign('');
function handleStart() {
intro()
.setOptions({
steps: [
{
title: 'Welcome',
intro: 'Hello World! 👋',
},
{
title: 'Collapse Button',
element: document.querySelector(`.${prefixVar}-layout-header-trigger`)!,
intro: 'This is the menu collapse button.',
},
{
title: 'User Action',
element: document.querySelector(`.${prefixVar}-layout-header-action`)!,
intro: 'This is the user function area.',
},
],
})
.start();
}
return { handleStart };
},
});
</script>
|