diff --git a/README.md b/README.md index d9c045f4..5e470257 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Release 1.0.6 -https://github.com/joffreyBerrier/vue-hotel-datepicker/releases/tag/1.0.6 +# Release 1.0.7 +https://github.com/joffreyBerrier/vue-hotel-datepicker/releases/tag/1.0.7 # vue-hotel-datepicker@2 diff --git a/package.json b/package.json index df4a2274..6c3d2b22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-hotel-datepicker2", - "version": "1.0.6", + "version": "1.0.7", "author": "Joffrey Berrier - Origin created by krystalcampioni", "description": "Vue date range picker component fork of vue-hotel-datepicker create by krystalcampioni", "main": "dist/vueHotelDatepicker2.common.js", diff --git a/src/App.vue b/src/App.vue index a026c977..bd73d274 100644 --- a/src/App.vue +++ b/src/App.vue @@ -400,7 +400,7 @@ export default { }, data() { return { - dynamicDisabledDates: [], + dynamicDisabledDates: ["2021-04-30", "2021-05-01", "2021-05-02"], ptPT: { night: "Noite", nights: "Noites", @@ -577,18 +577,7 @@ export default { }, methods: { renderNextMonth() { - this.dynamicDisabledDates = [ - "2021-04-15", - "2021-04-16", - "2021-04-17", - "2021-04-18", - "2021-04-19", - "2021-04-20", - "2021-04-21", - "2021-05-01", - "2021-05-02", - "2021-05-03", - "2021-05-04", + this.dynamicDisabledDates.push( "2021-05-11", "2021-05-12", "2021-05-13", @@ -597,7 +586,7 @@ export default { "2021-05-16", "2021-05-17", "2021-05-18" - ]; + ); }, toggleDatePickerOutside() { this.$refs.DatePicker.showDatepicker(); diff --git a/src/components/DatePicker/index.vue b/src/components/DatePicker/index.vue index f79a01cf..e702d7de 100644 --- a/src/components/DatePicker/index.vue +++ b/src/components/DatePicker/index.vue @@ -175,7 +175,7 @@ :key="`${datepickerDayKey}-${monthIndex}-${dayIndex}`" >