-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a minimal demo file to quickly test the build
- Loading branch information
1 parent
d875f43
commit 225a2e0
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<title>vue-tour demo</title> | ||
<script src="https://unpkg.com/vue"></script> | ||
<script src="../dist/vue-tour.umd.js"></script> | ||
<link rel="stylesheet" href="../dist/vue-tour.css"> | ||
|
||
<div id="app"> | ||
<div id="v-step-0">Hello World!</div> | ||
<div id="v-step-1">This is a small demo file for Vue Tour.</div> | ||
<button @click="$tours['myTour'].start()">Start tour</button> | ||
<v-tour name="myTour" :steps="steps"></v-tour> | ||
</div> | ||
|
||
<script> | ||
new Vue({ | ||
data () { | ||
return { | ||
steps: [ | ||
{ | ||
target: '#v-step-0', | ||
content: `Discover <strong>Vue Tour</strong>!` | ||
}, | ||
{ | ||
target: '#v-step-1', | ||
content: 'An awesome plugin made with Vue.js!' | ||
} | ||
] | ||
} | ||
} | ||
}).$mount('#app') | ||
</script> |