Skip to content

Commit

Permalink
fix(comp:date-picker): start and end cell calculation error (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jul 4, 2023
1 parent 7138b40 commit d66c71b
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -61,8 +61,12 @@ export default defineComponent({
const cellTooltip = computed(() =>
panelProps.cellTooltip?.({ value: cellDate.value, disabled: !!isDisabled.value }),
)
const isStart = computed(() => startDate.value && dateConfig.isSame(startDate.value, cellDate.value, 'date'))
const isEnd = computed(() => endDate.value && dateConfig.isSame(endDate.value, cellDate.value, 'date'))
const isStart = computed(
() => startDate.value && dateConfig.isSame(startDate.value, cellDate.value, getPanelCellType(activeType.value)),
)
const isEnd = computed(
() => endDate.value && dateConfig.isSame(endDate.value, cellDate.value, getPanelCellType(activeType.value)),
)
const isCurrent = computed(() =>
dateConfig.isSame(cellDate.value, dateConfig.now(), getPanelCellType(activeType.value)),
)
Expand Down

0 comments on commit d66c71b

Please sign in to comment.