修改日历时间
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
getMonth,
|
||||
getWeekend,
|
||||
getWeekendOfCurrentWeek,
|
||||
getOneMonth
|
||||
} from "@/utils/timeUtils";
|
||||
import { PopupPicker } from "@/components/Picker/index";
|
||||
import dayjs from "dayjs";
|
||||
@@ -165,7 +166,7 @@ const NutUICalendar = React.forwardRef<CalendarUIRef, NutUICalendarProps>(
|
||||
onChange?.(dayList);
|
||||
};
|
||||
const selectMonth = () => {
|
||||
const dayList = getWeekendOfCurrentWeek(30);
|
||||
const dayList = getOneMonth();
|
||||
setSelectedValue(dayList);
|
||||
syncMonthTo(dayList[0]);
|
||||
onChange?.(dayList);
|
||||
|
||||
Reference in New Issue
Block a user