fix(date-picker): placeholder now shown

This commit is contained in:
07akioni 2020-10-23 23:11:28 +08:00
parent 747fae8d4c
commit 01fe81f3f3

View File

@ -355,7 +355,7 @@ export default {
}
},
localizedStartPlaceholder () {
if (this.startPlaceholder === null) {
if (this.startPlaceholder === undefined) {
if (this.type === 'daterange') {
return this.localeNs.startDatePlaceholder
} else if (this.type === 'datetimerange') {
@ -367,7 +367,7 @@ export default {
}
},
localizedEndPlaceholder () {
if (this.endPlaceholder === null) {
if (this.endPlaceholder === undefined) {
if (this.type === 'daterange') {
return this.localeNs.endDatePlaceholder
} else if (this.type === 'datetimerange') {