DatePicker: fix year label

pull/391/head
qingwei.li 2016-10-13 16:37:20 +08:00
parent 8a8c28fc4f
commit a3303480eb
1 changed files with 2 additions and 2 deletions

View File

@ -149,11 +149,11 @@
}, },
leftLabel() { leftLabel() {
return this.date.getFullYear() + ' ' + this.$t('datepicker.month') + ' ' + (this.date.getMonth() + 1) + ' ' + this.$t('datepicker.month'); return this.date.getFullYear() + ' ' + this.$t('datepicker.year') + ' ' + (this.date.getMonth() + 1) + ' ' + this.$t('datepicker.month');
}, },
rightLabel() { rightLabel() {
return this.rightDate.getFullYear() + ' ' + this.$t('datepicker.month') + ' ' + (this.rightDate.getMonth() + 1) + ' ' + this.$t('datepicker.month'); return this.rightDate.getFullYear() + ' ' + this.$t('datepicker.year') + ' ' + (this.rightDate.getMonth() + 1) + ' ' + this.$t('datepicker.month');
}, },
leftYear() { leftYear() {