fix(calendar): fix modelValue prop not working #3593
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.
Types of changes
Background and context
Calendar组件在v-model、modelValue值改变时日历面板不会更新Solution
问题:初始化时使用了一个新的变量
pageShowDate渲染日历面板导致外层响应式丢失解决方案:
watch监听modelValue值变化时重新赋值给pageShowDateHow is the change tested?
新增

Calendar组件modelValue属性响应式相关单元测试修复前:改变
modelValue值日历面板未更新修复后:单元测试通过,功能正常

Changelog
modelValue属性丢失响应式bugmodelValueprop not workingChecklist:
npm run test)featurebranch and othersshould be submitted to
mainbranch)Other information