feat:添加周信息
This commit is contained in:
parent
9fb6be8bb3
commit
f07dd23fc9
|
@ -33,7 +33,7 @@ import {CopyOutlined, ExclamationCircleFilled, LoadingOutlined} from "@ant-desig
|
|||
import {copyToClipboard} from "@/lib/copyToClipboard";
|
||||
import {solarToLunar} from "lunar-calendar";
|
||||
import CalHeader from "@/components/CalHeader";
|
||||
import {lunarDateShow} from "@/utils/timeFormatUtil";
|
||||
import {dayjsWeek, lunarDateShow} from "@/utils/timeFormatUtil";
|
||||
|
||||
const {confirm} = Modal;
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ const CalShow: React.FC = () => {
|
|||
}
|
||||
})
|
||||
const dateFormat = (date: Date, culture?: Culture, localizer?: DateLocalizer) => {
|
||||
return `${date.getDate()}/${lunarDateShow(date)}`;
|
||||
return `${date.getDate()}/${lunarDateShow(date)}/${dayjsWeek(dayjs(date))}`;
|
||||
};
|
||||
const handleViewChange = (newView: View) => {
|
||||
setView(newView);
|
||||
|
@ -466,7 +466,6 @@ const CalShow: React.FC = () => {
|
|||
date={date}
|
||||
// 条目信息改变
|
||||
onNavigate={handleNavigate}
|
||||
|
||||
// 点击
|
||||
selectable
|
||||
scrollToTime={scrollToTime}
|
||||
|
|
|
@ -15,3 +15,6 @@ https://github.com/zzyss86/LunarCalendar
|
|||
|
||||
## umi
|
||||
https://umijs.org/docs/introduce/faq
|
||||
|
||||
## MDN
|
||||
https://developer.mozilla.org/zh-CN/docs/Web/CSS/justify-content
|
Loading…
Reference in New Issue