Skip to content

Commit

Permalink
Fix is-expanded prop. Fixes #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reyes committed Nov 16, 2017
2 parents 87059b0 + 9260d58 commit d45fa06
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
5 changes: 4 additions & 1 deletion docs/components/home/examples/ExIntro.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<template>
<v-calendar
:is-double-paned='isDoublePaned'
:is-expanded='isExpanded'
:title-position='titlePosition'
:title-transition='titleTransition'
:weeks-transition='weeksTransition'>
:weeks-transition='weeksTransition'
>
</v-calendar>
</template>

<script>
export default {
props: {
isDoublePaned: { type: Boolean, default: true },
isExpanded: { type: Boolean, default: false },
titlePosition: { type: String, default: 'center' },
titleTransition: { type: String, default: 'slide-h' },
weeksTransition: { type: String, default: 'slide-h' },
Expand Down
11 changes: 9 additions & 2 deletions docs/components/home/sections/SectionIntro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
</b-tab-item>
<!--Intro Options-->
<b-tab-item label='Options' icon='gear'>
<b-field>
<b-switch v-model='isDoublePaned'>Double Paned</b-switch>
<b-field grouped>
<b-field>
<b-switch v-model='isDoublePaned'>Double Paned</b-switch>
</b-field>
<b-field>
<b-switch v-model='isExpanded'>Is Expanded</b-switch>
</b-field>
</b-field>
<b-field label='Title Position'>
<p class='control'>
Expand Down Expand Up @@ -63,6 +68,7 @@
<div class='example-container'>
<ex-intro
:is-double-paned='isDoublePaned'
:is-expanded='isExpanded'
:title-position='titlePosition'
:title-transition='titleTransition'
:weeks-transition='weeksTransition'>
Expand All @@ -86,6 +92,7 @@ export default {
return {
exIntroCode: ExIntroCode,
isDoublePaned: true,
isExpanded: false,
titlePosition: 'center',
titleTransition: 'slide-h',
weeksTransition: 'slide-h',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default {
min-width: $paneMinWidth * 2
width: $paneWidth * 2
&.is-expanded
display: flex
width: 100%
.c-pane-divider
width: 1px
Expand Down
4 changes: 2 additions & 2 deletions src/components/CalendarPane.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
:class='["c-pane", { "is-full-width": position === 0 }]'>
:class='["c-pane", { "is-single": position === 0 }]'>
<!--Header-->
<div class='c-header-wrapper'>
<!--Header vertical divider-->
Expand Down Expand Up @@ -462,7 +462,7 @@ export default {
flex-direction: column
align-items: stretch
overflow: hidden
&.is-full-width
&.is-single
width: 100%
.c-header-wrapper
Expand Down

0 comments on commit d45fa06

Please sign in to comment.