UNPKG

@uiw/react-native

Version:
55 lines (54 loc) 1.65 kB
import { CalendarProps } from './lunarHolidays'; /** * 处理当月、上月、下月数据 */ export declare function getMonths(year: number, month: number, day: number): number[][]; /** * 判断年闰年 */ export declare function isLeapYear(year: number): boolean; /** * 每个月的日期天数 */ export declare function getMonthCount(year: number, month: number): number[]; /** * 每个月1号是星期几 */ export declare function getWeekday(year: number, month: number): number; /** * 处理上个月天数展示 */ export declare function getPreMonthCount(year: number, month: number): number[]; /** * 处理下个月天数展示 */ export declare function getNextMonthCount(year: number, month: number): number[]; export declare function getJudge(lunarHoliday: string | CalendarProps): CalendarProps; export interface daysArrProps { monthDays: number; index: number; type: string; lunarHolidays: string; colorType: string; lunarMonth: string; lunar: string; date?: string; } /** * 按每周分行 * @returns daysArrProps */ export declare function getWeeksArray(lastDays: number[], days: number[], nextDays: number[], year: number, month: number): daysArrProps[][]; export interface getTypeProps { type: number; lunarShow: string; } /** * 处理当月、上月、下月状态判断 *@returns getTypeProps */ export declare function getType(day: daysArrProps, currentYear: number, currentMonth: number, currentDays: number, toYear: number, toMonth: number, toDays: number): getTypeProps; /** * 农历及假日文字长度 */ export declare function getNameLen(name: string): number;