Skip to content

Commit 9ff5078

Browse files
committed
Bug fixes for new version
1 parent 2c56e5f commit 9ff5078

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

package.json

Lines changed: 9 additions & 9 deletions
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.0.0",
9+
"version": "2.0.1",
1010
"license": "ISC",
1111
"repository": {
1212
"type": "git",
@@ -53,17 +53,14 @@
5353
"build-bundle": "vue-cli-service build --target lib --name vueFunctionalCalendar ./src/main.js",
5454
"lint": "vue-cli-service lint"
5555
},
56-
"dependencies": {
57-
"babel-loader": "^8.0.4",
58-
"css-loader": "^1.0.1",
59-
"vue": "^2.5.18",
60-
"vue-style-loader": "^4.1.2"
61-
},
56+
"dependencies": {},
6257
"devDependencies": {
63-
"@babel/core": "^7.0.*",
58+
"@babel/core": "^7.2.2",
6459
"@vue/cli-plugin-babel": "^3.0.5",
6560
"@vue/cli-plugin-eslint": "^3.0.5",
6661
"@vue/cli-service": "^3.0.5",
62+
"babel-loader": "^8.0.4",
63+
"css-loader": "^1.0.1",
6764
"grunt": ">=0.4.0",
6865
"grunt-coveralls": "^2.0.0",
6966
"jest": "^16.0.1",
@@ -76,7 +73,10 @@
7673
"stylus": "^0.54.5",
7774
"stylus-loader": "^3.0.2",
7875
"thread-loader": "^1.2.0",
79-
"vue-template-compiler": "^2.5.17"
76+
"vue": "^2.5.21",
77+
"vue-loader": "^15.4.2",
78+
"vue-style-loader": "^4.1.2",
79+
"vue-template-compiler": "^2.5.21"
8080
},
8181
"eslintConfig": {
8282
"root": true,

src/Demo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
:is-date-picker="true"
88
:is-multiple="false"
99
:calendars-count="3"
10-
:is-modal="true"
10+
:is-modal="false"
1111
:left-and-right-days="false"
1212
:change-month-function="true"
13+
:change-year-function="true"
1314
:isTypeable="true"
1415
@selectedDaysCount="get"
1516
@opened="opened"

src/components/FunctionalCalendar.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@
3232
</div>
3333
<h2 class="top-date"
3434
@click="openYearPicker"
35-
:class="{underline: !showYearPicker && fConfigs.changeYearFunction}">
36-
{{ currentDate.getFullYear() }}
37-
</h2>
35+
:class="{underline: !showYearPicker && fConfigs.changeYearFunction}">{{ calendar.currentDate.getFullYear() }}</h2>
3836
<div @click="NextYear">
3937
<div class="arrow-right"></div>
4038
</div>
4139
</div>
4240
<template v-if="!showYearPicker">
4341
<div class="item" v-for="(month,key) in fConfigs.monthNames"
4442
:key="key"
45-
:class="{selected: currentDate.getMonth()===key}"
43+
:class="{selected: calendar.currentDate.getMonth()===key}"
4644
@click="pickMonth(key)">
4745
{{ month }}
4846
</div>

0 commit comments

Comments
 (0)