forked from nathanreyes/v-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
81 lines (81 loc) · 2.21 KB
/
demo.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="./docs/.vuepress/public/favicon.png" />
<title>Calendar Test</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="./lib/v-calendar.umd.js"></script>
<style>
section {
margin-top: 26px;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.selectors {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}
.selectors label {
margin-left: 10px;
}
</style>
</head>
<body>
<noscript>
<strong
>We're sorry but v-calendar doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app">
<section>
<p>This uses the built version of the plugin</p>
</section>
<section>
<div class="selectors">
<label for="weeks">
<input id="weeks" type="checkbox" v-model="weeks" />
Show week numbers
</label>
</div>
<v-calendar :show-weeknumbers="weeks" :key="weeks" />
</section>
<section>
<div class="selectors">
<label for="single">
<input id="single" type="radio" value="single" v-model="mode" />
Single
</label>
<label for="multiple">
<input id="multiple" type="radio" value="multiple" v-model="mode" />
Multiple
</label>
<label for="range">
<input id="range" type="radio" value="range" v-model="mode" />
Range
</label>
</div>
<v-date-picker :mode="mode" v-model="date" />
</section>
</div>
<!-- built files will be auto injected -->
<script type="text/javascript">
var app = new Vue({
el: '#app',
data() {
return {
mode: 'single',
weeks: false,
date: new Date()
}
}
})
</script>
</body>
</html>