添加日历返回

This commit is contained in:
luyuan 2020-10-14 09:10:40 +08:00
parent 51f0be0fec
commit f446297dca
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -1,6 +1,19 @@
import dayjs from 'dayjs'
export function getdate(yue?: number){
interface Date{
day?: number;
list?: Array<unknown>;
}
interface GetDate{
date: Array<Array<Date>>;
year: number;
yue: number;
day: number;
zhou: number;
}
export function getdate(yue?: number): GetDate{
let now = dayjs()
if(yue != undefined){
now = now.month(now.month() + yue);
@ -19,10 +32,7 @@ export function getdate(yue?: number){
let i = 0;
let w = 0;
interface Date{
day?: number;
list?: Array<any>;
}
const date: Array<Array<Date>> = [[]];
while(i < month){