Skip to content

Commit fa767a2

Browse files
author
Nathan Reyes
committed
Update examples
1 parent aaff1dd commit fa767a2

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div>
3+
<v-date-picker :mode="mode" v-model="date">
4+
<template #footer>
5+
This is a test
6+
</template>
7+
</v-date-picker>
8+
<v-calendar>
9+
<template #footer>
10+
This is a test
11+
</template>
12+
</v-calendar>
13+
</div>
14+
</template>
15+
16+
<script>
17+
// export const title = 'v-date-picker is-dark turns the field dark as well';
18+
19+
export default {
20+
githubTitle: 'Date picker footer slot',
21+
data() {
22+
return {
23+
mode: 'time',
24+
date: new Date(),
25+
};
26+
},
27+
};
28+
</script>

docs/.vuepress/components/github/999.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
>
3333
</label>
3434
<label for="range" class="ml-2">
35-
<input id="range" type="checkbox" v-model="isRange" /><span class="ml-2"
35+
<input id="range" type="checkbox" v-model="isRange" /><span
36+
class="ml-2"
3637
>Range</span
3738
>
3839
</label>
@@ -78,14 +79,15 @@
7879
<!--Date picker-->
7980
<div v-if="!isRange">
8081
<v-date-picker
82+
class="my-picker"
8183
v-model="date"
8284
:mode="mode"
8385
:model-config="dateConfig"
8486
:is24hr="is24hr"
8587
:minute-increment="minuteIncrement"
8688
:masks="masks"
8789
:timezone="timezone"
88-
:popover="{ visibility: 'hover-focus' }"
90+
:popover="popover"
8991
:is-dark="dark"
9092
>
9193
<template v-slot="{ inputValue, inputEvents }" v-if="!inline">
@@ -109,7 +111,7 @@
109111
:minute-increment="minuteIncrement"
110112
:masks="masks"
111113
:timezone="timezone"
112-
:popover="{ visibility: 'hover-focus' }"
114+
:popover="popover"
113115
:is-dark="dark"
114116
is-range
115117
>
@@ -165,11 +167,15 @@ export default {
165167
// input: 'MM/DD/YYYY h:mm A',
166168
},
167169
minDate: new Date(),
168-
isRange: true,
170+
isRange: false,
169171
is24hr: false,
170172
minuteIncrement: 1,
171-
inline: true,
173+
inline: false,
172174
dark: false,
175+
popover: {
176+
visibility: 'hover',
177+
transition: 'fade',
178+
},
173179
};
174180
},
175181
methods: {

0 commit comments

Comments
 (0)