File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 6
6
},
7
7
"name" : " vue-functional-calendar" ,
8
8
"description" : " A style-uninstallable datepicker component for Vue.js" ,
9
- "version" : " 2.2.5 " ,
9
+ "version" : " 2.2.6 " ,
10
10
"license" : " MIT" ,
11
11
"repository" : {
12
12
"type" : " git" ,
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
1
+ import Vue from 'vue' ;
2
+ export const EventBus = new Vue ( ) ;
You can’t perform that action at this time.
0 commit comments