添加日历返回
This commit is contained in:
parent
51f0be0fec
commit
f446297dca
@ -1,6 +1,19 @@
|
|||||||
import dayjs from 'dayjs'
|
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()
|
let now = dayjs()
|
||||||
if(yue != undefined){
|
if(yue != undefined){
|
||||||
now = now.month(now.month() + yue);
|
now = now.month(now.month() + yue);
|
||||||
@ -19,10 +32,7 @@ export function getdate(yue?: number){
|
|||||||
let i = 0;
|
let i = 0;
|
||||||
let w = 0;
|
let w = 0;
|
||||||
|
|
||||||
interface Date{
|
|
||||||
day?: number;
|
|
||||||
list?: Array<any>;
|
|
||||||
}
|
|
||||||
const date: Array<Array<Date>> = [[]];
|
const date: Array<Array<Date>> = [[]];
|
||||||
|
|
||||||
while(i < month){
|
while(i < month){
|
||||||
|
Loading…
Reference in New Issue
Block a user