cosmos-explorer/src/components/Countdown.vue
2023-05-06 22:56:04 +08:00

18 lines
415 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script lang="ts" setup>
import VueCountdown from '@chenfengyuan/vue-countdown';
const props = defineProps({
time: { type: Number },
});
</script>
<template>
<vue-countdown
v-if="time"
:time="time > 0 ? time : 0"
v-slot="{ days, hours, minutes, seconds }"
>
Time Remaining{{ days }} days, {{ hours }} hours, {{ minutes }} minutes,
{{ seconds }} seconds.
</vue-countdown>
</template>