adminforth 1.4.3-next.15 → 1.4.3-next.16
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.
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
<span v-else-if="column.type === 'richtext'">
|
|
30
30
|
<div v-html="protectAgainstXSS(record[column.name])" class="allow-lists"></div>
|
|
31
31
|
</span>
|
|
32
|
+
<span v-else-if="column.type === 'decimal'">
|
|
33
|
+
{{ checkEmptyValues(record[column.name] && parseFloat(record[column.name]), route.meta.type) }}
|
|
34
|
+
</span>
|
|
32
35
|
<span v-else-if="column.type === 'json'">
|
|
33
36
|
<JsonViewer :value="record[column.name]" :expandDepth="column.extra?.jsonCollapsedLevel" copyable sort :theme="coreStore.theme" />
|
|
34
|
-
|
|
35
37
|
</span>
|
|
36
38
|
<span v-else>
|
|
37
39
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<AfTooltip
|
|
2
|
+
<AfTooltip>
|
|
3
3
|
{{ formattedValue }}
|
|
4
4
|
<template #tooltip v-if="formattedValue">
|
|
5
5
|
{{ formattedTooltipValue }}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import { computed, ref, onMounted, nextTick } from 'vue';
|
|
12
12
|
import AfTooltip from '@/components/AfTooltip.vue';
|
|
13
13
|
|
|
14
|
-
const props = defineProps(['column', 'record']);
|
|
14
|
+
const props = defineProps(['column', 'record', 'meta', 'resource', 'adminUser']);
|
|
15
|
+
|
|
15
16
|
const id = ref();
|
|
16
17
|
const userLocale = ref(navigator.language || 'en-US');
|
|
17
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<AfTooltip
|
|
2
|
+
<AfTooltip>
|
|
3
3
|
{{ relativeTime }}
|
|
4
4
|
<template #tooltip v-if="relativeTime">
|
|
5
5
|
{{ fullTime }}
|
|
@@ -14,11 +14,12 @@ import en from 'javascript-time-ago/locale/en';
|
|
|
14
14
|
import TimeAgo from 'javascript-time-ago';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
16
|
|
|
17
|
+
|
|
17
18
|
const id = ref();
|
|
18
19
|
|
|
19
20
|
TimeAgo.addLocale(en);
|
|
20
21
|
|
|
21
|
-
const props = defineProps(['column', 'record']);
|
|
22
|
+
const props = defineProps(['column', 'record', 'meta', 'resource', 'adminUser']);
|
|
22
23
|
|
|
23
24
|
const userLocale = ref(navigator.language || 'en-US');
|
|
24
25
|
const timeAgoFormatter = new TimeAgo(userLocale.value);
|