Przeglądaj źródła

DatePicker: fix year label

qingwei.li 8 lat temu
rodzic
commit
a3303480eb
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/date-picker/src/panel/date-range.vue

+ 2 - 2
packages/date-picker/src/panel/date-range.vue

@@ -149,11 +149,11 @@
       },
 
       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() {
-        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() {