fix: remove calendar month extra elements (#3915)

pull/3923/head
StevieYu 2021-04-10 22:15:52 +08:00 committed by GitHub
parent d8628ce66a
commit 58c543985d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ export default defineComponent({
getMonthSelectElement(prefixCls: string, month: number, months: string[]) {
const { fullscreen, validRange, value } = this;
let start = 0;
let end = 12;
let end = 11;
if (validRange) {
const [rangeStart, rangeEnd] = validRange;
const currentYear = value.get('year');