mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
fix(Calender): failed to render months after changing maxDate or minDate (#10668)
Co-authored-by: yuyuehui.yyh <yuyuehui.yyh@digital-engine.com>
This commit is contained in:
@@ -185,6 +185,10 @@ export default defineComponent({
|
||||
const months: Date[] = [];
|
||||
const cursor = new Date(props.minDate);
|
||||
|
||||
if (props.lazyRender && !props.show) {
|
||||
return months;
|
||||
}
|
||||
|
||||
cursor.setDate(1);
|
||||
|
||||
do {
|
||||
|
Reference in New Issue
Block a user