添加日历返回
This commit is contained in:
parent
51f0be0fec
commit
f446297dca
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user