Skip to content

Commit

Permalink
fix(calendarcard): 修复ios端设置disableDay不生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
irisSong committed Jul 2, 2024
1 parent 69f9bc5 commit 5e35625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const onChange = (val: Date) => {
console.log(val)
}
const disableDay = (day: CalendarCardDay) => {
const d = new Date(`${day.year}-${day.month}-${day.date}`).getDay()
const d = new Date(`${day.year}/${day.month}/${day.date}`).getDay()
return d === 1 || d === 3
}
</script>
2 changes: 1 addition & 1 deletion src/packages/__VUE/calendarcard/demo/disable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const onChange = (val: Date) => {
console.log(val)
}
const disableDay = (day: CalendarCardDay) => {
const d = new Date(`${day.year}-${day.month}-${day.date}`).getDay()
const d = new Date(`${day.year}/${day.month}/${day.date}`).getDay()
return d === 1 || d === 3
}
</script>

0 comments on commit 5e35625

Please sign in to comment.