mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-09 20:12:28 +03:00
修复disabled-days bug
This commit is contained in:
@@ -260,7 +260,7 @@ export default {
|
||||
const today = new Date().setHours(0, 0, 0, 0)
|
||||
|
||||
if (
|
||||
this.$parent.disabledDays.some(v => +new Date(v) === +cell.date) ||
|
||||
this.$parent.disabledDays.some(v => new Date(v).setHours(0, 0, 0, 0) === cellTime) ||
|
||||
(this.$parent.notBefore !== '' &&
|
||||
cellEndTime < new Date(this.$parent.notBefore).getTime()) ||
|
||||
(this.$parent.notAfter !== '' &&
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DatePicker from '../dist/build'
|
||||
import DatePicker from '../index'
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "vue2-datepicker",
|
||||
"description": "A Datepicker Component For Vue2",
|
||||
"main": "dist/build.js",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"scripts": {
|
||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
||||
|
||||
Reference in New Issue
Block a user