-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nathan Reyes
committed
Oct 24, 2017
1 parent
58ad66a
commit f656d63
Showing
26 changed files
with
399 additions
and
126 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
- Add day-height back as a prop | ||
- Add 'Star on Github' button | ||
|
||
|
||
CALENDAR | ||
|
||
|
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
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,53 @@ | ||
<template> | ||
<b-table | ||
:data='props'> | ||
<template scope='props'> | ||
<b-table-column label='Property'> | ||
<span v-html='props.row.propertyName'></span> | ||
</b-table-column> | ||
<b-table-column label='Description'> | ||
<span v-html='props.row.description'></span> | ||
</b-table-column> | ||
<b-table-column label='Default'> | ||
<span v-html='props.row.default'></span> | ||
</b-table-column> | ||
</template> | ||
</b-table> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
const props = [ | ||
{ | ||
propertyName: '<code>height: String</code>', | ||
description: 'Height of bar.', | ||
default: '<code>"5px"</code>', | ||
}, | ||
{ | ||
propertyName: '<code>backgroundColor: String</code>', | ||
description: 'Background color of bar.', | ||
default: '<code>"rgba(0, 0, 0, 0.5)"</code>', | ||
}, | ||
{ | ||
propertyName: '<code>borderColor: String</code>', | ||
description: 'Border color of bar.', | ||
default: '<code>undefined</code>', | ||
}, | ||
{ | ||
propertyName: '<code>borderWidth: String</code>', | ||
description: 'Border width of bar.', | ||
default: '<code>"0"</code>', | ||
}, | ||
{ | ||
propertyName: '<code>borderStyle: String</code>', | ||
description: 'Border style of bar.', | ||
default: '<code>"solid"</code>', | ||
}, | ||
]; | ||
return { | ||
props, | ||
}; | ||
}, | ||
}; | ||
</script> |
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
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
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
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
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,63 @@ | ||
<template> | ||
<v-calendar | ||
:attributes='attributes' | ||
is-double-paned> | ||
</v-calendar> | ||
</template> | ||
|
||
<script> | ||
import { getExampleMonthComps } from '../utils'; | ||
export default { | ||
data() { | ||
const { thisMonth, thisMonthYear, nextMonth, nextMonthYear } = getExampleMonthComps(); | ||
return { | ||
attributes: [ | ||
{ | ||
dot: { | ||
backgroundColor: '#ff4d4d', // Red | ||
}, | ||
dates: [ | ||
new Date(thisMonthYear, thisMonth, 1), | ||
new Date(thisMonthYear, thisMonth, 10), | ||
new Date(thisMonthYear, thisMonth, 22), | ||
new Date(nextMonthYear, nextMonth, 6), | ||
new Date(nextMonthYear, nextMonth, 16), | ||
], | ||
}, | ||
{ | ||
dot: { | ||
backgroundColor: '#398fac', // Turqoise | ||
}, | ||
dates: [ | ||
new Date(thisMonthYear, thisMonth, 4), | ||
new Date(thisMonthYear, thisMonth, 10), | ||
new Date(thisMonthYear, thisMonth, 15), | ||
new Date(nextMonthYear, nextMonth, 1), | ||
new Date(nextMonthYear, nextMonth, 12), | ||
{ | ||
start: new Date(nextMonthYear, nextMonth, 20), | ||
end: new Date(nextMonthYear, nextMonth, 25), | ||
}, | ||
], | ||
}, | ||
{ | ||
dot: { | ||
backgroundColor: '#794dff', // Purple | ||
}, | ||
dates: [ | ||
new Date(thisMonthYear, thisMonth, 12), | ||
new Date(thisMonthYear, thisMonth, 26), | ||
new Date(thisMonthYear, thisMonth, 15), | ||
new Date(nextMonthYear, nextMonth, 9), | ||
new Date(nextMonthYear, nextMonth, 5), | ||
new Date(nextMonthYear, nextMonth, 6), | ||
new Date(nextMonthYear, nextMonth, 20), | ||
new Date(nextMonthYear, nextMonth, 25), | ||
], | ||
}, | ||
], | ||
}; | ||
}, | ||
}; | ||
</script> |
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
Empty file.
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
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 |
---|---|---|
@@ -1,15 +1,36 @@ | ||
<template> | ||
<div> | ||
<section-styling-1></section-styling-1> | ||
<section-styling | ||
v-for='(example, i) in examples' | ||
:key='i' | ||
:step='i + 1' | ||
:title='example.title' | ||
:code='example.code'> | ||
<component :is='example.component'></component> | ||
</section-styling> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import SectionStyling1 from '../sections/SectionStyling-1'; | ||
import ExStyling1 from '../examples/ExStyling-1'; | ||
import ExStyling1Code from '!!raw-loader!../examples/ExStyling-1'; | ||
import SectionStyling from '../sections/SectionStyling'; | ||
export default { | ||
components: { | ||
SectionStyling1, | ||
SectionStyling, | ||
}, | ||
data() { | ||
return { | ||
examples: [ | ||
{ | ||
title: 'Styled Header & Weekday Sections', | ||
code: ExStyling1Code, | ||
component: ExStyling1, | ||
}, | ||
], | ||
}; | ||
}, | ||
}; | ||
</script> |
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
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
Oops, something went wrong.