Skip to content

Commit d45fa06

Browse files
author
Nathan Reyes
committed
Fix is-expanded prop. Fixes #8.
2 parents 87059b0 + 9260d58 commit d45fa06

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

docs/components/home/examples/ExIntro.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<template>
22
<v-calendar
33
:is-double-paned='isDoublePaned'
4+
:is-expanded='isExpanded'
45
:title-position='titlePosition'
56
:title-transition='titleTransition'
6-
:weeks-transition='weeksTransition'>
7+
:weeks-transition='weeksTransition'
8+
>
79
</v-calendar>
810
</template>
911

1012
<script>
1113
export default {
1214
props: {
1315
isDoublePaned: { type: Boolean, default: true },
16+
isExpanded: { type: Boolean, default: false },
1417
titlePosition: { type: String, default: 'center' },
1518
titleTransition: { type: String, default: 'slide-h' },
1619
weeksTransition: { type: String, default: 'slide-h' },

docs/components/home/sections/SectionIntro.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@
2626
</b-tab-item>
2727
<!--Intro Options-->
2828
<b-tab-item label='Options' icon='gear'>
29-
<b-field>
30-
<b-switch v-model='isDoublePaned'>Double Paned</b-switch>
29+
<b-field grouped>
30+
<b-field>
31+
<b-switch v-model='isDoublePaned'>Double Paned</b-switch>
32+
</b-field>
33+
<b-field>
34+
<b-switch v-model='isExpanded'>Is Expanded</b-switch>
35+
</b-field>
3136
</b-field>
3237
<b-field label='Title Position'>
3338
<p class='control'>
@@ -63,6 +68,7 @@
6368
<div class='example-container'>
6469
<ex-intro
6570
:is-double-paned='isDoublePaned'
71+
:is-expanded='isExpanded'
6672
:title-position='titlePosition'
6773
:title-transition='titleTransition'
6874
:weeks-transition='weeksTransition'>
@@ -86,6 +92,7 @@ export default {
8692
return {
8793
exIntroCode: ExIntroCode,
8894
isDoublePaned: true,
95+
isExpanded: false,
8996
titlePosition: 'center',
9097
titleTransition: 'slide-h',
9198
weeksTransition: 'slide-h',

src/components/Calendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default {
230230
min-width: $paneMinWidth * 2
231231
width: $paneWidth * 2
232232
&.is-expanded
233-
display: flex
233+
width: 100%
234234
235235
.c-pane-divider
236236
width: 1px

src/components/CalendarPane.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
:class='["c-pane", { "is-full-width": position === 0 }]'>
3+
:class='["c-pane", { "is-single": position === 0 }]'>
44
<!--Header-->
55
<div class='c-header-wrapper'>
66
<!--Header vertical divider-->
@@ -462,7 +462,7 @@ export default {
462462
flex-direction: column
463463
align-items: stretch
464464
overflow: hidden
465-
&.is-full-width
465+
&.is-single
466466
width: 100%
467467
468468
.c-header-wrapper

0 commit comments

Comments
 (0)