mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-16 02:01:21 -04:00
many update again
This commit is contained in:
parent
9fa84a0a2b
commit
46f07fc17e
9 changed files with 345 additions and 45 deletions
25
src/components/Datetime.vue
Normal file
25
src/components/Datetime.vue
Normal file
|
@ -0,0 +1,25 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue