uptime-kuma/src/components/Datetime.vue

26 lines
363 B
Vue
Raw Normal View History

2021-06-30 13:04:58 +00:00
<template>
<span>{{ displayText }}</span>
</template>
<script>
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime"
dayjs.extend(relativeTime)
export default {
props: {
value: String,
},
computed: {
displayText() {
return this.value
},
}
}
</script>
<style scoped>
</style>