init
This commit is contained in:
commit
530524b739
48 files changed
+5097
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>
|
||||
Reference in new issue
Block a user