feat: 新增目标创建弹窗的重复周期选择功能
- 在目标创建弹窗中添加重复周期选择功能,支持用户选择每日、每周和每月的重复类型 - 实现每周和每月的具体日期选择,用户可自定义选择周几和每月的日期 - 更新相关样式,提升用户体验和界面美观性 - 新增图标资源,替换原有文本图标,增强视觉效果
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// 目标管理相关类型定义
|
||||
|
||||
export type RepeatType = 'daily' | 'weekly' | 'monthly' | 'custom';
|
||||
export type RepeatType = 'daily' | 'weekly' | 'monthly';
|
||||
|
||||
export type GoalStatus = 'active' | 'paused' | 'completed' | 'cancelled';
|
||||
|
||||
@@ -8,16 +8,15 @@ export type GoalPriority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
||||
|
||||
// 自定义重复规则
|
||||
export interface CustomRepeatRule {
|
||||
type: 'weekly' | 'monthly';
|
||||
weekdays?: number[]; // 0-6,0为周日
|
||||
monthDays?: number[]; // 1-31
|
||||
interval?: number; // 间隔周数或月数
|
||||
dayOfMonth?: number[]; // 1-31
|
||||
}
|
||||
|
||||
// 提醒设置
|
||||
export interface ReminderSettings {
|
||||
enabled: boolean;
|
||||
weekdays?: number[]; // 0-6,0为周日
|
||||
monthDays?: number[]; // 1-31,每月几号
|
||||
sound?: string;
|
||||
vibration?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user