Skip to content

Commit

Permalink
fix(calendarcard): 修复ios端设置disableDay不生效问题 (#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisSong committed Jul 2, 2024
1 parent a0135e8 commit d2bec1e
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 d2bec1e

Please sign in to comment.