jm-mrc-components
Version:
移动端可复用组件库
20 lines (17 loc) • 402 B
text/typescript
/**
* 日历事件类型,不同的事件在日历上会有不同的展示方式
*/
export enum CalendarEventType {
LegalHoliday,
Normal,
}
export interface CalendarEvent {
id: string
type?: CalendarEventType
color?: string
content: string
start: Date
end: Date
}
// 使用 YYYY-MM-DD 作为key
export type CalendarEventList = { [key: string]: CalendarEvent[] }