mirror of
https://github.com/Pumpkin-MC/Pumpkin-Website.git
synced 2025-02-12 02:21:16 +00:00
18 lines
362 B
Vue
18 lines
362 B
Vue
<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> |