Merge pull request #3806 from SergioCrisostomo/datepicker-patches

Datepicker patches
This commit is contained in:
Aresn 2018-06-05 10:44:05 +08:00 committed by GitHub
commit 9aacb4c8b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,7 @@
leftPickerTable: `${this.selectionMode}-table`, leftPickerTable: `${this.selectionMode}-table`,
rightPickerTable: `${this.selectionMode}-table`, rightPickerTable: `${this.selectionMode}-table`,
leftPanelDate: leftPanelDate, leftPanelDate: leftPanelDate,
rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, leftPanelDate.getDate()) rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1)
}; };
}, },
computed: { computed: {

View file

@ -668,7 +668,7 @@
this.reset(); this.reset();
}, },
focus() { focus() {
this.$refs.input.focus(); this.$refs.input && this.$refs.input.focus();
} }
}, },
watch: { watch: {