WIP Сделала расчет лет

This commit is contained in:
Daria Golova
2023-06-20 16:22:03 +03:00
parent 85a4e67f64
commit 61d1a57641
5 changed files with 122 additions and 46 deletions

View File

@@ -52,6 +52,7 @@ export default {
externalDate: Object,
range: Boolean,
rangeCount: Number,
internalMonth: String,
nextForm: {
type: Function,
default: () => {},
@@ -82,12 +83,6 @@ export default {
this.$emit("update:externalDate", value);
},
},
internalMonth() {
let formattedMonth = this.internalValue.format("MMMM");
return `${
formattedMonth[0].toUpperCase() + formattedMonth.slice(1)
} ${this.internalValue.format("YYYY")}`;
},
internalStartDate() {
return this.internalValue
.clone()