fix(calendar-item): 修复容器高度小于选择器高度时,位置计算错误问题 #3307
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
viewHeight.value 为容器高度,当容器恰好比当前选中月份高度低时,会导致
viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight始终为 true 。从而导致滚动位置偏差一个月。这个 PR 做了什么? (简要描述所做更改)

修复当 calendar-item 容器高度比当前选中月份高度低时,无法正确定位到选中项的问题。
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测: