Skip to content

Commit 2d13878

Browse files
committed
Changed the calendar version to 2.2.6
1 parent e9ca66a commit 2d13878

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "A style-uninstallable datepicker component for Vue.js",
9-
"version": "2.2.5",
9+
"version": "2.2.6",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/components/MonthYearPicker.vue

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<template>
2+
<div class="vfc-months-container">
3+
<div class="vfc-navigation-buttons" v-if="true">
4+
<div @click="PreYear">
5+
<div class="vfc-arrow-left"></div>
6+
</div>
7+
<h2 class="vfc-top-date"
8+
@click="openYearPicker"
9+
:class="{'vfc-underline': !showYearPicker && fConfigs.changeYearFunction}">{{
10+
calendar.currentDate.getFullYear() }}</h2>
11+
<div @click="NextYear">
12+
<div class="vfc-arrow-right"></div>
13+
</div>
14+
</div>
15+
<div class="vfc-months">
16+
<template v-if="!showYearPicker">
17+
<div class="vfc-item" v-for="(month,key) in fConfigs.monthNames"
18+
:key="key"
19+
:class="{'vfc-selected': calendar.currentDate.getMonth()===key}"
20+
@click="pickMonth(key)">
21+
{{ month }}
22+
</div>
23+
</template>
24+
<template v-else>
25+
<div class="vfc-item"
26+
v-for="(year,key) in yearList"
27+
:key="key"
28+
:class="{'vfc-selected': year.selected}"
29+
@click="pickYear(year.year)">
30+
{{ year.year }}
31+
</div>
32+
</template>
33+
</div>
34+
</div>
35+
</template>
36+
37+
<script>
38+
export default {
39+
name: "MonthPicker"
40+
}
41+
</script>
42+
43+
<style scoped>
44+
45+
</style>

src/utils/EventBus.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Vue from 'vue';
2+
export const EventBus = new Vue();

0 commit comments

Comments
 (0)