mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +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 months: Date[] = [];
|
||||||
const cursor = new Date(props.minDate);
|
const cursor = new Date(props.minDate);
|
||||||
|
|
||||||
|
if (props.lazyRender && !props.show) {
|
||||||
|
return months;
|
||||||
|
}
|
||||||
|
|
||||||
cursor.setDate(1);
|
cursor.setDate(1);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user