mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
fix(date-picker): placeholder now shown
This commit is contained in:
parent
747fae8d4c
commit
01fe81f3f3
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user