Skip to content

Commit b3479c9

Browse files
authored
Merge pull request kenhyuwa#25 from 0s1r1s/fix-format-date
Fix format date by @0s1r1s Thank you.
2 parents 5af4fa3 + e9d9d58 commit b3479c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vue-tailwind-picker.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ export default {
491491
startDate: {
492492
type: String,
493493
required: false,
494-
default: dayjs().format('YYYY-MM-DD'),
495494
},
496495
endDate: {
497496
type: String,
@@ -579,7 +578,7 @@ export default {
579578
},
580579
},
581580
data() {
582-
const startDatepicker = dayjs(this.startDate, this.formatDate)
581+
const startDatepicker = this.startDate ? dayjs(this.startDate, this.formatDate) : dayjs()
583582
// Featured for my own project
584583
// .add(
585584
// dayjs().hour() >= 20 ? 1 : 0,

0 commit comments

Comments
 (0)