This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,34 @@
import { Dayjs } from 'dayjs';
declare const precisionLengthRecord: {
year: number;
month: number;
day: number;
hour: number;
minute: number;
second: number;
};
export declare function getRangeData(precision: keyof typeof precisionLengthRecord, min: Dayjs, max: Dayjs, currentPickerDay: Dayjs, format: (precision: keyof typeof precisionLengthRecord, value: number) => string): any[];
/**
* 选中的值转换为时间类型主要处理month从0开始的情况
* @param value
* @returns
*/
export declare function getDateByValue(value: any): Date;
/**
* date转换为value数组
* @param value
* @returns
*/
export declare function getValueByDate(date: any, precision: keyof typeof precisionLengthRecord): any[];
/**
* 是否有效日期,主要处理月份对应可选日期,避免当前时间日期超出当月最后一天
* @param value
*/
export declare function getValidValue(value: any): any;
/**
* 比较两个date是否是同一时间
* @param date1
* @param date2
*/
export declare function isEqualDate(date1: any, date2: any): boolean;
export {};