Commit 2332ac9bffe4f97470b3c98e4b6b3b290e8c14d9
1 parent
c3beef27
Fix error in formater for multiple values
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/components/date-picker/picker.vue
| ... | ... | @@ -198,6 +198,7 @@ |
| 198 | 198 | publicStringValue(){ |
| 199 | 199 | const {formatDate, publicVModelValue, type} = this; |
| 200 | 200 | if (type.match(/^time/)) return publicVModelValue; |
| 201 | + if (this.multiple) return formatDate(publicVModelValue); | |
| 201 | 202 | return Array.isArray(publicVModelValue) ? publicVModelValue.map(formatDate) : formatDate(publicVModelValue); |
| 202 | 203 | }, |
| 203 | 204 | opened () { | ... | ... |