adminforth 2.56.0-next.8 → 2.56.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,15 +10,16 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
import { computed } from 'vue'
|
|
14
|
-
import { JsonViewer } from 'vue3-json-viewer'
|
|
13
|
+
import { computed, defineAsyncComponent } from 'vue'
|
|
15
14
|
import { useCoreStore } from '@/stores/core'
|
|
15
|
+
import "vue3-json-viewer/dist/vue3-json-viewer.css";
|
|
16
16
|
|
|
17
17
|
defineProps<{
|
|
18
18
|
value: any
|
|
19
19
|
expandDepth?: number
|
|
20
20
|
}>()
|
|
21
21
|
|
|
22
|
+
const JsonViewer = defineAsyncComponent(() => import('vue3-json-viewer').then(module => module.JsonViewer))
|
|
22
23
|
const coreStore = useCoreStore()
|
|
23
24
|
|
|
24
25
|
const currentTheme = computed(() => (coreStore.theme === 'dark' ? 'dark' : 'light'))
|
|
@@ -117,9 +117,10 @@ import utc from 'dayjs/plugin/utc';
|
|
|
117
117
|
import timezone from 'dayjs/plugin/timezone';
|
|
118
118
|
import {checkEmptyValues} from '@/utils';
|
|
119
119
|
import { useRoute, useRouter } from 'vue-router';
|
|
120
|
-
import { JsonViewer } from "vue3-json-viewer";
|
|
121
120
|
import "vue3-json-viewer/dist/vue3-json-viewer.css";
|
|
121
|
+
import { defineAsyncComponent } from 'vue';
|
|
122
122
|
import type { AdminForthResourceColumnCommon } from '@/types/Common';
|
|
123
|
+
const JsonViewer = defineAsyncComponent(() => import('vue3-json-viewer').then(module => module.JsonViewer))
|
|
123
124
|
|
|
124
125
|
import { useCoreStore } from '@/stores/core';
|
|
125
126
|
|