Format numbers and dates per region, and make improvements to benchmarking page
This commit is contained in:
1 parent
78d6069786
commit
8c6dc6c9db
4 files changed
+123
-66
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<script setup>
|
||||
import { computed, getCurrentInstance } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
d: {
|
||||
type: Date,
|
||||
required: true
|
||||
}
|
||||
});
|
||||
|
||||
const formattedDateTime = computed(() => {
|
||||
return getCurrentInstance().appContext.config.globalProperties.$dateTimeFormatter.format(props.d);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<template>
|
||||
{{ formattedDateTime }}
|
||||
</template>
|
||||
@@ -0,0 +1,18 @@
|
||||
<script setup>
|
||||
import { computed, getCurrentInstance } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
n: {
|
||||
type: Number,
|
||||
required: true
|
||||
}
|
||||
});
|
||||
|
||||
const formattedNumber = computed(() => {
|
||||
return getCurrentInstance().appContext.config.globalProperties.$numberFormatter.format(props.n);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{{ formattedNumber }}
|
||||
</template>
|
||||
Reference in new issue
Block a user