mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add Enum Type Display
This commit is contained in:
parent
8e9d29327d
commit
3eb13e20d2
1 changed files with 12 additions and 0 deletions
12
client/src/components/display/EnumTypeDisplay.vue
Normal file
12
client/src/components/display/EnumTypeDisplay.vue
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { variantOf } from '~/util';
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<{
|
||||||
|
data: object | string,
|
||||||
|
}>(), {
|
||||||
|
data: '',
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
{{ variantOf(props.data) }}
|
||||||
|
</template>
|
Loading…
Add table
Reference in a new issue