UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

49 lines (48 loc) 1.9 kB
import { CalendarDay, CalendarMonthInfo } from './types'; export declare const splitDate: (date: string) => string[]; export declare const isMultiple: (day: string, days: string[]) => boolean; export declare const isCurrDay: (month: CalendarMonthInfo, day: string | number) => boolean; export declare const getCurrDate: (day: CalendarDay, month: CalendarMonthInfo) => string; export declare const isStart: (day: string, days: string[]) => boolean; export declare const isEnd: (day: string, days: string[]) => boolean; export declare const isStartAndEnd: (days: string[]) => boolean; export declare const getPreMonths: (type: string, year: number, month: number) => { year: number; month: number; yearAndMonth: string; type: string; }[]; export declare const getMonths: (type: string, year: number, month: number, endMonth?: number) => { year: number; month: number; yearAndMonth: string; type: string; }[]; export declare const formatMonth: (year: number, month: number) => string; export declare const formatQuarter: (year: number, quarter: number) => string; /** * 判断某年某月某日属于哪一个季度 * @param year 年份 * @param month 月份(1-12) * @param day 日期(1-31) * @returns 季度编号(1、2、3、4) */ export declare const getQuarter: (month: number) => number; export declare const getQuarters: (type: string, year: number, month: number, endMonth?: number) => { year: number; quarter: number; yearAndQuarter: string; type: string; }[]; export declare const getPreQuarters: (type: string, year: number, month: number) => { year: number; quarter: number; yearAndQuarter: string; type: string; }[]; export declare const getNextQuarters: (type: string, year: number, month: number, endMonth?: number) => { year: number; quarter: number; yearAndQuarter: string; type: string; }[];