Skip to content

Commit eed02de

Browse files
author
Nathan Reyes
committed
Fix date picker slot example & api reference.
1 parent bd9b7b0 commit eed02de

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

docs/components/api/CalendarApiSlots.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export default {
4141
},
4242
{
4343
name: '<code>v-date-picker >> <i>default</i></code>',
44-
description: '<span class="tag is-warning">Date Picker</span>Default slot to use as the popover anchor for <code>v-date-picker</code>. Most likely this slot will contain a custom <code>input</code> element. Not valid for inline date pickers.',
45-
props: '<code>inputValue: String</code>, <code>parseValue: Function</code>',
44+
description: '<span class="tag is-warning">Date Picker</span>Default slot to use as the popover anchor for <code>v-date-picker</code>. Most likely this slot will contain a custom <code>&lt;input :value="props.inputValue" @change.native="props.updateValue($event.target.value)" /&gt;</code> element. Not valid for inline date pickers.',
45+
props: '<code>inputValue: String</code>, <code>updateValue: Function</code>',
4646
},
4747
];
4848
return {

docs/components/examples/ExDatePickerSlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
icon='calendar'
1111
:value='props.inputValue'
1212
:placeholder='inputState.message'
13-
@change.native='selectedValue = props.updateValue($event.target.value)'
13+
@change.native='props.updateValue($event.target.value)'
1414
expanded>
1515
</b-input>
1616
<p

docs/components/sections/SectionDatePicker.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050
</option>
5151
</b-select>
5252
</b-field>
53-
<b-field label='Tint Color' message='Accepts color names, hex and rgb values'>
54-
<b-input v-model='tintColor'></b-input>
53+
<b-field label='Select Color' message='Accepts color names, hex and rgb values'>
54+
<b-input v-model='selectColor'></b-input>
55+
</b-field>
56+
<b-field label='Drag Color'>
57+
<b-input v-model='dragColor'></b-input>
5558
</b-field>
5659
</div>
5760
</b-tab-item>
@@ -65,7 +68,8 @@
6568
:is-inline='isInline'
6669
:popover-direction='popoverDirection'
6770
:popover-align='popoverAlignment'
68-
:tint-color='tintColor'>
71+
:select-color='selectColor'
72+
:drag-color='dragColor'>
6973
</ex-date-picker>
7074
</div>
7175
</div>
@@ -92,7 +96,8 @@ export default {
9296
popoverDirection: 'bottom',
9397
popoverDirections: ['bottom', 'top', 'left', 'right'],
9498
popoverAlignment: 'left',
95-
tintColor: '#66b3cc',
99+
selectColor: '#66b3cc',
100+
dragColor: '#9fcfdf',
96101
};
97102
},
98103
computed: {

0 commit comments

Comments
 (0)