Fix Vue production build type errors in activity form and date picker.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -41,7 +41,8 @@ const triggerRef = ref<HTMLButtonElement | null>(null);
|
||||
const panelRef = ref<HTMLElement | null>(null);
|
||||
const top = ref(0);
|
||||
const left = ref(0);
|
||||
const cursor = ref(dateToJalali(new Date()));
|
||||
const todayJ = dateToJalali(new Date());
|
||||
const cursor = ref<{ jy: number; jm: number }>({ jy: todayJ.jy, jm: todayJ.jm });
|
||||
const draftHour = ref(9);
|
||||
const draftMinute = ref(0);
|
||||
|
||||
|
||||
@@ -95,12 +95,6 @@ const duePreview = computed(() => {
|
||||
return `${formatJalaliNumeric(d)} ${toFaDigits((dueTime.value || '00:00').replace(':', ':'))}`;
|
||||
});
|
||||
|
||||
const reminderLabel = computed(() => {
|
||||
if (!reminderAt.value) return 'یادآوری تنظیم نشده است';
|
||||
const d = parseLocalInput(reminderAt.value);
|
||||
return d ? `${formatJalaliNumeric(d)} ${toFaDigits(String(d.getHours()).padStart(2, '0'))}:${toFaDigits(String(d.getMinutes()).padStart(2, '0'))}` : 'یادآوری تنظیم نشده است';
|
||||
});
|
||||
|
||||
const statusText = computed(() => (isDone.value ? 'انجام شده' : 'انجام نشده'));
|
||||
const priorityText = computed(
|
||||
() => priorityOptions.find((p) => p.value === priority.value)?.label || '—',
|
||||
|
||||
Reference in New Issue
Block a user