mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
32 lines
572 B
Vue
32 lines
572 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
id: string
|
|
name: string
|
|
type: string
|
|
mode: string
|
|
result: {
|
|
start: number
|
|
state: string
|
|
end: number
|
|
}
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-if="name"
|
|
flex
|
|
flex-row
|
|
items-center
|
|
px-4
|
|
h-12
|
|
border-rounded
|
|
>
|
|
<span text-green-500 i-carbon:checkmark-outline mr-4 block text-xl />
|
|
<div flex flex-col>
|
|
<span text-sm>{{ name }}</span>
|
|
<span text-xs text-light-900 text-opacity-50>Took {{ Math.round(result.end - result.start) }}ms</span>
|
|
</div>
|
|
</div>
|
|
</template>
|