@dingdaoos/lucid-utils
Version:
Lucid utils
32 lines (28 loc) • 532 B
text/typescript
export type DateInfoT = {
date: number
month: number
year: number
week: number
lunarYear: number
lunarMonth: number
lunarDate: number
festivals: string[]
jieqi: string
isToday: boolean
}
export enum SelectorType {
Simple = 'simple',
Dropdown = 'dropdown'
}
export enum Dimension {
Year = 'year',
Month = 'month'
}
export interface CalendarInject {
curYear: number
curMonth: number
curDate: number
curDimension: Dimension
selectorType: SelectorType
handleSelect: (val: DateInfoT) => void
}