新增手腕温度健康数据追踪,支持Apple Watch睡眠手腕温度数据展示和30天历史趋势分析 实现经期数据与HealthKit的完整双向同步,支持读取、写入和删除经期记录 优化经期预测算法,基于历史数据计算更准确的周期和排卵日预测 重构经期UI组件为模块化结构,提升代码可维护性 添加完整的中英文国际化支持,覆盖所有新增功能界面
22 lines
543 B
TypeScript
22 lines
543 B
TypeScript
import { MenstrualDayCell, MenstrualDayInfo } from '@/utils/menstrualCycle';
|
|
import { Dayjs } from 'dayjs';
|
|
|
|
export interface DayCellProps {
|
|
cell: Extract<MenstrualDayCell, { type: 'day' }>;
|
|
isSelected: boolean;
|
|
onPress: () => void;
|
|
}
|
|
|
|
export interface InlineTipProps {
|
|
selectedDate: Dayjs;
|
|
selectedInfo: MenstrualDayInfo | undefined;
|
|
columnIndex: number;
|
|
onMarkStart: () => void;
|
|
onCancelMark: () => void;
|
|
}
|
|
|
|
export interface LegendItem {
|
|
label: string;
|
|
key: 'period' | 'predicted-period' | 'fertile' | 'ovulation-day';
|
|
}
|