Revert "perf(frontend): code-split heavy components to improve LCP"

This reverts commit 444b05cac9.
This commit is contained in:
MHSanaei
2026-05-10 17:45:05 +02:00
parent 94a7dbfe3c
commit 6efc4b0665
3 changed files with 20 additions and 14 deletions
+10 -2
View File
@@ -1,9 +1,17 @@
<script setup>
import { computed, defineAsyncComponent } from 'vue';
import { computed } from 'vue';
import dayjs from 'dayjs';
import PersianDatePicker from 'vue3-persian-datetime-picker';
import { useDatepicker } from '@/composables/useDatepicker.js';
const PersianDatePicker = defineAsyncComponent(() => import('vue3-persian-datetime-picker'));
// Drop-in replacement for <a-date-picker> that swaps to a real Jalali
// calendar (vue3-persian-datetime-picker, backed by moment-jalaali)
// when the panel's "Calendar Type" setting is `jalalian`.
//
// The v-model contract matches AD-Vue: the parent works with a dayjs
// object (or null). For the persian picker we serialize to/from the
// `YYYY-MM-DD HH:mm:ss` string it expects so callers don't need to
// know which renderer is active.
const props = defineProps({
value: { type: [Object, null], default: null },